<!--

function writeFlash( flashPath ){
	var so = new SWFObject( flashPath, "externalInterface", "100%", "375", "8", "#FFFFFF");
	
	so.addVariable("wavePath" );
	
	so.addParam("quality", "high");
	so.addParam("swLiveConnect", "true");
	so.addParam("allowScriptAccess", "always");
	so.addParam('menu', 'false');
	so.addParam("wmode", "opaque");
	
	so.write("flashContents");
	
	setFlaArea();
}


function flaPause() {
	if(swfTarget("externalInterface")){
		swfTarget("externalInterface").flaPause();
	}
}

function flaStart() {
	if(swfTarget("externalInterface")){
		swfTarget("externalInterface").flaStart();
	}
}

function swfTarget(str){
	if(navigator.appName.indexOf("Microsoft") != -1){
		return window[str];
	}else{
		return document[str];
	}
}


var IE='\v'=='v';
var FlashWidth=908;


var WrapID="flashContents"

function getBrowserWidth ( ) {  
 if ( window.innerWidth ) { return window.innerWidth; }  
 else  if ( document.documentElement && document.documentElement.clientWidth != 0 ) { return document.documentElement.clientWidth; }  
 else if ( document.body ) { return document.body.clientWidth; }  
 return 0;  
}
function getBrowserHeight ( ) {  
 if ( window.innerHeight ) { return window.innerHeight; }  
 else if ( document.documentElement && document.documentElement.clientHeight != 0 ) { return document.documentElement.clientHeight; }  
 else if ( document.body ) { return document.body.clientHeight; }  
 return 0;  
}
function setFlaArea(){
 var WrapFlashElement = document.getElementById(WrapID);
 if(getBrowserWidth()>FlashWidth){ WrapFlashElement.style.width = "100%"; }
 else{ WrapFlashElement.style.width = FlashWidth + "px"; }
}
window.onresize = setFlaArea;


//-->
