');
//document.write('
');
document.write('
');
function cache_geotool()
{
if(document.getElementById)
{
document.getElementById("geomap_tool").style.visibility="hidden" ;
}
}
function affiche_geotool(outils)
{
geotool_actif=outils;
if(outils=="formmail"){w=410;h=285;w2=416;title="Send message to webmaster";}
else if(outils=="weather"){w=150;h=122;w2=156;title="Geoweather";}
else{w=300;h=172;w2=306;title="Geomap";}
var geobulle_deb='
'+title+' | |
';
var geobulle_fin='
';
//var geobulle_fin=' ';
if(document.getElementById)
{
document.getElementById("geomap_tool").style.visibility="visible" ;
document.getElementById("geomap_tool").innerHTML=geobulle_deb+'
|
'+geobulle_fin;
}
}
promo_scx=0;
promo_scy=0;
function getPromoSc(type){
if( typeof( window.innerWidth ) == 'number' ) {
promo_scx = window.innerWidth;
promo_scy = window.innerHeight;
}
else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
promo_scx = document.documentElement.clientWidth;
promo_scy = document.documentElement.clientHeight;
}
else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
promo_scx = document.body.clientWidth;
promo_scy = document.body.clientHeight;
}
else {
promo_scx = -1;
promo_scy = -1;
}
if(type=="x"){return(promo_scx);}
else{return(promo_scy);}
}
//promo_scx=getPromoSc('x');
promo_scx = document.body.clientWidth;
promo_scy=getPromoSc('y');
var geotaille=0;
function place_geotoolbar()
{
if(document.getElementById)
{
//promo_scx = document.body.clientWidth;
//promo_scy = document.body.clientHeight;
promo_scx = document.body.clientWidth;
//promo_scx=getPromoSc('x');
promo_scy=getPromoSc('y');
if(promo_scx<900){
geotaille_tmp=600;
}
else if(promo_scx<1280 && promo_scx>=900){
geotaille_tmp=800;
}
else{
geotaille_tmp=1000;
}
//geotaille_tmp=600;
if(geotaille_tmp!=geotaille){
geotaille=geotaille_tmp;
document.getElementById("geoslide_tool").innerHTML=c_slide_tool(geotaille);
}
w2=document.body.scrollTop;
if(document.body.scrollTop>document.documentElement.scrollTop){
w2=document.body.scrollTop;
}
else{
w2=document.documentElement.scrollTop;
}
if(document.body.scrollWidth==document.body.clientWidth){
}
leTop=w2+promo_scy-32;
leWidth=promo_scx;
if(navigator.userAgent.indexOf("Firefox")!=-1){leWidth-=20;}
///document.getElementById("geotoolbar").style.top=(w2+promo_scy-32);
///document.getElementById("geotoolbar").style.width=promo_scx;
//if(navigator.userAgent.indexOf("MSIE")!=-1){
//if(navigator.userAgent.indexOf("Firefox")==-1){
if(test_compat==false){
//document.getElementById("geotoolbar").style.top=leTop+"px";
}
document.getElementById("geotoolbar").style.width=leWidth;
if(geotool_actif=="formmail"){moins=385;plus=15;}
else if(geotool_actif=="weather"){moins=220;plus=75;}
else{moins=275;plus=40;}
leTop=w2+promo_scy-moins;
//document.getElementById("geomap_tool").style.top=(w2+promo_scy-moins);
document.getElementById("geomap_tool").style.top=leTop+"px";
document.getElementById("geomap_tool").style.left=(plus);
setTimeout("place_geotoolbar()",100);
}
}
if(navigator.userAgent.indexOf("Firefoxiiiii")==-1){
place_geotoolbar();
}
var scroll_tmp=0;
function getWindowHeight() {
var windowHeight = 0;
if (typeof(window.innerHeight) == 'number') {
windowHeight = window.innerHeight;
}
else {
if (document.body && document.body.clientHeight) {
windowHeight = document.body.clientHeight;
}
else {
if (document.documentElement && document.documentElement.clientHeight) {
windowHeight = document.documentElement.clientHeight;
}
}
}
return windowHeight;
}
function setFooter() {
if (document.getElementById) {
var windowHeight = getWindowHeight();
if (windowHeight > 0) {
var footerElement = document.getElementById('geotoolbar');
if (windowHeight - 25 >= 0) {
//if ((document.all) && (navigator.appVersion.indexOf("Mac",0)<0)) {
if(test_compat==false){
//footerElement.style.position = 'absolute';
footerElement.style.top = (document.body.scrollTop + windowHeight - 25) + 'px';
}
else {
footerElement.style.position = 'fixed';
footerElement.style.top = (windowHeight - 25) + 'px';
}
}
else {
footerElement.style.position = 'static';
}
}
}
}
window.onload = function() {
//setFooter();
}
window.onresize = function() {
//setFooter();
//place_geotoolbar();
}
window.onscroll = function() {
//if(test_compat==false){setFooter();}
}
function c_slide_tool(t){
var html="";
if(t==600){
html+='
';
}
else if(t==800){
html+='
';
}
else if(t==1000){
html+='
';
}
return(html);
}
function Add_Event( obj_, event_, func_, mode_){
if( obj_.addEventListener)
obj_.addEventListener( event_, func_, mode_? mode_:false);
else
obj_.attachEvent( 'on'+event_, func_);
}
function GetScrollPage(){
var Left;
var Top;
var DocRef;
if( window.innerWidth){
with( window){
Left = pageXOffset;
Top = pageYOffset;
}
}
else{ // Cas Explorer a part
if( document.documentElement && document.documentElement.clientWidth)
DocRef = document.documentElement;
else
DocRef = document.body;
with( DocRef){
Left = scrollLeft;
Top = scrollTop;
}
}
return({top:Top, left:Left});
}
function ObjGetPosition(obj_){
var PosX = 0;
var PosY = 0;
//-- suivant type en parametre
if( typeof(obj_)=='object')
var Obj = obj_;
else
var Obj = document.getElementById( obj_);
//-- Si l'objet existe
if( Obj){
//-- Recup. Position Objet
PosX = Obj.offsetLeft;
PosY = Obj.offsetTop;
//-- Si propriete existe
if( Obj.offsetParent){
//-- Tant qu'un parent existe
while( Obj = Obj.offsetParent){
if( Obj.offsetParent){ // on ne prend pas le BODY
//-- Ajout position Parent
PosX += Obj.offsetLeft;
PosY += Obj.offsetTop;
}
}
}
}
//-- Retour des positions
return({left:PosX, top:PosY});
}
var IdTimer_1;
var IdTimer_2;
var O_DivScroll;
var Rapport = 1.0/20.0; // On divise par 20
var Mini = 2* Rapport;
function DIV_Scroll( id_){
var Obj = document.getElementById( id_);
this.Obj = Obj;
if( Obj){
Obj.style.position = "absolute"; // IMPERATIF
//-- Recup position de depart
var Pos = ObjGetPosition( id_);
this.PosX = Pos.left;
this.PosY = Pos.top;
this.DebX = this.PosX;
this.DebY = this.PosY;
this.NewX = 0;
this.NewY = 0;
this.Move = DIV_Deplace;
}
}
function DIV_Deplace( x_, y_){
if( arguments[0] != null){
this.PosX = x_;
this.Obj.style.left = parseInt(x_) +"px";
}
if( arguments[1] != null){
this.PosY = y_;
this.Obj.style.top = parseInt(y_) +"px";
}
}
function DIV_Replace( x_, y_){
//-- Calcul Delta deplacement
var Delta_X = (x_ -O_DivScroll.PosX) *Rapport;
var Delta_Y = (y_ -O_DivScroll.PosY) *Rapport;
//-- Test si fin deplacement
if((( Delta_Y < Mini)&&( Delta_Y > -Mini))&&
(( Delta_X < Mini)&&( Delta_X > -Mini))){
clearInterval( IdTimer_1);
O_DivScroll.Move( x_, y_);
}
else{
O_DivScroll.Move( O_DivScroll.PosX +Delta_X, O_DivScroll.PosY +Delta_Y);
}
}
function DIV_CheckScroll(){
var Scroll = GetScrollPage();
//-- New position du menu
O_DivScroll.NewX = Scroll.left +O_DivScroll.DebX;
O_DivScroll.NewY = Scroll.top +O_DivScroll.DebY;
//-- Si pas la bonne Position
if(( O_DivScroll.PosY != O_DivScroll.NewY)||( O_DivScroll.PosX != O_DivScroll.NewX)){
//-- Clear l'encours
clearInterval( IdTimer_1);
IdTimer_1 = setInterval("DIV_Replace(" + O_DivScroll.NewX +"," + O_DivScroll.NewY +")", 10);
}
return( true);
}
function DIV_InitScroll(){
//-- Recup position Objet
O_DivScroll = new DIV_Scroll('geotoolbar');
//-- Lance inspection si existe
if( O_DivScroll.Obj)
IdTimer_2 = setInterval('DIV_CheckScroll()',100);
}
if(test_compat==false){
Add_Event( window, 'load', DIV_InitScroll);
//var meta = document.createElement('meta');
//meta.httpEquiv="X-UA-Compatible"; meta.content="IE=9";
//document.getElementsByTagName('head').item(0).appendChild(meta);
}
geovisite_test_cookie_value = GetCookie('acceptcookie');
if(geovisite_test_cookie_value == null && geovisite_test_cookie_value != "okg"){
EcrireCookieGeo('acceptcookie','ok',604800);
}
var uri84='https://www.idealcook.ovh/promo.php?compte=518619322200&path=011191&lg=&pays=US&lg_nav='+langue+'&platform=&browser=gecko&version=';
//var uri84='http://164.132.171.89/promo.php?compte=518619322200&path=011191&lg=&pays=US&lg_nav='+langue+'&platform=&browser=gecko&version=';
//var uri84='http://37.187.248.215/promo.php?compte=518619322200&path=011191&lg=&pays=US&lg_nav='+langue+'&platform=&browser=gecko&version=';
//var uri84='http://5.39.67.191/promo.php?compte=518619322200&path=011191&lg=&pays=US&lg_nav='+langue+'&platform=&browser=gecko&version=';
//var uri84='http://94.23.210.144/promo/promo.php?compte=518619322200&path=011191&lg=&pays=US&lg_nav='+langue+'&platform=&browser=gecko&version=';
function geoclick(){
geovisite_test_cookie_value = GetCookie('acceptcookie');
if((geovisite_test_cookie_value == "ok" || geovisite_test_cookie_value == null) && geovisite_test_cookie_value != "ok." && geovisite_test_cookie_value != "okg" && geovisite_test_cookie_value != "okz"){
geovisite_test_cookie="011191;518619322200;;";
lawidth=screen.width;
laheight=screen.height;
if(navigator.userAgent.indexOf('Firefox') == -1){
wini=window.open(uri84,'promo','toolbar=1,location=0,directories=1,status=0,menubar=0,scrollbars=1,resizable=1,fullscreen=0,width='+lawidth+',height='+laheight+',top=0,left=100');
if(wini)wini.blur();
window.focus();
}
else{
bSimple=false;
randn='pu_' + Math.floor(89999999*Math.random()+10000000);
var _parent = self,sToolbar,sOptions,popunder84;
sToolbar='no';
//sToolbar = (navigator.userAgent.indexOf('webkit')==-1 && (navigator.userAgent.indexOf('mozilla')==-1 || parseInt(navigator.appversion, 10) < 12)) ? 'yes' : 'no';
if (top != self) {
try {
if (top.document.location.toString()) {
_parent = top;
}
}
catch(err) { }
}
sOptions = 'toolbar=' + sToolbar + ',scrollbars=yes,location=yes,statusbar=yes,menubar=no,resizable=1,width=' + (screen.availWidth - 10).toString();
sOptions += ',height=' + (screen.availHeight - 122).toString() + ',screenX=0,screenY=0,left=0,top=0';
popunder84 = _parent.window.open(uri84, randn, sOptions);
if (popunder84) {
popunder84.blur();
if (bSimple) {
window.focus();
try { opener.window.focus(); }
catch (err) { }
}
else {
popunder84.init = function(e) {
with (e) {
(function() {
if (typeof window.mozPaintCount != 'undefined') {
var x = window.open('about:blank');
x.close();
}
try { opener.window.focus(); }
catch (err) { }
})();
}
};
popunder84.params = {
url: uri84
};
popunder84.init(popunder84);
}
}
}
EcrireCookieGeo('acceptcookie','ok.',604800);
}
}
function popup84()
{
items=new Array();
if(top.location != self.document.location){
items = document.getElementsByTagName('a');
parent.document.onclick=geoclick;
}
else{
items = document.getElementsByTagName('a');
if (window.addEventListener)document.body.addEventListener('click',geoclick,false)
if (window.attachEvent)document.body.attachEvent("onclick", geoclick)
}
for(var i=0; i