// *********************************     **************************************************
var description=0; //   
var site='';
var baseurl=site+'/';
var cgiurl=site+'/cgi-tr/';

function opendescr(url,width,height){
	width+=20;height+=20;
/*	if(description && description.parent)
		description.close();*///Math.round(Math.random()*10000)
	namewin=url.substring(0,url.length-4);
	description=window.open(baseurl+'img/catalog/'+url,'desciption'+namewin,'toolbar=no,width='+width+',height='+height+',directories=no,status=no,scrollbars=no,resize=no,menubar=no');
}

    function compareFrames(){
        if(top!=this){
        	top.location=location;
         }
     }



var timerID;
function waitLoad(i){
    if(!top.frames['itop'].load){
        timerID = setTimeout("waitLoad("+i+")",10);
    }else{
		top.frames['itop'].downTB(i);
		if(top.frames['left'].type!=2){
			top.frames['left'].location=baseurl+'left2.html';
	 	}
	 }
}

function Load(i){
	if(i<100){
		if(top.frames['left'].type!=2){
				top.frames['itop'].location=baseurl+'top2.html';
		}
        clearTimeout(timerID);
		waitLoad(i);
	}else if(i==101){
		if(top.frames['left'].type!=1){
			top.frames['left'].location=baseurl+'left1.html';
			if(top.frames['left'].type!=5)
				top.frames['itop'].location=baseurl+'top1.html';
		}
	}else if(i==103){
		if(top.frames['left'].type!=3){
			top.frames['left'].location=baseurl+'left3.html';
			top.frames['itop'].location=baseurl+'top3.html';
		}
	}else if(i==104){
		if(top.frames['left'].type!=4){
			top.frames['left'].location=baseurl+'left4.html';
			if(top.frames['left'].type!=6)
				top.frames['itop'].location=baseurl+'top4.html';
		}
	}else if(i==105){
		if(top.frames['left'].type!=5){
			top.frames['left'].location=baseurl+'left5.html';
			if(top.frames['left'].type!=1)
				top.frames['itop'].location=baseurl+'top1.html';
		}
	}else if(i==106){
		if(top.frames['left'].type!=6){
			top.frames['left'].location=baseurl+'left6.html';
			if(top.frames['left'].type!=4)
				top.frames['itop'].location=baseurl+'top4.html';
		}
	}
}


hotLinks="false";
browser=navigator.appName;
version=navigator.appVersion.substring(0,1);
SrcStat=new Image(11,12);
SrcStat.src=baseurl+'img/magn3.gif';
SrcAnim=new Image(11,12);
SrcAnim.src=baseurl+'img/magn6s.gif';
if (version !='1' && version !='2' &&(browser == "Netscape" || version =='4'))
	hotLinks="true";
else
	hotLinks="false";

if(document.location.pathname.lastIndexOf('selectimg.cgi')==-1)
	      compareFrames();

function closeEye(nameobj){
	if (hotLinks=="true"){
//	alert(nameobj);
		document ['e'+nameobj].src=SrcAnim.src;
		setTimeout("document ['e"+nameobj+"'].src=SrcStat.src",1000);
    }
}

function sendCard(){
	if( document.forms['card'].elements[3].value!='' && document.forms['card'].elements[4].value!='' && document.forms['card'].elements[5].value!=''
		&& document.forms['card'].elements[7].value!='')
		document.forms.card.submit();
	else
		alert('     :\n ,  ,  , ');
}


