//PRELOAD
function Preload()
{
	var d=document;
	if(d.images)
	{
		if(!d.par) d.par=new Array();
		var i,j=d.par.length,a=Preload.arguments;
		for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0)
		{
			d.par[j]=new Image;
			d.par[j++].src=a[i];
		}
	}
}

function Restore()
{
	var i,x,a=document.sr;
	for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function FindObj(n, d)
{
	var p,i,x;
	if(!d) d=document;
	if((p=n.indexOf("?"))>0&&parent.frames.length)
	{
		d=parent.frames[n.substring(p+1)].document;
		n=n.substring(0,p);
	}
	if(!(x=d[n])&&d.all) x=d.all[n];
	for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=FindObj(n,d.layers[i].document);
	return x;
}

function Swap()
{
	var i,j=0,x,a=Swap.arguments;
	document.sr=new Array;
	for(i=0;i<(a.length-2);i+=3)
	if ((x=FindObj(a[i]))!=null)
	{
		document.sr[j++]=x;
		if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];
	}
}

// END PRELOAD

// OPEN POPUP WINDOW (modifed 3:29:00 17:42:00)

//GLOBALS VARS
var popupa;
var width = "width=400";
var height = "height=400";
var param = width+", "+height+", resizable=0";
//îòêðûòèå îêíà
function GoBig(source)
{
	popupa = window.open ("","popupa", param);
	popupa.location = source;
}
//ÄÎÏÎËÍÅÍÈß
//<body onload="self.close ();" >
// [END] OPEN POPUP WINDOW

// OPEN POPUP WINDOW (modifed 3:29:00 17:42:00)

//îòêðûòèå îêíà
function Pic(source)
{
	popupc = window.open ("","popupc");
	popupc.location = source;
}
//ÄÎÏÎËÍÅÍÈß
// [END] OPEN POPUP WINDOW
//PRINT IMAGES
function beforeprint()
{
text1.style.visibility='hidden';
img1.style.visibility='visible';
im.style.visibility='visible';
}
function afterprint()
{
   text1.style.visibility='visible';
   img1.style.visibility='hidden';
   im.style.visibility='hidden';
}
//[END]PRINT IMAGES