var jet={VERSION:3,log:function(){return false},client:function(){this._clientDetect();return this.client()},clientName:function(){this._clientDetect();return this.clientName()},clientVersion:function(){this._clientDetect();return this.clientVersion()},clientEngine:function(){this._clientDetect();return this.clientEngine()},_clientDetect:function(){var a=false,b=false,d=false,e=false,c=navigator.userAgent,f;if(c.indexOf("Opera")!=-1){a="opera";if(f=/Opera[\/\ ]([0-9\.]+)/.exec(c))b=parseFloat(f[1]);
if(f=/Version\/([0-9\.]+)/.exec(c))b=parseFloat(f[1])}else if(c.indexOf("Chrome")!=-1){a="chrome";if(f=/Chrome\/([0-9\.]+)/.exec(c))b=parseFloat(f[1])}else if(c.indexOf("Safari")!=-1){a="safari";if(f=/Version\/([0-9\.]+)/.exec(c))b=parseFloat(f[1])}else if(c.indexOf("Netscape")!=-1||c.indexOf("Navigator")!=-1){a="netscape";if(f=/(Netscape|Navigator)[0-9]?\/([0-9\.]+)/.exec(c))b=parseFloat(f[2])}else if(c.indexOf("Firefox")!=-1){a="firefox";if(f=/Firefox\/([0-9\.]+)/.exec(c))b=parseFloat(f[1])}else if(c.indexOf("MSIE")!=
-1){a="msie";if(f=/MSIE ([0-9\.]+)/.exec(c))b=parseFloat(f[1])}else if(c.indexOf("Mozilla/4")!=-1){a="netscape";if(f=/Mozilla\/([0-9\.]+)/.exec(c))b=parseFloat(f[1])}switch(a){case "opera":e="presto";break;case "chrome":case "safari":e="webkit";break;case "msie":if(b>=4)e="trident";break;case "firefox":e="gecko";break;case "netscape":if(b>=6)e="gecko";break}if(a)d=a;if(a&&b)d=a+parseInt(b);this.client=function(){return d};this.clientName=function(){return a};this.clientVersion=function(){return b};
this.clientEngine=function(){return e}},inArray:function(a,b){for(var d=b.length;d--;)if(b[d]===a)return true;return false},arraySearch:function(a,b){for(var d=0,e=b.length;d<e;d++)if(b[d]===a)return d;return false},getEl:function(a){this.getEl=document.getElementById?function(b){return document.getElementById(b)}:document.layers?function(b){return document.layers[b]}:document.all?function(b){return document.all[b]}:function(){return null};return this.getEl(a)},getTagEls:function(a){this.getTagEls=
document.getElementsByTagName?function(b){return document.getElementsByTagName(b)}:document.all?function(b){return document.all.tags(b)}:function(){return null};return this.getTagEls(a)},createEl:function(a){return document.createElement(a)},createTxt:function(a){return document.createTextNode(a)},removeAllChilds:function(a){if(a.hasChildNodes())for(;a.childNodes.length>=1;)a.removeChild(a.firstChild)},_AUTO_ID_CONTEUR:0,autoId:function(a){a.id||a.setAttribute("id","_gius_ui_autoId_"+ ++this._AUTO_ID_CONTEUR);
return a.id},getElPos:function(a,b){for(var d={},e=0,c=0;a;){e+=a.offsetTop;c+=a.offsetLeft;a=a.offsetParent;if(b)if(this.getElStyle(a,"position")=="absolute"||this.getElStyle(a,"position")=="relative")break}d.x=c;d.y=e;return d},getElStyle:function(a,b){if(a.currentStyle)return a.currentStyle[b];else if(window.getComputedStyle)return document.defaultView.getComputedStyle(a,null).getPropertyValue(b)},getElSize:function(a){return{w:a.offsetWidth,h:a.offsetHeight}},getWinSize:function(){this.getWinSize=
window.innerWidth||window.innerHeight?function(){return{w:window.innerWidth,h:window.innerHeight}}:document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)?function(){return{w:document.documentElement.clientWidth,h:document.documentElement.clientHeight}}:document.body&&(document.body.clientWidth||document.body.clientHeight)?function(){return{w:document.body.clientWidth,h:document.body.clientHeight}}:function(){return{w:0,w:0}};return this.getWinSize()},
getWinPos:function(){this.getWinPos=window.screenLeft?function(){return{x:window.screenLeft,y:window.screenTop}}:window.screenX?function(){return{x:window.screenX,y:window.screenY}}:function(){return{x:0,y:0}};return this.getWinPos()},getWinScroll:function(){this.getWinScroll=typeof window.pageXOffset=="number"?function(){return{x:window.pageXOffset,y:window.pageYOffset}}:document.body&&document.body.scrollTop?function(){return{x:document.body.scrollLeft,y:document.body.scrollTop}}:document.documentElement&&
(document.documentElement.scrollLeft||document.documentElement.scrollTop)?function(){return{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop}}:function(){return{x:0,y:0}};return this.getWinScroll()},addEvent:function(a,b,d){if(typeof a[b]!="function"||typeof a[b+"_num"]=="undefined"){a[b+"_num"]=0;if(typeof a[b]=="function"){a[b+0]=a[b];a[b+"_num"]++}a[b]=function(c){var f=true;c=c?c:window.event;for(var g=0;g<a[b+"_num"];g++)if(a[b+g](c)===false)f=false;return f}}for(var e=
0;e<a[b+"_num"];e++)if(a[b+e]==d)return;a[b+a[b+"_num"]]=d;a[b+"_num"]++},removeEvent:function(a,b,d){if(!(typeof a[b]!="function"||typeof a[b+"_num"]=="undefined"||a[b+"_num"]==0)){for(var e=false,c=0;c<a[b+"_num"];c++){e||(e=a[b+c]==d);if(e&&c+1<a[b+"_num"])a[b+c]=a[b+(c+1)]}e&&a[b+"_num"]--}},addWindowOnloadEvent:function(a){if(typeof window.addEventListener!="undefined")window.addEventListener("load",a,false);else if(typeof window.attachEvent!="undefined")window.attachEvent("onload",a);else if(window.onload!=
null){var b=window.onload;window.onload=function(d){b(d);window[a]()}}else window.onload=a},getEventTarget:function(a){a=a.target?a.target:a.srcElement;if(a!=null)if(a.nodeType==3)a=a.parentNode;return a},preventDef:function(a){if(!a)a=window.event;a.preventDefault&&a.preventDefault()},newXHR:function(){var a=navigator.userAgent.toUpperCase();this.newXHR=typeof XMLHttpRequest==="function"||typeof XMLHttpRequest==="object"?function(){return new XMLHttpRequest}:window.ActiveXObject&&a.indexOf("MSIE 4")<
0?a.indexOf("MSIE 5")<0?function(){return new ActiveXObject("Msxml2.XMLHTTP")}:function(){return new ActiveXObject("Microsoft.XMLHTTP")}:function(){return null};return this.newXHR()},XHRReadyState:{uninitialized:0,loading:1,loaded:2,interactive:3,complete:4},XHRStatusText:{100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choices",301:"Moved Permanently",302:"Found",
303:"See Other",304:"Not Modified",305:"Use Proxy",306:"(unused, but reserved)",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",
500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",509:"Bandwidth Limit Exceeded"},_PRELOAD_IMG_ARR:[],preloadImage:function(a,b){if(!this.inArray(a,this._PRELOAD_IMG_ARR)){var d=new Image;d.src=a;if(b)d.onload=function(){eval(b)};this._PRELOAD_IMG_ARR.push(a)}},_INCLUDE_ARR:[],includeScript:function(a){if(!this.inArray(a,this._INCLUDE_ARR)){var b=new Date,d=jet.getTagEls("head")[0],e=jet.createEl("script");
e.setAttribute("language","javascript");e.setAttribute("type","text/javascript");e.setAttribute("src",a+"?time="+Math.round(b.getTime()/1E3));d.appendChild(e);this._INCLUDE_ARR.push(a)}},includeCss:function(a){if(!this.inArray(a,this._INCLUDE_ARR)){var b=new Date,d=jet.getTagEls("head")[0],e=jet.createEl("link");e.setAttribute("type","text/css");e.setAttribute("rel","stylesheet");e.setAttribute("media","all");e.setAttribute("href",a+"?time="+Math.round(b.getTime()/1E3));d.appendChild(e);this._INCLUDE_ARR.push(a)}},
includeScriptXHR:function(a,b){this._loadScriptXHR(a,b,false)},includeScriptXHRAsync:function(a,b){this._loadScriptXHR(a,b,true)},_loadScriptXHR:function(a,b,d){if(!this.inArray(a,this._INCLUDE_ARR)){this._INCLUDE_ARR.push(a);var e=new Date,c=jet.newXHR();c.open("GET",a+"?time="+Math.round(e.getTime()/1E3),d);if(d){c.onreadystatechange=function(){c.readyState===jet.XHRReadyState.complete&&jet._evalScriptXHR(c,b)};c.send(null)}else{c.send(null);this._evalScriptXHR(c,b)}}},_evalScriptXHR:function(a,
b){if(a.status==200){if(jet.client()=="safari3"){var d=jet.createEl("script");d.type="text/javascript";d.text=a.responseText;document.body.appendChild(d)}else if(window.execScript)window.execScript(a.responseText);else window.eval&&window.eval(a.responseText);b&&b()}}};
