function showinbg(towar)
{
	var _bg = document.getElementById("bg");
	var opacity = 10;

	_bg.style.width=screen.availWidth;
	_bg.style.height=screen.availHeight+32;
	_bg.style.left="0px";
	_bg.style.top="0px";
	_bg.style.backgroundImage="url("+towar+")";
	//_bg.style.backgroundPosition="center center";
	_bg.style.backgroundRepeat="no-repeat";
	_bg.style.opacity = (opacity/100);
	_bg.style.MozOpacity = (opacity / 100);
	_bg.style.KhtmlOpacity = (opacity / 100);
	_bg.style.filter = "alpha(opacity=" + opacity + ")";    			
	_bg.style.zIndex = 0;
}

function hidebg()
{
	var _bg = document.getElementById("bg");

	_bg.style.width="0px";
	_bg.style.height="0px";
	_bg.style.left="0px";
	_bg.style.top="0px";
	_bg.style.backgroundImage="";
}


function show(towar)
{
	var _projektor = document.getElementById("projektor");
	_projektor.innerHTML="" //"<BR>&nbsp;&nbsp;&nbsp;x";
	_projektor.style.width=screen.availWidth; //((screen.availWidth/2)-40)*2;
	_projektor.style.height=screen.availHeight+32; //((screen.availHeight/2)-100)*2;
	_projektor.style.left="0px";
	_projektor.style.top="0px";
	_projektor.style.padding="0px";
	_projektor.style.backgroundImage="url("+towar+")";
	//_projektor.style.backgroundPosition="center center";
	_projektor.style.backgroundRepeat="no-repeat";
	_projektor.style.opacity = 0;
	_projektor.style.MozOpacity = 0;
	_projektor.style.KhtmlOpacity = 0;
	_projektor.style.filter = "alpha(opacity=0)";
	_projektor.style.zIndex = 100;
	shiftOpacity('projektor', 500)
}    		

function closing()
{

	var _projektor = document.getElementById("projektor");
	_projektor.innerHTML="";
	_projektor.style.width=0;
	_projektor.style.height=0;
	_projektor.style.left=0;
	_projektor.style.top=0;
	_projektor.style.backgroundImage="";
}


function hide()
{
	setTimeout('closing();', 750);
	shiftOpacity('projektor', 500);
}


