oldThumb = 1;
function show(id){
	document.getElementById(id).style.visibility = 'visible';
	document.getElementById(id).style.position ='static';
}
function hide(id) {	
	document.getElementById(id).style.visibility = 'hidden';
	document.getElementById(id).style.position ='absolute';	
}
function photo(imageName,imageWidth,imageHeight,text) {
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+(imageHeight)+",scrollbars=no");
	newWindow.document.open();
	newWindow.document.write('<html><title></title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">');
	newWindow.document.write('<img src="http://www.supermodels.lt/'+imageName+'" width='+imageWidth+' height='+imageHeight+' alt="" onClick="self.close()" onBlur="self.close()">');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}
function printpreview(title, subtitle, site) {
	newWindow = window.open("","newWindow","width=620,height=540,scrollbars");
	newWindow.document.open();
	tmp = new Date();
	data = tmp.getYear()+1900+'-';
	if (tmp.getMonth()+1<10) data = data+'0'+(tmp.getMonth()+1)+'-';
	else data = data+(tmp.getMonth()+1)+'-';
	if (tmp.getDate()<10) data = data+'0'+tmp.getDate()+', ';
	else data = data+tmp.getDate()+', ';
	if (tmp.getHours()<10) data = data+'0'+tmp.getHours()+':';
	else data = data+tmp.getHours()+':';
	if (tmp.getMinutes()<10) data = data+'0'+tmp.getDate();
	else data = data+tmp.getMinutes();
	header = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" ><title>'+title+'Be You | Go go dancers\' agency</title><link rel="stylesheet" type="text/css" href="'+site+'css/main.css" media="screen" title="" /><script src="'+site+'js/js.js" type="text/javascript"></script></head>';
	bodytop = '<body onLoad="window.print();"><table cellpadding="0" cellspacing="0" width="100%"><tr><td style="height: 100px; padding:15px 0;border-bottom:1px solid #000000;" valign="top"><div style="position:absolute; left:15px; top:10px;"><img src="'+site+'img/logo.gif" style="position: absolute; top: 15px; left: 0px;" alt=""/></div><div style="margin: 15px 15px 15px 10px; float:right; width:370px; text-align:right;">'+data+'<br><br><strong>Printed from:</strong><br>'+window.location.href+'<br><br></div></td></tr></table>'+
			'<table cellpadding="0" cellspacing="0" width="100%"><tr><td style="padding:10px; text-align:left;border-bottom:1px solid #000000;"><font class="title">'+subtitle+'</font><br><br><table cellpadding="0" cellspacing="0" border="0" style="width:100%; height:306px; margin-top:7px;" align="left"><tr><td>';
	bodybottom = '</td></tr></table></td></tr></table><table width="100%" cellspacing="0" cellpadding="0"><tr><td style="text-align:left; padding:10px;"><div><strong>Be You | Go go dancers\' agency</strong> Verkių g. 5A, Vilnius; E-mail <u>info@beyou.lt</u></div><div></div></td></tr></table></body></html>';
	newWindow.document.write(header);
	newWindow.document.write(bodytop);
	newWindow.document.write(document.getElementById('page_content').innerHTML);
	newWindow.document.write(bodybottom);
	newWindow.document.close();
}
function showBorder(cc) {
	document.getElementById('imgs'+ cc).style.border = '1px solid #FF3399';
	document.getElementById('div'+ cc).style.background = '#FF3399';
}

function hideBorder(cc) {
	document.getElementById('imgs'+ cc).style.border = '1px solid #7B7B7B';
	document.getElementById('div'+ cc).style.background = '#7B7B7B';
}

function showBorder2(cc) {
	document.getElementById('imgs'+ cc).style.border = '1px solid #FF3399';
}

function hideBorder2(cc) {
	document.getElementById('imgs'+ cc).style.border = '1px solid #7B7B7B';
}
function showImg(img, cc) {
	document.getElementById('bigimg').style.background = 'url('+ img +') no-repeat top center';
	if(oldThumb != 0 || oldThumb) {
		document.getElementById('imgs'+ oldThumb).style.border = '1px solid #7B7B7B';
		document.getElementById('imgs'+ cc).style.border = '1px solid #FF3399';
		document.getElementById('div'+ oldThumb).style.background = '#7B7B7B';
		document.getElementById('div'+ cc).style.background = '#FF3399';
	}
	else
	{
		document.getElementById('imgs'+ cc).style.border = '1px solid #FF3399';
		document.getElementById('div'+ cc).style.background = '#FF3399';
	}
	oldThumb = cc;
}
