/**
 * Hides all boxes when clicked and then shows the appropriate box 
 */ 
$(function() { 

$("#WASCEAVBuyButton").click(function(e) { 
if ($(".boxWrap:visible")) {$(".boxWrap").hide();} 
$("div#WASCEAVBuyBox").show(); 
}); 

$("#WASCEBuyButton").click(function(e) { 
if ($(".boxWrap:visible")) {$(".boxWrap").hide();} 
$("div#WASCEBuyBox").show(); 
}); 

$("#WASCEAVBottomBuyButton").click(function(e) { 
if ($(".boxWrap:visible")) {$(".boxWrap").hide();} 
$("div#WASCEAVBBuyBox").show(); 
}); 

$("#WASCEBottomBuyButton").click(function(e) { 
if ($(".boxWrap:visible")) {$(".boxWrap").hide();} 
$("div#WASCEBBuyBox").show(); 
}); 


/**
 *  Closes the box when the x is clicked
 */
$(".closer").click(function(e) { 
$(".boxWrap").hide(); 
}); 

/**
 *  RollOver and Rollout functionality for the x
 */
$(".closer").hover( 
function(e) { 
if (jQuery.support.opacity) { 
$(".closer").css("background-position","0px -12px"); 
} else { 
$(".closer").css("background-image","url(/shared/img_structure/button5_over.gif)"); 
} 
$(".closer").css("cursor","pointer"); 
}, 
function(e) { 
if (jQuery.support.opacity) { 
$(".closer").css("background-position","0px 0px"); 
} else { 
$(".closer").css("background-image","url(/shared/img_structure/button5_out.gif)"); 
} 
$(".closer").css("cursor","pointer"); 
} 
); 
}); 

