if(navigator.userAgent.toLowerCase().indexOf('safari')!=-1){
	document.write('<link href="./assets/css/safari.css" type="text/css" rel="stylesheet" media="screen" />');
	if (window.addEventListener) window.addEventListener("resize", safari, false);
}
document.write('<script src="./assets/js/sifr.js"><\/' + 'script>');

function $(){
	if(typeof sIFR == "function"){
		sIFR.replaceElement(named({sSelector:"h1.front", sFlashSrc:"./assets/swf/CgBenguiatFrisky.swf", sColor:"#7759A0", sBgColor:"#FFFFFF", sFlashVars:"textalign=center&offsetTop=3", sCase:"upper"}));
	}
	mozhilya();
}

function safari(){window.location.href = window.location.href;}

window.onload = $;

//Ugly Fix for Firefox 1.0.7(1.5+ also??) issue with positioning.... Ughh...
function mozhilya(){
	if(navigator.userAgent.toLowerCase().indexOf('firefox')!=-1){
		if(window.location.href.indexOf('index.html')==-1){
			window.location.href = 'index.html';
		}
	}
}