var domain ='';
var domainRef ='';
function init(d, dr) {
	domain = d;
	$(document).ready(function(){
		// fix breadcrumbs
/*		$("#breadcrumbs li:last").removeAttr('rel');
		$("#breadcrumbs li").each(function(){
			if ($(this).attr('rel')) {
				$(this).wrapInner('<a href="'+$(this).attr('rel')+'"></a>');
			}
		});*/
		jQuery("#menu ul").show();
		jQuery("ul.sf-menu li:nth-child(1)").css("width", "95px");
		jQuery("ul.sf-menu li:nth-child(2)").css("width", "138px");
		jQuery("ul.sf-menu li:nth-child(3)").css("width", "155px");
		jQuery("ul.sf-menu li:nth-child(4)").css("width", "100px");
		jQuery("ul.sf-menu li:nth-child(5)").css("width", "158px");
		jQuery("ul.sf-menu li:nth-child(6)").css("width", "137px"); //183
		jQuery("ul.sf-menu li:nth-child(7)").css("width", "130px");
		jQuery("ul.sf-menu li:nth-child(8)").css("width", "60px");
		jQuery("ul.sf-menu li li").css("width", "auto");
		
		jQuery("ul.sf-menu").supersubs({ 
            minWidth:    12,   // minimum width of sub-menus in em units 
            maxWidth:    40,   // maximum width of sub-menus in em units 
            extraWidth:  1     // extra width can ensure lines don't sometimes turn over due to slight rounding differences and font-family 
        });
		
		jQuery("ul.sf-menu").superfish();
		jQuery("ul.sf-menu").supposition();
	});
}
