var pos=0;
var move=0;

function move_window()
{
document.getElementById('advert').style.left=pos;
if (pos>320)
{
move=1;
}
if(pos<0)
{
move=0;
}
if(move==0)
{
pos=pos+5;
}
else
{
pos=pos-5;
}
window.setTimeout('move_window();',75);


}
function show01()
{
document.getElementById("item").style.background="#efec5d";
}
function show001()
{
document.getElementById("item").style.background="#ffffff";
}
function show02()
{
document.getElementById("item2").style.background="#efec5d";
}
function show002()
{
document.getElementById("item2").style.background="#ffffff";
}
function show03()
{
document.getElementById("item3").style.background="#efec5d";
}
function show003()
{
document.getElementById("item3").style.background="#ffffff";
}
function show04()
{
document.getElementById("item4").style.background="#efec5d";
}
function show004()
{
document.getElementById("item4").style.background="#ffffff";
}
function show05()
{
document.getElementById("item5").style.background="#efec5d";
}
function show005()
{
document.getElementById("item5").style.background="#ffffff";
}
function show06()
{
document.getElementById("item6").style.background="#efec5d";
}
function show006()
{
document.getElementById("item6").style.background="#ffffff";
}
function show07()
{
document.getElementById("item7").style.background="#efec5d";
}
function show007()
{
document.getElementById("item7").style.background="#ffffff";
}
function show08()
{
document.getElementById("item8").style.background="#efec5d";
}
function show008()
{
document.getElementById("item8").style.background="#ffffff";
}
function show09()
{
document.getElementById("item9").style.background="#efec5d";
}
function show009()
{
document.getElementById("item9").style.background="#ffffff";
}

function show00()
{
document.getElementById("item0").style.background="#efec5d";
}
function show000()
{
document.getElementById("item0").style.background="#ffffff";
}

function show10()
{
document.getElementById("item10").style.background="#efec5d";
}
function show010()
{
document.getElementById("item10").style.background="#ffffff";
}

function showpic(width, height, url){
	
	x = window.open("","show","height="+height+",width="+width+", resizable=1, scrollbars=1, menubar=0");

	x.document.writeln('<HTML>');
	x.document.writeln('<BODY BGCOLOR="#ffffff" TOPMARGIN="0" LEFTMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0" OnLoad=focus();>');
	x.document.writeln('<TABLE ALIGN="center" BORDER="0" WIDTH="100%" HEIGHT="100%" CELLSPACING="0" CELLPADDING="6">');
	x.document.writeln('<TR>');
	x.document.writeln('<TD ALIGN="center">');
	x.document.writeln('<IMG SRC="'+url+'">');
	x.document.writeln('</TD>');
	x.document.writeln('</TR>');
	x.document.writeln('<TR><TD ALIGN="center"><FONT SIZE="1" FACE="Verdana"><A HREF="JavaScript:this.window.close()">zamknij to okno</A><BR><BR>&copy;2006 Enigma</FONT></TD></TR>');
	x.document.writeln('</TABLE>');
	x.document.writeln('</BODY>');
	x.document.writeln('</HTML>');
	x.document.close();

		
}