');
//document.write('
');
_proxy_jslib_handle(document, 'write', '')('
');
function cache_geotool() {
if(_proxy_jslib_handle(document, 'getElementById', ''))
{
_proxy_jslib_handle(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+' | ![](http://geoloc1.geovisite.com:8080/skin/geotoolbar/close.gif) |
';
var geobulle_fin='
';
//var geobulle_fin=' ';
if(_proxy_jslib_handle(document, 'getElementById', ''))
{
_proxy_jslib_handle(document, 'getElementById', '')("geomap_tool").style.visibility="visible" ;
_proxy_jslib_assign('', _proxy_jslib_handle(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( _proxy_jslib_handle(document, 'body', '') && ( _proxy_jslib_handle(document, 'body', '').clientWidth || _proxy_jslib_handle(document, 'body', '').clientHeight ) ) {
promo_scx = _proxy_jslib_handle(document, 'body', '').clientWidth;
promo_scy = _proxy_jslib_handle(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 = _proxy_jslib_handle(document, 'body', '').clientWidth;
promo_scy=getPromoSc('y');
var geotaille=0;
function place_geotoolbar() {
if(_proxy_jslib_handle(document, 'getElementById', ''))
{
//promo_scx = document.body.clientWidth;
//promo_scy = document.body.clientHeight;
promo_scx = _proxy_jslib_handle(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;
_proxy_jslib_assign('', _proxy_jslib_handle(document, 'getElementById', '')("geoslide_tool"), 'innerHTML', '=', (c_slide_tool(geotaille)));
}
w2=_proxy_jslib_handle(document, 'body', '').scrollTop;
if(_proxy_jslib_handle(document, 'body', '').scrollTop>document.documentElement.scrollTop){
w2=_proxy_jslib_handle(document, 'body', '').scrollTop;
}
else{
w2=document.documentElement.scrollTop;
}
if(_proxy_jslib_handle(document, 'body', '').scrollWidth==_proxy_jslib_handle(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";
}
_proxy_jslib_handle(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);
_proxy_jslib_assign('', _proxy_jslib_handle(document, 'getElementById', '')("geomap_tool").style, 'top', '=', (leTop+"px"));
_proxy_jslib_handle(document, 'getElementById', '')("geomap_tool").style.left=(plus);
_proxy_jslib_handle(null, 'setTimeout', 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 (_proxy_jslib_handle(document, 'body', '') && _proxy_jslib_handle(document, 'body', '').clientHeight) {
windowHeight = _proxy_jslib_handle(document, 'body', '').clientHeight;
}
else {
if (document.documentElement && document.documentElement.clientHeight) {
windowHeight = document.documentElement.clientHeight;
}
}
}
return windowHeight;
}
function setFooter() {
if (_proxy_jslib_handle(document, 'getElementById', '')) {
var windowHeight = getWindowHeight();
if (windowHeight > 0) {
var footerElement = _proxy_jslib_handle(document, 'getElementById', '')('geotoolbar');
if (windowHeight - 25 >= 0) {
//if ((document.all) && (navigator.appVersion.indexOf("Mac",0)<0)) {
if(test_compat==false){
//footerElement.style.position = 'absolute';
_proxy_jslib_assign('', footerElement.style, 'top', '=', ( (_proxy_jslib_handle(document, 'body', '').scrollTop + windowHeight - 25) + 'px'));
}
else {
footerElement.style.position = 'fixed';
_proxy_jslib_assign('', 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){
var _proxy_jslib_with_objs= [] ;with(_proxy_jslib_with_objs[_proxy_jslib_with_objs.length]= ( window)){
Left = pageXOffset;
Top = pageYOffset;
}; _proxy_jslib_with_objs.length-- ;
}
else{ // Cas Explorer a part
if( document.documentElement && document.documentElement.clientWidth)
DocRef = document.documentElement;
else
DocRef = _proxy_jslib_handle(document, 'body', '');
var _proxy_jslib_with_objs= [] ;with(_proxy_jslib_with_objs[_proxy_jslib_with_objs.length]= ( DocRef)){
Left = scrollLeft;
Top = scrollTop;
}; _proxy_jslib_with_objs.length-- ;
}
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 = _proxy_jslib_handle(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 = _proxy_jslib_handle(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 = _proxy_jslib_handle(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_;
_proxy_jslib_assign('', 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 = _proxy_jslib_handle(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 = _proxy_jslib_handle(null, 'setInterval', 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 = _proxy_jslib_handle(null, 'setInterval', 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);
}
if (window.navigator.appVersion.match(/Chrome/)) {
function chrome_flash_redraw() {
var objects = _proxy_jslib_handle(document, 'getElementsByTagName', '')('object');
for (var i = 0, j = objects.length; i < j; i++) {
_proxy_jslib_handle(objects, (i)).style.display = 'inline-block';
_proxy_jslib_handle(objects, (i)).style.marginLeft = 'auto';
_proxy_jslib_handle(objects, (i)).style.marginRight = 'auto';
}
}
if (window.addEventListener) {
window.addEventListener('load', chrome_flash_redraw, false);
} else if (window.attachEvent) {
window.attachEvent('onload', chrome_flash_redraw);
}
}
;
_proxy_jslib_flush_write_buffers() ;