function pop(url)
{
	if (url && url != 'undefined')
	{
		window.open(url,'imgs', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=9500,height=620');
	}
}


function showflash(url, lang)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="206" height="98" align="right">');
	document.write('<param name="movie" value="'+url+'/img/'+lang+'/logo.swf" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<embed src="'+url+'/img/'+lang+'/logo.swf" width="206" height="98" align="right" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>');
	document.write('</object>');
}

function showmap(url, lang)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="323" height="319">');
    document.write('<param name="movie" value="'+url+'/img/'+lang+'/map.swf">');
    document.write('<param name="quality" value="high">');
    document.write('<embed src="'+url+'/img/'+lang+'/map.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="323" height="319"></embed>');
    document.write('</object>');

}


function showvideo(url, where)
{
	if (where)
	{
		document.getElementById(where+'_top').className = 'small_container left_5';
		document.getElementById(where).className = 'top_5 left_5';
		document.getElementById(where).style.height = '230px';
		document.getElementById(where).innerHTML = '<OBJECT ID="WMPlay" width=100% height=230 classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"     codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">	<PARAM name="URL" value="'+url+'/files/video.wmv">	<PARAM name=DisplaySize value=0>	<PARAM NAME=ShowControls VALUE=1>	<PARAM NAME=ShowDisplay VALUE=0>	<PARAM NAME=ShowStatusBar VALUE=1>	<PARAM NAME=AutoStart VALUE=TRUE>	<embed width="100%" height="230" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" src="'+url+'/files/video.wmv" ShowControls="1" AutoStart=True ShowDisplay="0" ShowStatusBar="1">	</embed>	</object>';
		document.getElementById(where+'_note').className = 'block';
	}
}


function fliergal(what, which, where, url)
{
	if (what && which && document.getElementById(where).id)
	{
		document.getElementById(where).innerHTML = '<div style="border-left: solid 1px #262626; margin-left: 5px;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="310" height="235" id="gallery" align="middle"><param name="allowScriptAccess" value="always" /><param name="movie" value="'+url+'/img/flier.swf" /><param name="allowFullScreen" value="true" /><param name="FlashVars" value="xmlfile='+what+'_'+which+'" /><param name="quality" value="high" /><param name="bgcolor" value="#D6D6D6" /><embed src="'+url+'/img/flier.swf" quality="high" bgcolor="#D6D6D6" width="310" height="235" FlashVars="xmlfile='+what+'_'+which+'" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></div>';
	}
}


function showgal(which, where, url, lang)
{
	if (which && document.getElementById(where).id)
	{
		document.getElementById(where).innerHTML = '<center><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="653" height="280" id="gallery" align="middle"><param name="allowScriptAccess" value="always" /><param name="movie" value="'+url+'/img/gal.swf" /><param name="allowFullScreen" value="true" /><param name="FlashVars" value="xmlfile='+lang+'_'+which+'" /><param name="quality" value="high" /><param name="bgcolor" value="#D6D6D6" /><embed src="'+url+'/img/gal.swf" quality="high" bgcolor="#D6D6D6" width="653" height="280" FlashVars="xmlfile='+lang+'_'+which+'" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></center>';
	}
}


function events(which)
{
	document.getElementById('coming').className = 'none';
	document.getElementById('passed').className = 'none';
	document.getElementById(which).className = 'ev_container block';
}

function move_down (containee) {
	obj = document.getElementById(containee);
	obj.scrollTop = obj.scrollTop + 5;
	burp = setTimeout("move_down('"+containee+"')", 100); 
}

function move_up (containee) {
	obj = document.getElementById(containee);
	obj.scrollTop = obj.scrollTop - 5;
	burp = setTimeout("move_up('"+containee+"')", 100); 
}

function stopscrolling() { 
	clearTimeout(burp);
}


function killswitchengaged(whom) {

	if (document.getElementById(whom).id)
	{
		document.getElementById('info').className = 'none';
		document.getElementById('plan').className = 'none';
		document.getElementById('gall').className = 'none';
		document.getElementById(whom).className = 'block';
	}
}