
// KTU config
var Param= new Array();
Param['id'] = '11812';
Param['tracker'] = "Videos-clips-Porno";
Param['color'] = 'red';
Param['mode'] = 'dial';
Param['prod'] = '3';
Param['dist'] = '';
Param['lg'] = 'fr';
Param['id_site'] = '1007';
Param['id_produit'] = '343';
Param['rf'] = 'pornattiudeFR_ktu';
Param['name_kit'] = "Pornattitude";
Param['synergie'] = 'h';
var ktuPath="";

// Preload
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
MM_preloadImages(
	"http://www.pornattitude.com/media/hetero/320x240/vid1_img4.jpg",
	"http://www.pornattitude.com/media/hetero/320x240/vid2_img4.jpg",
	"http://www.pornattitude.com/media/hetero/320x240/vid3_img4.jpg",
	"http://www.pornattitude.com/media/hetero/320x240/vid4_img4.jpg",
	"http://www.pornattitude.com/media/hetero/320x240/vid5_img4.jpg",
	"http://www.pornattitude.com/media/hetero/320x240/vid6_img4.jpg"
)

// Zoom of the thumbs
var shownbr=1;
function show(image) {
	image = image.replace("120x90","320x240");
	document.getElementById("show"+shownbr).innerHTML="<img src=\""+image+"\" border=\"0\" />";
	shownbr = (shownbr==1) ? 2 : 1;
}

// Video Preview 
var video;
function videos(format,nbr) {
	nbr--;
	var vid="http://www.pornattitude.com/media/hetero/"+format+"/vid"+nbr+".wmv";
	if (format=="56kb")  { var width=230; var height=200; var w=190; var h=160; }
	if (format=="256kb") { var width=370; var height=280; var w=330; var h=240; }
	if (format=="500kb") { var width=530; var height=420; var w=490; var h=384; }
	if (video && video.focus) video.close();
	video = window.open("","video","width="+width+" ,height="+height+",resizable=1,scrollbars=yes,left=0, top=0");
	var html = "<html><head><title>VIDEOS</title><table cellspacing=\"0\" cellpadding=\"0\" align=\"center\" width=\"100%\" height=\"100%\"><tr><td align=\"center\" valign=\"center\">"+display_video(vid,w,h)+"</td></td></table></body></html>";
	video.document.open();
	video.document.write(html);
	video.document.close();
}
function display_video(url_video, w, h)
{
	var txt;
	var AutoStart="yes";

	if(!w) { w = 320; }
	if(!h) { h = 240; }

	var WMP7;

	txt = "";

	if ( navigator.appName != "Netscape" ) {   
		try  {  WMP7 = new ActiveXObject('WMPlayer.OCX'); }
		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="uiMode" VALUE="mini">';
		txt += '</OBJECT>';
	}
	// Windows Media Player 6.4 Code
	else {
		//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">';
		//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>';
	}
	return txt;
}
