

// link dots remover

function unblur() {
this.blur();
}

function blurLinks() {
if (!document.getElementById) return;
theLinks = document.getElementsByTagName("a");
for(i=0; i<theLinks.length; i++) {
theLinks[i].onfocus = unblur;
}
}

function spr_on(n){document.images["im"+n].src="images/spear_on.gif";}
function spr_off(n){document.images["im"+n].src="images/spear_off.gif";}

// popup
var newwin=0;
function ShowIm(n, h, w){
if(newwin){try{newwin.close();}catch(e){}}
var u = n + '.shtml';
var par = "'toolbar=1,scrollbars=1,status=no,height=" + h + ",width=" + w + "'";
newwin=window.open(u, '', par);

}

/*function ShowImage(n, h, w){

var u = 'images/'+n;
var par = "'toolbar=no,status=no,height=" + h + ",width=" + w + "'";
window.open(u, '', par);
}*/


function ShowImage(imgName, h, w){
if(newwin){try{newwin.close();}catch(e){}}
var content="<html><head><title>Документы</title></head><body><div align=center style='cursor: pointer;'><img border=0 name=pg alt=Закрыть onclick=window.close()";
content+=" width="+w+" height="+h+" src=certification/"+imgName;
content+="></div></body></html>";
wsize=w+50;
hsize=h+50;
if(wsize>1000){wsize=1000;}
if(hsize>700){hsize=700;}
newwin=window.open('', 'pagewin', 'toolbar=no,status=no,height='+hsize+',width='+wsize+',scrollbars=1');
newwin.document.write(content);
newwin.document.close();
newwin.focus();
}

function ShowPhoto(imgName, h, w){
if(newwin){try{newwin.close();}catch(e){}}
var content="<html><head><title>Документы</title></head><body><div align=center style='cursor: pointer;'><img border=0 name=pg alt=Закрыть onclick=window.close()";
content+=" width="+w+" height="+h+" src=photo/"+imgName;
content+="></div></body></html>";
wsize=w+50;
hsize=h+50;
if(wsize>1000){wsize=1000;}
if(hsize>700){hsize=700;}
newwin=window.open('', 'pagewin', 'toolbar=no,status=no,height='+hsize+',width='+wsize+',scrollbars=1');
newwin.document.write(content);
newwin.document.close();
newwin.focus();
}

function menu(){
allLinks=new Array;
allLinks=document.links;
for(i=0;i<document.links.length;i++)
{
if (location.href.search(new RegExp(allLinks[i])) >= 0)
{allLinks[i].className="here";}
}
}

function selecturl(s) 

{
var gourl = s.options[s.selectedIndex].value;

if ((gourl != null) && (gourl != "") )

 {

   window.top.location.href = gourl;

  }

}
var browser_type=navigator.appName
var browser_version=parseInt(navigator.appVersion)
//if NS4+
if (browser_type=="Netscape"&&browser_version<=4)
window.location.replace("why.html")

//*********************
var w=0;
function photoArt(curPhoto,nmArt){
if(w){try{w.close();}catch(e){}}

	var writePage="<html><head><link href='win.css' rel='stylesheet'><link rel='stylesheet' type='text/css' href='print_img.css' media='print'><meta http-equiv='Content-Type' content='text/html; charset=windows-1251'><title>Декоры</title></head><body style='background: url(images/downloading.gif) center no-repeat;' leftmargin='0' topmargin='0' rightmargin='0' bottommargin='0' bgcolor='#FFFFFF'>"
	writePage+="<table cellspacing='0' cellpadding='0' border='0' width='510' align='center' style='margin-top:50px;'><tr><td width='100%' class='photo' id='slide' style='background: url(catalog/";
writePage+=curPhoto+".jpg) no-repeat center;'><img src='images/spacer.gif' border='0'  width='400' height='400'>";
	writePage+="</td></tr><tr><td>&nbsp;</td></tr>";
	writePage+="<tr><td align='center'>"+nmArt+"</td></tr>";  
   writePage+="<tr><td class='text'><center>&nbsp;&nbsp;|&nbsp;&nbsp;<a href='javascript:window.close();'>закрыть</a>&nbsp;&nbsp;|&nbsp;&nbsp;</center></td></tr></table></body></html>";
   
   	w=window.open("", "foto2", "toolbar=no, scrollbars=no, menubar=no, status=no, resizable=no, locationbar=no, width=560, height=580");
try{w.document.charset='windows-1251';}catch(e){}
w.document.open("text/html","replace");
	w.document.write(writePage);
	w.document.close();
	w.focus();
}
