//code by martin tony surovcek, (c)outsider development 2001-2002, www.outsiderdevelopment.sk
function GetTime()
{
	t = new Date();
	iHour = t.getHours();
	iMin = t.getMinutes();
	iSec = t.getSeconds();
	iMsec = t.getMilliseconds();
	i=iMsec+iSec*100+iMin*6000+iHour*360000;
}
function FadeOut(name,i)
{
return;
	if (name.lowsrc=="1") {return}
	if (name.lowsrc=="0") {name.lowsrc="00";}
	if (name.lowsrc=="11") {name.lowsrc="0";}
	if (i==100) i=name.filters.alpha.opacity;
	s="FadeOut("+name.name+","+(i-10)+")";
	if (i>50) setTimeout(s,50);
	name.filters.alpha.opacity=i;
}
function FadeIn(name,i)
{
return;
	if (name.lowsrc=="0") {return}
	if (name.lowsrc=="1") {name.lowsrc="11";}
	if (name.lowsrc=="00") {name.lowsrc="1";}
	if (i==50) i=name.filters.alpha.opacity;
	s="FadeIn("+name.name+","+(i+10)+")";
	if (i<100) setTimeout(s,50);
	name.filters.alpha.opacity=i;
}
function openWin(theURL,cap)
{
	PicWindow=window.open('', '', 'left='+(screen.width-640)/2+', top='+(screen.height-480)/2+', fullscreen=no, toolbar=no, status=no, scrollbars=no, location=no, menubar=no, directories=no, width=640, height=480');
	PicWindow.document.write('<TITLE>'+cap+'</TITLE><BODY bgcolor="black" marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><a href="JavaScript:close();"><img alt="Click to close \n'+cap+'" src='+theURL+' border=0></a></body>')
}
function ImageRef(img,cap)
{
	return '<a href="JavaScript:openWin(\'shots/'+img+'.jpg\',\''+cap+'\')" onMouseout="FadeOut('+img+',100);" onMouseover="FadeIn('+img+',50);">';
}
function createShot(img,cap)
{
	document.write(ImageRef(img,cap)+'<img width=150 height=113 src="shots/'+img+'s.jpg" name="'+img+'" border=0 style="filter:alpha(opacity=100)" hspace=2 vspace=2 border=0></a>')
	i=eval(img);
	i.lowsrc="1";
}
function ThreeShot (img1,img2,img3,cap1,cap2,cap3)
{
	document.write('<table border=0 cellspacing=0 cellpadding=0 style="font-family: Verdana; font-size: 9pt; color: #FFFFFF"><tr><td>');
	if (img1!='') createShot(img1,cap1)
	document.write('</td><td>');
	if (img2!='') createShot(img2,cap2)
	document.write('</td><td>');
	if (img3!='') createShot(img3,cap3)
	document.write('</td></tr><tr><td>');
	if (img1!='') document.write('<center>'+ImageRef(img1,cap1)+cap1);
	document.write('</a></td><td>');
	if (img2!='') document.write('<center>'+ImageRef(img2,cap2)+cap2);
	document.write('</a></td><td>');
	if (img3!='') document.write('<center>'+ImageRef(img3,cap3)+cap3);
	document.write('</a></td></tr></table><br><br>');
}

function ThreeShotEx (img1,img2,img3,cap1,cap2,cap3)
{
	document.write('<table border=0 cellspacing=0 cellpadding=0 style="font-family: Verdana; font-size: 9pt; color: #FFFFFF" align="left"><tr><td>');
	if (img1!='') createShot(img1,cap1)
	document.write('</td><td>');
	if (img2!='') createShot(img2,cap2)
	document.write('</td><td>');
	if (img3!='') createShot(img3,cap3)
	document.write('</td></tr><tr><td>');
	if (img1!='') document.write('<center>'+ImageRef(img1,cap1)+cap1);
	document.write('</a></td><td>');
	if (img2!='') document.write('<center>'+ImageRef(img2,cap2)+cap2);
	document.write('</a></td><td>');
	if (img3!='') document.write('<center>'+ImageRef(img3,cap3)+cap3);
	document.write('</a></td></tr></table><br><br>');
}

function MovieRef(img,vid,r)
{
	return '<a href="Downloads/'+vid+r+'.avi" onMouseout="FadeOut('+img+r+',100);" onMouseover="FadeIn('+img+r+',50);">';
}
function createMovie(img,vid,cap,lowt,hight)
{
	document.write("<p style='margin-top: 0; margin-bottom: 0' align='left'>&nbsp;&nbsp;&nbsp;<b>"+cap+"</b></p>");
	document.write("<table border=0 cellspacing=0 cellpadding=0 style='font-family: Verdana; font-size: 9pt;'><tr><td>");
	document.write(MovieRef(img,vid,"Small")+'<img width=214 height=64 src="images/'+img+'L.jpg" name="'+img+'Small" border=0 style="filter:alpha(opacity=100)" border=0></a>')
	document.write("</td><td>");
	document.write(MovieRef(img,vid,"")+'<img width=214 height=64 src="images/'+img+'H.jpg" name="'+img+'" border=0 style="filter:alpha(opacity=100)" border=0></a>')
	document.write("</td></tr><tr>");
	document.write("<td><center>"+MovieRef(img,vid,"Small")+lowt+"</a></td>");
	document.write("<td><center>"+MovieRef(img,vid,"")+hight+"</td>");
	document.write("</tr></table><br>");
	i=eval(img+"");
	i.lowsrc="1";
	i=eval(img+"Small");
	i.lowsrc="1";
}

function PressRef(img,cap,dwn)
{
	return '<a href="Press/'+dwn+'" onMouseout="FadeOut('+img+',100);" onMouseover="FadeIn('+img+',50);">';
}
function createPress(img,cap,Dwn)
{
	document.write(PressRef(img,cap,Dwn)+'<img width=150 height=113 src="Press/'+img+'.jpg" name="'+img+'" border=0 style="filter:alpha(opacity=100)" hspace=2 vspace=2 border=0></a>')
	i=eval(img);
	i.lowsrc="1";
}
function ThreePress (img1,img2,img3,cap1,cap2,cap3,dwn1,dwn2,dwn3)
{
	document.write('<table border=0 cellspacing=0 cellpadding=0 style="font-family: Verdana; font-size: 9pt; color: #FFFFFF"><tr><td>');
	if (img1!='') createPress(img1,cap1,dwn1)
	document.write('</td><td>');
	if (img2!='') createPress(img2,cap2,dwn2)
	document.write('</td><td>');
	if (img3!='') createPress(img3,cap3,dwn3)
	document.write('</td></tr><tr><td>');
	if (img1!='') document.write('<center>'+PressRef(img1,cap1,dwn1)+cap1);
	document.write('</a></td><td>');
	if (img2!='') document.write('<center>'+PressRef(img2,cap2,dwn2)+cap2);
	document.write('</a></td><td>');
	if (img3!='') document.write('<center>'+PressRef(img3,cap3,dwn3)+cap3);
	document.write('</a></td></tr></table><br><br>');
}

function DwnRef(img,cap,dwn)
{
	return '<a href="Downloads/'+dwn+'" onMouseout="FadeOut('+img+',100);" onMouseover="FadeIn('+img+',50);">';
}
function createDwn(img,cap,Dwn)
{
	document.write(DwnRef(img,cap,Dwn)+'<img width=150 height=113 src="images/'+img+'.jpg" name="'+img+'" border=0 style="filter:alpha(opacity=100)" hspace=2 vspace=2 border=0></a>')
	i=eval(img);
	i.lowsrc="1";
}
function ThreeDwn (img1,img2,img3,cap1,cap2,cap3,dwn1,dwn2,dwn3)
{
	document.write('<table border=0 cellspacing=0 cellpadding=0 style="font-family: Verdana; font-size: 9pt; color: #FFFFFF"><tr><td>');
	if (img1!='') createDwn(img1,cap1,dwn1)
	document.write('</td><td>');
	if (img2!='') createDwn(img2,cap2,dwn2)
	document.write('</td><td>');
	if (img3!='') createDwn(img3,cap3,dwn3)
	document.write('</td></tr><tr><td>');
	if (img1!='') document.write('<center>'+DwnRef(img1,cap1,dwn1)+cap1);
	document.write('</a></td><td>');
	if (img2!='') document.write('<center>'+DwnRef(img2,cap2,dwn2)+cap2);
	document.write('</a></td><td>');
	if (img3!='') document.write('<center>'+DwnRef(img3,cap3,dwn3)+cap3);
	document.write('</a></td></tr></table><br><br>');
}
