DD_roundies.addRule('.boxesBorder','5px 5px 5px 5px',true);
DD_roundies.addRule('.mainanchor','5px 5px 1px 1px',true);
DD_roundies.addRule('.content','1px 1px 10px 10px',true);
DD_roundies.addRule('.promo','10px 10px 1px 1px',true);

if($('#placeholder').length>0){var pause=1;}else{var pause=0;}
function addMega(){if(pause==1){$('#placeholder').crossSlidePause();}
$(this).find(".mainanchor").css("background-color","#fcead0");$(this).find(".mainanchor").css("color","#EB5E00");$(this).addClass("hovering");if(pause==1){$('#placeholder').crossSlideResume();}}
function removeMega(){if(pause==1){$('#placeholder').crossSlidePause();}
$(this).find(".mainanchor").css("background-color","transparent");$(this).find(".mainanchor").css("color","#373737");$(this).parent().find(".right .mainanchor").css("color","#fff");$(this).find(".activeWhite").css("background-color","#fff");$(this).find(".activeWhite").css("color","#EB5E00");$(this).parent().find(".right .activeWhite").css("color","#EB5E00");$(this).removeClass("hovering");if(pause==1){$('#placeholder').crossSlideResume();}}

var megaConfig={interval:0,sensitivity:300,over:addMega,timeout:0,out:removeMega};




$(document).ready(function(){
$('.border').pngFix();
$(".menuBar li.main").hoverIntent(megaConfig);
$('.promo').css("opacity",0.9);

$('.centerColumn table tr:odd').css("background-color","#ffbe8f");
$('.centerColumn table tr').css("color","#272727");


if($("a.grouped_elements").length>0){
$("a.grouped_elements").fancybox({'padding':'0','transitionIn':'elastic','transitionOut':'elastic','speedIn':300,'speedOut':300,'overlayShow':true,'autoScale':true,'opacity':false,'cyclic':true,'centerOnScroll':true,'overlayOpacity':1,'overlayColor':'#000','titlePosition':'outside','showNavArrows':true});
}

$("a.grouped_elements2").fancybox({'transitionIn':'elastic','transitionOut':'elastic','speedIn':300,'speedOut':300,'overlayShow':true,'autoScale':true,'opacity':false,'cyclic':true,'centerOnScroll':true,'overlayOpacity':1,'overlayColor':'#000','titlePosition':'inside'});});
