ua=navigator.userAgent.toLowerCase();isIE=((ua.indexOf("msie")!=-1)&&(ua.indexOf("opera")==-1)&&(ua.indexOf("webtv")==-1));isFF=(ua.indexOf("firefox")!=-1);isGecko=(ua.indexOf("gecko")!=-1);isSafari=(ua.indexOf("safari")!=-1);isKonqueror=(ua.indexOf("konqueror")!=-1);aefonload="";function $(a){if(document.getElementById){return document.getElementById(a)}else{if(document.all){return document.all[a]}else{if(document.layers){return document.layers[a]}}}}function trim(a){return a.replace(/^[\s]+|[\s]+$/,"")}function AEFrand(b,a){return Math.floor(Math.random()*(a-b+1)+b)}function AEFclear(a){clearTimeout(a);clearInterval(a);return null}function setopacity(b,a){b.style.opacity=(a/100);b.style.filter="alpha(opacity="+a+")"}function hideel(a){$(a).style.visibility="hidden"}function showel(a){$(a).style.visibility="visible"}function isvisible(a){if($(a).style.visibility=="visible"){return true}else{return false}}function check(b,a){if(a.checked==true){for(i=0;i<b.length;i++){b[i].checked=true}}else{for(i=0;i<b.length;i++){b[i].checked=false}}}function getwidth(){return document.body.clientWidth}function getheight(){return document.body.clientHeight}function scrolledy(){if(typeof(window.pageYOffset)=="number"){return window.pageYOffset}else{if(document.body&&document.body.scrollTop){return document.body.scrollTop}else{if(document.documentElement&&typeof(document.documentElement.scrollTop)!="undefined"){return document.documentElement.scrollTop}else{return 0}}}}function smoothopaque(b,f,d,e){if(typeof(b)=="object"){var c=b}else{var c=$(b)}op=f;setopacity(c,op);setTimeout(a,1);function a(){if(f<d){op=op+e;if(op<d){setTimeout(a,1)}}else{op=op-e;if(op>d){setTimeout(a,1)}}setopacity(c,op)}}function setcookie(b,c,d){c=escape(c);if(d){var a=new Date();a.setTime(a.getTime()+(d*86400000));c+="; expires="+a.toGMTString()}document.cookie=b+"="+c}function getcookie(a){value=document.cookie.match("(?:^|;)\\s*"+a+"=([^;]*)");return value?unescape(value[1]):false}function removecookie(a){setcookie(a,"",-1)}function AJAX(url,evalthis){req=false;toeval=evalthis;if(window.XMLHttpRequest){try{req=new XMLHttpRequest()}catch(e){req=false}}else{if(window.ActiveXObject){try{req=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{req=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){req=false}}}}if(req){try{req.onreadystatechange=function(){if(req.readyState==4){if(req.status==200){var re=req.responseText;if(re.length>0){return eval(toeval)}else{return false}}}};req.open("GET",url,true);req.send(null)}catch(e){return false}}else{return false}return true}function findelpos(b){var c=0;var a=0;if(b.offsetParent){while(1){c+=b.offsetLeft;a+=b.offsetTop;if(!b.offsetParent){break}b=b.offsetParent}}else{if(b.x){c+=b.x;a+=b.y}}return[c,a]}function getAttributeByName(b,a){if(typeof NamedNodeMap!="undefined"){if(b.attributes.getNamedItem(a)){return b.attributes.getNamedItem(a).value}}else{return b.getAttribute(a)}}function addonload(a){aefonload+=a}var PreloadFlag=false;var expDays=90;var exp=new Date();var tmp="";var tmp_counter=0;var tmp_open=0;exp.setTime(exp.getTime()+(expDays*24*60*60*1000));function SetCookie(c,e){var a=SetCookie.arguments;var h=SetCookie.arguments.length;var b=(h>2)?a[2]:null;var g=(h>3)?a[3]:null;var d=(h>4)?a[4]:null;var f=(h>5)?a[5]:false;document.cookie=c+"="+escape(e)+((b==null)?"":("; expires="+b.toGMTString()))+((g==null)?"":("; path="+g))+((d==null)?"":("; domain="+d))+((f==true)?"; secure":"")}function getCookieVal(b){var a=document.cookie.indexOf(";",b);if(a==-1){a=document.cookie.length}return unescape(document.cookie.substring(b,a))}function GetCookie(d){var b=d+"=";var f=b.length;var a=document.cookie.length;var e=0;while(e<a){var c=e+f;if(document.cookie.substring(e,c)==b){return getCookieVal(c)}e=document.cookie.indexOf(" ",e)+1;if(e==0){break}}return null}function ShowHide(d,c,a){var b=expMenu(d);if(c!=""){expMenu(c)}if(a!=""){SetCookie(a,b,exp)}}function expMenu(b){var a=null;if(document.getElementById){a=document.getElementById(b)}else{if(document.all){a=document.all[b]}else{if(document.layers){a=document.layers[b]}}}if(!a){}else{if(a.style){if(a.style.display=="none"){a.style.display="";return 1}else{a.style.display="none";return 2}}else{a.visibility="show";return 1}}}function showMenu(b){var a=null;if(document.getElementById){a=document.getElementById(b)}else{if(document.all){a=document.all[b]}else{if(document.layers){a=document.layers[b]}}}if(!a){}else{if(a.style){if(a.style.display=="none"){a.style.display="";return true}else{return true}}else{a.visibility="show";return true}}}function hideMenu(b){var a=null;if(document.getElementById){a=document.getElementById(b)}else{if(document.all){a=document.all[b]}else{if(document.layers){a=document.layers[b]}}}if(!a){}else{if(a.style){if(a.style.display=="none"){return true}else{a.style.display="none";return true}}else{a.visibility="hide";return true}}}function IsIEMac(){var a=String(navigator.userAgent).toLowerCase();if(document.all&&a.indexOf("mac")>=0){return true}return false}function select_text(c){var d=document.getElementById(c);if(!d){return}var b,a;if(document.selection&&!IsIEMac()){b=document.body.createTextRange();b.moveToElementText(d);b.select()}else{if(document.createRange&&(document.getSelection||window.getSelection)){b=document.createRange();b.selectNodeContents(d);a=window.getSelection?window.getSelection():document.getSelection();a.removeAllRanges();a.addRange(b)}}};

