///script created by KVA see xata6.com or white me to icq 340358144
///created date 2009-02-11 9:00
//func 1
function srav(sub,s){
strlen1=sub.length
strlen2=s.length
istrue=false
for(i=0;i<=strlen2;i++)
{
newbackurl=s.substring(i-1,strlen2)
newbackurl=newbackurl.substring(0,strlen1)
if(newbackurl==sub){
istrue=true
break
}
}
return istrue
}//end func 1

//func 2
function backpage(backurl,url){
var url2=url;
url='svarog.tural.kz'+url;
srav(url.toLowerCase(),backurl.toLowerCase());
if(newbackurl==url){
	if (history.length>="1"){
var ag=navigator.userAgent.toLowerCase();
if (ag.indexOf('gecko')){var bra='moz';}
else if (ag.indexOf('opera')){var bra='opera';}
else if (ag.indexOf('msie')){var bra='ie';}
	if (bra=='ie'){return history.back(-1);}
	if (bra=='moz'){
	if (history.length>"1"){
		return history.back(-1);}
	if (history.length=="1"){
		newurl='http://svarog.tural.kz'+url2;
		return location.replace(newurl);
	}
	}
	if (bra=='opera'){return history.back(-1);}
	}
	if (history.length<"1"){
	newurl='http://svarog.tural.kz'+url2;
	return location.replace(newurl);
	}
	if (history.length==""){
	newurl='http://svarog.tural.kz'+url2;
	return location.replace(newurl);
	}
}
if(newbackurl!=url){
newurl='http://svarog.tural.kz'+url2;
return location.replace(newurl);
}
}//end func 2


/////////////////////////////////////////////////////
////////////////hide_div by KVA
/////////////////////////////////////////////////////
function sh (obj){
var mooo=document.getElementById(obj);
if (mooo) {
	if (mooo.style.display=='none'){
		mooo.style.display='inline';
	}
	else if (mooo.style.display=='inline') {
		mooo.style.display='none';
	}
}
}