// JavaScript Document

function teaser(arg){
	
	switch(arg){
	case 'show':
		//document.getElementByID('teaser_btn').style.visibility=hidden;
		document.getElementById("con_teaser").style.visibility='visible'; // show layer
		getTeaser(); // get swf element 
		
	break;
	case 'hide':
		//document.getElementByID('teaser_btn').style.visibility=visible;
		document.getElementById('con_teaser').style.visibility='hidden';
		removeTeaser();
	break;
	}
}



function getTeaser(){

	a = '	<div id="spacer"></div><br clear ="left" />\n';
	a += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="600" h height="300" id="teaser" align="middle">\n';
	a += '	<param name="allowScriptAccess" value="sameDomain" />\n';
	a += '	<param name="allowFullScreen" value="false" />\n';
	a += '	<param name="movie" value="swf/teaser2.swf" />\n';
	a += '  <param name="quality" value="high" />\n';
	a += '  <param name="bgcolor" value="#ffffff" />\n';
	a += '  <param name="wmode" value="transparent" />\n';
	a += '  <embed src="swf/teaser2.swf" quality="high" bgcolor="#ffffff" width="600" height="300" name="teaser" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" />\n';
	a += '	</object>\n';
	a += '</noscript>\n';
	//a += '</div>';
	document.getElementById('con_teaser').innerHTML = a;

}


function removeTeaser(){
	// clear div layer  (forces swf to start at beginning when it is loaded next time)
	document.getElementById('con_teaser').innerHTML = '';
 	
 }
