// JavaScript Document

function BSE_OpenWin(file, w, h, scrollbar)
{
	// var n = window.open(file,'Display','top=6,left=32,width=806,height=700,toolbar=no,status=no,directories=no,location=no,scrollbars=no,menubar=no,resizable=no');
	
	var n= window.open(file,'Display','width='+w+',height='+h+',toolbar=no,status=no,directories=no,location=no,scrollbars='+scrollbar+',menubar=no,resizable=no, top=100, left=120'); 
}

function BSE_ViewImage(prefix,dbid,copyright) 
{
	if (!copyright)
    	show = 'image.htm?prefix='+prefix+'?'+'index='+dbid
	else
    	show = 'image(c).htm?prefix='+prefix+'?'+'index='+dbid
		
	var n = window.open(show,'ViewImage','top=6,left=32,width=752,height=584,toolbar=no,status=no,directories=no,location=no,scrollbars=yes,menubar=no,resizable=no');
}

function BSE_ViewImage_Sponsor(filename,copyright) 
{
   	show = 'image_sponsorship.htm?prefix='+filename
	
	var n = window.open(show,'ViewImageSponsor','top=6,left=32,width=752,height=584,toolbar=no,status=no,directories=no,location=no,scrollbars=yes,menubar=no,resizable=no');
}

function BSE_InsertCopyright()
{
	copyright = new Date();
	update = copyright.getFullYear();
	document.write("Copyright © 2003-" + update + " Bedroom Studio Entertainment");
	// - Tutti i diritti riservati.
}

function BSE_EmbedFlashObj(swf, w, h)
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width='+w+' height='+h+'>\n');
	document.write('<param name="movie" value=' + swf +'> \n');
    document.write('<param name="quality" value="high"> \n');
	document.write('<param name="menu" value="false"> \n');
    document.write('<embed src='+swf+' quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+w+' height='+h+'></embed>');
    document.write('</object>\n');
}

function DivSwitch(id)
{
	 if (document.getElementById)
	 {
		if(document.getElementById(id).style.display == 'none')
		{
			document.getElementById(id).style.display = 'block';
		} 
		else 
		{
			document.getElementById(id).style.display = 'none';
		}
	}
}
