function ScrollTo(id,side,step)
{
	var div=document.getElementById(id);
	if(side=='Left')
	{
		if(div.scrollLeft!=1224)
		div.scrollLeft+=step;
	}
	if(side=='Right')
	{
		div.scrollLeft-=step;
	}
}

function ColorMe_2(xid)
{
	var n = 's'+xid;
	document.getElementById(n).style.backgroundColor = '#ab0000';
}

function UnColorMe_2(xid)
{
	var n = 's'+xid;
	document.getElementById(n).style.backgroundColor = '#707070';
}

function ColorMe_3(xid)
{
	var n = 's'+xid;
	document.getElementById(n).style.backgroundColor = '#ffffff';
}

function UnColorMe_3(xid)
{
	var n = 's'+xid;
	document.getElementById(n).style.backgroundColor = '';
}

function ColorMe(xid)
{
	var n = 'm'+xid;
	document.getElementById(n).style.backgroundColor = '#ab0000';
	document.getElementById('mp').src = ximg[xid].src;
}

function UnColorMe1(xid)
{
	var n = 'm'+xid;
	document.getElementById(n).style.backgroundColor = '#dde3e7';
	document.getElementById('mp').src='_imgs/main2.jpg';
}

function UnColorMe2(xid)
{
	var n = 'm'+xid;
	document.getElementById(n).style.backgroundColor = '#d4dce1';
	document.getElementById('mp').src='_imgs/main2.jpg';
}

function Wind(pr)
{
	var url = "/wind.php?pr="+pr;
	var hinst = "ank";
	var other = "menubar=0,width=600,height=800,left=50%,top=10%,scrollbars=1,toolbar=0,statusbar=0";
	window.open(url,hinst,other);
}

function Wind2(pr,x,y)
{
	var url = "wind2.php?pr="+pr;
	var hinst = "_blank";
	var other = "menubar=0,width="+x+",height="+y+",left=50%,top=10%,scrollbars=0,toolbar=0,statusbar=0";
	window.open(url,hinst,other);
}

