var popunder=new Array()
popunder[0]="http://fs3.emv2.com/fr/3suisses/optin_site/inscription_site.html"
var winfeatures="width=615,height=510,scrollbars=0,resizable=0,toolbar=0,location=0,menubar=0,status=0,directories=0"
var once_per_session=1
function getFeuVert2()
{
cheminPop = new String(document.location);
if (cheminPop.indexOf("3suisses.chouchou.fr") != -1 ) return "NON";
if (cheminPop.indexOf("eole2.chouchou.fr") != -1 ) return "NON";
return "OUI";
}
function get_cookie(Name)
{
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0)
{
offset = document.cookie.indexOf(search)
if (offset != -1) // if cookie exists
{
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
function loadpopunder(info0, info1, info2, info3, popupOuPopUnder, topBlur)
{
if (getFeuVert2() == "OUI")
{
openPopupPage2(info0, info1, info2, info3, popupOuPopUnder, topBlur);
if(popupOuPopUnder != 0)
{
window.focus()
}
}
}
function openPopupPage2(urlPopup,urlPage,mWidth,mHeigth,popupOuPopUnder, topBlur)
{
window.open(urlPopup+"?topBlur="+topBlur+"&urlPage="+urlPage,"","width="+mWidth+",height="+mHeigth+",left=" +
((screen.width - mWidth)/2) + ",top=" + ((screen.height - mHeigth)/2) );
if(popupOuPopUnder != 0)
{
window.blur()
}
}
function loadornot(info0, info1, info2, info3, popupOuPopUnder, topBlur)
{
if(popupOuPopUnder !=0){
if (get_cookie('popun')!='yes')
{
xt_clic('N','HP3S_popup_bpn','',0);
document.cookie="popun=yes";
loadpopunder(info0, info1, info2, info3, popupOuPopUnder, topBlur);
}
}
else
{
loadpopunder(info0, info1, info2, info3, popupOuPopUnder, topBlur);
}
}
function xt_clic(typecl,page,url,nvlle)
{
var feuVert = getFeuVert();
if (feuVert == "OUI")
{
hsh = new Date();
xt_img = new Image();
hsi = 'http://logi6.xiti.com/hit.xiti?s=188561';
page = 'HP3S_Onglet_'+page;
hsi += '&p='+page+'&clic='+typecl+'&hl=' + hsh.getHours() + 'x' + hsh.getMinutes() + 'x' + hsh.getSeconds();
if(parseFloat(navigator.appVersion)>=4)
{
Xiti_s=screen;hsi += '&r=' + Xiti_s.width + 'x' + Xiti_s.height + 'x' + Xiti_s.pixelDepth + 'x' + Xiti_s.colorDepth;
}
xt_img.src = hsi;
if (url != null)
{
if ((nvlle=='')||(nvlle==null))
{
}
else
{
xfen = window.open(url,'xfen','width=576,height=386,scrollbars=0,resizable=0,toolbar=0,location=0,menubar=0,status=0,directories=0');
}
}
else
{
return;
}
}
}
function xt_clichp(typecl,page,url,nvlle)
{
var feuVert = getFeuVert();
if (feuVert == "OUI")
{
hsh = new Date();
xt_img = new Image();
hsi = 'http://logi6.xiti.com/hit.xiti?s=188561';
page = page;
hsi += '&p='+page+'&clic='+typecl+'&hl=' + hsh.getHours() + 'x' + hsh.getMinutes() + 'x' + hsh.getSeconds();
if(parseFloat(navigator.appVersion)>=4)
{
Xiti_s=screen;hsi += '&r=' + Xiti_s.width + 'x' + Xiti_s.height + 'x' + Xiti_s.pixelDepth + 'x' + Xiti_s.colorDepth;
}
xt_img.src = hsi;
if (url != null)
{
if ((nvlle=='')||(nvlle==null))
{
}
else
{
xfen = window.open(url,'xfen','width=576,height=386,scrollbars=0,resizable=0,toolbar=0,location=0,menubar=0,status=0,directories=0');
}
}
else
{
return;
}
}
}
