/* il 10.01.06 Atilekt.com */
function c_il_CSS (){}
var er_cov=[], cov_er,er_il,il_prob, il_CSS=new c_il_CSS();
/*IE5.0*/
if(!(il_prob=[]).push)Array.prototype.push=function(){var i=this.length,j=0,a=this.push.arguments,n=a.length,k=i+n;for(;i<k;i++,j++)this[i]=a[j];return j+1}

/* PNG-блок. Приоритет без JS у IE 6.0 */
function png_Atilekt(e,n){
var u,p,t;
try{
if(((navigator.appName.slice(1,9).toLowerCase()!='icrosoft')||(window.opera))&&(u=e.src)){
	p=u.replace(/\/\w+\.(gif|jpg)$/,'/'+n);
	e.onload=null;
	if(p!=u)e.src=p
}
}catch(t){
t.il='png';
er_cov[er_cov.length]=t
}
}

/* PNG-блок pn_abs */
function pn_abs(){
var e,i,u,k,p,t;
try{
	if((navigator.appName.toLowerCase().slice(1,9)!='icrosoft')||(window.opera)){
		e=document.getElementById('div_menu').getElementsByTagName('DIV');
		for(i=0;i<e.length;i++){
			if((u=e[i]).className=='filter_pn'){
				/* Opera 8.5 - всегда буду помнить твою мать! Спасибо и на том */
				u.style.backgroundImage='url(img/pn_abs_gr.png)'
				u.style.backgroundRepeat='no-repeat'
				u.style.backgroundPosition='right top'
			}
		}
	}
}catch(t){
t.il='png_pn';
er_cov.push(t)
}
}


window.onload=on_il;
function on_il(){
var h={fs_il:fs_il},p,er;
for(p in h){
	try{
		h[p]()
	}catch(er){
	er.il='Winonl:'+p;
	er_cov.push(er_il)
	alert('готово')
	}
}
}

function imgopen (imgf,tit){

rand_id='image'+(Math.round(Math.random()*1000));

outf="<html>"
 +"<head>"
 +"<title>"+tit+"</title>"
 +"<style>body{margin:0px}</style>"
 +"</head>"
 +"<body leftmargin=0 topmargin=0>"
 +"<img src=\""+imgf+"\">";
 
img1=new Image();
img1.src=imgf;
var si = setInterval(imgCheck,100);
function imgCheck(){
 if(img1.width!=0 && img1.height!=0){
  clearInterval(si);
  openIMG();
 }
}
function openIMG(){
 var leftVal = ((screen.width) - (img1.width)) / 2;
 var topVal = ((screen.height) - (img1.height)) / 2;
 iopen="iwin=self.open('"+imgf+"', '"+rand_id+"', 'width='+(img1.width)+',height='+(img1.height)+',top='+topVal+',left='+leftVal+'');"+"iwin.document.write('"+outf+"');"+"iwin.focus();";
 eval(iopen);
 }
}


function off_il(){var p;for(p in er_cov)er_cov[p]=null;er_cov=null}
window.onunload=off_il;

function fs_il(){
if((navigator.appName.toLowerCase().slice(1,9)=='icrosoft')&&(navigator.userAgent.toLowerCase().indexOf('msie 5.0')!=-1)){
}
}











