﻿var _posterWH=[400,110];
var _posterLine=5;

var __posterVideoID;
var __posterCatalogCode;
var __posterLiveID;
var __posterLiveStatus;
try{
	__posterVideoID=(_posterVideoID==undefined?"":_posterVideoID);
}catch(e){}
try{
	__posterCatalogCode=(_posterCatalogCode==undefined?"":_posterCatalogCode);
}catch(e){}
try{
	__posterLiveID=(_posterLiveID==undefined?"":_posterLiveID);
}catch(e){}
try{
	__posterLiveStatus=(_posterLiveStatus==undefined?false:_posterLiveStatus);
}catch(e){}

var _swfrootpath="http://www.vodone.com/js/player/";//
var _flashVarsStr="codeid="+__posterCatalogCode+
				  "&cid="+__posterVideoID+
				  "&livestatus="+__posterLiveStatus+
				  "&lid="+__posterLiveID+
				  "&lines="+_posterLine;

function getFlashHtml(swfpath,id,w,h,wmode,vars){
	var  swfpaths=_swfrootpath+swfpath;
	var _flash_str='<object id="'+id+'" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="'+w+'" height="'+h+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ><param name="movie" value="'+swfpaths+'.swf" /><param name="FlashVars" value="'+vars+'" /><param name="wmode" value="'+wmode+'" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><embed name="'+id+'" width="'+w+'" height="'+h+'" src="'+swfpaths+'.swf" wmode="'+wmode+'" allowFullScreen="true" allowScriptAccess="always" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" FlashVars="'+vars+'" type="application/x-shockwave-flash"></embed></object>';
	return _flash_str;
}

document.write(getFlashHtml("contentTextAd","_contentTextAd",_posterWH[0],_posterWH[1],"transparent",_flashVarsStr));
