var noteaser;var noteaserHTML;
function display_video(play,fake){var txt;var TheID = play;play = eval(play);var AutoStart = "yes";
var id = play['id_video'];var url_video = play['url'];var image = play['img'];var w;var h;w=320;h=240;
if (noteaser=='1')	fake=false;if (fake)	{	play['fake'] = false;	txt = '<a href="javascript:display_video(\''+TheID+'\',false);">';	txt +='<img src="'+image+'" width="320" height="240"></a><br>';	
txt += '<a href="javascript:display_video(\''+TheID+'\',false);">Lancer la mini video</a>';	document.getElementById(TheID).innerHTML=txt;	return;	}
document.getElementById(TheID).innerHTML= fake;var WMP7;txt = "";if ( navigator.appName != "Netscape" )	{	try		{		WMP7 = new ActiveXObject('WMPlayer.OCX');		
//
document.getElementById("player").innerHTML="fin";		}	catch(e) {}	}
// Windows Media Player 7 Code
if ( WMP7 )	{	txt += '<OBJECT ID=MediaPlayer ';	txt += ' CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6';	
txt += ' standby="Loading Microsoft Windows Media Player components..."';	txt += ' TYPE="application/x-oleobject" width="'+ w +'" height="'+ h +'">';	
txt += '<PARAM NAME="url" VALUE="'+ url_video +'">';	if (AutoStart=="yes")		{		txt += '<PARAM NAME="AutoStart" VALUE="true">';		}	else		{		
txt += '<PARAM NAME="AutoStart" VALUE="false">';		}	txt += '<PARAM NAME="ShowControls" VALUE="1">';	txt += '<param name="Volume" value="10" />';	
txt += '<PARAM NAME="uiMode" VALUE="mini">';	txt += '</OBJECT>';	}
// Windows Media Player 6.4 Codeelse	{	//IE Code	
txt += '<OBJECT ID=MediaPlayer ';	
txt += 'CLASSID=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 ';	txt += 'CODEBASE=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715 ';
	txt += 'standby="Loading Microsoft Windows Media Player components..." ';	txt += 'TYPE="application/x-oleobject" width="'+ w +'" height="'+ h +'">';	
	txt += '<PARAM NAME="FileName" VALUE="'+ url_video +'">';	if (AutoStart=="yes")		{		txt += '<PARAM NAME="AutoStart" VALUE="true">';		} 	else		{		
	txt += '<PARAM NAME="AutoStart" VALUE="false">';		}	txt += '<PARAM NAME="ShowControls" VALUE="1">';	txt += '<param name="Volume" value="10" />';	
	//Netscape code	
	txt += '    <Embed type="application/x-mplayer2"';	txt += '        pluginspage="http://www.microsoft.com/windows/windowsmedia/"';	txt += '        filename="'+ url_video +'"';	
	txt += '        src="'+ url_video +'"';	txt += '        Name=MediaPlayer';	if (AutoStart=="yes")		{		txt += '        Autostart=1';		}	else		{		txt += '        Autostart=0';		}	
	txt += '        ShowControls=1';	txt += '        ShowDisplay=0';	txt += '        ShowStatusBar=0';	txt += '        width='+ w;	txt += '        height='+ h +'>';	txt += '    </embed>';	txt += '</OBJECT>';	}	
	document.getElementById(TheID).innerHTML=txt;	setTimeout("fermeture('"+TheID+"');",25000);}	
	function suite(TheID,image,id){txt ="<div style=\"position:relative;top:0px;bottom:150px;height:260px;width:675px;\">";
	txt +="<table width=\"675\" height=\"260\"  cellpadding=\"0\" cellspacing=\"0\"><tr bgcolor=\"#FFFFFF\">";
	txt +="<td style=\"padding:0px\" width=\"390\"></td>";txt +="<td style=\"padding:0px;text-align:center\">
	<img src=\""+image+"\" width=\"160\" height=\"120\" style=\"padding:0px\"><br / >";
	txt += "<p style=\"text-align:justify\">Cette vidéo vous à plus ?<br />Pour télécharger cette video version plein écran, suivez les instructions de gauche.</p>";
	txt += "<p style=\"text-align:right\"><a href=\"javascript:fermeture('"+TheID+"','"+image+"');\">Fermer</a></p></td>";txt +="</tr>";txt +="</table>";txt += "</div>";
	//document.write(z);
	//window.alert("<script type=\"text/javascript\" src=\"http://www.pornattitude.com/index.php?module=client_pornattitude_micropaiement&id=20373&langue=fr&tracker=partyprivate_net&scene_id="+ id +"\"></script>");
	document.getElementById(TheID).innerHTML = txt;
	//window.alert(theID+" "+image);
	}
	function fermeture(TheID)	{	var txt;	txt = "";	
	txt = "<p>Envie de t'amuser avec</p><iframe width=320 height=228 frameborder=0 border=0 scrolling=no frameborder=0 src='http://www.eurolive.com?module=public_eurolive_onlinehostess&id=20373&n=1&lines=1&columns=1&page=home&warning=1&synergie=hetero&size=B&bgcolor=000000&fgcolor=FFFFFF&tcolor=000000&bcolor=000000&bicolor=000000'></iframe><br>";	
	txt += '<a href="javascript:display_video(\''+TheID+'\',false);">Lancer la mini video</a>';	document.getElementById(TheID).innerHTML = txt;	}
