/*
Insérer ce script entre les balises <Head> </Head>
*/


/* Daniel Fabien - webmaster@script-masters.com
*  Script Masters - http://www.script-masters.com/ 
* 
*  Fausse PopUp (Dhtml)
*  Vous pouvez utilisé ce script sous reserve de conserver ce message
*/

var hauteurFenetre = 85;	// Hauteur de la popup
var largeurFenetre = 450;	// Largeur de la popup
var topFenetre = 470			//470 Distance du haut de la fenetre
var leftFenetre= 550		// 550 Distance du bord gauche de la fenetre

var hauteurBarretitre = 13; // Hauteur de la barre de titre
var couleurHaut = "#7392C6"	// Couleur de la barre de titre	
var couleurBas = "#FFFFFF"	// Couleur du corps de la fenetre

var texteBarretitre = "<b>Inscription a la newletter ...</b>"	// Texte qui apparait dans la barre de titre
var policeBarretitre = "Arial"					// Police dans la barre de titre
var taillePoliceBarretitre = "12"				// taille de la police dans la barre de titre
var couleurPoliceBarretitre = "#FFFFFF"			// Couleur du texte de la barre de titre

texteCorps = "<table border='0' width='100%'><tr><td width='*'>"
texteCorps += "<form method='POST' name='newsmail' action='http://www.turf-pronostics.com/codecontrole.php' target='_blank'>" // Texte du corps de la popup
texteCorps += "<font face='Arial' size='2' color='#000000'>"
texteCorps += "<center>&nbsp;&nbsp;<strong>TURF</strong> : Recevez<font color='#FF0000'><strong> GRATUITEMENT</strong></FONT> les bons coups" 
texteCorps += "<font color='#FF0000'> <strong>PMU</strong></FONT> du JOUR."
texteCorps += "<BR>&nbsp;&nbsp;<input type='text' name='nouvabonne' value='Votre email ici !' onFocus=\"this.value=''\" size='20' MAXLENGTH='40'>&nbsp;&nbsp;"
texteCorps += "<BR>&nbsp;&nbsp;<strong>inscription</strong> <input type='radio' value='ins' name='action' checked>"
texteCorps += "<input type='hidden' name='FLOG' value='0'>"
texteCorps += "&nbsp;&nbsp;&nbsp;<INPUT style='FONT-WEIGHT: bold; FONT-SIZE: 9px; COLOR: #FFFF00; FONT-FAMILY: Arial; BACKGROUND-COLOR:#008000' Type=Submit Value='VALIDEZ'></font><BR>"
texteCorps += "</form></center>"   
texteCorps += "</td><td width='150'>"
texteCorps += "<center>&nbsp;&nbsp;<a href='http://www.turf-pronostics.com/enregistrement_pmu_sport.php' target='_blank'><img src='http://www.turf-pronostics.com/images/pmu-logo-pub.gif' alt='60 euros de paris offerts' height='60' border=0></a><a href='http://www.joueurs-info-service.fr/' target='_blank'><img src='http://www.turf-pronostics.com/images/logo-arjel.gif'  border=0></a><center>"
texteCorps += "</td></tr></table>"


var policeCorps = "Arial"						// Police du corps de la popup
var taillePoliceCorps = "12"							// Taille du texte
var couleurPoliceCorps = "#000000"

var Ombre = 1				// 0 : pas d'ombre; 1 : ombrage

// ------------------------NE PAS EDITER SOUS CETTE LIGNE----------------------//
var clic = false;
function clicDown(tab) {
	abscisse = abs-leftFenetre;
	ordonne = ord-topFenetre;
	clic=true;
}
function clicUp() {
		clic=false;
}
function fermerPopup() {
	document.getElementById("pop_up").style.visibility="hidden";
}
function get_mouse(e){
	if (document.getElementById && document.all) {
		// Internet explorer
		abs = event.x+document.body.scrollLeft;
		ord = event.y+document.body.scrollTop;
	} else if (document.getElementById) {
		// Netscape 6+
		abs = e.pageX
		ord = e.pageY
	} 
	if(clic && document.getElementById){
		leftFenetre = abs-abscisse;
		topFenetre = ord-ordonne;
	}
	document.getElementById("pop_up").style.left = leftFenetre
  	document.getElementById("pop_up").style.top = topFenetre
}
if (document.getElementById && !document.all) {
	document.captureEvents(Event.MOUSEMOVE);
}	
document.onmousemove = get_mouse;
function popup(){
	if (document.getElementById) {
		document.write('<style type="text/css">')
		document.write('table.popup {')
		document.write('	border: 1px solid #000000;}')
		document.write('td.titre {')
		document.write('	font-family: '+policeBarretitre+';')
		document.write('	font-size: '+taillePoliceBarretitre+'px;')
		document.write('	color: '+couleurPoliceBarretitre+';}')
		document.write('td.corps {')
		document.write('	font-family: '+policeCorps+';')
		document.write('	font-size: '+taillePoliceCorps+'px;')
		document.write('	color: '+couleurPoliceCorps+';}')
		document.write('</style>')
		document.write('<DIV id=pop_up STYLE="position:absolute; top:'+topFenetre+'px; left:'+leftFenetre+'px;visibility:visible;">')
	
		if (Ombre == 1 ) {
			document.write('<table width="'+largeurFenetre+'" height="'+hauteurFenetre+'" border="0" cellspacing="0" cellpadding="0">')
			document.write('<tr> ')
			largeurFenetre -= 5
			hauteurFenetre -= 5
			document.write('<td width="'+largeurFenetre+'"  height="'+hauteurFenetre+'" colspan="2" rowspan="2" align="left" valign="top">')
		}
       
		document.write('<table width="'+largeurFenetre+'"  height="'+hauteurFenetre+'" border="0" cellspacing="0" cellpadding="0" class="popup">')
		largeurFenetre -= hauteurBarretitre
		hauteurFenetre -= hauteurBarretitre
		document.write('<tr onMouseDown="clicDown()" onMouseUp="clicUp()">')
		document.write('<td bgcolor="'+couleurHaut+'" class="titre" width="'+largeurFenetre+'" height="'+hauteurBarretitre+'" style="cursor: move">' + texteBarretitre +'</td>')
		document.write('<td bgcolor="'+couleurHaut+'" class="titre" width="13" height="'+hauteurBarretitre+'"><img src="http://www.turf-pronostics.com/images/fermerpop.gif" width="13" height="13" onClick="fermerPopup()"></td>')
		document.write('</tr>')
		document.write('<tr valign="top">') 
		document.write('<td bgcolor="'+couleurBas+'" width="'+largeurFenetre+'" height="'+hauteurFenetre+'" colspan="2" class="corps">'+texteCorps+'</td>')
		document.write('</tr>')
		document.write('</table>')
	
		if (Ombre == 1 ) {
			document.write('</td>')
			document.write('<td width="5" height="5" background="image6.gif"></td>') 
			document.write('</tr>')
			document.write('<tr>')
			document.write('<td background="image2.gif" width="5" height="'+hauteurFenetre+'"></td>')
			document.write('</tr>')
			document.write('<tr> ')
			document.write('<td height="5" width="5" background="image5.gif"></td>')
			document.write('<td height="5" width="'+largeurFenetre+'" background="image3.gif"></td>')
			document.write('<td height="5" width="5" background="image4.gif"></td>')
			document.write('</tr>')
  			document.write('</table>')
		}
		document.write('</div>')
	}
}
