<!--

nn=(document.layers)? true: false
ie=(document.all)? true : false
if(ie){frs='all';sec='.style'}
if(nn){frs='layers';sec=''}

var start=0;

//#####################################################################################

function init()
{
	init = 1;
}

//#####################################################################################

newWin = false;

function openWindow(url,width,height, scroll)
{
	
	scroll = (scroll == 1)? "yes" : "no" ;
	
	c = "toolbar=no,menubar=no,location=no,personalbar=no,status=no,statusbar=no,directories=no,";
	c += "resizable=no,scrollbars="+scroll+",width="+width+",height="+height+",left=100,top=100";
	
	if(newWin)
	{
		newWin.close();
	}
	newWin = window.open(url,"newWin",c);

}

//#####################################################################################

function preload(imgObj,imgSrc)
{
	if (document.images)
	{
		eval(imgObj+' = new Image()');
		eval(imgObj+'.src = "'+imgSrc+'"');
	}
}

//#####################################################################################

for(i=1; i<=13; i++)
{
	preload("m_top_"+i+"_on", "_img/menu_top/"+i+"_on.gif");
	preload("m_top_"+i+"_off", "_img/menu_top/"+i+"_off.gif");
	
	if(i<=13)
	{
		preload("m_left_"+i+"_on", "_img/menu_left/"+i+"_on.gif");
		preload("m_left_"+i+"_off", "_img/menu_left/"+i+"_off.gif");
	}
}

//#####################################################################################

function ch_img(p, n)
{
	document.images[n].src = eval(n+"_"+p+".src");
}


//-->
