ns4=(document.layers)?true:false;ie4=(document.all)?true:false;ng5=(document.getElementById)?true:false;try{document.execCommand("BackgroundImageCache",false,true)}catch(err){}$(document).ready(function(){findAdvancedInit();sampleInit("sample");helpInit();dropConvert();dropInit();fontSizeInit();seeMore()});function findAdvancedInit(){advancedForm=document.getElementById("find_advanced");advancedFormOpen=document.getElementById("find_advanced_open");advancedFormClose=document.getElementById("find_advanced_close");basicSearchBtn=document.getElementById("find_search");if(advancedForm){advancedFormOpen.getElementsByTagName("a")[0].onclick=function(){findAdvancedShow();return false};advancedFormClose.getElementsByTagName("a")[0].onclick=function(){findAdvancedHide();return false}}}function findAdvancedShow(){$(advancedForm).slideDown("medium");$(advancedFormOpen).slideUp("medium");$(advancedFormClose).fadeIn("medium");$(basicSearchBtn).fadeOut("medium")}function findAdvancedHide(){$(advancedForm).slideUp("medium");$(advancedFormOpen).slideDown("medium");$(advancedFormClose).fadeOut("medium");$(basicSearchBtn).fadeIn("medium")}function helpInit(){if(document.getElementById("help")){var B=document.getElementById("help");var D=document.getElementById("help_open");var A=document.getElementById("help_close");var C=B.getElementsByTagName("a");for(i=0;i<C.length;i++){C[i].onclick=function(){helpHide(B)}}D.getElementsByTagName("a")[0].onclick=function(){helpShow(B);return false};A.getElementsByTagName("a")[0].onclick=function(){helpHide(B);return false}}}function helpShow(A){$(A).fadeIn("medium")}function helpHide(A){$(A).fadeOut("medium")}function sampleInit(D){var C=document.getElementById(D);var A=document.getElementById(D+"_open");var B=document.getElementById(D+"_close");if(C){sampleHide(C,A,B);A.getElementsByTagName("a")[0].onclick=function(){sampleShow(C,A,B);return false};B.getElementsByTagName("a")[0].onclick=function(){sampleHide(C,A,B);return false}}}function sampleShow(C,A,B){$(C).slideDown("medium");$(A).slideUp("medium");$(B).fadeIn("medium")}function sampleHide(C,A,B){$(C).slideUp("medium");$(A).slideDown("medium");$(B).fadeOut("medium")}var dhtmlgoodies_slideSpeed=25;var dhtmlgoodies_timer=5;var objectIdToSlideDown=false;var dhtmlgoodies_activeId=false;var dhtmlgoodies_slideInProgress=false;function showHideContent(D,A){if(dhtmlgoodies_slideInProgress){return }dhtmlgoodies_slideInProgress=true;if(!A){A=this.id}A=A+"";var C=A.replace(/[^0-9]/g,"");var B=document.getElementById("haFaq_a"+C);objectIdToSlideDown=false;if(!B.style.display||B.style.display=="none"){if(dhtmlgoodies_activeId&&dhtmlgoodies_activeId!=C){objectIdToSlideDown=C;slideContent(dhtmlgoodies_activeId,(dhtmlgoodies_slideSpeed*-1))}else{B.style.display="block";B.style.visibility="visible";slideContent(C,dhtmlgoodies_slideSpeed)}}else{slideContent(C,(dhtmlgoodies_slideSpeed*-1));dhtmlgoodies_activeId=false}}function slideContent(B,E){var D=document.getElementById("haFaq_a"+B);var C=document.getElementById("haFaq_ac"+B);height=D.clientHeight;if(height==0){height=D.offsetHeight}height=height+E;rerunFunction=true;if(height>C.offsetHeight){height=C.offsetHeight;rerunFunction=false}if(height<=1){height=1;rerunFunction=false}D.style.height=height+"px";var A=height-C.offsetHeight;if(A>0){A=0}C.style.top=A+"px";if(rerunFunction){setTimeout("slideContent("+B+","+E+")",dhtmlgoodies_timer)}else{if(height<=1){D.style.display="none";if(objectIdToSlideDown&&objectIdToSlideDown!=B){document.getElementById("haFaq_a"+objectIdToSlideDown).style.display="block";document.getElementById("haFaq_a"+objectIdToSlideDown).style.visibility="visible";slideContent(objectIdToSlideDown,dhtmlgoodies_slideSpeed)}else{dhtmlgoodies_slideInProgress=false}}else{dhtmlgoodies_activeId=B;dhtmlgoodies_slideInProgress=false}}}function initShowHideDivs(){var A=document.getElementsByTagName("DIV");var C=1;for(var D=0;D<A.length;D++){if(A[D].className=="haFaq_question"){A[D].onclick=showHideContent;A[D].id="haFaq_q"+C;var B=A[D].nextSibling;while(B&&B.tagName!="DIV"){B=B.nextSibling}B.id="haFaq_a"+C;contentDiv=B.getElementsByTagName("DIV")[0];contentDiv.style.top=0-contentDiv.offsetHeight+"px";contentDiv.className="haFaq_answer_content";contentDiv.id="haFaq_ac"+C;B.style.display="none";B.style.height="1px";C++}}}window.onload=initShowHideDivs;function dropConvert(A){if(A){var D=new Array();D[0]=A;zIndex=A.style.zIndex}else{var D=document.getElementsByTagName("select");zIndex=900}for(i=0;i<D.length;i++){var B=D[i].parentNode;if(B.className.indexOf("drop")!=-1){if(document.getElementById(D[i].name+"_menu")){B.removeChild(document.getElementById(D[i].name+"_menu"))}menu=document.createElement("div");menu.id=D[i].name+"_menu";divTR=document.createElement("div");divTR.className="drop_TR";divTL=document.createElement("div");divTL.className="drop_TL";divBL=document.createElement("div");divBL.className="drop_BL";divBR=document.createElement("div");divBR.className="drop_BR";div=document.createElement("div");div.className="drop_items";var C=D[i].options;for(x=0;x<C.length;x++){text=C[x].text;textContainer=document.createElement("b");textContainer.appendChild(document.createTextNode(text));span=document.createElement("span");span.contents=text;span.appendChild(textContainer);span.targetInput=D[i];span.index=C[x].index;span.base=B;span.onclick=function(){beforeChange=this.targetInput.value;if(this.base.className.match(/open/)){this.targetInput.selectedIndex=this.index}opt=document.createElement("b");opt.appendChild(document.createTextNode(this.contents));this.base.first.replaceChild(opt,this.base.first.childNodes[0]);afterChange=this.targetInput.value;if(this.base.className.match(/open/)){if((beforeChange!=afterChange)&&this.targetInput.onchange){this.targetInput.onchange()}}dropOpen(this.base)};if(x==0){span.className+=" first";B.first=span;menu.appendChild(span)}else{span.onmouseover=function(){this.className+=" hover"};span.onmouseout=function(){this.className=this.className.replace(/ ?hover/gi,"")};div.appendChild(span)}if(x==D[i].selectedIndex){opt=document.createElement("b");opt.appendChild(document.createTextNode(span.contents));span.base.first.replaceChild(opt,span.base.first.childNodes[0])}}D[i].style.display="none";D[i].id=D[i].name;divBR.appendChild(div);divBL.appendChild(divBR);divTL.appendChild(divBL);divTR.appendChild(divTL);menu.appendChild(divTR);B.appendChild(menu);if(B.id!="sort_by"){B.style.zIndex=zIndex;zIndex--}}}dropInit(B)}function dropInit(A){if(A){var B=new Array();B[0]=A;A.className=A.className.replace(/ open/,"")}else{var B=document.getElementsByTagName("div")}for(i=0;i<B.length;i++){if(B[i].className.match(/drop($| )/)){B[i].onclick=function(){dropItems=this.getElementsByTagName("div")[5];y=dropItems.offsetHeight;if(y>300){dropItems.style.height="300px";$(dropItems).jScrollPane({scrollbarWidth:12})}else{dropItems.style.height=y+1+"px"}this.onclick=function(){return false}}}}}function dropOpen(A){if(A.className.indexOf(" open")!=-1){A.className=A.className.replace(/ open/,"")}else{A.className+=" open"}}function fontSizeInit(){size=readCookie("fontSize");var A=document.getElementsByTagName("body")[0];if(size!=null&&size!=""&&size!="0"){A.className=A.className.replace(/(.+)?( *fontSize-?\d*)?/,"$1 fontSize"+size)}}function fontSize(F){var B=1;var D=0;var A=document.getElementsByTagName("body")[0];var E=new RegExp(/fontSize-?\d/);if(E.test(A.className)){var C=A.className.replace(/.*fontSize(-?\d*).*/,"$1");if(F=="larger"){if(C>B){A.className=A.className.replace(/ *fontSize-?\d*/," fontSize"+B)}else{if(C<B){C++;A.className=A.className.replace(/ *fontSize-?\d*/," fontSize"+C)}}}else{if(F=="smaller"){if(C<D){A.className=A.className.replace(/ *fontSize-?\d*/," fontSize"+D)}else{if(C>D){C--;A.className=A.className.replace(/ *fontSize-?\d*/," fontSize"+C)}}}}}else{if(F=="larger"){if(B>0){A.className+=" fontSize1"}}else{if(F=="smaller"){if(D<0){A.className+=" fontSize-1"}}}}C=A.className.replace(/.*fontSize-?(\d*).*/,"$1");createCookie("fontSize",C)}function createCookie(C,D,E){if(E){var B=new Date();B.setTime(B.getTime()+(E*24*60*60*1000));var A="; expires="+B.toGMTString()}else{var A=""}document.cookie=C+"="+D+A+"; path=/"}function readCookie(B){var D=B+"=";var A=document.cookie.split(";");for(var C=0;C<A.length;C++){var E=A[C];while(E.charAt(0)==" "){E=E.substring(1,E.length)}if(E.indexOf(D)==0){return E.substring(D.length,E.length)}}return null}function eraseCookie(A){createCookie(A,"",-1)}function seeMore(){for(i=0;i<document.links.length;i++){if(document.links[i].className.indexOf("seeMore")!=-1){targetID=document.links[i].href.replace(/.*#(.+)/,"$1");target=document.getElementById(targetID);$(target).hide();document.links[i].onclick=function(){seeMoreToggle(this,target);return false}}}}function seeMoreToggle(B,A){if(B.innerHTML=="See More"){B.innerHTML="See Less";$(A).slideDown("medium")}else{B.innerHTML="See More";$(A).slideUp("medium")}}$(document).ready(function(){$("span.toolTip").hover(function(){$(this).next("div").animate({opacity:"show"},"fast")},function(){$(this).next("div").animate({opacity:"hide"},"fast")})});$(function(){$(".bubbleInfo").each(function(){var H=10;var G=250;var C=250;var B=null;var E=false;var D=false;var A=$(".trigger",this);var F=$(".popup",this).css("opacity",0);$([A.get(0),F.get(0)]).mouseover(function(){if(B){clearTimeout(B)}if(E||D){return }else{E=true;F.css({top:50,left:-150,display:"block"}).animate({top:"-="+H+"px",opacity:1},G,"swing",function(){E=false;D=true})}return false}).mouseout(function(){if(B){clearTimeout(B)}B=setTimeout(function(){B=null;F.animate({top:"-="+H+"px",opacity:0},G,"swing",function(){D=false;F.css("display","none")})},C);return false})})});function popWin(B,C,A,D,E){window.open(B,"","toolbar=no,left=150,top=150,status=no,width="+C+",height="+A+",scrollbars="+D+",directories=no,location=no,resizable=yes,menubar="+E+"")}function optIn(){$("#overlayOptIn").fadeIn("slow")}function closeOptIn(){$("#overlayOptIn").fadeOut("slow")}function hideSec(A){if(ng5){document.getElementById("sec"+A).style.display="none"}else{if(ns4){document.sec1.display="none"}else{if(ie4){sec1.style.display="none"}}}}function showSec(A){if(ng5){document.getElementById("sec"+A).style.display="block"}else{if(ns4){document.sec1.display="block"}else{if(ie4){sec1.style.display="block"}}}}function swapButtonWithDisabledOne(B,C,A){document.getElementById(B).style.display="none";document.getElementById(C).style.display="block";document.getElementById(C).style.backgroundImage="url(/ha/images/btn-loginOnGrayBg.gif)";document.getElementById(C).style.background="no-repeat";tempString='document.images["'+A+'"].src = document.images["'+A+'"].src';setTimeout(tempString,1)}function disableAnchor(A){A.removeAttribute("href");A.removeAttribute("onClick");A.style.textDecoration="none";A.style.cursor="wait";A.style.color="gray";this.onclick=function(){return }}$("#content a:not(.popupwindow)").filter(function(){var A=this;if(A.hostname&&A.hostname!==location.hostname){$(A).not(".noAutoIcon").addClass("offSite");$(A).not(".noAutoLink").attr("target","_blank").bind("click keypress",function(C){var B=C.charCode||C.keyCode;if(!B||(B&&B==13)){if(pageTracker){var D=this.href;D=D.replace(/https?:\/\/(.*)/,"$1");D="/outgoing/"+D;pageTracker._trackPageview(D)}}})}});(function(B){B.dimensions={version:"1.2"};B.each(["Height","Width"],function(D,C){B.fn["inner"+C]=function(){if(!this[0]){return }var F=C=="Height"?"Top":"Left",E=C=="Height"?"Bottom":"Right";return this.is(":visible")?this[0]["client"+C]:A(this,C.toLowerCase())+A(this,"padding"+F)+A(this,"padding"+E)};B.fn["outer"+C]=function(F){if(!this[0]){return }var H=C=="Height"?"Top":"Left",E=C=="Height"?"Bottom":"Right";F=B.extend({margin:false},F||{});var G=this.is(":visible")?this[0]["offset"+C]:A(this,C.toLowerCase())+A(this,"border"+H+"Width")+A(this,"border"+E+"Width")+A(this,"padding"+H)+A(this,"padding"+E);return G+(F.margin?(A(this,"margin"+H)+A(this,"margin"+E)):0)}});B.each(["Left","Top"],function(D,C){B.fn["scroll"+C]=function(E){if(!this[0]){return }return E!=undefined?this.each(function(){this==window||this==document?window.scrollTo(C=="Left"?E:B(window)["scrollLeft"](),C=="Top"?E:B(window)["scrollTop"]()):this["scroll"+C]=E}):this[0]==window||this[0]==document?self[(C=="Left"?"pageXOffset":"pageYOffset")]||B.boxModel&&document.documentElement["scroll"+C]||document.body["scroll"+C]:this[0]["scroll"+C]}});B.fn.extend({position:function(){var H=0,G=0,F=this[0],I,C,E,D;if(F){E=this.offsetParent();I=this.offset();C=E.offset();I.top-=A(F,"marginTop");I.left-=A(F,"marginLeft");C.top+=A(E,"borderTopWidth");C.left+=A(E,"borderLeftWidth");D={top:I.top-C.top,left:I.left-C.left}}return D},offsetParent:function(){var C=this[0].offsetParent;while(C&&(!/^body|html$/i.test(C.tagName)&&B.css(C,"position")=="static")){C=C.offsetParent}return B(C)}});function A(C,D){return parseInt(B.curCSS(C.jquery?C[0]:C,D,true))||0}})(jQuery);(function(A){A.fn.extend({mousewheel:function(B){if(!B.guid){B.guid=A.event.guid++}if(!A.event._mwCache){A.event._mwCache=[]}return this.each(function(){if(this._mwHandlers){return this._mwHandlers.push(B)}else{this._mwHandlers=[]}this._mwHandlers.push(B);var C=this;this._mwHandler=function(F){F=A.event.fix(F||window.event);A.extend(F,this._mwCursorPos||{});var G=0,E=true;if(F.wheelDelta){G=F.wheelDelta/120}if(F.detail){G=-F.detail/3}if(window.opera){G=-F.wheelDelta}for(var D=0;D<C._mwHandlers.length;D++){if(C._mwHandlers[D]){if(C._mwHandlers[D].call(C,F,G)===false){E=false;F.preventDefault();F.stopPropagation()}}}return E};if(A.browser.mozilla&&!this._mwFixCursorPos){this._mwFixCursorPos=function(D){this._mwCursorPos={pageX:D.pageX,pageY:D.pageY,clientX:D.clientX,clientY:D.clientY}};A(this).bind("mousemove",this._mwFixCursorPos)}if(this.addEventListener){if(A.browser.mozilla){this.addEventListener("DOMMouseScroll",this._mwHandler,false)}else{this.addEventListener("mousewheel",this._mwHandler,false)}}else{this.onmousewheel=this._mwHandler}A.event._mwCache.push(A(this))})},unmousewheel:function(B){return this.each(function(){if(B&&this._mwHandlers){for(var C=0;C<this._mwHandlers.length;C++){if(this._mwHandlers[C]&&this._mwHandlers[C].guid==B.guid){delete this._mwHandlers[C]}}}else{if(A.browser.mozilla&&!this._mwFixCursorPos){A(this).unbind("mousemove",this._mwFixCursorPos)}if(this.addEventListener){if(A.browser.mozilla){this.removeEventListener("DOMMouseScroll",this._mwHandler,false)}else{this.removeEventListener("mousewheel",this._mwHandler,false)}}else{this.onmousewheel=null}this._mwHandlers=this._mwHandler=this._mwFixCursorPos=this._mwCursorPos=null}})}});A(window).one("unload",function(){var C=A.event._mwCache||[];for(var B=0;B<C.length;B++){C[B].unmousewheel()}})})(jQuery);
