//code by martin tony surovcek, (c)outsider development 2002-2004, www.outsiderdevelopment.sk

document.write("<style>\n");
document.write("A.d {TEXT-DECORATION: none; color=#606000;}\n");
document.write("A.d:hover {TEXT-DECORATION: none; color=#ffffff;}\n");
document.write("</style>\n");

opened=false;
w=0;
function OpenWin(Pic,txt)
{
	if (opened)
	w.close();
	opened=true;
	w=window.open('about:blank','Photo','fullscreen=no,scrollbars=yes,resizable=yes,width=1068,height=729,left=0,top=0');
	w.document.write("<script>\n");
	w.document.write("function setWindow()\n{\nwindow.resizeTo(fotoi.width+120, fotoi.height+120);\n}\n");
	w.document.write("function Zoom(z)\n{\nimg1.style.zoom=z;\n}\n");
	w.document.write("function bBW()\n");
	w.document.write("{\nfotoi.className='blurimg0_on';\n}\n");
	w.document.write("function bC()\n");
	w.document.write("{\nfotoi.className='blurimg0';\n}\n");
	w.document.write("</script>\n");

	w.document.write("<body onload=setWindow() bgcolor=#000000 LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 style='scrollbar-face-color: #1f1800; scrollbar-highlight-color: #0f0800; scrollbar-shadow-color: #0f0800; scrollbar-3dlight-color: #3f3800; scrollbar-arrow-color: #ffffff; scrollbar-track-color: #000000; scrollbar-darkshadow-color: #0f0800;'>\n");

	w.document.write("<style>\n");
	w.document.write("A {TEXT-DECORATION: none; color=#606000;}\n");
	w.document.write("A:hover {TEXT-DECORATION: none; color=#ffffff;}\n");
	w.document.write("</style>\n");

	w.document.write("<style type='text/css'>\n");
	w.document.write("image.blurimg0\n");
	w.document.write("{\n \n}\n");
	w.document.write("image.blurimg0_on\n");
	w.document.write("{\n filter: gray(); \n}\n");
	w.document.write("</style>\n");

	w.document.write("<font style='color=#ffffff; font-family: Verdana; font-size=12px'>\n");
	w.document.write("<table WIDTH=100% Height=100%><tr><td height=50%></td></tr><tr><td><center>\n");
	w.document.write("<div style='zoom: 1; overflow: auto;' align=center id='img1'>");
	w.document.write("<a href='JavaScript:window.close()'>");
	w.document.write("<img name=fotoi class=fotoi alt='Click to close' border=0 src='pic/"+Pic+"'>");
	w.document.write("</a></div><small><font color=#606000>\n");
	w.document.write("<a href='javascript:Zoom(2)'> 200% </a> |\n");
	w.document.write("<a href='javascript:Zoom(1)'> 100% </a> |\n");
	w.document.write("<a href='javascript:Zoom(0.5)'> 50% </a> |\n");
	w.document.write("<a href='javascript:bBW()'> B&W </a> |\n");
	w.document.write("<a href='javascript:bC()'> Colour </a> |\n");
	w.document.write("</td></tr><tr><td height=50%></td></tr></table>\n");
	w.document.close();
}

function Add(Pic,txt)
{
	document.write('<a target=_self href=\'JavaScript:OpenWin("'+Pic+'","'+txt+'")\'><div style="position: relative; width:175; height=155 ;float:left">');
	document.write('<a target=_self href=\'JavaScript:OpenWin("'+Pic+'","'+txt+'")\'><center><img src="thm/'+Pic+'" alt="'+txt+'" border=0 class="blurimg0" onmouseover="this.className=\'blurimg0-on\'" onmouseout="this.className=\'blurimg0\'"><br>');
	document.write('<center>'+Pic+'</a><br>');
/*	document.write('<font color="#606000">');
	document.write('[ - ');
	document.write('<a href="" class=d>0</a> ');
	document.write('<a href="" class=d>1</a> ');
	document.write('<a href="" class=d>2</a> ');
	document.write('<a href="" class=d>3</a> ');
	document.write('<a href="" class=d>4</a> ');
	document.write('<a href="" class=d>5</a> ');
	document.write(' + ] 4.4</font>');
	document.write('<br>');
*/	document.write(txt);
	document.write('</div></a>');
}

function Add2(Pic,txt)
{
	document.write('<a href="pic/'+Pic+'" target=_blank><div style="position: relative; width:175; height=155 ;float:left">');
	document.write('<a href="pic/'+Pic+'" target=_blank><center><img src="thm/'+Pic+'" alt="'+txt+'" border=0><br>');
	document.write('<center>'+Pic+'</a><br>'+txt+'');
	document.write('</div></a>');
}

function Br(txt)
{
	document.write('<br clear="all">');
	document.write('<p align=left><big><big><big>'+txt+'</big></big></big>');
	document.write('<br><img border=0 src="thm/line.gif" width=75% height=1px><br><img border=0 src="thm/line.gif" width=0px height=2px>');
}

function Brs(txt)
{
	document.write('<br clear="all"><p align=left>');
	document.write('<big>'+txt+'</big><br><br>');
}

function AddSmall(Pic,txt,lnk)
{
	document.write('<a href="'+lnk+'"><div style="position: relative; width:101; height=75 ;float:left">');
	document.write('<a href="'+lnk+'"><center><img src="img/'+Pic+'" alt="'+txt+'" border=0><br>');
	document.write('<center>'+txt+'</a>');
	document.write('</div></a>');
}

