if (screen.width<720) st="1";
else if (screen.width<910) st="2";
else if (screen.width<1080) st="3";
else st="4";

if (parent.document.layers || document.layers) nv="sn";

if (document.all) nv="s";

if (document.getElementById&&!document.all) nv="st";

document.writeln('<link rel="stylesheet" href="../'+nv+''+st+'.css" type="text/css">');

cha=new RegExp("&","g");
re=document.referrer.replace(cha,"§");
ref=re.split("/");
ref1=location.href.split("/");
lo=location.href.substring(28,1000);

function nav(){
xhr = null; 
if(window.XMLHttpRequest){
xhr = new XMLHttpRequest();
asp();
}
else if(window.ActiveXObject){
xhr = new ActiveXObject("Microsoft.XMLHTTP");
asp();
}
else{
return false;
}
}

function asp(){
xhr.open("POST","../ajax.aspx",false);
xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
xhr.send("env="+we+"&env1="+he+"&env2="+re+"&env3="+lo);
}

if (ref[2]!=ref1[2]){
nav();
}