var zXml={useActiveX:typeof ActiveXObject!="undefined",useDom:document.implementation&&document.implementation.createDocument,useXmlHttp:typeof XMLHttpRequest!="undefined"};zXml.ARR_XMLHTTP_VERS=["MSXML2.XmlHttp.6.0","MSXML2.XmlHttp.3.0"];zXml.ARR_DOM_VERS=["MSXML2.DOMDocument.6.0","MSXML2.DOMDocument.3.0"];function zXmlHttp(){} zXmlHttp.createRequest=function(){if(zXml.useXmlHttp)return new XMLHttpRequest;else if(zXml.useActiveX){if(!zXml.XMLHTTP_VER)for(var h=0;h<zXml.ARR_XMLHTTP_VERS.length;h++)try{new ActiveXObject(zXml.ARR_XMLHTTP_VERS[h]);zXml.XMLHTTP_VER=zXml.ARR_XMLHTTP_VERS[h];break}catch(p){}if(zXml.XMLHTTP_VER)return new ActiveXObject(zXml.XMLHTTP_VER);else throw Error("Could not create XML HTTP Request.");}else throw Error("Your browser doesn't support an XML HTTP Request.");}; zXmlHttp.isSupported=function(){return zXml.useXmlHttp||zXml.useActiveX};function zXmlDom(){} zXmlDom.createDocument=function(){if(zXml.useDom){var h=document.implementation.createDocument("","",null);h.parseError={valueOf:function(){return this.errorCode},toString:function(){return this.errorCode.toString()}};h.__initError__();h.addEventListener("load",function(){this.__checkForErrors__();this.__changeReadyState__(4)},false);return h}else if(zXml.useActiveX){if(!zXml.DOM_VER)for(h=0;h<zXml.ARR_DOM_VERS.length;h++)try{new ActiveXObject(zXml.ARR_DOM_VERS[h]);zXml.DOM_VER=zXml.ARR_DOM_VERS[h]; break}catch(p){}if(zXml.DOM_VER)return new ActiveXObject(zXml.DOM_VER);else throw Error("Could not create XML DOM document.");}else throw Error("Your browser doesn't support an XML DOM document.");};zXmlDom.isSupported=function(){return zXml.useDom||zXml.useActiveX};var oMozDocument=null;if(typeof XMLDocument!="undefined")oMozDocument=XMLDocument;else if(typeof Document!="undefined")oMozDocument=Document; if(oMozDocument&&!window.opera){oMozDocument.prototype.onreadystatechange=null;oMozDocument.prototype.__changeReadyState__=function(h){this.readyState=h;typeof this.onreadystatechange=="function"&&this.onreadystatechange()};oMozDocument.prototype.__initError__=function(){this.parseError.errorCode=0;this.parseError.filepos=-1;this.parseError.line=-1;this.parseError.linepos=-1;this.parseError.reason=null;this.parseError.srcText=null;this.parseError.url=null};oMozDocument.prototype.__checkForErrors__= function(){if(this.documentElement.tagName=="parsererror"){/>([\s\S]*?)Location:([\s\S]*?)Line Number (\d+), Column (\d+):<sourcetext>([\s\S]*?)(?:\-*\^)/.test(this.xml);this.parseError.errorCode=-999999;this.parseError.reason=RegExp.$1;this.parseError.url=RegExp.$2;this.parseError.line=parseInt(RegExp.$3);this.parseError.linepos=parseInt(RegExp.$4);this.parseError.srcText=RegExp.$5}};oMozDocument.prototype.loadXML=function(h){this.__initError__();this.__changeReadyState__(1);for(h=(new DOMParser).parseFromString(h, "text/xml");this.firstChild;)this.removeChild(this.firstChild);for(var p=0;p<h.childNodes.length;p++)this.appendChild(this.importNode(h.childNodes[p],true));this.__checkForErrors__();this.__changeReadyState__(4)};oMozDocument.prototype.__load__=oMozDocument.prototype.load;oMozDocument.prototype.load=function(h){this.__initError__();this.__changeReadyState__(1);this.__load__(h)};Node.prototype.__defineGetter__("xml",function(){return(new XMLSerializer).serializeToString(this,"text/xml")});Node.prototype.__defineGetter__("text", function(){for(var h="",p=0;p<this.childNodes.length;p++)h+=this.childNodes[p].hasChildNodes()?this.childNodes[p].text:this.childNodes[p].nodeValue;return h})}function zXslt(){} zXslt.transformToText=function(h,p){if(typeof XSLTProcessor!="undefined"){var o=new XSLTProcessor;o.importStylesheet(p);o=o.transformToDocument(h).xml;if(o.indexOf("<transformiix:result")>-1)o=o.substring(o.indexOf(">")+1,o.lastIndexOf("<"));return o}else if(zXml.useActiveX)return h.transformNode(p);else throw Error("No XSLT engine found.");};function zXPath(){} zXPath.selectNodes=function(h,p,o){if(typeof XPathEvaluator!="undefined"){o=o||{};h=(new XPathEvaluator).evaluate(p,h,function(G){return o[G]},XPathResult.ORDERED_NODE_ITERATOR_TYPE,null);p=[];if(h!=null)for(var u=h.iterateNext();u;){p.push(u);u=h.iterateNext()}return p}else if(zXml.useActiveX){if(o){u="";for(var B in o)u+="xmlns:"+B+"='"+o[B]+"' ";h.ownerDocument.setProperty("SelectionNamespaces",u)}return h.selectNodes(p)}else throw Error("No XPath engine found.");}; zXPath.selectSingleNode=function(h,p,o){if(typeof XPathEvaluator!="undefined"){o=o||{};h=(new XPathEvaluator).evaluate(p,h,function(G){return o[G]},XPathResult.FIRST_ORDERED_NODE_TYPE,null);return h!=null?h.singleNodeValue:null}else if(zXml.useActiveX){if(o){var u="",B;for(B in o)u+="xmlns:"+B+"='"+o[B]+"' ";h.ownerDocument.setProperty("SelectionNamespaces",u)}return h.selectSingleNode(p)}else throw Error("No XPath engine found.");};function zXMLSerializer(){} zXMLSerializer.prototype.serializeToString=function(h){var p="";switch(h.nodeType){case 1:p="<"+h.tagName;for(var o=0;o<h.attributes.length;o++)p+=" "+h.attributes[o].name+'="'+h.attributes[o].value+'"';p+=">";for(o=0;o<h.childNodes.length;o++)p+=this.serializeToString(h.childNodes[o]);p+="</"+h.tagName+">";break;case 3:p=h.nodeValue;break;case 4:p="<![CDATA["+h.nodeValue+"]]\>";break;case 7:p="<?"+h.nodevalue+"?>";break;case 8:p="<!--"+h.nodevalue+"--\>";break;case 9:for(o=0;o<h.childNodes.length;o++)p+= this.serializeToString(h.childNodes[o])}return p};var orig_x=240,orig_y=45,origWidth,origHeight;if(document.layers){origWidth=window.innerWidth;origHeight=window.innerHeight;window.onresize=function(){if(window.innerWidth!=origWidth||window.innerHeight!=origHeight)history.go(0)}}var cur_lyr;function swapLayers(h){cur_lyr&&hideLayer(cur_lyr);shiftLayerTo(h,orig_x,orig_y+getScrollY());showLayer(h);cur_lyr=h}function showLayer(h){if((h=getElemRefs(h))&&h.css)h.css.visibility="visible"} function hideLayer(h){if((h=getElemRefs(h))&&h.css)h.css.visibility="hidden"}function shiftLayerTo(h,p,o){var u=document.layers?0:"px";if((h=getElemRefs(h))&&h.css){h.css.top=o+u;h.css.left=p+u}}function getElemRefs(h){if(h=document.getElementById?document.getElementById(h):document.all?document.all[h]:document.layers?document.layers[h]:null)h.css=h.style?h.style:h;return h} function getScrollY(){var h=0;if(document.documentElement&&document.documentElement.scrollTop)h=document.documentElement.scrollTop;else if(document.body&&document.body.scrollTop)h=document.body.scrollTop;else if(window.pageYOffset)h=window.pageYOffset;else if(window.scrollY)h=window.scrollY;return h}function setStatus(){window.status="\u00a9 Villagrande 2010";setTimeout("setStatus()",500)}setStatus(); function BrowserCheck(){isMac=navigator.appVersion.indexOf("Mac")!=-1?true:false;NS4=document.layers?true:false;IEmac=document.all&&isMac?true:false;IE4plus=document.all?true:false;IE4=document.all&&navigator.appVersion.indexOf("MSIE 4.")!=-1?true:false;IE5=document.all&&navigator.appVersion.indexOf("MSIE 5.")!=-1?true:false;IE6=document.all&&navigator.appVersion.indexOf("MSIE 6.")!=-1?true:false;IE7=document.all&&navigator.appVersion.indexOf("MSIE 7.")!=-1?true:false;ver4=NS4||IE4plus?true:false; NS6=!document.layers&&navigator.userAgent.indexOf("Netscape")!=-1?true:false;IE5plus=IE5||IE6||IE7;IEMajor=0;Mozilla=navigator.userAgent.indexOf("Mozilla")!=-1?true:false;if(IE4plus){var h=navigator.appVersion.indexOf("MSIE"),p=navigator.appVersion.indexOf(".",h);IEMajor=parseInt(navigator.appVersion.substring(h+5,p));IE5plus=IEMajor>=5?true:false}if(isMac||IEmac)ret=0;if(NS4||NS6||Mozilla)ret=1;if(IE4||IE5||IE6||IE7||IE4plus||IE5plus)ret=2;return ret}brw=BrowserCheck(); function LTrim(h){if(h.length==0)return h;for(intSpaceFound=h.indexOf(" ");intSpaceFound==0;){h=h.substring(1,h.length);intSpaceFound=h.indexOf(" ")}return h}function RTrim(h){if(h.length==0)return h;for(intSpaceFound=h.lastIndexOf(" ");intSpaceFound>0&&intSpaceFound==h.length-1;){h=h.substring(0,h.length-1);intSpaceFound=h.lastIndexOf(" ")}return h}function Trim(h){h=LTrim(h);return h=RTrim(h)} function OpenWindow(h,p){window.open(h,p,"width=600,height=450,resizable=yes,toolbar=yes, scrollbars=yes")}function OpenSmallWindow(h,p,o,u){Features="toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,width="+p+",height="+o+",resizable=yes";eval(u+'=window.open("'+h+'","'+u+'","'+Features+'");')} function swap(h,p){var o=navigator.appName,u=parseInt(navigator.appVersion),B=o=="Microsoft Internet Explorer"&&u>=4;if(o=="Netscape"&&u>=3||B)document.images[h].src=eval(p+".src")}function MM_swapImgRestore(){var h,p,o=document.MM_sr;for(h=0;o&&h<o.length&&(p=o[h])&&p.oSrc;h++)p.src=p.oSrc} function MM_preloadImages(){var h=document;if(h.images){if(!h.MM_p)h.MM_p=[];var p,o=h.MM_p.length,u=MM_preloadImages.arguments;for(p=0;u.length;p++)if(a[p].indexOf("#")!=0){h.MM_p[o]=new Image;h.MM_p[o++].src=a[p]}}}function preloadImages(){var h=document;if(h.images){if(!h.p)h.p=[];var p,o=h.p.length,u=preloadImages.arguments;for(p=0;p<u.length;p++)if(u[p].indexOf("#")!=0){h.p[o]=new Image;h.p[o++].src=u[p]}}} function MM_findObj(h,p){var o,u;p||(p=document);if((o=h.indexOf("?"))>0&&parent.frames.length){p=parent.frames[h.substring(o+1)].document;h=h.substring(0,o)}if(!(u=p[h])&&p.all)u=p.all[h];for(o=0;!u&&o<p.forms.length;o++)u=p.forms[o][h];for(o=0;!u&&p.layers&&id.layers.length;o++)u=MM_findObj(h,p.layers[o].document);if(!u&&p.getElementById)u=p.getElementById(h);return u} function MM_swapImage(){var h,p=0,o,u=MM_swapImage.arguments;document.MM_sr=[];for(h=0;h<u.length-2;h+=3)if((o=MM_findObj(u[h]))!=null){document.MM_sr[p++]=o;if(!o.oSrc)o.oSrc=o.src;o.src=u[h+2]}}function sluit(){this.window.close()}function GetShortMonthName(h){strDate=h.toString();arrSplitDate=strDate.split(" ");return strMontName=arrSplitDate[1]} function LongYear(h){intLongYear=h;if(h<100)intLongYear=1900+h;dtTest=new Date(2E3,0,1);if(dtTest.getYear()==100)intLongYear=1900+h;return intLongYear}function preloadImages(){var h=document;if(h.images){if(!h.p)h.p=[];var p,o=h.p.length,u=preloadImages.arguments;for(p=0;p<u.length;p++)if(u[p].indexOf("#")!=0){h.p[o]=new Image;h.p[o++].src=u[p]}}}function submitForm(h,p,o,u){document.forms[h].action=p;if(o.length>0)document.forms[h][o].value=u;document.forms[h].submit()} function resetCrit(h){document.forms[h].huisid.value=0;document.forms[h].ps.value=0}function doBack(){document.forms[0].action=document.forms[0].pagfrom.value;document.forms[0].submit()}function andereDatum(){document.forms[0].datum.value=document.FRMalgemeen.datumChange.value;document.forms[0].submit()} function do_copieer(h,p){if(Trim(document.forms[0][h].value)==""){alert("Vul een referentienummer van het te copieren huis in");document.forms[0][h].focus();return false}document.forms[0].action=p;return true}function scrollPagina(h,p){document.forms[0][h].value=p;document.forms[0].submit()}function clearPreloadPage(){if(document.getElementById){document.getElementById("prepage").style.visibility="hidden";document.getElementById("allResult").style.display=""}} function ToonHuis(h,p,o){window.location.href="ToonHuisAlg.php?huisid="+h+"&datum="+p+"&language="+o}function frmReserveer(h,p,o,u,B,G){document.FRMalgemeen.huisid.value=p;document.FRMalgemeen.periodeid.value=o;document.FRMalgemeen.tekstkort.value=u;document.FRMalgemeen.datumRaw.value=B;document.FRMalgemeen.bVoorboeking.value=G;document.FRMalgemeen.action=h+"/MaakReservering.php";document.FRMalgemeen.submit()} function sorteer(h){document.FRMalgemeen.pageID.value=1;document.FRMalgemeen.sortorder.value=h;document.FRMalgemeen.submit()}function emailCheck(h){if(h.value=="")return false;else{var p=h.indexOf("@"),o=h.lastIndexOf("."),u=h.indexOf(" ");h=h.length-1;if(p<1||o<=p+2||o==h||u!=-1)return false}return true}var m=0; function getRequestBody(h){for(var p=[],o=0;o<h.elements.length;o++){m=0;if(h.elements[o].type=="checkbox"){if(h.elements[o].checked)m=1}else if(h.elements[o].type=="radio"){if(h.elements[o].checked)m=1}else if(h.elements[o].type!="checkbox")m=1;if(m==1){var u=encodeURIComponent(h.elements[o].name);u+="=";u+=encodeURIComponent(h.elements[o].value);p.push(u)}}return p.join("&")} function confirmZoek(h,p,o,u,B){document.forms[0].zoek.value=1;document.forms[0].available.value=p;if(o>0){document.forms[0].pzwembad.value=1;document.forms[0].gzwembad.value=1}document.forms[0].landid.value=h;document.forms[0].type.value=u;document.forms[0].action=B;document.forms[0].submit()}function gebiedZoek(h){document.forms[0].zoek.value=1;document.forms[0].gebiedid.value=h;document.forms[0].submit()}function zwembadDeselect(h){document.forms[0][h].checked=0} function Terug(h,p,o){document.FRMalgemeen.huisid.value=p;document.FRMalgemeen.referentie.value=o;document.FRMalgemeen.action=h;document.FRMalgemeen.submit()}function doTel(h,p,o,u){var B=new XMLHttpRequest;B=zXmlHttp.createRequest();B.open("get",h+"/aj_share.php?url="+p+"&link="+o+"&huisid="+u,true);B.send(null)}function goSend(h){document.forms[0].action=h;document.forms[0].submit()}function changeClass(h,p){document.getElementById(h).className=p} function in_array(h,p,o){var u="";if(o)for(u in p){if(p[u]===h)return true}else for(u in p)if(p[u]==h)return true;return false}function kiesperiode(h){if(document.FRMzoeken.datum.value==""){alert(h);document.FRMzoeken.datum.style.backgroundColor="orange";if(brw<2)document.getElementById(document.FRMzoeken.datum).style.backgroundColor="orange";document.FRMzoeken.budget.value=0;return false}else{readMap();return true}}var curLayer="",huidigLand=0,huidigGebied=0; function kiesLand(h,p){document.FRMzoeken.gebiedid.value=0;var o=h.options[h.selectedIndex].value;p&&setLG(o,0,p)} function kiesGebied(h,p){var o,u=0,B=0,G=0,L=0,H=0,A=false,O=1,J=isNaN(parseInt(h*1))?h.options[h.selectedIndex].value:h;document.FRMzoeken.gebiedid.length=1;document.FRMzoeken.gebiedid.options[0].selected=true;if(cod_gebied[J]!="0"&&J!=""){for(;!A;){H=L;G=B;L=cod_gebied[J].indexOf("*",H);B=desc_gebied[J].indexOf("*",G);if(L!=-1){u=H==0?cod_gebied[J].substring(H-1,L):cod_gebied[J].substring(H,L);o=G==0?desc_gebied[J].substring(G-1,B):desc_gebied[J].substring(G,B);o=new Option(o,u);document.FRMzoeken.gebiedid.options[O]= o;if(p==u)document.FRMzoeken.gebiedid.options[O].selected=true;O++;L++;B++}else A=true}u=cod_gebied[J].substring(H);o=desc_gebied[J].substring(G);o=new Option(o,u);document.FRMzoeken.gebiedid.options[O]=o;if(p==u)document.FRMzoeken.gebiedid.options[O].selected=true}}var ol_textcolor="#ffffff",ol_fgcolor="#FF3300";function emptySearchresult(){map.clearOverlays()}zoomgebied=[];zoomgebied[1]=8;zoomgebied[2]=7;zoomgebied[5]=8;zoomgebied[6]=9;zoomland=6; function readMap(){var h=document.forms[0];document.forms[0].zoek.value=1;h.action=path+"/aj_aantal.php";var p=getRequestBody(h),o=zXmlHttp.createRequest();o.open("POST",h.action,true);o.setRequestHeader("Content-type","application/x-www-form-urlencoded");o.setRequestHeader("Content-length",p.length);o.setRequestHeader("Connection","close");o.onreadystatechange=function(){o.readyState==4&&o.status==200&&saveNrFound(o.responseText)};h.action=path+"/vakantiehuizen/";o.send(p)} function saveNrFound(h){document.getElementById("numberfoundtx").innerHTML=h;document.forms[0].aantalA.value=h;hideLayer("wait");showLayer("numberfoundtx")}function doRead(h,p){if(h==1){document.forms[0].zoekref.value=" "+p;document.getElementById("zoekr").style.backgroundColor="#fff";document.getElementById("zoekr").style.color="#504323"}hideLayer("numberfoundtx");showLayer("wait");readMap()}var act="index.php"; function showTab(h){if(h=="all"){document.forms[0].zoek.value=1;hideLayer("tabbestemmingen");hideLayer("tabuitgebreid");showLayer("zoekall");showLayer("numberfoundtx");showLayer("tabhuizen");showLayer('foto');act="index.php"}if(h=="bestemmingen"){hideLayer("verfijnd");hideLayer("tabhuizen");hideLayer("tabuitgebreid");hideLayer("numberfoundtx");hideLayer('foto');showLayer("tabbestemmingen");act="vakantiehuizen/";document.forms[0].action=path+"/vakantiehuizen/"}if(h=="uitgebreid"){document.forms[0].zoek.value= 1;hideLayer("tabhuizen");hideLayer("tabbestemmingen");hideLayer("tabkaart");hideLayer("foto");showLayer("tabuitgebreid");showLayer("numberfoundtx");showLayer("zoekall");showLayer("verfijnd");act=path+"/index.php"}}function ikwilnuweg(h){document.forms[0].action=h;document.forms[0].datum.selectedIndex=1;document.forms[0].available.value=1;document.forms[0].zoekref.value="";document.forms[0].submit()}function doCurrentTab(h,p,o){o>0&&showTab("uitgebreid")} function submitCode(h,p,o,u){document.FRMzoeken.pageID.value=1;document.FRMzoeken.spotlight.value=0;document.FRMzoeken.action=h+"/"+p+"/?zoek="+document.forms[0].zoekref.value;submitZoek(0,h,o,u)} (function(){function h(b,c){c.src?d.ajax({url:c.src,async:false,dataType:"script"}):d.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function p(b,c){return b[0]&&parseInt(d.curCSS(b[0],c,true),10)||0}function o(){return false}function u(){return true}function B(b){var c=RegExp("(^|\\.)"+b.type+"(\\.|$)"),e=true,g=[];d.each(d.data(this,"events").live||[],function(j,k){if(c.test(k.type)){var s=d(b.target).closest(k.data)[0];s&&g.push({elem:s,fn:k})}});g.sort(function(j, k){return d.data(j.elem,"closest")-d.data(k.elem,"closest")});d.each(g,function(){if(this.fn.call(this.elem,b,this.fn.data)===false)return e=false});return e}function G(b,c){return["live",b,c.replace(/\./g,"`").replace(/ /g,"|")].join(".")}function L(){if(!W){W=true;if(document.addEventListener)document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);d.ready()},false);else if(document.attachEvent){document.attachEvent("onreadystatechange", function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);d.ready()}});document.documentElement.doScroll&&A==A.top&&function(){if(!d.isReady){try{document.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}d.ready()}}()}d.event.add(A,"load",d.ready)}}function H(b,c){var e={};d.each(X.concat.apply([],X.slice(0,c)),function(){e[this]=b});return e}var A=this,O=A.jQuery,J=A.$,d=A.jQuery=A.$=function(b,c){return new d.fn.init(b, c)},da=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,ea=/^.[^:#\[\.,]*$/;d.fn=d.prototype={init:function(b,c){b=b||document;if(b.nodeType){this[0]=b;this.length=1;this.context=b;return this}if(typeof b==="string"){var e=da.exec(b);if(e&&(e[1]||!c))if(e[1])b=d.clean([e[1]],c);else{var g=document.getElementById(e[3]);if(g&&g.id!=e[3])return d().find(b);e=d(g||[]);e.context=document;e.selector=b;return e}else return d(c).find(b)}else if(d.isFunction(b))return d(document).ready(b);if(b.selector&&b.context){this.selector= b.selector;this.context=b.context}return this.setArray(d.isArray(b)?b:d.makeArray(b))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(b){return b===void 0?Array.prototype.slice.call(this):this[b]},pushStack:function(b,c,e){b=d(b);b.prevObject=this;b.context=this.context;if(c==="find")b.selector=this.selector+(this.selector?" ":"")+e;else if(c)b.selector=this.selector+"."+c+"("+e+")";return b},setArray:function(b){this.length=0;Array.prototype.push.apply(this,b);return this}, each:function(b,c){return d.each(this,b,c)},index:function(b){return d.inArray(b&&b.jquery?b[0]:b,this)},attr:function(b,c,e){var g=b;if(typeof b==="string")if(c===void 0)return this[0]&&d[e||"attr"](this[0],b);else{g={};g[b]=c}return this.each(function(j){for(b in g)d.attr(e?this.style:this,b,d.prop(this,g[b],e,j,b))})},css:function(b,c){if((b=="width"||b=="height")&&parseFloat(c)<0)c=void 0;return this.attr(b,c,"curCSS")},text:function(b){if(typeof b!=="object"&&b!=null)return this.empty().append((this[0]&& this[0].ownerDocument||document).createTextNode(b));var c="";d.each(b||this,function(){d.each(this.childNodes,function(){if(this.nodeType!=8)c+=this.nodeType!=1?this.nodeValue:d.fn.text([this])})});return c},wrapAll:function(b){if(this[0]){b=d(b,this[0].ownerDocument).clone();this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var c=this;c.firstChild;)c=c.firstChild;return c}).append(this)}return this},wrapInner:function(b){return this.each(function(){d(this).contents().wrapAll(b)})}, wrap:function(b){return this.each(function(){d(this).wrapAll(b)})},append:function(){return this.domManip(arguments,true,function(b){this.nodeType==1&&this.appendChild(b)})},prepend:function(){return this.domManip(arguments,true,function(b){this.nodeType==1&&this.insertBefore(b,this.firstChild)})},before:function(){return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)})},after:function(){return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b, this.nextSibling)})},end:function(){return this.prevObject||d([])},push:[].push,sort:[].sort,splice:[].splice,find:function(b){if(this.length===1){var c=this.pushStack([],"find",b);c.length=0;d.find(b,this[0],c);return c}else return this.pushStack(d.unique(d.map(this,function(e){return d.find(b,e)})),"find",b)},clone:function(b){var c=this.map(function(){if(!d.support.noCloneEvent&&!d.isXMLDoc(this)){var j=this.outerHTML;if(!j){j=this.ownerDocument.createElement("div");j.appendChild(this.cloneNode(true)); j=j.innerHTML}return d.clean([j.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else return this.cloneNode(true)});if(b===true){var e=this.find("*").andSelf(),g=0;c.find("*").andSelf().each(function(){if(this.nodeName===e[g].nodeName){var j=d.data(e[g],"events"),k;for(k in j)for(var s in j[k])d.event.add(this,k,j[k][s],j[k][s].data);g++}})}return c},filter:function(b){return this.pushStack(d.isFunction(b)&&d.grep(this,function(c,e){return b.call(c,e)})||d.multiFilter(b,d.grep(this, function(c){return c.nodeType===1})),"filter",b)},closest:function(b){var c=d.expr.match.POS.test(b)?d(b):null,e=0;return this.map(function(){for(var g=this;g&&g.ownerDocument;){if(c?c.index(g)>-1:d(g).is(b)){d.data(g,"closest",e);return g}g=g.parentNode;e++}})},not:function(b){if(typeof b==="string")if(ea.test(b))return this.pushStack(d.multiFilter(b,this,true),"not",b);else b=d.multiFilter(b,this);var c=b.length&&b[b.length-1]!==void 0&&!b.nodeType;return this.filter(function(){return c?d.inArray(this, b)<0:this!=b})},add:function(b){return this.pushStack(d.unique(d.merge(this.get(),typeof b==="string"?d(b):d.makeArray(b))))},is:function(b){return!!b&&d.multiFilter(b,this).length>0},hasClass:function(b){return!!b&&this.is("."+b)},val:function(b){if(b===void 0){var c=this[0];if(c){if(d.nodeName(c,"option"))return(c.attributes.value||{}).specified?c.value:c.text;if(d.nodeName(c,"select")){var e=c.selectedIndex,g=[],j=c.options;c=c.type=="select-one";if(e<0)return null;var k=c?e:0;for(e=c?e+1:j.length;k< e;k++){var s=j[k];if(s.selected){b=d(s).val();if(c)return b;g.push(b)}}return g}return(c.value||"").replace(/\r/g,"")}}else{if(typeof b==="number")b+="";return this.each(function(){if(this.nodeType==1)if(d.isArray(b)&&/radio|checkbox/.test(this.type))this.checked=d.inArray(this.value,b)>=0||d.inArray(this.name,b)>=0;else if(d.nodeName(this,"select")){var t=d.makeArray(b);d("option",this).each(function(){this.selected=d.inArray(this.value,t)>=0||d.inArray(this.text,t)>=0});if(!t.length)this.selectedIndex= -1}else this.value=b})}},html:function(b){return b===void 0?this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null:this.empty().append(b)},replaceWith:function(b){return this.after(b).remove()},eq:function(b){return this.slice(b,+b+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(b){return this.pushStack(d.map(this,function(c,e){return b.call(c,e,c)}))},andSelf:function(){return this.add(this.prevObject)}, domManip:function(b,c,e){if(this[0]){var g=(this[0].ownerDocument||this[0]).createDocumentFragment();b=d.clean(b,this[0].ownerDocument||this[0],g);var j=g.firstChild;if(j)for(var k=0,s=this.length;k<s;k++)e.call(c&&d.nodeName(this[k],"table")&&d.nodeName(j,"tr")?this[k].getElementsByTagName("tbody")[0]||this[k].appendChild(this[k].ownerDocument.createElement("tbody")):this[k],this.length>1||k>0?g.cloneNode(true):g);b&&d.each(b,h)}return this}};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var b= arguments[0]||{},c=1,e=arguments.length,g=false,j;if(typeof b==="boolean"){g=b;b=arguments[1]||{};c=2}if(typeof b!=="object"&&!d.isFunction(b))b={};if(e==c){b=this;--c}for(;c<e;c++)if((j=arguments[c])!=null)for(var k in j){var s=b[k],t=j[k];if(b!==t)if(g&&t&&typeof t==="object"&&!t.nodeType)b[k]=d.extend(g,s||(t.length!=null?[]:{}),t);else if(t!==void 0)b[k]=t}return b};var fa=/z-?index|font-?weight|opacity|zoom|line-?height/i,Y=document.defaultView||{},Z=Object.prototype.toString;d.extend({noConflict:function(b){A.$= J;if(b)A.jQuery=O;return d},isFunction:function(b){return Z.call(b)==="[object Function]"},isArray:function(b){return Z.call(b)==="[object Array]"},isXMLDoc:function(b){return b.nodeType===9&&b.documentElement.nodeName!=="HTML"||!!b.ownerDocument&&d.isXMLDoc(b.ownerDocument)},globalEval:function(b){if(b&&/\S/.test(b)){var c=document.getElementsByTagName("head")[0]||document.documentElement,e=document.createElement("script");e.type="text/javascript";if(d.support.scriptEval)e.appendChild(document.createTextNode(b)); else e.text=b;c.insertBefore(e,c.firstChild);c.removeChild(e)}},nodeName:function(b,c){return b.nodeName&&b.nodeName.toUpperCase()==c.toUpperCase()},each:function(b,c,e){var g,j=0,k=b.length;if(e)if(k===void 0)for(g in b){if(c.apply(b[g],e)===false)break}else for(;j<k;){if(c.apply(b[j++],e)===false)break}else if(k===void 0)for(g in b){if(c.call(b[g],g,b[g])===false)break}else for(e=b[0];j<k&&c.call(e,j,e)!==false;e=b[++j]);return b},prop:function(b,c,e,g,j){if(d.isFunction(c))c=c.call(b,g);return typeof c=== "number"&&e=="curCSS"&&!fa.test(j)?c+"px":c},className:{add:function(b,c){d.each((c||"").split(/\s+/),function(e,g){if(b.nodeType==1&&!d.className.has(b.className,g))b.className+=(b.className?" ":"")+g})},remove:function(b,c){if(b.nodeType==1)b.className=c!==void 0?d.grep(b.className.split(/\s+/),function(e){return!d.className.has(c,e)}).join(" "):""},has:function(b,c){return b&&d.inArray(c,(b.className||b).toString().split(/\s+/))>-1}},swap:function(b,c,e){var g={},j;for(j in c){g[j]=b.style[j]; b.style[j]=c[j]}e.call(b);for(j in c)b.style[j]=g[j]},css:function(b,c,e,g){if(c=="width"||c=="height"){var j;e={position:"absolute",visibility:"hidden",display:"block"};var k=c=="width"?["Left","Right"]:["Top","Bottom"],s=function(){j=c=="width"?b.offsetWidth:b.offsetHeight;g!=="border"&&d.each(k,function(){g||(j-=parseFloat(d.curCSS(b,"padding"+this,true))||0);if(g==="margin")j+=parseFloat(d.curCSS(b,"margin"+this,true))||0;else j-=parseFloat(d.curCSS(b,"border"+this+"Width",true))||0})};b.offsetWidth!== 0?s():d.swap(b,e,s);return Math.max(0,Math.round(j))}return d.curCSS(b,c,e)},curCSS:function(b,c,e){var g,j=b.style;if(c=="opacity"&&!d.support.opacity){g=d.attr(j,"opacity");return g==""?"1":g}if(c.match(/float/i))c=R;if(!e&&j&&j[c])g=j[c];else if(Y.getComputedStyle){if(c.match(/float/i))c="float";c=c.replace(/([A-Z])/g,"-$1").toLowerCase();if(b=Y.getComputedStyle(b,null))g=b.getPropertyValue(c);if(c=="opacity"&&g=="")g="1"}else if(b.currentStyle){g=c.replace(/\-(\w)/g,function(k,s){return s.toUpperCase()}); g=b.currentStyle[c]||b.currentStyle[g];if(!/^\d+(px)?$/i.test(g)&&/^\d/.test(g)){c=j.left;e=b.runtimeStyle.left;b.runtimeStyle.left=b.currentStyle.left;j.left=g||0;g=j.pixelLeft+"px";j.left=c;b.runtimeStyle.left=e}}return g},clean:function(b,c,e){c=c||document;if(typeof c.createElement==="undefined")c=c.ownerDocument||c[0]&&c[0].ownerDocument||document;if(!e&&b.length===1&&typeof b[0]==="string"){var g=/^<(\w+)\s*\/?>$/.exec(b[0]);if(g)return[c.createElement(g[1])]}var j=[];g=[];var k=c.createElement("div"); d.each(b,function(s,t){if(typeof t==="number")t+="";if(t){if(typeof t==="string"){t=t.replace(/(<(\w+)[^>]*?)\/>/g,function(E,I,x){return x.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?E:I+"></"+x+">"});var y=t.replace(/^\s+/,"").substring(0,10).toLowerCase(),z=!y.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!y.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||y.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!y.indexOf("<tr")&&[2,"<table><tbody>", "</tbody></table>"]||(!y.indexOf("<td")||!y.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!y.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!d.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];for(k.innerHTML=z[1]+t+z[2];z[0]--;)k=k.lastChild;if(!d.support.tbody){var C=/<tbody/i.test(t);y=!y.indexOf("<table")&&!C?k.firstChild&&k.firstChild.childNodes:z[1]=="<table>"&&!C?k.childNodes:[];for(z=y.length-1;z>=0;--z)d.nodeName(y[z],"tbody")&& !y[z].childNodes.length&&y[z].parentNode.removeChild(y[z])}!d.support.leadingWhitespace&&/^\s/.test(t)&&k.insertBefore(c.createTextNode(t.match(/^\s*/)[0]),k.firstChild);t=d.makeArray(k.childNodes)}if(t.nodeType)j.push(t);else j=d.merge(j,t)}});if(e){for(b=0;j[b];b++)if(d.nodeName(j[b],"script")&&(!j[b].type||j[b].type.toLowerCase()==="text/javascript"))g.push(j[b].parentNode?j[b].parentNode.removeChild(j[b]):j[b]);else{j[b].nodeType===1&&j.splice.apply(j,[b+1,0].concat(d.makeArray(j[b].getElementsByTagName("script")))); e.appendChild(j[b])}return g}return j},attr:function(b,c,e){if(!(!b||b.nodeType==3||b.nodeType==8)){var g=!d.isXMLDoc(b),j=e!==void 0;c=g&&d.props[c]||c;if(b.tagName){var k=/href|src|style/.test(c);if(c in b&&g&&!k){if(j){if(c=="type"&&d.nodeName(b,"input")&&b.parentNode)throw"type property can't be changed";b[c]=e}if(d.nodeName(b,"form")&&b.getAttributeNode(c))return b.getAttributeNode(c).nodeValue;if(c=="tabIndex")return(c=b.getAttributeNode("tabIndex"))&&c.specified?c.value:b.nodeName.match(/(button|input|object|select|textarea)/i)? 0:b.nodeName.match(/^(a|area)$/i)&&b.href?0:void 0;return b[c]}if(!d.support.style&&g&&c=="style")return d.attr(b.style,"cssText",e);j&&b.setAttribute(c,""+e);b=!d.support.hrefNormalized&&g&&k?b.getAttribute(c,2):b.getAttribute(c);return b===null?void 0:b}if(!d.support.opacity&&c=="opacity"){if(j){b.zoom=1;b.filter=(b.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(e)+""=="NaN"?"":"alpha(opacity="+e*100+")")}return b.filter&&b.filter.indexOf("opacity=")>=0?parseFloat(b.filter.match(/opacity=([^)]*)/)[1])/ 100+"":""}c=c.replace(/-([a-z])/ig,function(s,t){return t.toUpperCase()});if(j)b[c]=e;return b[c]}},trim:function(b){return(b||"").replace(/^\s+|\s+$/g,"")},makeArray:function(b){var c=[];if(b!=null){var e=b.length;if(e==null||typeof b==="string"||d.isFunction(b)||b.setInterval)c[0]=b;else for(;e;)c[--e]=b[e]}return c},inArray:function(b,c){for(var e=0,g=c.length;e<g;e++)if(c[e]===b)return e;return-1},merge:function(b,c){var e=0,g,j=b.length;if(d.support.getAll)for(;(g=c[e++])!=null;)b[j++]=g;else for(;(g= c[e++])!=null;)if(g.nodeType!=8)b[j++]=g;return b},unique:function(b){var c=[],e={};try{for(var g=0,j=b.length;g<j;g++){var k=d.data(b[g]);if(!e[k]){e[k]=true;c.push(b[g])}}}catch(s){c=b}return c},grep:function(b,c,e){for(var g=[],j=0,k=b.length;j<k;j++)!e!=!c(b[j],j)&&g.push(b[j]);return g},map:function(b,c){for(var e=[],g=0,j=b.length;g<j;g++){var k=c(b[g],g);if(k!=null)e[e.length]=k}return e.concat.apply([],e)}});var P=navigator.userAgent.toLowerCase();d.browser={version:(P.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)|| [0,"0"])[1],safari:/webkit/.test(P),opera:/opera/.test(P),msie:/msie/.test(P)&&!/opera/.test(P),mozilla:/mozilla/.test(P)&&!/(compatible|webkit)/.test(P)};d.each({parent:function(b){return b.parentNode},parents:function(b){return d.dir(b,"parentNode")},next:function(b){return d.nth(b,2,"nextSibling")},prev:function(b){return d.nth(b,2,"previousSibling")},nextAll:function(b){return d.dir(b,"nextSibling")},prevAll:function(b){return d.dir(b,"previousSibling")},siblings:function(b){return d.sibling(b.parentNode.firstChild, b)},children:function(b){return d.sibling(b.firstChild)},contents:function(b){return d.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:d.makeArray(b.childNodes)}},function(b,c){d.fn[b]=function(e){var g=d.map(this,c);if(e&&typeof e=="string")g=d.multiFilter(e,g);return this.pushStack(d.unique(g),b,e)}});d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,c){d.fn[b]=function(e){for(var g=[],j=d(e),k=0,s=j.length;k< s;k++){var t=(k>0?this.clone(true):this).get();d.fn[c].apply(d(j[k]),t);g=g.concat(t)}return this.pushStack(g,b,e)}});d.each({removeAttr:function(b){d.attr(this,b,"");this.nodeType==1&&this.removeAttribute(b)},addClass:function(b){d.className.add(this,b)},removeClass:function(b){d.className.remove(this,b)},toggleClass:function(b,c){if(typeof c!=="boolean")c=!d.className.has(this,b);d.className[c?"add":"remove"](this,b)},remove:function(b){if(!b||d.filter(b,[this]).length){d("*",this).add([this]).each(function(){d.event.remove(this); d.removeData(this)});this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(d(this).children().remove();this.firstChild;)this.removeChild(this.firstChild)}},function(b,c){d.fn[b]=function(){return this.each(c,arguments)}});var N="jQuery"+ +new Date,ga=0,aa={};d.extend({cache:{},data:function(b,c,e){b=b==A?aa:b;var g=b[N];g||(g=b[N]=++ga);if(c&&!d.cache[g])d.cache[g]={};if(e!==void 0)d.cache[g][c]=e;return c?d.cache[g][c]:g},removeData:function(b,c){b=b==A?aa:b;var e=b[N];if(c){if(d.cache[e]){delete d.cache[e][c]; c="";for(c in d.cache[e])break;c||d.removeData(b)}}else{try{delete b[N]}catch(g){b.removeAttribute&&b.removeAttribute(N)}delete d.cache[e]}},queue:function(b,c,e){if(b){c=(c||"fx")+"queue";var g=d.data(b,c);if(!g||d.isArray(e))g=d.data(b,c,d.makeArray(e));else e&&g.push(e)}return g},dequeue:function(b,c){var e=d.queue(b,c),g=e.shift();if(!c||c==="fx")g=e[0];g!==void 0&&g.call(b)}});d.fn.extend({data:function(b,c){var e=b.split(".");e[1]=e[1]?"."+e[1]:"";if(c===void 0){var g=this.triggerHandler("getData"+ e[1]+"!",[e[0]]);if(g===void 0&&this.length)g=d.data(this[0],b);return g===void 0&&e[1]?this.data(e[0]):g}else return this.trigger("setData"+e[1]+"!",[e[0],c]).each(function(){d.data(this,b,c)})},removeData:function(b){return this.each(function(){d.removeData(this,b)})},queue:function(b,c){if(typeof b!=="string"){c=b;b="fx"}if(c===void 0)return d.queue(this[0],b);return this.each(function(){var e=d.queue(this,b,c);b=="fx"&&e.length==1&&e[0].call(this)})},dequeue:function(b){return this.each(function(){d.dequeue(this, b)})}});(function(){function b(f,i,l,n,q,r){q=f=="previousSibling"&&!r;for(var v=0,D=n.length;v<D;v++){var w=n[v];if(w){if(q&&w.nodeType===1){w.sizcache=l;w.sizset=v}w=w[f];for(var F=false;w;){if(w.sizcache===l){F=n[w.sizset];break}if(w.nodeType===1&&!r){w.sizcache=l;w.sizset=v}if(w.nodeName===i){F=w;break}w=w[f]}n[v]=F}}}function c(f,i,l,n,q,r){q=f=="previousSibling"&&!r;for(var v=0,D=n.length;v<D;v++){var w=n[v];if(w){if(q&&w.nodeType===1){w.sizcache=l;w.sizset=v}w=w[f];for(var F=false;w;){if(w.sizcache=== l){F=n[w.sizset];break}if(w.nodeType===1){if(!r){w.sizcache=l;w.sizset=v}if(typeof i!=="string"){if(w===i){F=true;break}}else if(k.filter(i,[w]).length>0){F=w;break}}w=w[f]}n[v]=F}}}var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,g=0,j=Object.prototype.toString,k=function(f,i,l,n){l=l||[];i=i||document;if(i.nodeType!==1&&i.nodeType!==9)return[];if(!f||typeof f!=="string")return l;var q=[],r,v,D,w=true;for(e.lastIndex=0;(r= e.exec(f))!==null;){q.push(r[1]);if(r[2]){D=RegExp.rightContext;break}}if(q.length>1&&t.exec(f))if(q.length===2&&s.relative[q[0]])r=M(q[0]+q[1],i);else for(r=s.relative[q[0]]?[i]:k(q.shift(),i);q.length;){f=q.shift();if(s.relative[f])f+=q.shift();r=M(f,r)}else{r=n?{expr:q.pop(),set:z(n)}:k.find(q.pop(),q.length===1&&i.parentNode?i.parentNode:i,x(i));r=k.filter(r.expr,r.set);if(q.length>0)v=z(r);else w=false;for(;q.length;){var F=q.pop(),K=F;if(s.relative[F])K=q.pop();else F="";if(K==null)K=i;s.relative[F](v, K,x(i))}}v||(v=r);if(!v)throw"Syntax error, unrecognized expression: "+(F||f);if(j.call(v)==="[object Array]")if(w)if(i.nodeType===1)for(f=0;v[f]!=null;f++){if(v[f]&&(v[f]===true||v[f].nodeType===1&&I(i,v[f])))l.push(r[f])}else for(f=0;v[f]!=null;f++)v[f]&&v[f].nodeType===1&&l.push(r[f]);else l.push.apply(l,v);else z(v,l);if(D){k(D,i,l,n);if(E){hasDuplicate=false;l.sort(E);if(hasDuplicate)for(f=1;f<l.length;f++)l[f]===l[f-1]&&l.splice(f--,1)}}return l};k.matches=function(f,i){return k(f,null,null, i)};k.find=function(f,i,l){var n,q;if(!f)return[];for(var r=0,v=s.order.length;r<v;r++){var D=s.order[r];if(q=s.match[D].exec(f)){var w=RegExp.leftContext;if(w.substr(w.length-1)!=="\\"){q[1]=(q[1]||"").replace(/\\/g,"");n=s.find[D](q,i,l);if(n!=null){f=f.replace(s.match[D],"");break}}}}n||(n=i.getElementsByTagName("*"));return{set:n,expr:f}};k.filter=function(f,i,l,n){for(var q=f,r=[],v=i,D,w,F=i&&i[0]&&x(i[0]);f&&i.length;){for(var K in s.filter)if((D=s.match[K].exec(f))!=null){var ha=s.filter[K], Q,S;w=false;if(v==r)r=[];if(s.preFilter[K])if(D=s.preFilter[K](D,v,l,r,n,F)){if(D===true)continue}else w=Q=true;if(D)for(var T=0;(S=v[T])!=null;T++)if(S){Q=ha(S,D,T,v);var ba=n^!!Q;if(l&&Q!=null)if(ba)w=true;else v[T]=false;else if(ba){r.push(S);w=true}}if(Q!==void 0){l||(v=r);f=f.replace(s.match[K],"");if(!w)return[];break}}if(f==q)if(w==null)throw"Syntax error, unrecognized expression: "+f;else break;q=f}return v};var s=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/, CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(f){return f.getAttribute("href")}}, relative:{"+":function(f,i,l){var n=typeof i==="string",q=n&&!/\W/.test(i);n=n&&!q;if(q&&!l)i=i.toUpperCase();l=0;q=f.length;for(var r;l<q;l++)if(r=f[l]){for(;(r=r.previousSibling)&&r.nodeType!==1;);f[l]=n||r&&r.nodeName===i?r||false:r===i}n&&k.filter(i,f,true)},">":function(f,i,l){var n=typeof i==="string";if(n&&!/\W/.test(i)){i=l?i:i.toUpperCase();l=0;for(var q=f.length;l<q;l++){var r=f[l];if(r){n=r.parentNode;f[l]=n.nodeName===i?n:false}}}else{l=0;for(q=f.length;l<q;l++)if(r=f[l])f[l]=n?r.parentNode: r.parentNode===i;n&&k.filter(i,f,true)}},"":function(f,i,l){var n=g++,q=c;if(!i.match(/\W/)){var r=i=l?i:i.toUpperCase();q=b}q("parentNode",i,n,f,r,l)},"~":function(f,i,l){var n=g++,q=c;if(typeof i==="string"&&!i.match(/\W/)){var r=i=l?i:i.toUpperCase();q=b}q("previousSibling",i,n,f,r,l)}},find:{ID:function(f,i,l){if(typeof i.getElementById!=="undefined"&&!l)return(f=i.getElementById(f[1]))?[f]:[]},NAME:function(f,i){if(typeof i.getElementsByName!=="undefined"){for(var l=[],n=i.getElementsByName(f[1]), q=0,r=n.length;q<r;q++)n[q].getAttribute("name")===f[1]&&l.push(n[q]);return l.length===0?null:l}},TAG:function(f,i){return i.getElementsByTagName(f[1])}},preFilter:{CLASS:function(f,i,l,n,q,r){f=" "+f[1].replace(/\\/g,"")+" ";if(r)return f;r=0;for(var v;(v=i[r])!=null;r++)if(v)if(q^(v.className&&(" "+v.className+" ").indexOf(f)>=0))l||n.push(v);else if(l)i[r]=false;return false},ID:function(f){return f[1].replace(/\\/g,"")},TAG:function(f,i){for(var l=0;i[l]===false;l++);return i[l]&&x(i[l])?f[1]: f[1].toUpperCase()},CHILD:function(f){if(f[1]=="nth"){var i=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(f[2]=="even"&&"2n"||f[2]=="odd"&&"2n+1"||!/\D/.test(f[2])&&"0n+"+f[2]||f[2]);f[2]=i[1]+(i[2]||1)-0;f[3]=i[3]-0}f[0]=g++;return f},ATTR:function(f,i,l,n,q,r){i=f[1].replace(/\\/g,"");if(!r&&s.attrMap[i])f[1]=s.attrMap[i];if(f[2]==="~=")f[4]=" "+f[4]+" ";return f},PSEUDO:function(f,i,l,n,q){if(f[1]==="not")if(f[3].match(e).length>1||/^\w/.test(f[3]))f[3]=k(f[3],null,null,i);else{f=k.filter(f[3],i,l,true^q);l|| n.push.apply(n,f);return false}else if(s.match.POS.test(f[0])||s.match.CHILD.test(f[0]))return true;return f},POS:function(f){f.unshift(true);return f}},filters:{enabled:function(f){return f.disabled===false&&f.type!=="hidden"},disabled:function(f){return f.disabled===true},checked:function(f){return f.checked===true},selected:function(f){return f.selected===true},parent:function(f){return!!f.firstChild},empty:function(f){return!f.firstChild},has:function(f,i,l){return!!k(l[3],f).length},header:function(f){return/h\d/i.test(f.nodeName)}, text:function(f){return"text"===f.type},radio:function(f){return"radio"===f.type},checkbox:function(f){return"checkbox"===f.type},file:function(f){return"file"===f.type},password:function(f){return"password"===f.type},submit:function(f){return"submit"===f.type},image:function(f){return"image"===f.type},reset:function(f){return"reset"===f.type},button:function(f){return"button"===f.type||f.nodeName.toUpperCase()==="BUTTON"},input:function(f){return/input|select|textarea|button/i.test(f.nodeName)}}, setFilters:{first:function(f,i){return i===0},last:function(f,i,l,n){return i===n.length-1},even:function(f,i){return i%2===0},odd:function(f,i){return i%2===1},lt:function(f,i,l){return i<l[3]-0},gt:function(f,i,l){return i>l[3]-0},nth:function(f,i,l){return l[3]-0==i},eq:function(f,i,l){return l[3]-0==i}},filter:{PSEUDO:function(f,i,l,n){var q=i[1],r=s.filters[q];if(r)return r(f,l,i,n);else if(q==="contains")return(f.textContent||f.innerText||"").indexOf(i[3])>=0;else if(q==="not"){i=i[3];l=0;for(n= i.length;l<n;l++)if(i[l]===f)return false;return true}},CHILD:function(f,i){var l=i[1],n=f;switch(l){case "only":case "first":for(;n=n.previousSibling;)if(n.nodeType===1)return false;if(l=="first")return true;n=f;case "last":for(;n=n.nextSibling;)if(n.nodeType===1)return false;return true;case "nth":l=i[2];var q=i[3];if(l==1&&q==0)return true;var r=i[0],v=f.parentNode;if(v&&(v.sizcache!==r||!f.nodeIndex)){var D=0;for(n=v.firstChild;n;n=n.nextSibling)if(n.nodeType===1)n.nodeIndex=++D;v.sizcache=r}n= f.nodeIndex-q;return l==0?n==0:n%l==0&&n/l>=0}},ID:function(f,i){return f.nodeType===1&&f.getAttribute("id")===i},TAG:function(f,i){return i==="*"&&f.nodeType===1||f.nodeName===i},CLASS:function(f,i){return(" "+(f.className||f.getAttribute("class"))+" ").indexOf(i)>-1},ATTR:function(f,i){var l=i[1];l=s.attrHandle[l]?s.attrHandle[l](f):f[l]!=null?f[l]:f.getAttribute(l);var n=l+"",q=i[2],r=i[4];return l==null?q==="!=":q==="="?n===r:q==="*="?n.indexOf(r)>=0:q==="~="?(" "+n+" ").indexOf(r)>=0:!r?n&&l!== false:q==="!="?n!=r:q==="^="?n.indexOf(r)===0:q==="$="?n.substr(n.length-r.length)===r:q==="|="?n===r||n.substr(0,r.length+1)===r+"-":false},POS:function(f,i,l,n){var q=s.setFilters[i[2]];if(q)return q(f,l,i,n)}}},t=s.match.POS,y;for(y in s.match)s.match[y]=RegExp(s.match[y].source+/(?![^\[]*\])(?![^\(]*\))/.source);var z=function(f,i){f=Array.prototype.slice.call(f);if(i){i.push.apply(i,f);return i}return f};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(C){z=function(f, i){var l=i||[];if(j.call(f)==="[object Array]")Array.prototype.push.apply(l,f);else if(typeof f.length==="number")for(var n=0,q=f.length;n<q;n++)l.push(f[n]);else for(n=0;f[n];n++)l.push(f[n]);return l}}var E;if(document.documentElement.compareDocumentPosition)E=function(f,i){var l=f.compareDocumentPosition(i)&4?-1:f===i?0:1;if(l===0)hasDuplicate=true;return l};else if("sourceIndex"in document.documentElement)E=function(f,i){var l=f.sourceIndex-i.sourceIndex;if(l===0)hasDuplicate=true;return l};else if(document.createRange)E= function(f,i){var l=f.ownerDocument.createRange(),n=i.ownerDocument.createRange();l.selectNode(f);l.collapse(true);n.selectNode(i);n.collapse(true);l=l.compareBoundaryPoints(Range.START_TO_END,n);if(l===0)hasDuplicate=true;return l};(function(){var f=document.createElement("form"),i="script"+(new Date).getTime();f.innerHTML="<input name='"+i+"'/>";var l=document.documentElement;l.insertBefore(f,l.firstChild);if(document.getElementById(i)){s.find.ID=function(n,q,r){if(typeof q.getElementById!=="undefined"&& !r)return(q=q.getElementById(n[1]))?q.id===n[1]||typeof q.getAttributeNode!=="undefined"&&q.getAttributeNode("id").nodeValue===n[1]?[q]:void 0:[]};s.filter.ID=function(n,q){var r=typeof n.getAttributeNode!=="undefined"&&n.getAttributeNode("id");return n.nodeType===1&&r&&r.nodeValue===q}}l.removeChild(f)})();(function(){var f=document.createElement("div");f.appendChild(document.createComment(""));if(f.getElementsByTagName("*").length>0)s.find.TAG=function(i,l){var n=l.getElementsByTagName(i[1]);if(i[1]=== "*"){for(var q=[],r=0;n[r];r++)n[r].nodeType===1&&q.push(n[r]);n=q}return n};f.innerHTML="<a href='#'></a>";if(f.firstChild&&typeof f.firstChild.getAttribute!=="undefined"&&f.firstChild.getAttribute("href")!=="#")s.attrHandle.href=function(i){return i.getAttribute("href",2)}})();document.querySelectorAll&&function(){var f=k,i=document.createElement("div");i.innerHTML="<p class='TEST'></p>";if(!(i.querySelectorAll&&i.querySelectorAll(".TEST").length===0)){k=function(l,n,q,r){n=n||document;if(!r&&n.nodeType=== 9&&!x(n))try{return z(n.querySelectorAll(l),q)}catch(v){}return f(l,n,q,r)};k.find=f.find;k.filter=f.filter;k.selectors=f.selectors;k.matches=f.matches}}();document.getElementsByClassName&&document.documentElement.getElementsByClassName&&function(){var f=document.createElement("div");f.innerHTML="<div class='test e'></div><div class='test'></div>";if(f.getElementsByClassName("e").length!==0){f.lastChild.className="e";if(f.getElementsByClassName("e").length!==1){s.order.splice(1,0,"CLASS");s.find.CLASS= function(i,l,n){if(typeof l.getElementsByClassName!=="undefined"&&!n)return l.getElementsByClassName(i[1])}}}}();var I=document.compareDocumentPosition?function(f,i){return f.compareDocumentPosition(i)&16}:function(f,i){return f!==i&&(f.contains?f.contains(i):true)},x=function(f){return f.nodeType===9&&f.documentElement.nodeName!=="HTML"||!!f.ownerDocument&&x(f.ownerDocument)},M=function(f,i){for(var l=[],n="",q,r=i.nodeType?[i]:i;q=s.match.PSEUDO.exec(f);){n+=q[0];f=f.replace(s.match.PSEUDO,"")}f= s.relative[f]?f+"*":f;q=0;for(var v=r.length;q<v;q++)k(f,r[q],l);return k.filter(n,l)};d.find=k;d.filter=k.filter;d.expr=k.selectors;d.expr[":"]=d.expr.filters;k.selectors.filters.hidden=function(f){return f.offsetWidth===0||f.offsetHeight===0};k.selectors.filters.visible=function(f){return f.offsetWidth>0||f.offsetHeight>0};k.selectors.filters.animated=function(f){return d.grep(d.timers,function(i){return f===i.elem}).length};d.multiFilter=function(f,i,l){if(l)f=":not("+f+")";return k.matches(f, i)};d.dir=function(f,i){for(var l=[],n=f[i];n&&n!=document;){n.nodeType==1&&l.push(n);n=n[i]}return l};d.nth=function(f,i,l){i=i||1;for(var n=0;f;f=f[l])if(f.nodeType==1&&++n==i)break;return f};d.sibling=function(f,i){for(var l=[];f;f=f.nextSibling)f.nodeType==1&&f!=i&&l.push(f);return l}})();d.event={add:function(b,c,e,g){if(!(b.nodeType==3||b.nodeType==8)){if(b.setInterval&&b!=A)b=A;if(!e.guid)e.guid=this.guid++;if(g!==void 0){e=this.proxy(e);e.data=g}var j=d.data(b,"events")||d.data(b,"events", {}),k=d.data(b,"handle")||d.data(b,"handle",function(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(arguments.callee.elem,arguments):void 0});k.elem=b;d.each(c.split(/\s+/),function(s,t){var y=t.split(".");t=y.shift();e.type=y.slice().sort().join(".");var z=j[t];d.event.specialAll[t]&&d.event.specialAll[t].setup.call(b,g,y);if(!z){z=j[t]={};if(!d.event.special[t]||d.event.special[t].setup.call(b,g,y)===false)if(b.addEventListener)b.addEventListener(t,k,false);else b.attachEvent&& b.attachEvent("on"+t,k)}z[e.guid]=e;d.event.global[t]=true});b=null}},guid:1,global:{},remove:function(b,c,e){if(!(b.nodeType==3||b.nodeType==8)){var g=d.data(b,"events"),j;if(g){if(c===void 0||typeof c==="string"&&c.charAt(0)==".")for(var k in g)this.remove(b,k+(c||""));else{if(c.type){e=c.handler;c=c.type}d.each(c.split(/\s+/),function(s,t){var y=t.split(".");t=y.shift();var z=RegExp("(^|\\.)"+y.slice().sort().join(".*\\.")+"(\\.|$)");if(g[t]){if(e)delete g[t][e.guid];else for(var C in g[t])z.test(g[t][C].type)&& delete g[t][C];d.event.specialAll[t]&&d.event.specialAll[t].teardown.call(b,y);for(j in g[t])break;if(!j){if(!d.event.special[t]||d.event.special[t].teardown.call(b,y)===false)if(b.removeEventListener)b.removeEventListener(t,d.data(b,"handle"),false);else b.detachEvent&&b.detachEvent("on"+t,d.data(b,"handle"));j=null;delete g[t]}}})}for(j in g)break;if(!j){if(c=d.data(b,"handle"))c.elem=null;d.removeData(b,"events");d.removeData(b,"handle")}}}},trigger:function(b,c,e,g){var j=b.type||b;if(!g){b=typeof b=== "object"?b[N]?b:d.extend(d.Event(j),b):d.Event(j);if(j.indexOf("!")>=0){b.type=j=j.slice(0,-1);b.exclusive=true}if(!e){b.stopPropagation();this.global[j]&&d.each(d.cache,function(){this.events&&this.events[j]&&d.event.trigger(b,c,this.handle.elem)})}if(!e||e.nodeType==3||e.nodeType==8)return;b.result=void 0;b.target=e;c=d.makeArray(c);c.unshift(b)}b.currentTarget=e;var k=d.data(e,"handle");k&&k.apply(e,c);if((!e[j]||d.nodeName(e,"a")&&j=="click")&&e["on"+j]&&e["on"+j].apply(e,c)===false)b.result= false;if(!g&&e[j]&&!b.isDefaultPrevented()&&!(d.nodeName(e,"a")&&j=="click")){this.triggered=true;try{e[j]()}catch(s){}}this.triggered=false;if(!b.isPropagationStopped())(e=e.parentNode||e.ownerDocument)&&d.event.trigger(b,c,e,true)},handle:function(b){var c,e;b=arguments[0]=d.event.fix(b||A.event);b.currentTarget=this;e=b.type.split(".");b.type=e.shift();c=!e.length&&!b.exclusive;var g=RegExp("(^|\\.)"+e.slice().sort().join(".*\\.")+"(\\.|$)");e=(d.data(this,"events")||{})[b.type];for(var j in e){var k= e[j];if(c||g.test(k.type)){b.handler=k;b.data=k.data;k=k.apply(this,arguments);if(k!==void 0){b.result=k;if(k===false){b.preventDefault();b.stopPropagation()}}if(b.isImmediatePropagationStopped())break}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "), fix:function(b){if(b[N])return b;var c=b;b=d.Event(c);for(var e=this.props.length,g;e;){g=this.props[--e];b[g]=c[g]}if(!b.target)b.target=b.srcElement||document;if(b.target.nodeType==3)b.target=b.target.parentNode;if(!b.relatedTarget&&b.fromElement)b.relatedTarget=b.fromElement==b.target?b.toElement:b.fromElement;if(b.pageX==null&&b.clientX!=null){c=document.documentElement;e=document.body;b.pageX=b.clientX+(c&&c.scrollLeft||e&&e.scrollLeft||0)-(c.clientLeft||0);b.pageY=b.clientY+(c&&c.scrollTop|| e&&e.scrollTop||0)-(c.clientTop||0)}if(!b.which&&(b.charCode||b.charCode===0?b.charCode:b.keyCode))b.which=b.charCode||b.keyCode;if(!b.metaKey&&b.ctrlKey)b.metaKey=b.ctrlKey;if(!b.which&&b.button)b.which=b.button&1?1:b.button&2?3:b.button&4?2:0;return b},proxy:function(b,c){c=c||function(){return b.apply(this,arguments)};c.guid=b.guid=b.guid||c.guid||this.guid++;return c},special:{ready:{setup:L,teardown:function(){}}},specialAll:{live:{setup:function(b,c){d.event.add(this,c[0],B)},teardown:function(b){if(b.length){var c= 0,e=RegExp("(^|\\.)"+b[0]+"(\\.|$)");d.each(d.data(this,"events").live||{},function(){e.test(this.type)&&c++});c<1&&d.event.remove(this,b[0],B)}}}}};d.Event=function(b){if(!this.preventDefault)return new d.Event(b);if(b&&b.type){this.originalEvent=b;this.type=b.type}else this.type=b;this.timeStamp=+new Date;this[N]=true};d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var b=this.originalEvent;if(b){b.preventDefault&&b.preventDefault();b.returnValue=false}},stopPropagation:function(){this.isPropagationStopped= u;var b=this.originalEvent;if(b){b.stopPropagation&&b.stopPropagation();b.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:o,isPropagationStopped:o,isImmediatePropagationStopped:o};var ca=function(b){for(var c=b.relatedTarget;c&&c!=this;)try{c=c.parentNode}catch(e){c=this}if(c!=this){b.type=b.data;d.event.handle.apply(this,arguments)}};d.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(b,c){d.event.special[c]= {setup:function(){d.event.add(this,b,ca,c)},teardown:function(){d.event.remove(this,b,ca)}}});d.fn.extend({bind:function(b,c,e){return b=="unload"?this.one(b,c,e):this.each(function(){d.event.add(this,b,e||c,e&&c)})},one:function(b,c,e){var g=d.event.proxy(e||c,function(j){d(this).unbind(j,g);return(e||c).apply(this,arguments)});return this.each(function(){d.event.add(this,b,g,e&&c)})},unbind:function(b,c){return this.each(function(){d.event.remove(this,b,c)})},trigger:function(b,c){return this.each(function(){d.event.trigger(b, c,this)})},triggerHandler:function(b,c){if(this[0]){var e=d.Event(b);e.preventDefault();e.stopPropagation();d.event.trigger(e,c,this[0]);return e.result}},toggle:function(b){for(var c=arguments,e=1;e<c.length;)d.event.proxy(b,c[e++]);return this.click(d.event.proxy(b,function(g){this.lastToggle=(this.lastToggle||0)%e;g.preventDefault();return c[this.lastToggle++].apply(this,arguments)||false}))},hover:function(b,c){return this.mouseenter(b).mouseleave(c)},ready:function(b){L();d.isReady?b.call(document, d):d.readyList.push(b);return this},live:function(b,c){var e=d.event.proxy(c);e.guid+=this.selector+b;d(document).bind(G(b,this.selector),this.selector,e);return this},die:function(b,c){d(document).unbind(G(b,this.selector),c?{guid:c.guid+this.selector+b}:null);return this}});d.extend({isReady:false,readyList:[],ready:function(){if(!d.isReady){d.isReady=true;if(d.readyList){d.each(d.readyList,function(){this.call(document,d)});d.readyList=null}d(document).triggerHandler("ready")}}});var W=false;d.each("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error".split(","), function(b,c){d.fn[c]=function(e){return e?this.bind(c,e):this.trigger(c)}});d(A).bind("unload",function(){for(var b in d.cache)b!=1&&d.cache[b].handle&&d.event.remove(d.cache[b].handle.elem)});(function(){d.support={};var b=document.documentElement,c=document.createElement("script"),e=document.createElement("div"),g="script"+(new Date).getTime();e.style.display="none";e.innerHTML=' <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>'; var j=e.getElementsByTagName("*"),k=e.getElementsByTagName("a")[0];if(!(!j||!j.length||!k)){d.support={leadingWhitespace:e.firstChild.nodeType==3,tbody:!e.getElementsByTagName("tbody").length,objectAll:!!e.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!e.getElementsByTagName("link").length,style:/red/.test(k.getAttribute("style")),hrefNormalized:k.getAttribute("href")==="/a",opacity:k.style.opacity==="0.5",cssFloat:!!k.style.cssFloat,scriptEval:false,noCloneEvent:true, boxModel:null};c.type="text/javascript";try{c.appendChild(document.createTextNode("window."+g+"=1;"))}catch(s){}b.insertBefore(c,b.firstChild);if(A[g]){d.support.scriptEval=true;delete A[g]}b.removeChild(c);if(e.attachEvent&&e.fireEvent){e.attachEvent("onclick",function(){d.support.noCloneEvent=false;e.detachEvent("onclick",arguments.callee)});e.cloneNode(true).fireEvent("onclick")}d(function(){var t=document.createElement("div");t.style.width=t.style.paddingLeft="1px";document.body.appendChild(t); d.boxModel=d.support.boxModel=t.offsetWidth===2;document.body.removeChild(t).style.display="none"})}})();var R=d.support.cssFloat?"cssFloat":"styleFloat";d.props={"for":"htmlFor","class":"className","float":R,cssFloat:R,styleFloat:R,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};d.fn.extend({_load:d.fn.load,load:function(b,c,e){if(typeof b!=="string")return this._load(b);var g=b.indexOf(" ");if(g>=0){var j=b.slice(g,b.length);b=b.slice(0, g)}g="GET";if(c)if(d.isFunction(c)){e=c;c=null}else if(typeof c==="object"){c=d.param(c);g="POST"}var k=this;d.ajax({url:b,type:g,dataType:"html",data:c,complete:function(s,t){if(t=="success"||t=="notmodified")k.html(j?d("<div/>").append(s.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(j):s.responseText);e&&k.each(e,[s.responseText,t,s])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements? d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(b,c){var e=d(this).val();return e==null?null:d.isArray(e)?d.map(e,function(g){return{name:c.name,value:g}}):{name:c.name,value:e}}).get()}});d.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(b,c){d.fn[c]=function(e){return this.bind(c,e)}});var ia=+new Date; d.extend({get:function(b,c,e,g){if(d.isFunction(c)){e=c;c=null}return d.ajax({type:"GET",url:b,data:c,success:e,dataType:g})},getScript:function(b,c){return d.get(b,null,c,"script")},getJSON:function(b,c,e){return d.get(b,c,e,"json")},post:function(b,c,e,g){if(d.isFunction(c)){e=c;c={}}return d.ajax({type:"POST",url:b,data:c,success:e,dataType:g})},ajaxSetup:function(b){d.extend(d.ajaxSettings,b)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded", processData:true,async:true,xhr:function(){return A.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(b){function c(){b.success&&b.success(s,k);b.global&&d.event.trigger("ajaxSuccess",[x,b])}function e(){b.complete&&b.complete(x,k);b.global&&d.event.trigger("ajaxComplete", [x,b]);b.global&&!--d.active&&d.event.trigger("ajaxStop")}b=d.extend(true,b,d.extend(true,{},d.ajaxSettings,b));var g,j=/=\?(&|$)/g,k,s,t=b.type.toUpperCase();if(b.data&&b.processData&&typeof b.data!=="string")b.data=d.param(b.data);if(b.dataType=="jsonp"){if(t=="GET")b.url.match(j)||(b.url+=(b.url.match(/\?/)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data||!b.data.match(j))b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?";b.dataType="json"}if(b.dataType=="json"&&(b.data&&b.data.match(j)|| b.url.match(j))){g="jsonp"+ia++;if(b.data)b.data=(b.data+"").replace(j,"="+g+"$1");b.url=b.url.replace(j,"="+g+"$1");b.dataType="script";A[g]=function(n){s=n;c();e();A[g]=void 0;try{delete A[g]}catch(q){}z&&z.removeChild(C)}}if(b.dataType=="script"&&b.cache==null)b.cache=false;if(b.cache===false&&t=="GET"){j=+new Date;var y=b.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+j+"$2");b.url=y+(y==b.url?(b.url.match(/\?/)?"&":"?")+"_="+j:"")}if(b.data&&t=="GET"){b.url+=(b.url.match(/\?/)?"&":"?")+b.data;b.data= null}b.global&&!d.active++&&d.event.trigger("ajaxStart");j=/^(\w+:)?\/\/([^\/?#]+)/.exec(b.url);if(b.dataType=="script"&&t=="GET"&&j&&(j[1]&&j[1]!=location.protocol||j[2]!=location.host)){var z=document.getElementsByTagName("head")[0],C=document.createElement("script");C.src=b.url;if(b.scriptCharset)C.charset=b.scriptCharset;if(!g){var E=false;C.onload=C.onreadystatechange=function(){if(!E&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){E=true;c();e();C.onload=C.onreadystatechange= null;z.removeChild(C)}}}z.appendChild(C)}else{var I=false,x=b.xhr();b.username?x.open(t,b.url,b.async,b.username,b.password):x.open(t,b.url,b.async);try{b.data&&x.setRequestHeader("Content-Type",b.contentType);if(b.ifModified)x.setRequestHeader("If-Modified-Since",d.lastModified[b.url]||"Thu, 01 Jan 1970 00:00:00 GMT");x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",b.dataType&&b.accepts[b.dataType]?b.accepts[b.dataType]+", */*":b.accepts._default)}catch(M){}if(b.beforeSend&& b.beforeSend(x,b)===false){b.global&&!--d.active&&d.event.trigger("ajaxStop");x.abort();return false}b.global&&d.event.trigger("ajaxSend",[x,b]);var f=function(n){if(x.readyState==0){if(i){clearInterval(i);i=null;b.global&&!--d.active&&d.event.trigger("ajaxStop")}}else if(!I&&x&&(x.readyState==4||n=="timeout")){I=true;if(i){clearInterval(i);i=null}k=n=="timeout"?"timeout":!d.httpSuccess(x)?"error":b.ifModified&&d.httpNotModified(x,b.url)?"notmodified":"success";if(k=="success")try{s=d.httpData(x, b.dataType,b)}catch(q){k="parsererror"}if(k=="success"){var r;try{r=x.getResponseHeader("Last-Modified")}catch(v){}if(b.ifModified&&r)d.lastModified[b.url]=r;g||c()}else d.handleError(b,x,k);e();n&&x.abort();if(b.async)x=null}};if(b.async){var i=setInterval(f,13);b.timeout>0&&setTimeout(function(){x&&!I&&f("timeout")},b.timeout)}try{x.send(b.data)}catch(l){d.handleError(b,x,null,l)}b.async||f();return x}},handleError:function(b,c,e,g){b.error&&b.error(c,e,g);b.global&&d.event.trigger("ajaxError", [c,b,g])},active:0,httpSuccess:function(b){try{return!b.status&&location.protocol=="file:"||b.status>=200&&b.status<300||b.status==304||b.status==1223}catch(c){}return false},httpNotModified:function(b,c){try{var e=b.getResponseHeader("Last-Modified");return b.status==304||e==d.lastModified[c]}catch(g){}return false},httpData:function(b,c,e){var g=b.getResponseHeader("content-type");b=(g=c=="xml"||!c&&g&&g.indexOf("xml")>=0)?b.responseXML:b.responseText;if(g&&b.documentElement.tagName=="parsererror")throw"parsererror"; if(e&&e.dataFilter)b=e.dataFilter(b,c);if(typeof b==="string"){c=="script"&&d.globalEval(b);if(c=="json")b=A.eval("("+b+")")}return b},param:function(b){function c(j,k){e[e.length]=encodeURIComponent(j)+"="+encodeURIComponent(k)}var e=[];if(d.isArray(b)||b.jquery)d.each(b,function(){c(this.name,this.value)});else for(var g in b)d.isArray(b[g])?d.each(b[g],function(){c(g,this)}):c(g,d.isFunction(b[g])?b[g]():b[g]);return e.join("&").replace(/%20/g,"+")}});var V={},U,X=[["height","marginTop","marginBottom", "paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(b,c){if(b)return this.animate(H("show",3),b,c);else{for(var e=0,g=this.length;e<g;e++){var j=d.data(this[e],"olddisplay");this[e].style.display=j||"";if(d.css(this[e],"display")==="none"){j=this[e].tagName;var k;if(V[j])k=V[j];else{var s=d("<"+j+" />").appendTo("body");k=s.css("display");if(k==="none")k="block";s.remove();V[j]=k}d.data(this[e],"olddisplay",k)}}e= 0;for(g=this.length;e<g;e++)this[e].style.display=d.data(this[e],"olddisplay")||"";return this}},hide:function(b,c){if(b)return this.animate(H("hide",3),b,c);else{for(var e=0,g=this.length;e<g;e++){var j=d.data(this[e],"olddisplay");!j&&j!=="none"&&d.data(this[e],"olddisplay",d.css(this[e],"display"))}e=0;for(g=this.length;e<g;e++)this[e].style.display="none";return this}},_toggle:d.fn.toggle,toggle:function(b,c){var e=typeof b==="boolean";return d.isFunction(b)&&d.isFunction(c)?this._toggle.apply(this, arguments):b==null||e?this.each(function(){var g=e?b:d(this).is(":hidden");d(this)[g?"show":"hide"]()}):this.animate(H("toggle",3),b,c)},fadeTo:function(b,c,e){return this.animate({opacity:c},b,e)},animate:function(b,c,e,g){var j=d.speed(c,e,g);return this[j.queue===false?"each":"queue"](function(){var k=d.extend({},j),s,t=this.nodeType==1&&d(this).is(":hidden"),y=this;for(s in b){if(b[s]=="hide"&&t||b[s]=="show"&&!t)return k.complete.call(this);if((s=="height"||s=="width")&&this.style){k.display= d.css(this,"display");k.overflow=this.style.overflow}}if(k.overflow!=null)this.style.overflow="hidden";k.curAnim=d.extend({},b);d.each(b,function(z,C){var E=new d.fx(y,k,z);if(/toggle|show|hide/.test(C))E[C=="toggle"?t?"show":"hide":C](b);else{var I=C.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),x=E.cur(true)||0;if(I){var M=parseFloat(I[2]),f=I[3]||"px";if(f!="px"){y.style[z]=(M||1)+f;x=(M||1)/E.cur(true)*x;y.style[z]=x+f}if(I[1])M=(I[1]=="-="?-1:1)*M+x;E.custom(x,M,f)}else E.custom(x,C,"")}});return true})}, stop:function(b,c){var e=d.timers;b&&this.queue([]);this.each(function(){for(var g=e.length-1;g>=0;g--)if(e[g].elem==this){c&&e[g](true);e.splice(g,1)}});c||this.dequeue();return this}});d.each({slideDown:H("show",1),slideUp:H("hide",1),slideToggle:H("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,c){d.fn[b]=function(e,g){return this.animate(c,e,g)}});d.extend({speed:function(b,c,e){var g=typeof b==="object"?b:{complete:e||!e&&c||d.isFunction(b)&&b,duration:b,easing:e&&c|| c&&!d.isFunction(c)&&c};g.duration=d.fx.off?0:typeof g.duration==="number"?g.duration:d.fx.speeds[g.duration]||d.fx.speeds._default;g.old=g.complete;g.complete=function(){g.queue!==false&&d(this).dequeue();d.isFunction(g.old)&&g.old.call(this)};return g},easing:{linear:function(b,c,e,g){return e+g*b},swing:function(b,c,e,g){return(-Math.cos(b*Math.PI)/2+0.5)*g+e}},timers:[],fx:function(b,c,e){this.options=c;this.elem=b;this.prop=e;if(!c.orig)c.orig={}}});d.fx.prototype={update:function(){this.options.step&& this.options.step.call(this.elem,this.now,this);(d.fx.step[this.prop]||d.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style)this.elem.style.display="block"},cur:function(b){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(b=parseFloat(d.css(this.elem,this.prop,b)))&&b>-1E4?b:parseFloat(d.curCSS(this.elem,this.prop))||0},custom:function(b,c,e){function g(k){return j.step(k)}this.startTime=+new Date; this.start=b;this.end=c;this.unit=e||this.unit||"px";this.now=this.start;this.pos=this.state=0;var j=this;g.elem=this.elem;if(g()&&d.timers.push(g)&&!U)U=setInterval(function(){for(var k=d.timers,s=0;s<k.length;s++)k[s]()||k.splice(s--,1);if(!k.length){clearInterval(U);U=void 0}},13)},show:function(){this.options.orig[this.prop]=d.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());d(this.elem).show()},hide:function(){this.options.orig[this.prop]= d.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(b){var c=+new Date;if(b||c>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();b=this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)b=false;if(b){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(d.css(this.elem,"display")=="none")this.elem.style.display= "block"}this.options.hide&&d(this.elem).hide();if(this.options.hide||this.options.show)for(var g in this.options.curAnim)d.attr(this.elem.style,g,this.options.orig[g]);this.options.complete.call(this.elem)}return false}else{e=c-this.startTime;this.state=e/this.options.duration;this.pos=d.easing[this.options.easing||(d.easing.swing?"swing":"linear")](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};d.extend(d.fx,{speeds:{slow:600, fast:200,_default:400},step:{opacity:function(b){d.attr(b.elem.style,"opacity",b.now)},_default:function(b){if(b.elem.style&&b.elem.style[b.prop]!=null)b.elem.style[b.prop]=b.now+b.unit;else b.elem[b.prop]=b.now}}});d.fn.offset=document.documentElement.getBoundingClientRect?function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return d.offset.bodyOffset(this[0]);var b=this[0].getBoundingClientRect(),c=this[0].ownerDocument,e=c.body;c=c.documentElement;return{top:b.top+ (self.pageYOffset||d.boxModel&&c.scrollTop||e.scrollTop)-(c.clientTop||e.clientTop||0),left:b.left+(self.pageXOffset||d.boxModel&&c.scrollLeft||e.scrollLeft)-(c.clientLeft||e.clientLeft||0)}}:function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return d.offset.bodyOffset(this[0]);d.offset.initialized||d.offset.initialize();var b=this[0],c=b.offsetParent,e=b.ownerDocument,g,j=e.documentElement,k=e.body;e=e.defaultView;g=e.getComputedStyle(b,null);for(var s=b.offsetTop, t=b.offsetLeft;(b=b.parentNode)&&b!==k&&b!==j;){g=e.getComputedStyle(b,null);s-=b.scrollTop;t-=b.scrollLeft;if(b===c){s+=b.offsetTop;t+=b.offsetLeft;if(d.offset.doesNotAddBorder&&!(d.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.tagName))){s+=parseInt(g.borderTopWidth,10)||0;t+=parseInt(g.borderLeftWidth,10)||0}c=b.offsetParent}if(d.offset.subtractsBorderForOverflowNotVisible&&g.overflow!=="visible"){s+=parseInt(g.borderTopWidth,10)||0;t+=parseInt(g.borderLeftWidth,10)||0}g=g}if(g.position=== "relative"||g.position==="static"){s+=k.offsetTop;t+=k.offsetLeft}if(g.position==="fixed"){s+=Math.max(j.scrollTop,k.scrollTop);t+=Math.max(j.scrollLeft,k.scrollLeft)}return{top:s,left:t}};d.offset={initialize:function(){if(!this.initialized){var b=document.body,c=document.createElement("div"),e,g,j,k=b.style.marginTop;e={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(g in e)c.style[g]=e[g];c.innerHTML='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>'; b.insertBefore(c,b.firstChild);e=c.firstChild;g=e.firstChild;j=e.nextSibling.firstChild.firstChild;this.doesNotAddBorder=g.offsetTop!==5;this.doesAddBorderForTableAndCells=j.offsetTop===5;e.style.overflow="hidden";e.style.position="relative";this.subtractsBorderForOverflowNotVisible=g.offsetTop===-5;b.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=b.offsetTop===0;b.style.marginTop=k;b.removeChild(c);this.initialized=true}},bodyOffset:function(b){d.offset.initialized||d.offset.initialize(); var c=b.offsetTop,e=b.offsetLeft;if(d.offset.doesNotIncludeMarginInBodyOffset){c+=parseInt(d.curCSS(b,"marginTop",true),10)||0;e+=parseInt(d.curCSS(b,"marginLeft",true),10)||0}return{top:c,left:e}}};d.fn.extend({position:function(){var b;if(this[0]){b=this.offsetParent();var c=this.offset(),e=/^body|html$/i.test(b[0].tagName)?{top:0,left:0}:b.offset();c.top-=p(this,"marginTop");c.left-=p(this,"marginLeft");e.top+=p(b,"borderTopWidth");e.left+=p(b,"borderLeftWidth");b={top:c.top-e.top,left:c.left- e.left}}return b},offsetParent:function(){for(var b=this[0].offsetParent||document.body;b&&!/^body|html$/i.test(b.tagName)&&d.css(b,"position")=="static";)b=b.offsetParent;return d(b)}});d.each(["Left","Top"],function(b,c){var e="scroll"+c;d.fn[e]=function(g){if(!this[0])return null;return g!==void 0?this.each(function(){this==A||this==document?A.scrollTo(!b?g:d(A).scrollLeft(),b?g:d(A).scrollTop()):this[e]=g}):this[0]==A||this[0]==document?self[b?"pageYOffset":"pageXOffset"]||d.boxModel&&document.documentElement[e]|| document.body[e]:this[0][e]}});d.each(["Height","Width"],function(b,c){var e=c.toLowerCase();d.fn["inner"+c]=function(){return this[0]?d.css(this[0],e,false,"padding"):null};d.fn["outer"+c]=function(j){return this[0]?d.css(this[0],e,false,j?"margin":"border"):null};var g=c.toLowerCase();d.fn[g]=function(j){return this[0]==A?document.compatMode=="CSS1Compat"&&document.documentElement["client"+c]||document.body["client"+c]:this[0]==document?Math.max(document.documentElement["client"+c],document.body["scroll"+ c],document.documentElement["scroll"+c],document.body["offset"+c],document.documentElement["offset"+c]):j===void 0?this.length?d.css(this[0],g):null:this.css(g,typeof j==="string"?j:j+"px")}})})();$(document).ready(function(){$("#nav li").hover(function(){$("ul",this).slideDown(100)},function(){$("ul",this).slideUp(100)})});
