document.write('<script type=\"text/javascript\" src=\"/assets/flash/AC_RunActiveContent.js\"></script>');
embedFlashMediaWindow  = function(){
		var oeTags = AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
			'width', '798',
			'height', '230',
			'src', '/assets/flash/media_window',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', 'media_window',
			'bgcolor', '#ffffff',
			'name', 'media_window',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', '/assets/flash/media_window',
			'salign', 'lt'
			); //end AC code   
	   document.write(oeTags);   // embed the flash movie*/			 	    
}

embedFlashNews  = function(){
		var oeTags = AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
			'width', '486',
			'height', '25',
			'src', '/assets/flash/news',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', 'news',
			'bgcolor', '#ffffff',
			'name', 'news',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', '/assets/flash/news',
			'salign', 'lt'
			); //end AC code   
	   document.write(oeTags);   // embed the flash movie*/			 	        	    
}

embedFlash1PixeloutAudioPlayer  = function(audioFileUrl,playerID){
		var oeTags = AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
			'width', '290',
			'height', '24',
			'src', '/assets/flash/1pixelout_audio_player',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', 'audio_player',
			'bgcolor', '#ffffff',
			'name', 'audio_player',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', '/assets/flash/1pixelout_audio_player',
			'salign', 'lt',
			'flashvars', 'playerID='+playerID+'&bg=0xf8f8f8&leftbg=0xeeeeee&lefticon=0x666666&rightbg=0xcccccc&rightbghover=0x999999&righticon=0x666666&righticonhover=0xFFFFFF&text=0x666666&slider=0xecd4e7&track=0xFFFFFF&border=0x666666&loader=0x999999&soundFile='+audioFileUrl+''
			); //end AC code   
	   document.write(oeTags);   // embed the flash movie*/			 	    
}

function mas_AC_FL_RunContentObject(videoFile,width,heigth){
	return AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
			'width', ''+width+'',
			'height', ''+heigth+'',
			'src', '/viewer/video/FlowPlayerLP',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', 'FlowPlayerLP',
			'bgcolor', '#ffffff',
			'name', 'FlowPlayerLP',
			'menu', 'true',
			'allowFullScreen', 'true',
			'allowScriptAccess','sameDomain',
			'movie', '/viewer/video/FlowPlayerLP',
			'salign', 'lt',
			'flashvars', 'config={streamingServer: \'fms\', streamingServerURL: \'rtmp://157.22.252.30/vod\', videoFile: \''+ unescape(videoFile)+ '\''+ ',showStopButton:false,showScrubber:true,showVolumeSlider:true,showMuteVolumeButton:true,showFullScreenButton:true,showMenu:false,controlBarBackgroundColor:\'0x222222\'}'
			); //end AC code
}
getFlashVideoPlayerObject  = function(videoFile,width,heigth){
	videoFile = videoFile.substring(0,videoFile.indexOf('.flv'));
	videoFile = "flv:"+videoFile;
	
	if((typeof width=="undefined" || width==undefined)|| (typeof heigth=="undefined" || heigth==undefined)){
		return mas_AC_FL_RunContentObject(videoFile,'650','325');
	}else{
		return mas_AC_FL_RunContentObject(videoFile,width,heigth);
	}
}

embedFlashVideoPlayer  = function(videoFile,width,heigth){
  if((typeof width=="undefined" || width==undefined)|| (typeof heigth=="undefined" || heigth==undefined)){
	document.write(getFlashVideoPlayerObject(videoFile,'650','325'));   // embed the flash movie
  }else{
	document.write(getFlashVideoPlayerObject(videoFile,width,heigth));   // embed the flash movie
  }
}


embedFlashTrafficMap  = function(){
		var oeTags = AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
			'width', '487',
			'height', '245',
			'src', '/Visitr-0.1/map/Visitr',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', 'Visitr',
			'bgcolor', '#ffffff',
			'name', 'Visitr',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', '/Visitr-0.1/map/Visitr',
			'salign', 'lt'
			); //end AC code   
	   document.write(oeTags);   // embed the flash movie*/			 	    
}