var flashversion = "9.0.15";

if(typeof(swfobject)=='object' && swfobject.hasFlashPlayerVersion(flashversion)){
	//console.log(swfobject.getFlashPlayerVersion());
	
	var head = document.getElementsByTagName('head');
	var flashstyle = document.createElement('style');
	var css = '#flashcontent h1 {display: none} #flashcontent p {display: none}';

	flashstyle.setAttribute('type','text/css');
	

	if(head[0]){
		if(flashstyle.styleSheet){//cause you can't put text in the webstandards way in ie
			flashstyle.styleSheet.cssText = css;
		}else{
			flashstyle.appendChild(document.createTextNode(css));
		}
		head[0].appendChild(flashstyle);
	}

}

function openWindow ( url, windowname, options ) {
  if ( window.open ( url, windowname, options ) ) {
	   return true;
  }
  return false;
}

var flashvars = {
};

flashvars.deeplink = swfobject.getQueryParamValue("deeplink");
								
var params = {
	allowscriptaccess:"always",
	allowfullscreen:"true",
	base:"media/",
	wmode:"transparent"
};
			
var attributes = {
};
									
swfobject.embedSWF("media/index.swf", "flashcontent", "100%", "740", flashversion, "", flashvars, params, attributes);