	var date = new Date();
	//MD = 4 poru dialer classique
	var Param = {	p: "accueil",
			w: '1',
			e: '1',
			md: '9',
			lg: 'us',
			tracker: '',
			aff: 1
			};

	var My_Param = { idkit_defaut: "12266",
			 rf: "JF18ANS",
			 c: "white",
			 name_kit: "ParisVoyeur.exe",
			 id_promo: "3",
			 id_cb: "MiniSites",
			 nb_exit_console_HD: "1",
			 nb_exit_console: "1",
			 no_menu: 0,
			 clsid: "",
			 tracker: "",
			 gc:0};

	var MD_Object = { "0": "loader",
			  "1": "cb",
			  "2": "cb_loader",
			  "3": "cb_loader",
			  "4": "dialer_html",
			  "5": "cb_adsl",
			  "6": "xdialer_html",
			  "7": "adsl",
			  "8": "tripes",
			  "9": "30min_adsl",
			  "10": "loader_in_page",
			  "11": "html_in_page",
			  "12": "html_in_page",
			   "19": "dialer_html",
			  "21": "winexe",
			  "44": "special_uk",
			  "301" : "30min_only1",
			  "302" : "30min_only2",
			  "303" : "cb_cb30",
			  "99": "test_promo"};


	var Pre_Url = new Array("www", "media", "live", "charme", "public", "dialup", "static", "media" , "promo");

	if(typeof SymRealWinOpen == "object") { window.open = SymRealWinOpen; }
	if(typeof startPopups == "function") { startPopups(); }

	var tab_params = window.document.location.search.substr(1).split("&");
	for (var i=0; i<tab_params.length;i++)
	{
		tab_params[i] = tab_params[i].split("=");	
		Param[tab_params[i][0]] = tab_params[i][1];
	}

	var Pre_Url_Ok = 0;
	for(var tmp_pre = 0; tmp_pre < Pre_Url.length; tmp_pre++)
	{
		if(window.document.location.href.indexOf("http:\/\/"+ Pre_Url[tmp_pre]) != -1) { Pre_Url_Ok = 1; }
	}

	if(!Pre_Url_Ok)
	{
		Param.w = 0;
		window.location = window.document.location.href.replace(/http:\/\//,"http://www.");	
		exit_console = function() { };
		exit_console2 = function() { };
	}
		
	Param.idkit = parseInt(Param.id);
	var error = 0;
	if(!Param.idkit) { Param.idkit = My_Param.idkit_defaut; }
	if(((Param.w == 1)&&(Param.idkit == My_Param.idkit_defaut))||(Param.warning)) { warning(); }
	
	//
	// DEFINITION DE L EXIT CONSOLE
	//
	var exit_consoles = new Array(
		{ url: "http://media2.carpediem.fr/promo_us/mosaic/index.html?id="+ Param.idkit +'&md=2&e=0&w=0', w: 950, h: 660}
	);
	
	var exit_consoles_HD = new Array( );

	
	var params_popup = "scrollbars=yes,status=no,toolbar=no,location=no,directories=no,resizable=no";
	function return_url_exit()
	{
		var Return_Array = new Array();
		if(Param.e == 1) 
		{				      
			      if(((Param.hd)&&(!Param.bd))&&(exit_consoles_HD.length))
			      {
				      if(My_Param.nb_exit_console_HD >= exit_consoles_HD.length)
				      {
					      return exit_consoles_HD;
				      }
				      else
				      {
					      while(Return_Array.length != My_Param.nb_exit_console_HD)
					      {					
						      var tmp = exit_consoles_HD[Math.floor(Math.random()*exit_consoles_HD.length)];
						      if(!tmp.deja) { Return_Array[(Return_Array.length)] = tmp; tmp.deja =1; }
					      }
					      return Return_Array;					      
				      }			      				      
			      }
			      else
			      {				     
				      if(My_Param.nb_exit_console >= exit_consoles.length)
				      {
					      return exit_consoles;
				      }
				      else
				      {					      
					      while(Return_Array.length != My_Param.nb_exit_console)
					      {
						      var tmp = exit_consoles[Math.floor(Math.random()*exit_consoles.length)];
						      if(!tmp.deja) { Return_Array[(Return_Array.length )] = tmp; tmp.deja =1; }
					      }
					      return Return_Array;					      
					}
			      }
		}
		else { return Return_Array; }
	}
	var exit_tmp = return_url_exit(); 
	function exit_console()
	{
	      for(var j=0; j<= exit_tmp.length; j++)
	      {
		      if(exit_tmp[j])
		      {			      
			      window.open(format_url_ext(exit_tmp[j].url),"", params_popup +",width="+ exit_tmp[j].w +",height="+ exit_tmp[j].h +",top="+ (screen.availWidth-exit_tmp[j].w)/2+",left="+ (screen.availHeight-exit_tmp[j].h)/2);				      
		      }
		}
	}
	
	function exit_console2()
	{
		exit_console();
	}

	function format_url_ext(url)
	{
		if(url.indexOf("?") == -1) { url += "?"; } else { url +="&"; }
		url += 'id='+ Param.idkit;

		if(Param.tracker)
		{
			if(Param.tracker.indexOf(" ") != -1) { Param.tracker = escape(Param.tracker); }
		}
		if(url.indexOf('tracker=') == -1) { url +="&tracker="+ Param.tracker; }
		return url ;
	}

	Param.p.replace(/:/g, "");
	Param.p.replace(/http/g, "");
	Param.p.replace(/%/g, "");
	
	var mdt = Param.md;	
	var md = MD_Object[mdt] ? MD_Object[mdt] : MD_Object[0]; 

	var p = Param.p;
	var idkit = Param.idkit;

	var error = 0;
	function warning()
	{	
		var msg = "WARNING: PORNOGRAPHIC WEBSITE--STRICTLY PROHIBITED TO ANYONE UNDER 18\n\n" +
		"This site is strictly reserved for a mature and cautioned audience as required\n" +
		"by current law. This site contains X rated text, photographic and video images\n" +
		"which might be found offensive.  \n\n" +
		"CLICK OK TO ENTER, CANCEL TO LEAVE.\n\n";

		var url_refus = "http://www.protectyourchild.org";
		//if(Param.idkit == 20894) { url_refus = "http://www.polyfolie.com/index.php?idaff=20894&e=0&w=0"; }
		if(Param.idkit == 20894) { url_refus = "http://polyfolie.carpediem.fr/mobile/default.asp?p=POLYFOLIE_UK&ref="+ Param.idkit +"&e=0&w=0"; }
		

		if (! confirm(msg)) { error = 1; window.location = url_refus;}
	}

	function cb_txt(My_Obj)
	{		
		if(!My_Obj) { My_Obj = My_Param}
		if(!My_Obj.c) { My_Obj.c = My_Param.c; }
		if(!My_Obj.rf) { My_Obj.rf = My_Param.rf; }
		if(!My_Obj.id_cb) { My_Obj.id_cb = My_Param.id_cb; }
	
		window.frames[0].document.write('<center><table width=500><tr><td><p align=center><font face=Verdana size=2 color='+ My_Obj.c +'><b>WARNING: This Site Contains Adult Material</b><br>In compliance with United States of America Code, Title 18, Section 2257, all models, actors, actresses and other persons who appear in any visual depiction of sexually explicit conduct appearing or otherwise contained in or at this site were over the age of eighteen years at the time of the creation of such depictions.<br><br><a href="http://www.carpediem.fr/infos-legales/2257_temp/" target="_blank">All image records on file per U.S.C. Title 18,Chapter 110, Section 2257</a></font></p></td></tr></table></center><br>');
		
		if((mdt == 0)||(mdt == 10)||(mdt == 11)||(mdt == 4)||(mdt == 7))
		{
				window.frames[0].document.write('<center><table width=750><tr><td><p align=right><a href="https://secure.carpediem.fr/cgi-bin/abo.pl?site='+ My_Obj.id_cb +'&lg=us&rf='+ My_Obj.rf +'&id='+ Param.idkit +'" target="_blank"><img src="http://public.carpediem.fr/sitesUS/cc_sites.gif" border=0 align=middle></a><font face=Verdana size=2 color='+ My_Obj.c +'>&nbsp;7,90&euro;&nbsp;only</font></p></td></tr></table></center><br>');
		}		
	}
	
	function display_aff(My_Obj)
	{
		if(!My_Obj) { My_Obj = My_Param}
		if(!My_Obj.c) { My_Obj.c = My_Param.c; }
		if(Param.aff == '1')
		{			
			if(document.location.href.indexOf("co.uk") != -1)
			{
				window.frames["frame1"].document.write('<center><a href="http://media2.carpediem.fr/perl/aff.pl?id='+ Param.idkit +'&lg=uk" target=_Blank><font color="'+ My_Obj.c +'">$$  Webmasters $$</font></a></center><br> \n');
			}
			else
			{
				window.frames["frame1"].document.write('<center><a href="http://media2.carpediem.fr/perl/aff.pl?id='+ Param.idkit +'&lg=us" target=_Blank><font color="'+ My_Obj.c +'">$$  Webmasters $$</font></a></center><br> \n');
			}
		}
	}
	
	function frame_init()	{ }

	function load_page()
	{
		exit_tmp = new Array(); 
		exit_tmp = return_url_exit();
		
		if(navigator.userAgent.toLowerCase().indexOf('mac') != -1)
		{
			window.frames[0].location = Param.p +".html?id="+ idkit;
		}
		else
		{
			window.frames[0].location.replace( Param.p +".html?id="+ idkit);
		}
	}

	if(Param.f == 1)
	{
		if(Param.r == 1)
		{
			var w = window.open(window.document.location.href.replace(/(&|\?)f=1/g, "$1w=0"), '', 'scrollbars=1,top=0,left=0,location=0,width='+ screen.availWidth +',height='+ screen.availHeight);		
		}
		else
		{
			var w = window.open(window.document.location.href.replace(/(&|\?)f=1/g, "$1f=0&w=0"), '', 'fullscreen=1');		
		}
		exit_console = function() { };
		exit_console2 = function() { };		
		var tmp = exit_consoles[Math.floor(Math.random()*exit_consoles.length)];
		this.resizeTo((tmp.w + 50), (tmp.h + 80));								
		window.location = tmp.url +"&b=1";		
	}
	
	if(Param.b == 1) { setTimeout('window.blur();', 500); }	else { setTimeout('window.focus();', 500); }

	var IMG_TEST = new Image();
	var date_img = new Date();
	IMG_TEST.src = "http://public.carpediem.fr/dialer/images/calcul.jpg?nocache&"+ Date.parse(date_img);

	if(!(error))
	{		
		setTimeout('if(IMG_TEST.complete) { Param.hd =1; } else { IMG_TEST.src = "http://public.carpediem.fr/dialer/images/espaceur.gif"; } ', 1400);
	 	var ID_TIMEOUT = setTimeout('load_page()', 1500);
	}

	function popup(My_Obj) 
	{
		if(!Param.tracker) { Param.tracker = My_Param.tracker; }
		if(Param.tracker) { if(Param.tracker.indexOf(" ") != -1) { Param.tracker = escape(Param.tracker); } }
		var date = new Date(); 
		if(!My_Obj) { My_Obj = My_Param}
		else        
		{
			if(!My_Obj.rf) { My_Obj.rf = My_Param.rf; }
			if(!My_Obj.name_kit) { My_Obj.dialer_name = My_Param.name_kit; }
			if(!My_Obj.id_promo) { My_Obj.id_promo = My_Param.id_promo; }
		}
		
		if((Param.isa)&&((Param.idkit == 12978)||(Param.idkit == 19521)||(Param.idkit == 18127)||(Param.idkit == 14820)||(Param.idkit == 12978)||(Param.idkit == 14106)||(Param.idkit == 10206)||(Param.idkit == 10175)||(Param.idkit == 10174)))
		{
			My_Obj.name_kit = Param.isa +".exe";			
			My_Obj.url_kit = "http://"+ Date.parse(date) +".kit.sexequalite.com/"+ Param.idkit +"/"+ Param.isa +".exe";
		}
		
		if(Param.em && ((Param.idkit == 17060)||(Param.idkit == 15239)||(Param.idkit == 12751)||(Param.idkit == 17621)))
		{                
			 My_Obj.name_kit = Param.em +".exe";
			 My_Obj.url_kit = "http://"+ Date.parse(date) +".kit.sexequalite.com/"+ Param.idkit +"/"+ Param.em +".exe";
	        }
		
		if(!My_Obj.url_kit) 
		{ 			
		
			My_Obj.url_kit = "http://"+ Date.parse(date) +".kit.sexequalite.com/"+ Param.idkit +"/CD/"+ My_Obj.name_kit;		
		}
	
		if((md.indexOf("_in_page") == -1)&&(md != "dialer_html")&&(md != "xdialer_html")&&(md != "special_uk")&&(md != "tripes") && (md.indexOf("30min_only") == -1 ))
		{
			var w = window.open("http://media2.carpediem.fr/perl/loader.pl?id="+ Param.idkit +"&p="+ md  +"&rf="+ My_Obj.rf +"&lg=us&url_kit="+ escape(My_Obj.url_kit).replace(/\.exe$/, '') +"&tracker="+ Param.tracker ,'','toolbar=0,location=0,directories=0,status=0,menubar=0,width=480,height=300'); 
		}
		else
		{
			if(md == 'dialer_html') { window.open("http://htmldialer.parisvoyeur.com/perl/HTML/nph-dialer.pl?lg=us&id_promo="+ My_Obj.id_promo +"&pays=44&dialer_name="+ escape(My_Obj.name_kit).replace(/\.exe$/, '') +"&rf="+ My_Obj.rf +"&id_kit="+ Param.idkit +"&tracker="+ Param.tracker, "", "toolbar=0,location=0,directories=0,status=0,menubar=0,top=0,left=0,width="+ screen.availWidth +",height="+ screen.availHeight); }
			if(md == 'loader_in_page') { window.frames[1].location = "http://public.carpediem.fr/js/kit.html?k="+ escape(My_Obj.url_kit) +"&id="+ Param.idkit; }
			if(md == 'html_in_page') {  window.frames[1].location = "http://htmldialer.parisvoyeur.com/perl/HTML/nph-dialer.pl?lg=us&id_promo=sites&pays=44&dialer_name="+ escape(My_Obj.name_kit).replace(/\.exe$/, '') +"&id_kit="+ Param.idkit +"&tracker="+ Param.tracker; }
			if(md == "xdialer_html") { window.open("http://htmldialer.parisvoyeur.com/perl/HTML/nph-xdialer.pl?lg=us&promo="+ My_Obj.id_promo +"&pays=44&dialer_name="+ escape(My_Obj.name_kit).replace(/\.exe$/, '') +"&rf="+ My_Obj.rf +"&id_kit="+ Param.idkit +"&tracker="+ Param.tracker, "", "toolbar=0,location=0,directories=0,status=0,menubar=0,top=0,left=0,width="+ screen.availWidth +",height="+ screen.availHeight);}
			if(md == "special_uk") { window.frames[1].location = "http://dload.ipbill.com/dload.html?dload=262991&refid=10000"; }
			if(md == "tripes") { window.open(tripes(), '', 'toolbar=0,location=0,directories=0,status=0,menubar=0'); }
			if(md == "30min_only1") { window.open("http://media2.carpediem.fr/perl/30min/index.pl?site=CBACCESS_v2&lg="+ Param.lg +"&rf=pvaS_"+ My_Param.rf +"&id="+  Param.idkit, "", "resizable=1,width=750,height=500,status=1,scrollbars=yes"); }
			if(md == "30min_only2") { window.open("http://media2.carpediem.fr/perl/30min/index.pl?site=pornfront&lg="+ Param.lg +"&rf=pvaS_"+ My_Param.rf +"&id="+  Param.idkit, "", "resizable=1,width=750,height=500,status=1,scrollbars=yes"); }
		}
	}

	function iframe_tripes()
	{
		window.frames["frame1"].document.write('<iframe width=500 height=500 frameborder=0 src="'+ tripes() +'"></iframe>');
	}

	function tripes()
	{
		 var date = new Date();
		 if(!My_Param.url_kit)
		 {
			 My_Param.url_kit = "http://"+ Date.parse(date) +".kit.sexequalite.com/"+ Param.idkit +"/CD/"+ My_Param.name_kit;            		}

		return "http://media2.carpediem.fr/perl/loader.pl?id="+ Param.idkit +"&p=tripes&rf="+ My_Param.rf +"&lg=us&url_kit="+ escape(My_Param.url_kit).replace(/\.exe$/, '') +"&ps="+ escape("http://"+ window.document.location.hostname) +"&tracker="+ Param.tracker;
	}	

	function make_tag() { }

