//variable//////////////////////
var newwin;

/*
<!-- Disable clik droit -----------------------------------------\\\\\\\\\\\\\\\\\\\\\\
function disableselect(e){return false}

function reEnable(){return true}

//if IE4+
document.onselectstart=new Function ("return false")
document.oncontextmenu=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
<!-- Disable clik droit -----------------------------------------//////////////////////
//-->
*/

function launchwin(winurl,winname,winfeatures)
{
  newwin = window.open(winurl,winname,winfeatures);
  if(javascript_version > 1.0)
  {
    setTimeout('newwin.focus();',250);
  }
}

// JavaScript Document
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=640,height=508,left = 320,top = 258');");
}

//1er pop up kaddy
function openWindow(width,height) {
x = (640 - width)/2, y = (508 - height)/2;
if (screen) {
y = (screen.availHeight - height)/2;
x = (screen.availWidth - width)/2;
}
if (screen.availWidth > 1800) { 
x = ((screen.availWidth/2) - width)/2; 
} 
window.open('kaddy.php','newWin','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x);
}
//com en acheter
function openWindow2(width,height) {
x = (800 - width)/2, y = (500 - height)/2;
if (screen) {
y = (screen.availHeight - height)/2;
x = (screen.availWidth - width)/2;
}
if (screen.availWidth > 1800) { 
x = ((screen.availWidth/2) - width)/2; 
} 
window.open('comment_acheter.php','newWin','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x);
}

//3eme pop up 2condition de vente
function openWindow3(width,height) {
x = (640 - width)/2, y = (508 - height)/2;
if (screen) {
y = (screen.availHeight - height)/2;
x = (screen.availWidth - width)/2;
}
if (screen.availWidth > 1800) { 
x = ((screen.availWidth/2) - width)/2; 
} 
window.open('condition.php','newWin','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x);
}
//eme pop up bonus
function openWindow4(width,height) {
x = (640 - width)/2, y = (508 - height)/2;
if (screen) {
y = (screen.availHeight - height)/2;
x = (screen.availWidth - width)/2;
}
if (screen.availWidth > 1800) { 
x = ((screen.availWidth/2) - width)/2; 
} 
window.open('bonus.php','newWin','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x);
}
//1er pop up video
function openWindow5(width,height) {
x = (640 - width)/2, y = (508 - height)/2;
if (screen) {
y = (screen.availHeight - height)/2;
x = (screen.availWidth - width)/2;
}
if (screen.availWidth > 1800) { 
x = ((screen.availWidth/2) - width)/2; 
} 
window.open('video_flv/video_.php','newWin','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x);
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function Imprime()
   {
   if (window.print)
     {
     window.print();
     }
   }