// Copyright 2007 - Michael Uyttersprot / eMich.be // v0.1b - 07.03.01 // 2009 - Modified by Alexis Cretinoir var gmlb_width=640; var gmlb_height=480; var gmOverlay; var gmContainer; var gmLabel; var gm_close; var frame_url; function gmLb_init(){ var linksArr=document.getElementsByTagName("a"); for(i = 0;i

Votre navigateur ne supporter pas les frame

"; gmLabel = document.createElement("div"); gmLabel.setAttribute("id","gmlb_label"); gmLabel.setAttribute("class","gmlb_label"); gmLabel.style.display="block"; gmClose = document.createElement("div"); gmClose.setAttribute("id","gmlb_close"); gmClose.setAttribute("class","gmlb_close"); gmClose.style.display="block"; gmClose.onclick=function(){gmOverlay.style.display='none';gmLbOnClose();}; gmContainer.appendChild(gmLabel); gmContainer.appendChild(gmClose); gmOverlay.appendChild(gmContainer); document.documentElement.ownerDocument.body.appendChild(gmOverlay); } function gm_ShowTheme(obj){ if(document.all){ gmOverlay.style.top = getScrollHeight()+"px"; gmOverlay.style.left = getScrollWidth()+"px"; } gmOverlay.style.width=getFrameWidth()+"px"; gmOverlay.style.height=getFrameHeight()+"px"; if(obj.title){ gmLabel.innerHTML=obj.title; } else{ gmLabel.innerHTML="Theme"; } gmContainer.style.visibility="hidden"; document.getElementById("gmlb_overlay").style.display=""; gmContainer.style.left=((getFrameWidth()-gmContainer.offsetWidth)/2)+"px"; gmContainer.style.top=((getFrameHeight()-gmContainer.offsetHeight)/2)+"px"; gmContainer.style.border='1px solid #373737'; gmContainer.style.visibility=""; } function gmLbOnClose(){ ; } function getFrameWidth(){ if (self.innerWidth) { return self.innerWidth; } else if (document.documentElement && document.documentElement.clientWidth) { return document.documentElement.clientWidth; } else if (document.body) { return document.body.clientWidth; } else return; } function getFrameHeight(){ if (self.innerWidth) { return self.innerHeight; } else if (document.documentElement && document.documentElement.clientWidth) { return document.documentElement.clientHeight; } else if (document.body) { return document.body.clientHeight; } else return; } function getScrollWidth() { var w = window.pageXOffset || document.body.scrollLeft || document.documentElement.scrollLeft; return w ? w : 0; } function getScrollHeight() { var h = window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop; return h ? h : 0; } function gmLbAddLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { oldonload(); func(); } } } function gmLbAddClickEvent(obj,func) { var oldonclick = obj.onclick; if (typeof obj.onclick != 'function') { obj.onclick = func; } else { obj.onclick = function() { oldonclick(); func(); } } } gmLbAddLoadEvent(gmLb_init);