/* --- Credits
*
* Copyright 2007 Troll d'idees
*
*/
if(typeof console=="undefined"){console={};console.log=function(){};}var Kiubi={};var KBInfo={};var sAgent=navigator.userAgent.toLowerCase();KBInfo.IsIE=(sAgent.indexOf("msie")!=-1);KBInfo.IsGecko=!KBInfo.IsIE;KBInfo.IsSafari=(sAgent.indexOf("safari")!=-1);KBInfo.IsNetscape=(sAgent.indexOf("netscape")!=-1);if(KBInfo.IsIE){var IEver=sAgent.match(/msie\s*([0-9])/);KBInfo.IsIE6=(IEver[1]==6);KBInfo.IsIE7=(IEver[1]==7);}else{KBInfo.IsIE6=false;KBInfo.IsIE7=false;}try{KBInfo.ScreenWidth=screen.width;KBInfo.ScreenHeight=screen.height;}catch(e){KBInfo.ScreenWidth=800;KBInfo.ScreenHeight=600;}if(KBInfo.IsIE6){try{document.execCommand("BackgroundImageCache",false,true);}catch(err){}}KBInfo.getPageScroll=function(){var _1;if(self.pageYOffset){_1=self.pageYOffset;}else{if(document.documentElement&&document.documentElement.scrollTop){_1=document.documentElement.scrollTop;}else{if(document.body){_1=document.body.scrollTop;}}}return {x:0,y:_1};};KBInfo.getPageSize=function(){var _2,_3;if(window.innerHeight&&window.scrollMaxY){_2=document.body.scrollWidth;_3=window.innerHeight+window.scrollMaxY;}else{if(document.body.scrollHeight>document.body.offsetHeight){_2=document.body.scrollWidth;_3=document.body.scrollHeight;}else{_2=document.body.offsetWidth;_3=document.body.offsetHeight;}}var _4,_5;if(self.innerHeight){_4=self.innerWidth;_5=self.innerHeight;}else{if(document.documentElement&&document.documentElement.clientHeight){_4=document.documentElement.clientWidth;_5=document.documentElement.clientHeight;}else{if(document.body){_4=document.body.clientWidth;_5=document.body.clientHeight;}}}if(_3<_5){pageHeight=_5;}else{pageHeight=_3;}if(_2<_4){pageWidth=_4;}else{pageWidth=_2;}return {pageWidth:pageWidth,pageHeight:pageHeight,windowWidth:_4,windowHeight:_5};};function setActiveStyleSheet(_6){var i,a,_7;for(i=0;(a=document.getElementsByTagName("link")[i]);i++){if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")){if(a.getAttribute("title")==_6){a.disabled=false;}else{a.disabled=true;}}}};function getActiveStyleSheet(){var i,a;for(i=0;(a=document.getElementsByTagName("link")[i]);i++){if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")&&!a.disabled){return a.getAttribute("title");}}return null;};function getPreferredStyleSheet(){var i,a;if(defaultStyle){for(i=0;(a=document.getElementsByTagName("link")[i]);i++){if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("rel").indexOf("alt")==0&&a.getAttribute("title")==defaultStyle){return a.getAttribute("title");}}}else{for(i=0;(a=document.getElementsByTagName("link")[i]);i++){if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("rel").indexOf("alt")==0&&a.getAttribute("title")){return a.getAttribute("title");}}}return null;};function createCookie(_8,_9,_a){if(_a){var _b=new Date();_b.setTime(_b.getTime()+(_a*24*60*60*1000));var _c="; expires="+_b.toGMTString();}else{_c="";}document.cookie=_8+"="+_9+_c+"; path=/";};function readCookie(_d){var _e=_d+"=";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" "){c=c.substring(1,c.length);}if(c.indexOf(_e)==0){return c.substring(_e.length,c.length);}}return null;};function loadStyleSheet(){var _f=readCookie("style");var _10=_f?_f:getPreferredStyleSheet();setActiveStyleSheet(_10);};var poolOnLoad=new Array();var init=window.onload;window.onload=function(){if(typeof (init)=="function"){try{init();}catch(e){}}poolOnLoad.each(function(fct){fct();});};