var precioussans = { src: '/fonts/precioussans.swf' };

sIFR.activate(precioussans);

sIFR.replace(precioussans, {
  selector: 'h2', 
	css: [
		'.sIFR-root { color: #5eb2db; z-index: 1; }',
		'a { color: #5eb2db; }',
		'a:hover { color: #5eb2db; text-decoration: none; }'
		],
	wmode: 'transparent'
});

sIFR.replace(precioussans, {
  selector: 'h3.sifr', 
	css: [
		'.sIFR-root { color: #5eb2db; z-index: 1; }'
		],
	wmode: 'transparent'
});

sIFR.replace(precioussans, {
  selector: 'h3.main-blurb', 
	css: [
		'.sIFR-root { color: #ffffff; z-index: 1; }'
		],
	wmode: 'transparent'
});
// 
// if(typeof sIFR == "function"){
// 	sIFR.replaceElement(named({sSelector:"body h2", sFlashSrc:"/fonts/precioussans.swf", sColor:"#5eb2db", sLinkColor:"#5eb2db", sBgColor:"#FFFFFF", sHoverColor:"#5eb2db" }));
// 	sIFR.replaceElement(named({sSelector:"body h3.sifr", sFlashSrc:"/fonts/precioussans.swf", sColor:"#5eb2db", wmode: 'transparent' }));
// 	sIFR.replaceElement(named({sSelector:"body h3.main-blurb", sFlashSrc:"/fonts/precioussans.swf", sColor:"#ffffff", wmode: 'transparent' }));
// };




function openpopup(popurl){
	var winpops=window.open(popurl,"","width=650px,height=500px,scrollbars,resizable")
	}

$(document).ready(function(){
	$("#nav li").hover(function(){ $(this).addClass("over"); },function(){ $(this).removeClass("over"); });	
	
	$("ul.dropdown").hover(function(){ $(this).parent().find("a").addClass("over"); },function(){ $(this).parent().find("a").removeClass("over"); });		

	if (jQuery.browser.safari) { 	
			//$("#nav li a").mouseout(function(){ $(this).removeClass("over"); });	
			$("ul.dropdown").mouseout(function(){ $(this).parent().find("a").removeClass("over"); });
		}



}); //ready

function externalLinks() { 
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a"); 
 for (var i=0; i<anchors.length; i++) { 
   var anchor = anchors[i]; 
   if (anchor.getAttribute("href") && 
       anchor.getAttribute("rel") == "external") 
     anchor.target = "_blank"; 
 } 
} 
window.onload = externalLinks;