

var newWin = null;
function closeWin(){
	if (newWin != null){
		if(!newWin.closed)
			newWin.close();
	}
}

function popUp(strURL,strType,strHeight,strWidth) {
closeWin();
var strOptions="";
if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;
if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;
newWin = window.open(strURL, 'newWin', strOptions);
newWin.focus();
}

var WindowObjectReference = null; // global variable

function opendl(lien)
{
  if(WindowObjectReference == null || WindowObjectReference.closed)
  {
    WindowObjectReference = window.open("http://www.plaisir-a-deux.com/",
   "PromoteFirefoxWindowName", "resizable=yes,scrollbars=yes,status=yes");
  }
  else
  {
    WindowObjectReference.focus();
  };
}

function ScanCookie(variable)
   {
    cook = document.cookie;
    variable += "=";
    place = cook.indexOf(variable,0);
    if (place <= -1)
        return("0" );
    else
       {
        end = cook.indexOf(";",place)
        if (end <= -1) return(unescape(cook.substring(place+variable.length,cook.length)));
        else return(unescape(cook.substring(place+variable.length,end)));
       }
   }
function CreationCookie(nom,valeur,permanent)
   {
    if(permanent)
       {
        dateExp = new Date(2020,11,11);
        dateExp = dateExp.toGMTString();
            ifpermanent = '; expires=' + dateExp + ';';
       }
    else
        ifpermanent = '';
    document.cookie = nom + '=' + escape(valeur) + ifpermanent;
   }
if(ScanCookie("dejapopup" )==0)
   {
    var msg="ATTENTION : SITE PORNOGRAPHIQUE RESERVE AUX MAJEURS DE PLUS DE 18 ANS\n\nCe site Internet est réservé à un public majeur et averti et est conforme à toutes les réglementations en vigueur. Il contient des textes, des photos et des vidéos classées X qui peuvent être choquantes pour certaines sensibilités.\n\nCLIQUEZ SUR OK POUR CONTINUER,ANNULER POUR QUITTER..\n\n"
    if(confirm(msg))
        CreationCookie("dejapopup","oui",false)
    else
        window.location.replace('http://www.lebest.fr/?id=23910');
   }
   
function favoris() { 
if ( navigator.appName != 'Microsoft Internet Explorer' ) 
{ window.sidebar.addPanel("Plaisir a Deux, Photos gratuites et Videos","http://www.plaisir-a-deux.com/",""); } 
else { window.external.AddFavorite("http://www.plaisir-a-deux.com","Plaisir a Deux, Photos gratuites et Videos"); } } 
