// common js functions

function selMarqueOver(name)
	{
	document.getElementById(name).style.backgroundColor = "#eff2f3";
	document.getElementById('img_'+name).src = "images/select-1.jpg";
	}

function selMarqueOut(name)
	{
	document.getElementById(name).style.backgroundColor = "";
	document.getElementById('img_'+name).src = "images/select.gif";
	}

function selModelOver(obj)
	{
	obj.style.backgroundImage = "url(images/sel-model-back-1.jpg)";
	}

function selModelOut(obj)
	{
	obj.style.backgroundImage = "url(images/sel-model-back.jpg)";
	}

function tariffOver(name)
	{
	document.getElementById(name).style.color = "#768db5";
	}

function tariffOut(name)
	{
	document.getElementById(name).style.color = "#8c250b";
	}

function setBookmark(url,str)
	{
	if (str == '')
		str=url;
	if (document.all)
		window.external.AddFavorite(url,str);
		else
		alert('Press CTRL-D or CTRL-T to add a bookmark to:\r\n"'+url+'".');
	}



function freeMove()
	{
	X = 426;
	//Y = 700;
	self.moveTo( (screen.width-X+10) / 2, 0);
	//self.moveTo( (screen.width-X+10) / 2,(screen.height-Y-36) / 2);
	}

function showFree()
	{
	asd = window.open("free.php","free","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=426,height=700");
	if (window.focus)
		asd.focus();
	}

function specialMove()
	{
	X = 417;
	Y = 389;
	self.moveTo( (screen.width-X+10) / 2, 0);
	self.moveTo( (screen.width-X+10) / 2,(screen.height-Y-36) / 2);
	}

function showSpecial()
	{
	asd = window.open("special.php","special","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=430,height=389");
	if (window.focus)
		asd.focus();
	}

function popSize()
	{
	resizeTo(document.images[0].width+10, document.images[0].height+36);
	}

function popMove()
	{
	moveTo( (screen.width-document.images[0].width+10) / 2,(screen.height-document.images[0].height-59) / 2);
	}

function popup(id)
	{
	window.open('popup.php?col='+id,'popup','resizable=1,toolbar=no,location=no,scrollbars=1,status=no,menubar=no,width=400,height=400');
	}