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 f=navigator.appVersion.indexOf("MSIE"),j=navigator.appVersion.indexOf(".",f);IEMajor=parseInt(navigator.appVersion.substring(f+5,j));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} function LTrim(f){if(f.length==0)return f;for(intSpaceFound=f.indexOf(" ");intSpaceFound==0;){f=f.substring(1,f.length);intSpaceFound=f.indexOf(" ")}return f}function RTrim(f){if(f.length==0)return f;for(intSpaceFound=f.lastIndexOf(" ");intSpaceFound>0&&intSpaceFound==f.length-1;){f=f.substring(0,f.length-1);intSpaceFound=f.lastIndexOf(" ")}return f}function Trim(f){f=LTrim(f);return f=RTrim(f)} function OpenWindow(f,j){window.open(f,j,"width=600,height=450,resizable=yes,toolbar=yes, scrollbars=yes")}function OpenSmallWindow(f,j,l,q){Features="toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,width="+j+",height="+l+",resizable=yes";eval(q+'=window.open("'+f+'","'+q+'","'+Features+'");')} function swap(f,j){var l=navigator.appName,q=parseInt(navigator.appVersion),w=l=="Microsoft Internet Explorer"&&q>=4;if(l=="Netscape"&&q>=3||w)document.images[f].src=eval(j+".src")}function MM_swapImgRestore(){var f,j,l=document.MM_sr;for(f=0;l&&f<l.length&&(j=l[f])&&j.oSrc;f++)j.src=j.oSrc} function MM_preloadImages(){var f=document;if(f.images){if(!f.MM_p)f.MM_p=[];var j,l=f.MM_p.length,q=MM_preloadImages.arguments;for(j=0;q.length;j++)if(a[j].indexOf("#")!=0){f.MM_p[l]=new Image;f.MM_p[l++].src=a[j]}}}function preloadImages(){var f=document;if(f.images){if(!f.p)f.p=[];var j,l=f.p.length,q=preloadImages.arguments;for(j=0;j<q.length;j++)if(q[j].indexOf("#")!=0){f.p[l]=new Image;f.p[l++].src=q[j]}}} function MM_findObj(f,j){var l,q;j||(j=document);if((l=f.indexOf("?"))>0&&parent.frames.length){j=parent.frames[f.substring(l+1)].document;f=f.substring(0,l)}if(!(q=j[f])&&j.all)q=j.all[f];for(l=0;!q&&l<j.forms.length;l++)q=j.forms[l][f];for(l=0;!q&&j.layers&&id.layers.length;l++)q=MM_findObj(f,j.layers[l].document);if(!q&&j.getElementById)q=j.getElementById(f);return q} function MM_swapImage(){var f,j=0,l,q=MM_swapImage.arguments;document.MM_sr=[];for(f=0;f<q.length-2;f+=3)if((l=MM_findObj(q[f]))!=null){document.MM_sr[j++]=l;if(!l.oSrc)l.oSrc=l.src;l.src=q[f+2]}}function sluit(){this.window.close()}function GetShortMonthName(f){strDate=f.toString();arrSplitDate=strDate.split(" ");return strMontName=arrSplitDate[1]} function LongYear(f){intLongYear=f;if(f<100)intLongYear=1900+f;dtTest=new Date(2E3,0,1);if(dtTest.getYear()==100)intLongYear=1900+f;return intLongYear}function preloadImages(){var f=document;if(f.images){if(!f.p)f.p=[];var j,l=f.p.length,q=preloadImages.arguments;for(j=0;j<q.length;j++)if(q[j].indexOf("#")!=0){f.p[l]=new Image;f.p[l++].src=q[j]}}}function submitForm(f,j,l,q){document.forms[f].action=j;if(l.length>0)document.forms[f][l].value=q;document.forms[f].submit()} function resetCrit(f){document.forms[f].huisid.value=0;document.forms[f].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(f,j){if(Trim(document.forms[0][f].value)==""){alert("Vul een referentienummer van het te copieren huis in");document.forms[0][f].focus();return false}document.forms[0].action=j;return true}function scrollPagina(f,j){document.forms[0][f].value=j;document.forms[0].submit()}function clearPreloadPage(){if(document.getElementById){document.getElementById("prepage").style.visibility="hidden";document.getElementById("allResult").style.display=""}} function ToonHuis(f,j,l){window.location.href="ToonHuisAlg.php?huisid="+f+"&datum="+j+"&language="+l}function frmReserveer(f,j,l,q,w,C){document.FRMalgemeen.huisid.value=j;document.FRMalgemeen.periodeid.value=l;document.FRMalgemeen.tekstkort.value=q;document.FRMalgemeen.datumRaw.value=w;document.FRMalgemeen.bVoorboeking.value=C;document.FRMalgemeen.action=f+"/MaakReservering.php";document.FRMalgemeen.submit()} function sorteer(f){document.FRMalgemeen.pageID.value=1;document.FRMalgemeen.sortorder.value=f;document.FRMalgemeen.submit()}function emailCheck(f){if(f.value=="")return false;else{var j=f.indexOf("@"),l=f.lastIndexOf("."),q=f.indexOf(" ");f=f.length-1;if(j<1||l<=j+2||l==f||q!=-1)return false}return true}var m=0; function getRequestBody(f){for(var j=[],l=0;l<f.elements.length;l++){m=0;if(f.elements[l].type=="checkbox"){if(f.elements[l].checked)m=1}else if(f.elements[l].type=="radio"){if(f.elements[l].checked)m=1}else if(f.elements[l].type!="checkbox")m=1;if(m==1){var q=encodeURIComponent(f.elements[l].name);q+="=";q+=encodeURIComponent(f.elements[l].value);j.push(q)}}return j.join("&")} function confirmZoek(f,j,l,q,w){document.forms[0].zoek.value=1;document.forms[0].available.value=j;if(l>0){document.forms[0].pzwembad.value=1;document.forms[0].gzwembad.value=1}document.forms[0].landid.value=f;document.forms[0].type.value=q;document.forms[0].action=w;document.forms[0].submit()}function gebiedZoek(f){document.forms[0].zoek.value=1;document.forms[0].gebiedid.value=f;document.forms[0].submit()}function zwembadDeselect(f){document.forms[0][f].checked=0} function Terug(f,j,l){document.FRMalgemeen.huisid.value=j;document.FRMalgemeen.referentie.value=l;document.FRMalgemeen.action=f;document.FRMalgemeen.submit()}function doTel(f,j,l,q){var w=zXmlHttp.createRequest();w.open("put",f+"/aj_share.php?url="+j+"&link="+l+"&huisid="+q,true);w.send(null)}function goSend(f){document.forms[0].action=f;document.forms[0].submit()}function changeClass(f,j){document.getElementById(f).className=j}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(f){cur_lyr&&hideLayer(cur_lyr);shiftLayerTo(f,orig_x,orig_y+getScrollY());showLayer(f);cur_lyr=f}function showLayer(f){if((f=getElemRefs(f))&&f.css)f.css.visibility="visible"}function hideLayer(f){if((f=getElemRefs(f))&&f.css)f.css.visibility="hidden"} function shiftLayerTo(f,j,l){var q=document.layers?0:"px";if((f=getElemRefs(f))&&f.css){f.css.top=l+q;f.css.left=j+q}}function getElemRefs(f){if(f=document.getElementById?document.getElementById(f):document.all?document.all[f]:document.layers?document.layers[f]:null)f.css=f.style?f.style:f;return f} function getScrollY(){var f=0;if(document.documentElement&&document.documentElement.scrollTop)f=document.documentElement.scrollTop;else if(document.body&&document.body.scrollTop)f=document.body.scrollTop;else if(window.pageYOffset)f=window.pageYOffset;else if(window.scrollY)f=window.scrollY;return f} function setCookie(){if(GBrowserIsCompatible()){for(var f=maptype=0;f<map.getMapTypes().length;f++)if(map.getCurrentMapType()==map.getMapTypes()[f])maptype=f;f=cookiename+"="+map.getCenter().lat()+"|"+map.getCenter().lng()+"|"+map.getZoom()+"|"+maptype;if(expiredays){var j=new Date;j.setDate(j.getDate()+expiredays);f+=";expires="+j.toGMTString()}document.cookie=f}} function createCirkel(f,j,l,q){var w=[];w["1"]=new GIcon(G_DEFAULT_ICON,path+"/gfx/1.png");w["1"].iconSize=new GSize(33,24);w["1"].imageMap=0;w["2"]=new GIcon(G_DEFAULT_ICON,path+"/gfx/2.png");w["2"].iconSize=new GSize(43,34);w["2"].imageMap=0;w["3"]=new GIcon(G_DEFAULT_ICON,path+"/gfx/3.png");w["3"].iconSize=new GSize(53,44);w["3"].imageMap=0;w["4"]=new GIcon(G_DEFAULT_ICON,path+"/gfx/4.png");w["4"].iconSize=new GSize(59,52);w["4"].imageMap=0;if(q<=5){icontype="1";offsetX=-3;offsetY=-29}if(q>5&& q<10){icontype="2";offsetX=2;offsetY=-23}if(q>=10&&q<100){icontype="3";offsetX=3;offsetY=-19}if(q>=100){icontype="4";offsetX=3;offsetY=-14}opts={icon:w[icontype],clickable:true,labelText:q,labelOffset:new GSize(offsetX,offsetY),labelClass:"cirkel"};f=new LabeledMarker(f,opts);GEvent.addListener(f,"click",function(){zoomlevel=map.getZoom();if(zoomlevel+9-zoomlevel<=zoomlevel)zoomlevel+=1;else zoomlevel=zoomlevel+9-zoomlevel;map.setCenter(new GLatLng(j,l),zoomlevel)});i++;return f} var i=0,gmarkers=[],htmls=[];function createMarker(f,j,l){j=new GIcon;j.image=path+"/gfx/Ghuis.png";j.shadow=path+"/gfx/Ghuis.png";j.iconSize=new GSize(30,31);j.iconAnchor=new GPoint(10,22);j.infoWindowAnchor=new GPoint(10,22);var q=new GMarker(f,j);GEvent.addListener(q,"click",function(){q.openInfoWindowHtml(l);chkInfoWindow=1});gmarkers[i]=q;htmls[i]=l;i++;return q} function getCoord(){arrCoord=map.getBounds();var f=arrCoord.getSouthWest(),j=arrCoord.getNorthEast();yMin=f.lng();yMax=j.lng();xMax=j.lat();xMin=f.lat()}function saveAantal(f,j){hg=j==1?returntxS:returntxM;document.getElementById("totalG").innerHTML=j;document.forms[0].aantalG.value=j;document.getElementById("totalGT").innerHTML=hg;showLayer("numberfoundtx");hideLayer("wait")}function doDetail(f){document.forms[0].action=f;document.forms[0].submit()} function importanceOrder(f){return GOverlay.getZIndex(f.getPoint().lat())+f.importance*1E6} function readMap(){var f=document.forms[0];document.forms[0].zoek.value=1;map.clearOverlays();if(f.firsttime.value==0)showLayer("wait");else f.firsttime.value=0;map.addOverlay(overlay);path=f.path.value;f.action=path+"/aj_aantal.php?randNum="+(new Date).getTime();var j=getRequestBody(f),l=zXmlHttp.createRequest();l.open("post",f.action,true);l.setRequestHeader("Content-Type","application/x-www-form-urlencoded");l.onreadystatechange=function(){if(l.readyState==4){createMap(l);bToggleReadmap=1;chkInfoWindow= 0;f.action="index.php"}};l.send(j);f.action="index.php"} function createMap(f){f=f.responseXML.documentElement.getElementsByTagName("marker");map.getInfoWindow().hide();map.clearOverlays();gmarkers=[];for(var j=0,l=0;l<f.length;l++){if(f[l].getAttribute("clat")=="0")break;var q=parseFloat(f[l].getAttribute("clat")),w=parseFloat(f[l].getAttribute("clng")),C=new GLatLng(q,w),H=f[l].getAttribute("html"),G=f[l].getAttribute("label"),D=parseFloat(f[l].getAttribute("aantal"));if(q==-3)sTotalA=H;if(q==-4){j=G;zoomtx="";totaal=G}if(q>0)if(document.forms[0].detail.value== 1){C=map.getZoom()>=10?createMarker(C,G,H):totaal>100?createCirkel(C,q,w,D):createMarker(C,G,H);map.addOverlay(C);parseInt(document.forms[0].huisid.value)==parseInt(G)&&selectHuis(q,w)}else{C=totaal>100?createCirkel(C,q,w,D):createMarker(C,G,H);map.addOverlay(C)}}if(document.forms[0].detail.value==1)hideLayer("wait");else{totaal>100?showLayer("zoomin"):hideLayer("zoomin");saveAantal(sTotalA,j);kiesGebied(document.forms[0].landid,document.forms[0].gebiedid.value)}} function mapmove(f,j,l){bZoom==0&&map.panTo(new GLatLng(f,j));y=f;x=j;bZoom==1&&map.setCenter(new GLatLng(y,x),l);bZoom=0}var curLayer="",huidigLand=0,huidigGebied=0;function kiesLand(f,j){document.FRMzoeken.gebiedid.value=0;var l=f.options[f.selectedIndex].value;j&&setLG(l,0,j)} function kiesGebied(f,j){var l,q=0,w=0,C=0,H=0,G=0,D=false,L=1,K=f.options[f.selectedIndex].value;document.FRMzoeken.gebiedid.length=1;document.FRMzoeken.gebiedid.options[0].selected=true;if(cod_gebied[K]!="0"&&K!=""){for(;!D;){G=H;C=w;H=cod_gebied[K].indexOf("*",G);w=desc_gebied[K].indexOf("*",C);if(H!=-1){q=G==0?cod_gebied[K].substring(G-1,H):cod_gebied[K].substring(G,H);l=C==0?desc_gebied[K].substring(C-1,w):desc_gebied[K].substring(C,w);l=new Option(l,q);document.FRMzoeken.gebiedid.options[L]= l;if(j==q)document.FRMzoeken.gebiedid.options[L].selected=true;L++;H++;w++}else D=true}q=cod_gebied[K].substring(G);l=desc_gebied[K].substring(C);l=new Option(l,q);document.FRMzoeken.gebiedid.options[L]=l;if(j==q)document.FRMzoeken.gebiedid.options[L].selected=true}} function setLG(f,j,l){subgebied=0;if(f==0){cLat=document.forms[0].X.value;cLong=document.forms[0].Y.value}if(f>0){index=coord_land[f].indexOf(",",0);cLat=coord_land[f].substring(0,index);cLong=coord_land[f].substring(index+1,coord_land[f].length)}if(j>0){index=coord_gebied[j].indexOf(",",0);cLat=coord_gebied[j].substring(0,index);cLong=coord_gebied[j].substring(index+1,coord_gebied[j].length);index1=index=0;for(keus=false;!keus;){index_ant=index;index_ant1=index1;index=cod_gebied[f].indexOf("*",index_ant); index1=desc_gebied[f].indexOf("*",index_ant1);if(index!=-1){waarde=index_ant==0?cod_gebied[f].substring(index_ant-1,index):cod_gebied[f].substring(index_ant,index);text=index_ant1==0?desc_gebied[f].substring(index_ant1-1,index1):desc_gebied[f].substring(index_ant1,index1);if(j==waarde){if(text.substring(0,1)=="-")subgebied=1;keus=true}index++;index1++}else keus=true}}if(f>0||j>0){if(document.forms[0].iniZoom.value>0){zoomlevel=document.forms[0].iniZoom.value;q=document.forms[0].iniZoom.value}else{var q= document.forms[0].zoomlevel.value;if(f>0)zoomlevel=zoomland;if(j>0)zoomlevel=zoomgebied[f]}bZoom=zoomlevel!=q?1:0;document.forms[0].latlng.value="("+cLat+","+cLong+")"}zoomlevel=map.getZoom();if(zoomlevel<11){if(j>0)zoomlevel=8;if(subgebied==1)zoomlevel=10}l&&mapmove(cLat,cLong,zoomlevel)}function kiesGebiedA(f,j){landid=document.forms[0].landid.options[document.forms[0].landid.selectedIndex].value;gebiedid=f.options[f.selectedIndex].value;j&&setLG(landid,gebiedid,j)} var map="",path="",overlay="",bToggleReadmap=1,bZoom=0,chkInfoWindow=0,maptype=0,cookiename="mapinfo",expiredays=3,xMin=0,xMax=0,yMax=0,yMin=0,zoomlevel=0,tilelayer="",laydisp=""; function initializeAll(f,j){if(GBrowserIsCompatible()){zoommarker=f;zoomgebied=[];zoomgebied[1]=8;zoomgebied[2]=7;zoomgebied[5]=8;zoomgebied[6]=9;zoomland=f;map=new GMap2(document.getElementById("map_canvas"));map.setCenter(new GLatLng(X,Y),f);var l=new GTileLayer(GCopyrightCollection(""),5,10);l.opacity=0.8;l.getTileUrl=function(){return"http://www.villagrande.nl/gfx/Gtrans.png"};l.isPng=function(){return true};l.getOpacity=function(){return this.opacity};overlay=new GTileLayerOverlay(l);map.addControl(new GLargeMapControl); map.addControl(new GMapTypeControl);map.addControl(new GOverviewMapControl);map.addControl(new GScaleControl);GEvent.addListener(map,"zoomend",function(){f=map.getZoom();chkInfoWindow==0&&q(j);chkInfoWindow=0});GEvent.addListener(map,"moveend",function(){f=map.getZoom();chkInfoWindow==0&&q(j);chkInfoWindow=0});var q=function(){TxMin=xMin;TyMin=yMin;getCoord();if(TxMin>=xMin+0.0010||TxMin<=xMin-0.0010||TyMin>=yMin+0.0010||TyMin<=yMin-0.0010){fillMovedCoord();if(bToggleReadmap==1&&chkInfoWindow==0){readMap(); bToggleReadmap=2;chkInfoWindow=1}}};readMap();document.forms[0].detail.value==1&&selectHuis(X,Y)}else alert("Sorry, the Google Maps API is not compatible with this browser")}function _readMap(f){if(document.forms[0].detail.value==0){showLayer("wait");hideLayer("zoomin")}else document.forms[0].zoek.value=1;var j=document.forms[0];j.action=f+"/aj_aantal.php";j.submit()} function selectHuis(f,j){var l=new GIcon;l.image=path+"/gfx/Ghuis_selected.png";l.shadow=path+"/gfx/Ghuis_selected.png";l.iconSize=new GSize(30,31);l.iconAnchor=new GPoint(10,22);l.infoWindowAnchor=new GPoint(10,22);l=new GMarker(new GLatLng(f,j),{icon:l,zIndexProcess:importanceOrder});l.importance=2;map.addOverlay(l)} function fillMovedCoord(){document.forms[0].xMinDetail.value=xMin;document.forms[0].xMaxDetail.value=xMax;document.forms[0].yMaxDetail.value=yMax;document.forms[0].yMinDetail.value=yMin;document.forms[0].X.value=xMin+(xMax-xMin)/2;document.forms[0].Y.value=yMin+(yMax-yMin)/2;document.forms[0].zoomlevelDetail.value=map.getZoom()} function showL(f){if(f=="beschrijving"){hideLayer("prijzen");hideLayer("recensie");hideLayer("recensieoutput");hideLayer("recensietekst");hideLayer(laydisp);hideLayer("zelfschrijven");hideLayer("fotosG");hideLayer("details_tx");showLayer("beschrijving_tx")}if(f=="fotos"){hideLayer("prijzen");hideLayer("recensie");hideLayer("recensieoutput");hideLayer("recensietekst");hideLayer(laydisp);hideLayer("zelfschrijven");hideLayer("beschrijving_tx");hideLayer("details_tx");hideLayer("map_canvas");hideLayer("kaart_tx"); showLayer("fotos");showLayer("fotosG")}if(f=="recensie"){hideLayer("prijzen");hideLayer("recensietekst");hideLayer(laydisp);hideLayer("recensieoutput");hideLayer("beschrijving_tx");hideLayer("details_tx");hideLayer("fotosG");showLayer("recensie");showLayer("zelfschrijven")}if(f=="details"){hideLayer("prijzen");hideLayer("recensie");hideLayer("recensieoutput");hideLayer("recensietekst");hideLayer(laydisp);hideLayer("zelfschrijven");hideLayer("beschrijving_tx");hideLayer("fotosG");showLayer("details_tx")}if(f== "kaart"){hideLayer("fotos");showLayer("map_canvas");showLayer("kaart_tx")}if(f=="prijzen"){hideLayer("fotosG");hideLayer("recensie");hideLayer("recensieoutput");hideLayer("recensietekst");hideLayer(laydisp);hideLayer("zelfschrijven");hideLayer("beschrijving_tx");hideLayer("details_tx");showLayer("prijzen")}} function doRecensie(f){var j=document.FRMzelf;if(!emailCheck(Trim(j.emailrecensie.value))){alert("Vult u a.u.b. het email adres in, waarmee u de vakantie in "+f+" heeft geboekt.");j.emailrecensie.focus();j.emailrecensie.select();return false}f=getRequestBody(j);j.action=path+"/aj_recensie.php";var l=zXmlHttp.createRequest();l.open("post",j.action,true);l.setRequestHeader("Content-Type","application/x-www-form-urlencoded");l.onreadystatechange=function(){if(l.readyState==4){melding=l.responseText; var q=melding.split("|");foutvlag=q[0];if(foutvlag==1){hideLayer("recensie");hideLayer("zelfschrijven");showLayer("recensietekst");showLayer("rec"+q[4]);laydisp="rec"+q[4];if(q[4]==0){var w=document.getElementById("newrecensie");w.innerHTML=q[6];w=document.getElementById("begeleidendetx");w.innerHTML=q[7];document.FRMrecensie_0.klantid.value=q[1];document.FRMrecensie_0.datum_periode.value=q[3];document.FRMrecensie_0.klantnaam.value=q[5]}}else{j.emailrecensie.focus();j.emailrecensie.select();w=document.getElementById("recensieOutput"); w.innerHTML=q[1];showLayer("recensie")}}};l.send(f);j.action="ToonHuisAlg.php"} var bgsleight=function(){function f(q){var w=window.onload;window.onload=typeof window.onload!="function"?q:function(){w&&w();q()}}function j(){var q=navigator.appVersion.match(/MSIE (\d+\.\d+)/,"");q=q!=null&&Number(q[1])>=5.5;for(var w=document.all.length-1,C=null;C=document.all[w];w--)if(q&&C.currentStyle.backgroundImage.match(/\.png/i)!=null){var H=C,G=H.currentStyle.backgroundImage;G=G.substring(5,G.length-2);H.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+G+"', sizingMethod='"+ (H.currentStyle.backgroundRepeat=="no-repeat"?"crop":"scale")+"')";H.style.backgroundImage="url(http://villagrande.nl/gfx/blank.gif)";C.attachEvent("onpropertychange",l)}}function l(){if(window.event.propertyName=="style.backgroundImage"){var q=window.event.srcElement;if(!q.currentStyle.backgroundImage.match(/transparent\.gif/i)){var w=q.currentStyle.backgroundImage;w=w.substring(5,w.length-2);q.filters.item(0).src=w;q.style.backgroundImage="url(http://villagrande.nl/gfx/blank.gif)"}}}return{init:function(){navigator.platform== "Win32"&&navigator.appName=="Microsoft Internet Explorer"&&window.attachEvent&&f(j)}}}();bgsleight.init();function LabeledMarker(f,j){this.latlng_=f;this.opts_=j||{};this.labelText_=this.opts_.labelText||"";this.labelClass_=this.opts_.labelClass||"LabeledMarker_markerLabel";this.labelOffset_=this.opts_.labelOffset||new GSize(0,0);this.clickable_=this.opts_.clickable||true;if(this.opts_.draggable)this.opts_.draggable=false;GMarker.apply(this,arguments)} LabeledMarker.prototype=new GMarker(new GLatLng(0,0)); LabeledMarker.prototype.initialize=function(f){GMarker.prototype.initialize.apply(this,arguments);this.map_=f;this.div_=document.createElement("div");this.div_.className=this.labelClass_;this.div_.innerHTML=this.labelText_;this.div_.style.position="absolute";this.div_.style.cursor="pointer";f.getPane(G_MAP_MARKER_PANE).appendChild(this.div_);if(this.clickable_)for(var j=function(C,H){return function(){GEvent.trigger(C,H)}},l=["click","dblclick","mousedown","mouseup","mouseover","mouseout"],q=0;q< l.length;q++){var w=l[q];GEvent.addDomListener(this.div_,w,j(this,w))}};LabeledMarker.prototype.redraw=function(){GMarker.prototype.redraw.apply(this,arguments);var f=this.map_.fromLatLngToDivPixel(this.latlng_),j=GOverlay.getZIndex(this.latlng_.lat());this.div_.style.left=f.x+this.labelOffset_.width+"px";this.div_.style.top=f.y+this.labelOffset_.height+"px";this.div_.style.zIndex=j}; LabeledMarker.prototype.remove=function(){GEvent.clearInstanceListeners(this.div_);this.div_.parentNode.removeChild(this.div_);this.div_=null;GMarker.prototype.remove.apply(this,arguments)};LabeledMarker.prototype.copy=function(){return new LabeledMarker(this.latlng_,this.opt_opts_)}; function _doRecensie(f){var j=document.FRMzelf;if(!emailCheck(Trim(j.emailrecensie.value))){alert("Vult u a.u.b. het email adres in, waarmee u de vakantie in "+f+" heeft geboekt.");j.emailrecensie.focus();j.emailrecensie.select();return false}f=getRequestBody(j);j.action=path+"/aj_recensie.php";var l=zXmlHttp.createRequest();l.open("post",j.action,true);l.setRequestHeader("Content-Type","application/x-www-form-urlencoded");l.onreadystatechange=function(){if(l.readyState==4){melding=l.responseText; var q=melding.split("|");foutvlag=q[0];if(foutvlag==1){hideLayer("recensie");hideLayer("zelfschrijven");showLayer("recensietekst");showLayer("rec"+q[4]);laydisp="rec"+q[4];if(q[4]==0){var w=document.getElementById("newrecensie");w.innerHTML=q[6];w=document.getElementById("begeleidendetx");w.innerHTML=q[7];document.FRMrecensie_0.klantid.value=q[1];document.FRMrecensie_0.datum_periode.value=q[3];document.FRMrecensie_0.klantnaam.value=q[5]}}else{j.emailrecensie.focus();j.emailrecensie.select();w=document.getElementById("recensieOutput"); w.innerHTML=q[1];showLayer("recensie")}}};l.send(f);j.action="ToonHuisAlg.php"} (function(){function f(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 j(b,c){return b[0]&&parseInt(d.curCSS(b[0],c,true),10)||0}function l(){return false}function q(){return true}function w(b){var c=RegExp("(^|\\.)"+b.type+"(\\.|$)"),e=true,h=[];d.each(d.data(this,"events").live||[],function(n,o){if(c.test(o.type)){var u=d(b.target).closest(o.data)[0];u&&h.push({elem:u,fn:o})}});h.sort(function(n, o){return d.data(n.elem,"closest")-d.data(o.elem,"closest")});d.each(h,function(){if(this.fn.call(this.elem,b,this.fn.data)===false)return e=false});return e}function C(b,c){return["live",b,c.replace(/\./g,"`").replace(/ /g,"|")].join(".")}function H(){if(!ea){ea=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&&D==D.top&&function(){if(!d.isReady){try{document.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}d.ready()}}()}d.event.add(D,"load",d.ready)}}function G(b,c){var e={};d.each(fa.concat.apply([],fa.slice(0,c)),function(){e[this]=b});return e}var D=this,L=D.jQuery,K=D.$,d=D.jQuery=D.$=function(b,c){return new d.fn.init(b, c)},U=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,V=/^.[^:#\[\.,]*$/;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=U.exec(b);if(e&&(e[1]||!c))if(e[1])b=d.clean([e[1]],c);else{var h=document.getElementById(e[3]);if(h&&h.id!=e[3])return d().find(b);e=d(h||[]);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 h=b;if(typeof b==="string")if(c===void 0)return this[0]&&d[e||"attr"](this[0],b);else{h={};h[b]=c}return this.each(function(n){for(b in h)d.attr(e?this.style:this,b,d.prop(this,h[b],e,n,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 n=this.outerHTML;if(!n){n=this.ownerDocument.createElement("div");n.appendChild(this.cloneNode(true)); n=n.innerHTML}return d.clean([n.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else return this.cloneNode(true)});if(b===true){var e=this.find("*").andSelf(),h=0;c.find("*").andSelf().each(function(){if(this.nodeName===e[h].nodeName){var n=d.data(e[h],"events"),o;for(o in n)for(var u in n[o])d.event.add(this,o,n[o][u],n[o][u].data);h++}})}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 h=this;h&&h.ownerDocument;){if(c?c.index(h)>-1:d(h).is(b)){d.data(h,"closest",e);return h}h=h.parentNode;e++}})},not:function(b){if(typeof b==="string")if(V.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,h=[],n=c.options;c=c.type=="select-one";if(e<0)return null;var o=c?e:0;for(e=c?e+1:n.length;o< e;o++){var u=n[o];if(u.selected){b=d(u).val();if(c)return b;h.push(b)}}return h}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 v=d.makeArray(b);d("option",this).each(function(){this.selected=d.inArray(this.value,v)>=0||d.inArray(this.text,v)>=0});if(!v.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 h=(this[0].ownerDocument||this[0]).createDocumentFragment();b=d.clean(b,this[0].ownerDocument||this[0],h);var n=h.firstChild;if(n)for(var o=0,u=this.length;o<u;o++)e.call(c&&d.nodeName(this[o],"table")&&d.nodeName(n,"tr")?this[o].getElementsByTagName("tbody")[0]||this[o].appendChild(this[o].ownerDocument.createElement("tbody")):this[o],this.length>1||o>0?h.cloneNode(true):h);b&&d.each(b,f)}return this}};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var b= arguments[0]||{},c=1,e=arguments.length,h=false,n;if(typeof b==="boolean"){h=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((n=arguments[c])!=null)for(var o in n){var u=b[o],v=n[o];if(b!==v)if(h&&v&&typeof v==="object"&&!v.nodeType)b[o]=d.extend(h,u||(v.length!=null?[]:{}),v);else if(v!==void 0)b[o]=v}return b};var W=/z-?index|font-?weight|opacity|zoom|line-?height/i,ga=document.defaultView||{},ha=Object.prototype.toString;d.extend({noConflict:function(b){D.$= K;if(b)D.jQuery=L;return d},isFunction:function(b){return ha.call(b)==="[object Function]"},isArray:function(b){return ha.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 h,n=0,o=b.length;if(e)if(o===void 0)for(h in b){if(c.apply(b[h],e)===false)break}else for(;n<o;){if(c.apply(b[n++],e)===false)break}else if(o===void 0)for(h in b){if(c.call(b[h],h,b[h])===false)break}else for(e=b[0];n<o&&c.call(e,n,e)!==false;e=b[++n]);return b},prop:function(b,c,e,h,n){if(d.isFunction(c))c=c.call(b,h);return typeof c=== "number"&&e=="curCSS"&&!W.test(n)?c+"px":c},className:{add:function(b,c){d.each((c||"").split(/\s+/),function(e,h){if(b.nodeType==1&&!d.className.has(b.className,h))b.className+=(b.className?" ":"")+h})},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 h={},n;for(n in c){h[n]=b.style[n];b.style[n]= c[n]}e.call(b);for(n in c)b.style[n]=h[n]},css:function(b,c,e,h){if(c=="width"||c=="height"){var n;e={position:"absolute",visibility:"hidden",display:"block"};var o=c=="width"?["Left","Right"]:["Top","Bottom"],u=function(){n=c=="width"?b.offsetWidth:b.offsetHeight;h!=="border"&&d.each(o,function(){h||(n-=parseFloat(d.curCSS(b,"padding"+this,true))||0);if(h==="margin")n+=parseFloat(d.curCSS(b,"margin"+this,true))||0;else n-=parseFloat(d.curCSS(b,"border"+this+"Width",true))||0})};b.offsetWidth!==0? u():d.swap(b,e,u);return Math.max(0,Math.round(n))}return d.curCSS(b,c,e)},curCSS:function(b,c,e){var h,n=b.style;if(c=="opacity"&&!d.support.opacity){h=d.attr(n,"opacity");return h==""?"1":h}if(c.match(/float/i))c=Z;if(!e&&n&&n[c])h=n[c];else if(ga.getComputedStyle){if(c.match(/float/i))c="float";c=c.replace(/([A-Z])/g,"-$1").toLowerCase();if(b=ga.getComputedStyle(b,null))h=b.getPropertyValue(c);if(c=="opacity"&&h=="")h="1"}else if(b.currentStyle){h=c.replace(/\-(\w)/g,function(o,u){return u.toUpperCase()}); h=b.currentStyle[c]||b.currentStyle[h];if(!/^\d+(px)?$/i.test(h)&&/^\d/.test(h)){c=n.left;e=b.runtimeStyle.left;b.runtimeStyle.left=b.currentStyle.left;n.left=h||0;h=n.pixelLeft+"px";n.left=c;b.runtimeStyle.left=e}}return h},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 h=/^<(\w+)\s*\/?>$/.exec(b[0]);if(h)return[c.createElement(h[1])]}var n=[];h=[];var o=c.createElement("div"); d.each(b,function(u,v){if(typeof v==="number")v+="";if(v){if(typeof v==="string"){v=v.replace(/(<(\w+)[^>]*?)\/>/g,function(M,O,B){return B.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?M:O+"></"+B+">"});var E=v.replace(/^\s+/,"").substring(0,10).toLowerCase(),F=!E.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!E.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||E.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!E.indexOf("<tr")&&[2,"<table><tbody>", "</tbody></table>"]||(!E.indexOf("<td")||!E.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!E.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!d.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];for(o.innerHTML=F[1]+v+F[2];F[0]--;)o=o.lastChild;if(!d.support.tbody){var I=/<tbody/i.test(v);E=!E.indexOf("<table")&&!I?o.firstChild&&o.firstChild.childNodes:F[1]=="<table>"&&!I?o.childNodes:[];for(F=E.length-1;F>=0;--F)d.nodeName(E[F],"tbody")&& !E[F].childNodes.length&&E[F].parentNode.removeChild(E[F])}!d.support.leadingWhitespace&&/^\s/.test(v)&&o.insertBefore(c.createTextNode(v.match(/^\s*/)[0]),o.firstChild);v=d.makeArray(o.childNodes)}if(v.nodeType)n.push(v);else n=d.merge(n,v)}});if(e){for(b=0;n[b];b++)if(d.nodeName(n[b],"script")&&(!n[b].type||n[b].type.toLowerCase()==="text/javascript"))h.push(n[b].parentNode?n[b].parentNode.removeChild(n[b]):n[b]);else{n[b].nodeType===1&&n.splice.apply(n,[b+1,0].concat(d.makeArray(n[b].getElementsByTagName("script")))); e.appendChild(n[b])}return h}return n},attr:function(b,c,e){if(!(!b||b.nodeType==3||b.nodeType==8)){var h=!d.isXMLDoc(b),n=e!==void 0;c=h&&d.props[c]||c;if(b.tagName){var o=/href|src|style/.test(c);if(c in b&&h&&!o){if(n){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&&h&&c=="style")return d.attr(b.style,"cssText",e);n&&b.setAttribute(c,""+e);b=!d.support.hrefNormalized&&h&&o?b.getAttribute(c,2):b.getAttribute(c);return b===null?void 0:b}if(!d.support.opacity&&c=="opacity"){if(n){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(u,v){return v.toUpperCase()});if(n)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,h=c.length;e<h;e++)if(c[e]===b)return e;return-1},merge:function(b,c){var e=0,h,n=b.length;if(d.support.getAll)for(;(h=c[e++])!=null;)b[n++]=h;else for(;(h= c[e++])!=null;)if(h.nodeType!=8)b[n++]=h;return b},unique:function(b){var c=[],e={};try{for(var h=0,n=b.length;h<n;h++){var o=d.data(b[h]);if(!e[o]){e[o]=true;c.push(b[h])}}}catch(u){c=b}return c},grep:function(b,c,e){for(var h=[],n=0,o=b.length;n<o;n++)!e!=!c(b[n],n)&&h.push(b[n]);return h},map:function(b,c){for(var e=[],h=0,n=b.length;h<n;h++){var o=c(b[h],h);if(o!=null)e[e.length]=o}return e.concat.apply([],e)}});var S=navigator.userAgent.toLowerCase();d.browser={version:(S.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)|| [0,"0"])[1],safari:/webkit/.test(S),opera:/opera/.test(S),msie:/msie/.test(S)&&!/opera/.test(S),mozilla:/mozilla/.test(S)&&!/(compatible|webkit)/.test(S)};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 h=d.map(this,c);if(e&&typeof e=="string")h=d.multiFilter(e,h);return this.pushStack(d.unique(h),b,e)}});d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,c){d.fn[b]=function(e){for(var h=[],n=d(e),o=0,u=n.length;o< u;o++){var v=(o>0?this.clone(true):this).get();d.fn[c].apply(d(n[o]),v);h=h.concat(v)}return this.pushStack(h,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 R="jQuery"+ +new Date,la=0,ia={};d.extend({cache:{},data:function(b,c,e){b=b==D?ia:b;var h=b[R];h||(h=b[R]=++la);if(c&&!d.cache[h])d.cache[h]={};if(e!==void 0)d.cache[h][c]=e;return c?d.cache[h][c]:h},removeData:function(b,c){b=b==D?ia:b;var e=b[R];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[R]}catch(h){b.removeAttribute&&b.removeAttribute(R)}delete d.cache[e]}},queue:function(b,c,e){if(b){c=(c||"fx")+"queue";var h=d.data(b,c);if(!h||d.isArray(e))h=d.data(b,c,d.makeArray(e));else e&&h.push(e)}return h},dequeue:function(b,c){var e=d.queue(b,c),h=e.shift();if(!c||c==="fx")h=e[0];h!==void 0&&h.call(b)}});d.fn.extend({data:function(b,c){var e=b.split(".");e[1]=e[1]?"."+e[1]:"";if(c===void 0){var h=this.triggerHandler("getData"+ e[1]+"!",[e[0]]);if(h===void 0&&this.length)h=d.data(this[0],b);return h===void 0&&e[1]?this.data(e[0]):h}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(g,k,p,r,s,t){s=g=="previousSibling"&&!t;for(var z=0,J=r.length;z<J;z++){var A=r[z];if(A){if(s&&A.nodeType===1){A.sizcache=p;A.sizset=z}A=A[g];for(var N=false;A;){if(A.sizcache===p){N=r[A.sizset];break}if(A.nodeType===1&&!t){A.sizcache=p;A.sizset=z}if(A.nodeName===k){N=A;break}A=A[g]}r[z]=N}}}function c(g,k,p,r,s,t){s=g=="previousSibling"&&!t;for(var z=0,J=r.length;z<J;z++){var A=r[z];if(A){if(s&&A.nodeType===1){A.sizcache=p;A.sizset=z}A=A[g];for(var N=false;A;){if(A.sizcache=== p){N=r[A.sizset];break}if(A.nodeType===1){if(!t){A.sizcache=p;A.sizset=z}if(typeof k!=="string"){if(A===k){N=true;break}}else if(o.filter(k,[A]).length>0){N=A;break}}A=A[g]}r[z]=N}}}var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,h=0,n=Object.prototype.toString,o=function(g,k,p,r){p=p||[];k=k||document;if(k.nodeType!==1&&k.nodeType!==9)return[];if(!g||typeof g!=="string")return p;var s=[],t,z,J,A=true;for(e.lastIndex=0;(t= e.exec(g))!==null;){s.push(t[1]);if(t[2]){J=RegExp.rightContext;break}}if(s.length>1&&v.exec(g))if(s.length===2&&u.relative[s[0]])t=Q(s[0]+s[1],k);else for(t=u.relative[s[0]]?[k]:o(s.shift(),k);s.length;){g=s.shift();if(u.relative[g])g+=s.shift();t=Q(g,t)}else{t=r?{expr:s.pop(),set:F(r)}:o.find(s.pop(),s.length===1&&k.parentNode?k.parentNode:k,B(k));t=o.filter(t.expr,t.set);if(s.length>0)z=F(t);else A=false;for(;s.length;){var N=s.pop(),P=N;if(u.relative[N])P=s.pop();else N="";if(P==null)P=k;u.relative[N](z, P,B(k))}}z||(z=t);if(!z)throw"Syntax error, unrecognized expression: "+(N||g);if(n.call(z)==="[object Array]")if(A)if(k.nodeType===1)for(g=0;z[g]!=null;g++){if(z[g]&&(z[g]===true||z[g].nodeType===1&&O(k,z[g])))p.push(t[g])}else for(g=0;z[g]!=null;g++)z[g]&&z[g].nodeType===1&&p.push(t[g]);else p.push.apply(p,z);else F(z,p);if(J){o(J,k,p,r);if(M){hasDuplicate=false;p.sort(M);if(hasDuplicate)for(g=1;g<p.length;g++)p[g]===p[g-1]&&p.splice(g--,1)}}return p};o.matches=function(g,k){return o(g,null,null, k)};o.find=function(g,k,p){var r,s;if(!g)return[];for(var t=0,z=u.order.length;t<z;t++){var J=u.order[t];if(s=u.match[J].exec(g)){var A=RegExp.leftContext;if(A.substr(A.length-1)!=="\\"){s[1]=(s[1]||"").replace(/\\/g,"");r=u.find[J](s,k,p);if(r!=null){g=g.replace(u.match[J],"");break}}}}r||(r=k.getElementsByTagName("*"));return{set:r,expr:g}};o.filter=function(g,k,p,r){for(var s=g,t=[],z=k,J,A,N=k&&k[0]&&B(k[0]);g&&k.length;){for(var P in u.filter)if((J=u.match[P].exec(g))!=null){var ma=u.filter[P], T,aa;A=false;if(z==t)t=[];if(u.preFilter[P])if(J=u.preFilter[P](J,z,p,t,r,N)){if(J===true)continue}else A=T=true;if(J)for(var ba=0;(aa=z[ba])!=null;ba++)if(aa){T=ma(aa,J,ba,z);var ja=r^!!T;if(p&&T!=null)if(ja)A=true;else z[ba]=false;else if(ja){t.push(aa);A=true}}if(T!==void 0){p||(z=t);g=g.replace(u.match[P],"");if(!A)return[];break}}if(g==s)if(A==null)throw"Syntax error, unrecognized expression: "+g;else break;s=g}return z};var u=o.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(g){return g.getAttribute("href")}}, relative:{"+":function(g,k,p){var r=typeof k==="string",s=r&&!/\W/.test(k);r=r&&!s;if(s&&!p)k=k.toUpperCase();p=0;s=g.length;for(var t;p<s;p++)if(t=g[p]){for(;(t=t.previousSibling)&&t.nodeType!==1;);g[p]=r||t&&t.nodeName===k?t||false:t===k}r&&o.filter(k,g,true)},">":function(g,k,p){var r=typeof k==="string";if(r&&!/\W/.test(k)){k=p?k:k.toUpperCase();p=0;for(var s=g.length;p<s;p++){var t=g[p];if(t){r=t.parentNode;g[p]=r.nodeName===k?r:false}}}else{p=0;for(s=g.length;p<s;p++)if(t=g[p])g[p]=r?t.parentNode: t.parentNode===k;r&&o.filter(k,g,true)}},"":function(g,k,p){var r=h++,s=c;if(!k.match(/\W/)){var t=k=p?k:k.toUpperCase();s=b}s("parentNode",k,r,g,t,p)},"~":function(g,k,p){var r=h++,s=c;if(typeof k==="string"&&!k.match(/\W/)){var t=k=p?k:k.toUpperCase();s=b}s("previousSibling",k,r,g,t,p)}},find:{ID:function(g,k,p){if(typeof k.getElementById!=="undefined"&&!p)return(g=k.getElementById(g[1]))?[g]:[]},NAME:function(g,k){if(typeof k.getElementsByName!=="undefined"){for(var p=[],r=k.getElementsByName(g[1]), s=0,t=r.length;s<t;s++)r[s].getAttribute("name")===g[1]&&p.push(r[s]);return p.length===0?null:p}},TAG:function(g,k){return k.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,k,p,r,s,t){g=" "+g[1].replace(/\\/g,"")+" ";if(t)return g;t=0;for(var z;(z=k[t])!=null;t++)if(z)if(s^(z.className&&(" "+z.className+" ").indexOf(g)>=0))p||r.push(z);else if(p)k[t]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g,k){for(var p=0;k[p]===false;p++);return k[p]&&B(k[p])?g[1]: g[1].toUpperCase()},CHILD:function(g){if(g[1]=="nth"){var k=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]=="even"&&"2n"||g[2]=="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=k[1]+(k[2]||1)-0;g[3]=k[3]-0}g[0]=h++;return g},ATTR:function(g,k,p,r,s,t){k=g[1].replace(/\\/g,"");if(!t&&u.attrMap[k])g[1]=u.attrMap[k];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,k,p,r,s){if(g[1]==="not")if(g[3].match(e).length>1||/^\w/.test(g[3]))g[3]=o(g[3],null,null,k);else{g=o.filter(g[3],k,p,true^s);p|| r.push.apply(r,g);return false}else if(u.match.POS.test(g[0])||u.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,k,p){return!!o(p[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)}, text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toUpperCase()==="BUTTON"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}}, setFilters:{first:function(g,k){return k===0},last:function(g,k,p,r){return k===r.length-1},even:function(g,k){return k%2===0},odd:function(g,k){return k%2===1},lt:function(g,k,p){return k<p[3]-0},gt:function(g,k,p){return k>p[3]-0},nth:function(g,k,p){return p[3]-0==k},eq:function(g,k,p){return p[3]-0==k}},filter:{PSEUDO:function(g,k,p,r){var s=k[1],t=u.filters[s];if(t)return t(g,p,k,r);else if(s==="contains")return(g.textContent||g.innerText||"").indexOf(k[3])>=0;else if(s==="not"){k=k[3];p=0;for(r= k.length;p<r;p++)if(k[p]===g)return false;return true}},CHILD:function(g,k){var p=k[1],r=g;switch(p){case "only":case "first":for(;r=r.previousSibling;)if(r.nodeType===1)return false;if(p=="first")return true;r=g;case "last":for(;r=r.nextSibling;)if(r.nodeType===1)return false;return true;case "nth":p=k[2];var s=k[3];if(p==1&&s==0)return true;var t=k[0],z=g.parentNode;if(z&&(z.sizcache!==t||!g.nodeIndex)){var J=0;for(r=z.firstChild;r;r=r.nextSibling)if(r.nodeType===1)r.nodeIndex=++J;z.sizcache=t}r= g.nodeIndex-s;return p==0?r==0:r%p==0&&r/p>=0}},ID:function(g,k){return g.nodeType===1&&g.getAttribute("id")===k},TAG:function(g,k){return k==="*"&&g.nodeType===1||g.nodeName===k},CLASS:function(g,k){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(k)>-1},ATTR:function(g,k){var p=k[1];p=u.attrHandle[p]?u.attrHandle[p](g):g[p]!=null?g[p]:g.getAttribute(p);var r=p+"",s=k[2],t=k[4];return p==null?s==="!=":s==="="?r===t:s==="*="?r.indexOf(t)>=0:s==="~="?(" "+r+" ").indexOf(t)>=0:!t?r&&p!== false:s==="!="?r!=t:s==="^="?r.indexOf(t)===0:s==="$="?r.substr(r.length-t.length)===t:s==="|="?r===t||r.substr(0,t.length+1)===t+"-":false},POS:function(g,k,p,r){var s=u.setFilters[k[2]];if(s)return s(g,p,k,r)}}},v=u.match.POS,E;for(E in u.match)u.match[E]=RegExp(u.match[E].source+/(?![^\[]*\])(?![^\(]*\))/.source);var F=function(g,k){g=Array.prototype.slice.call(g);if(k){k.push.apply(k,g);return k}return g};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(I){F=function(g, k){var p=k||[];if(n.call(g)==="[object Array]")Array.prototype.push.apply(p,g);else if(typeof g.length==="number")for(var r=0,s=g.length;r<s;r++)p.push(g[r]);else for(r=0;g[r];r++)p.push(g[r]);return p}}var M;if(document.documentElement.compareDocumentPosition)M=function(g,k){var p=g.compareDocumentPosition(k)&4?-1:g===k?0:1;if(p===0)hasDuplicate=true;return p};else if("sourceIndex"in document.documentElement)M=function(g,k){var p=g.sourceIndex-k.sourceIndex;if(p===0)hasDuplicate=true;return p};else if(document.createRange)M= function(g,k){var p=g.ownerDocument.createRange(),r=k.ownerDocument.createRange();p.selectNode(g);p.collapse(true);r.selectNode(k);r.collapse(true);p=p.compareBoundaryPoints(Range.START_TO_END,r);if(p===0)hasDuplicate=true;return p};(function(){var g=document.createElement("form"),k="script"+(new Date).getTime();g.innerHTML="<input name='"+k+"'/>";var p=document.documentElement;p.insertBefore(g,p.firstChild);if(document.getElementById(k)){u.find.ID=function(r,s,t){if(typeof s.getElementById!=="undefined"&& !t)return(s=s.getElementById(r[1]))?s.id===r[1]||typeof s.getAttributeNode!=="undefined"&&s.getAttributeNode("id").nodeValue===r[1]?[s]:void 0:[]};u.filter.ID=function(r,s){var t=typeof r.getAttributeNode!=="undefined"&&r.getAttributeNode("id");return r.nodeType===1&&t&&t.nodeValue===s}}p.removeChild(g)})();(function(){var g=document.createElement("div");g.appendChild(document.createComment(""));if(g.getElementsByTagName("*").length>0)u.find.TAG=function(k,p){var r=p.getElementsByTagName(k[1]);if(k[1]=== "*"){for(var s=[],t=0;r[t];t++)r[t].nodeType===1&&s.push(r[t]);r=s}return r};g.innerHTML="<a href='#'></a>";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")u.attrHandle.href=function(k){return k.getAttribute("href",2)}})();document.querySelectorAll&&function(){var g=o,k=document.createElement("div");k.innerHTML="<p class='TEST'></p>";if(!(k.querySelectorAll&&k.querySelectorAll(".TEST").length===0)){o=function(p,r,s,t){r=r||document;if(!t&&r.nodeType=== 9&&!B(r))try{return F(r.querySelectorAll(p),s)}catch(z){}return g(p,r,s,t)};o.find=g.find;o.filter=g.filter;o.selectors=g.selectors;o.matches=g.matches}}();document.getElementsByClassName&&document.documentElement.getElementsByClassName&&function(){var g=document.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(g.getElementsByClassName("e").length!==0){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){u.order.splice(1,0,"CLASS");u.find.CLASS= function(k,p,r){if(typeof p.getElementsByClassName!=="undefined"&&!r)return p.getElementsByClassName(k[1])}}}}();var O=document.compareDocumentPosition?function(g,k){return g.compareDocumentPosition(k)&16}:function(g,k){return g!==k&&(g.contains?g.contains(k):true)},B=function(g){return g.nodeType===9&&g.documentElement.nodeName!=="HTML"||!!g.ownerDocument&&B(g.ownerDocument)},Q=function(g,k){for(var p=[],r="",s,t=k.nodeType?[k]:k;s=u.match.PSEUDO.exec(g);){r+=s[0];g=g.replace(u.match.PSEUDO,"")}g= u.relative[g]?g+"*":g;s=0;for(var z=t.length;s<z;s++)o(g,t[s],p);return o.filter(r,p)};d.find=o;d.filter=o.filter;d.expr=o.selectors;d.expr[":"]=d.expr.filters;o.selectors.filters.hidden=function(g){return g.offsetWidth===0||g.offsetHeight===0};o.selectors.filters.visible=function(g){return g.offsetWidth>0||g.offsetHeight>0};o.selectors.filters.animated=function(g){return d.grep(d.timers,function(k){return g===k.elem}).length};d.multiFilter=function(g,k,p){if(p)g=":not("+g+")";return o.matches(g, k)};d.dir=function(g,k){for(var p=[],r=g[k];r&&r!=document;){r.nodeType==1&&p.push(r);r=r[k]}return p};d.nth=function(g,k,p){k=k||1;for(var r=0;g;g=g[p])if(g.nodeType==1&&++r==k)break;return g};d.sibling=function(g,k){for(var p=[];g;g=g.nextSibling)g.nodeType==1&&g!=k&&p.push(g);return p}})();d.event={add:function(b,c,e,h){if(!(b.nodeType==3||b.nodeType==8)){if(b.setInterval&&b!=D)b=D;if(!e.guid)e.guid=this.guid++;if(h!==void 0){e=this.proxy(e);e.data=h}var n=d.data(b,"events")||d.data(b,"events", {}),o=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});o.elem=b;d.each(c.split(/\s+/),function(u,v){var E=v.split(".");v=E.shift();e.type=E.slice().sort().join(".");var F=n[v];d.event.specialAll[v]&&d.event.specialAll[v].setup.call(b,h,E);if(!F){F=n[v]={};if(!d.event.special[v]||d.event.special[v].setup.call(b,h,E)===false)if(b.addEventListener)b.addEventListener(v,o,false);else b.attachEvent&& b.attachEvent("on"+v,o)}F[e.guid]=e;d.event.global[v]=true});b=null}},guid:1,global:{},remove:function(b,c,e){if(!(b.nodeType==3||b.nodeType==8)){var h=d.data(b,"events"),n;if(h){if(c===void 0||typeof c==="string"&&c.charAt(0)==".")for(var o in h)this.remove(b,o+(c||""));else{if(c.type){e=c.handler;c=c.type}d.each(c.split(/\s+/),function(u,v){var E=v.split(".");v=E.shift();var F=RegExp("(^|\\.)"+E.slice().sort().join(".*\\.")+"(\\.|$)");if(h[v]){if(e)delete h[v][e.guid];else for(var I in h[v])F.test(h[v][I].type)&& delete h[v][I];d.event.specialAll[v]&&d.event.specialAll[v].teardown.call(b,E);for(n in h[v])break;if(!n){if(!d.event.special[v]||d.event.special[v].teardown.call(b,E)===false)if(b.removeEventListener)b.removeEventListener(v,d.data(b,"handle"),false);else b.detachEvent&&b.detachEvent("on"+v,d.data(b,"handle"));n=null;delete h[v]}}})}for(n in h)break;if(!n){if(c=d.data(b,"handle"))c.elem=null;d.removeData(b,"events");d.removeData(b,"handle")}}}},trigger:function(b,c,e,h){var n=b.type||b;if(!h){b=typeof b=== "object"?b[R]?b:d.extend(d.Event(n),b):d.Event(n);if(n.indexOf("!")>=0){b.type=n=n.slice(0,-1);b.exclusive=true}if(!e){b.stopPropagation();this.global[n]&&d.each(d.cache,function(){this.events&&this.events[n]&&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 o=d.data(e,"handle");o&&o.apply(e,c);if((!e[n]||d.nodeName(e,"a")&&n=="click")&&e["on"+n]&&e["on"+n].apply(e,c)===false)b.result= false;if(!h&&e[n]&&!b.isDefaultPrevented()&&!(d.nodeName(e,"a")&&n=="click")){this.triggered=true;try{e[n]()}catch(u){}}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||D.event);b.currentTarget=this;e=b.type.split(".");b.type=e.shift();c=!e.length&&!b.exclusive;var h=RegExp("(^|\\.)"+e.slice().sort().join(".*\\.")+"(\\.|$)");e=(d.data(this,"events")||{})[b.type];for(var n in e){var o= e[n];if(c||h.test(o.type)){b.handler=o;b.data=o.data;o=o.apply(this,arguments);if(o!==void 0){b.result=o;if(o===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[R])return b;var c=b;b=d.Event(c);for(var e=this.props.length,h;e;){h=this.props[--e];b[h]=c[h]}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:H,teardown:function(){}}},specialAll:{live:{setup:function(b,c){d.event.add(this,c[0],w)},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],w)}}}}};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[R]=true};d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=q;var b=this.originalEvent;if(b){b.preventDefault&&b.preventDefault();b.returnValue=false}},stopPropagation:function(){this.isPropagationStopped= q;var b=this.originalEvent;if(b){b.stopPropagation&&b.stopPropagation();b.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=q;this.stopPropagation()},isDefaultPrevented:l,isPropagationStopped:l,isImmediatePropagationStopped:l};var ka=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,ka,c)},teardown:function(){d.event.remove(this,b,ka)}}});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 h=d.event.proxy(e||c,function(n){d(this).unbind(n,h);return(e||c).apply(this,arguments)});return this.each(function(){d.event.add(this,b,h,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(h){this.lastToggle=(this.lastToggle||0)%e;h.preventDefault();return c[this.lastToggle++].apply(this,arguments)||false}))},hover:function(b,c){return this.mouseenter(b).mouseleave(c)},ready:function(b){H();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(C(b,this.selector),this.selector,e);return this},die:function(b,c){d(document).unbind(C(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 ea=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(D).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"), h="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 n=e.getElementsByTagName("*"),o=e.getElementsByTagName("a")[0];if(!(!n||!n.length||!o)){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(o.getAttribute("style")),hrefNormalized:o.getAttribute("href")==="/a",opacity:o.style.opacity==="0.5",cssFloat:!!o.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};c.type="text/javascript";try{c.appendChild(document.createTextNode("window."+h+"=1;"))}catch(u){}b.insertBefore(c,b.firstChild);if(D[h]){d.support.scriptEval=true;delete D[h]}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 v=document.createElement("div");v.style.width=v.style.paddingLeft="1px";document.body.appendChild(v);d.boxModel=d.support.boxModel=v.offsetWidth===2;document.body.removeChild(v).style.display="none"})}})();var Z=d.support.cssFloat?"cssFloat":"styleFloat";d.props={"for":"htmlFor","class":"className","float":Z,cssFloat:Z,styleFloat:Z,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 h=b.indexOf(" ");if(h>=0){var n=b.slice(h,b.length);b=b.slice(0,h)}h="GET";if(c)if(d.isFunction(c)){e=c;c=null}else if(typeof c==="object"){c=d.param(c);h="POST"}var o=this;d.ajax({url:b,type:h,dataType:"html",data:c,complete:function(u,v){if(v=="success"||v=="notmodified")o.html(n?d("<div/>").append(u.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(n):u.responseText);e&&o.each(e,[u.responseText, v,u])}});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(h){return{name:c.name,value:h}}):{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 na=+new Date;d.extend({get:function(b,c,e,h){if(d.isFunction(c)){e=c;c=null}return d.ajax({type:"GET",url:b,data:c,success:e,dataType:h})},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,h){if(d.isFunction(c)){e=c;c={}}return d.ajax({type:"POST",url:b,data:c,success:e,dataType:h})}, 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 D.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(u,o);b.global&&d.event.trigger("ajaxSuccess",[B,b])}function e(){b.complete&&b.complete(B,o);b.global&&d.event.trigger("ajaxComplete",[B,b]);b.global&&!--d.active&&d.event.trigger("ajaxStop")}b=d.extend(true,b,d.extend(true,{},d.ajaxSettings,b));var h,n=/=\?(&|$)/g,o,u,v=b.type.toUpperCase();if(b.data&&b.processData&&typeof b.data!=="string")b.data=d.param(b.data);if(b.dataType=="jsonp"){if(v=="GET")b.url.match(n)||(b.url+=(b.url.match(/\?/)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data|| !b.data.match(n))b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?";b.dataType="json"}if(b.dataType=="json"&&(b.data&&b.data.match(n)||b.url.match(n))){h="jsonp"+na++;if(b.data)b.data=(b.data+"").replace(n,"="+h+"$1");b.url=b.url.replace(n,"="+h+"$1");b.dataType="script";D[h]=function(r){u=r;c();e();D[h]=void 0;try{delete D[h]}catch(s){}F&&F.removeChild(I)}}if(b.dataType=="script"&&b.cache==null)b.cache=false;if(b.cache===false&&v=="GET"){n=+new Date;var E=b.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ n+"$2");b.url=E+(E==b.url?(b.url.match(/\?/)?"&":"?")+"_="+n:"")}if(b.data&&v=="GET"){b.url+=(b.url.match(/\?/)?"&":"?")+b.data;b.data=null}b.global&&!d.active++&&d.event.trigger("ajaxStart");n=/^(\w+:)?\/\/([^\/?#]+)/.exec(b.url);if(b.dataType=="script"&&v=="GET"&&n&&(n[1]&&n[1]!=location.protocol||n[2]!=location.host)){var F=document.getElementsByTagName("head")[0],I=document.createElement("script");I.src=b.url;if(b.scriptCharset)I.charset=b.scriptCharset;if(!h){var M=false;I.onload=I.onreadystatechange= function(){if(!M&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){M=true;c();e();I.onload=I.onreadystatechange=null;F.removeChild(I)}}}F.appendChild(I)}else{var O=false,B=b.xhr();b.username?B.open(v,b.url,b.async,b.username,b.password):B.open(v,b.url,b.async);try{b.data&&B.setRequestHeader("Content-Type",b.contentType);if(b.ifModified)B.setRequestHeader("If-Modified-Since",d.lastModified[b.url]||"Thu, 01 Jan 1970 00:00:00 GMT");B.setRequestHeader("X-Requested-With","XMLHttpRequest"); B.setRequestHeader("Accept",b.dataType&&b.accepts[b.dataType]?b.accepts[b.dataType]+", */*":b.accepts._default)}catch(Q){}if(b.beforeSend&&b.beforeSend(B,b)===false){b.global&&!--d.active&&d.event.trigger("ajaxStop");B.abort();return false}b.global&&d.event.trigger("ajaxSend",[B,b]);var g=function(r){if(B.readyState==0){if(k){clearInterval(k);k=null;b.global&&!--d.active&&d.event.trigger("ajaxStop")}}else if(!O&&B&&(B.readyState==4||r=="timeout")){O=true;if(k){clearInterval(k);k=null}o=r=="timeout"? "timeout":!d.httpSuccess(B)?"error":b.ifModified&&d.httpNotModified(B,b.url)?"notmodified":"success";if(o=="success")try{u=d.httpData(B,b.dataType,b)}catch(s){o="parsererror"}if(o=="success"){var t;try{t=B.getResponseHeader("Last-Modified")}catch(z){}if(b.ifModified&&t)d.lastModified[b.url]=t;h||c()}else d.handleError(b,B,o);e();r&&B.abort();if(b.async)B=null}};if(b.async){var k=setInterval(g,13);b.timeout>0&&setTimeout(function(){B&&!O&&g("timeout")},b.timeout)}try{B.send(b.data)}catch(p){d.handleError(b, B,null,p)}b.async||g();return B}},handleError:function(b,c,e,h){b.error&&b.error(c,e,h);b.global&&d.event.trigger("ajaxError",[c,b,h])},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(h){}return false},httpData:function(b,c,e){var h=b.getResponseHeader("content-type"); b=(h=c=="xml"||!c&&h&&h.indexOf("xml")>=0)?b.responseXML:b.responseText;if(h&&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=D.eval("("+b+")")}return b},param:function(b){function c(n,o){e[e.length]=encodeURIComponent(n)+"="+encodeURIComponent(o)}var e=[];if(d.isArray(b)||b.jquery)d.each(b,function(){c(this.name,this.value)});else for(var h in b)d.isArray(b[h])?d.each(b[h],function(){c(h, this)}):c(h,d.isFunction(b[h])?b[h]():b[h]);return e.join("&").replace(/%20/g,"+")}});var da={},ca,fa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(b,c){if(b)return this.animate(G("show",3),b,c);else{for(var e=0,h=this.length;e<h;e++){var n=d.data(this[e],"olddisplay");this[e].style.display=n||"";if(d.css(this[e],"display")==="none"){n=this[e].tagName;var o;if(da[n])o=da[n]; else{var u=d("<"+n+" />").appendTo("body");o=u.css("display");if(o==="none")o="block";u.remove();da[n]=o}d.data(this[e],"olddisplay",o)}}e=0;for(h=this.length;e<h;e++)this[e].style.display=d.data(this[e],"olddisplay")||"";return this}},hide:function(b,c){if(b)return this.animate(G("hide",3),b,c);else{for(var e=0,h=this.length;e<h;e++){var n=d.data(this[e],"olddisplay");!n&&n!=="none"&&d.data(this[e],"olddisplay",d.css(this[e],"display"))}e=0;for(h=this.length;e<h;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 h=e?b:d(this).is(":hidden");d(this)[h?"show":"hide"]()}):this.animate(G("toggle",3),b,c)},fadeTo:function(b,c,e){return this.animate({opacity:c},b,e)},animate:function(b,c,e,h){var n=d.speed(c,e,h);return this[n.queue===false?"each":"queue"](function(){var o=d.extend({},n),u,v=this.nodeType==1&&d(this).is(":hidden"), E=this;for(u in b){if(b[u]=="hide"&&v||b[u]=="show"&&!v)return o.complete.call(this);if((u=="height"||u=="width")&&this.style){o.display=d.css(this,"display");o.overflow=this.style.overflow}}if(o.overflow!=null)this.style.overflow="hidden";o.curAnim=d.extend({},b);d.each(b,function(F,I){var M=new d.fx(E,o,F);if(/toggle|show|hide/.test(I))M[I=="toggle"?v?"show":"hide":I](b);else{var O=I.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),B=M.cur(true)||0;if(O){var Q=parseFloat(O[2]),g=O[3]||"px";if(g!="px"){E.style[F]= (Q||1)+g;B=(Q||1)/M.cur(true)*B;E.style[F]=B+g}if(O[1])Q=(O[1]=="-="?-1:1)*Q+B;M.custom(B,Q,g)}else M.custom(B,I,"")}});return true})},stop:function(b,c){var e=d.timers;b&&this.queue([]);this.each(function(){for(var h=e.length-1;h>=0;h--)if(e[h].elem==this){c&&e[h](true);e.splice(h,1)}});c||this.dequeue();return this}});d.each({slideDown:G("show",1),slideUp:G("hide",1),slideToggle:G("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,c){d.fn[b]=function(e,h){return this.animate(c, e,h)}});d.extend({speed:function(b,c,e){var h=typeof b==="object"?b:{complete:e||!e&&c||d.isFunction(b)&&b,duration:b,easing:e&&c||c&&!d.isFunction(c)&&c};h.duration=d.fx.off?0:typeof h.duration==="number"?h.duration:d.fx.speeds[h.duration]||d.fx.speeds._default;h.old=h.complete;h.complete=function(){h.queue!==false&&d(this).dequeue();d.isFunction(h.old)&&h.old.call(this)};return h},easing:{linear:function(b,c,e,h){return e+h*b},swing:function(b,c,e,h){return(-Math.cos(b*Math.PI)/2+0.5)*h+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 h(o){return n.step(o)}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 n=this;h.elem=this.elem;if(h()&&d.timers.push(h)&&!ca)ca=setInterval(function(){for(var o=d.timers,u=0;u<o.length;u++)o[u]()||o.splice(u--,1);if(!o.length){clearInterval(ca);ca=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 h in this.options.curAnim)d.attr(this.elem.style,h,this.options.orig[h]);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, h,n=e.documentElement,o=e.body;e=e.defaultView;h=e.getComputedStyle(b,null);for(var u=b.offsetTop,v=b.offsetLeft;(b=b.parentNode)&&b!==o&&b!==n;){h=e.getComputedStyle(b,null);u-=b.scrollTop;v-=b.scrollLeft;if(b===c){u+=b.offsetTop;v+=b.offsetLeft;if(d.offset.doesNotAddBorder&&!(d.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.tagName))){u+=parseInt(h.borderTopWidth,10)||0;v+=parseInt(h.borderLeftWidth,10)||0}c=b.offsetParent}if(d.offset.subtractsBorderForOverflowNotVisible&&h.overflow!== "visible"){u+=parseInt(h.borderTopWidth,10)||0;v+=parseInt(h.borderLeftWidth,10)||0}h=h}if(h.position==="relative"||h.position==="static"){u+=o.offsetTop;v+=o.offsetLeft}if(h.position==="fixed"){u+=Math.max(n.scrollTop,o.scrollTop);v+=Math.max(n.scrollLeft,o.scrollLeft)}return{top:u,left:v}};d.offset={initialize:function(){if(!this.initialized){var b=document.body,c=document.createElement("div"),e,h,n,o=b.style.marginTop;e={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px", visibility:"hidden"};for(h in e)c.style[h]=e[h];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;h=e.firstChild;n=e.nextSibling.firstChild.firstChild;this.doesNotAddBorder=h.offsetTop!==5;this.doesAddBorderForTableAndCells= n.offsetTop===5;e.style.overflow="hidden";e.style.position="relative";this.subtractsBorderForOverflowNotVisible=h.offsetTop===-5;b.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=b.offsetTop===0;b.style.marginTop=o;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-=j(this,"marginTop");c.left-=j(this,"marginLeft");e.top+=j(b,"borderTopWidth");e.left+=j(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(h){if(!this[0])return null;return h!==void 0?this.each(function(){this==D||this==document?D.scrollTo(!b?h:d(D).scrollLeft(),b?h:d(D).scrollTop()):this[e]=h}):this[0]==D||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(n){return this[0]?d.css(this[0],e,false,n?"margin":"border"):null};var h=c.toLowerCase();d.fn[h]=function(n){return this[0]==D?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]):n===void 0?this.length?d.css(this[0], h):null:this.css(h,typeof n==="string"?n:n+"px")}})})(); (function(f){f.fn.loupe=function(j){if(!this.length)return this;j=f.extend({loupe:"loupe",width:200,height:150},j||{});this.each(function(){var l=f(this),q=null,w=null,C=null,H=null,G=function(){q.hide()},D=function(L){var K=C.offset(),d=C.width(),U=C.height(),V=j.width/2,W=j.height/2;if(L.pageX>d+K.left+10||L.pageX<K.left-10||L.pageY>U+K.top+10||L.pageY<K.top-10)return G();if(H&&clearTimeout(H))H=null;q.css({left:L.pageX-V,top:L.pageY-W});w.css({left:-((L.pageX-K.left)/d*w.width()-V)|0,top:-((L.pageY- K.top)/U*w.height()-W)|0})};l.mouseenter(function(L){C||(C=l.is("img")?l:l.find("img:first"));q=(q||(q=f("<div></div>").addClass(j.loupe).css({width:j.width,height:j.height,position:"absolute",overflow:"hidden"}).append(w=f('<img src="'+l.attr(l.is("img")?"src":"href")+'" />').css({position:"absolute"})).mousemove(D).appendTo("body"))).show();D(L)}).mouseout(function(){H=setTimeout(G,10)})});return this}})(jQuery); $(document).ready(function(){$("#nav li").hover(function(){$("ul",this).slideDown(100)},function(){$("ul",this).slideUp(100)})});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 f=0;f<zXml.ARR_XMLHTTP_VERS.length;f++)try{new ActiveXObject(zXml.ARR_XMLHTTP_VERS[f]);zXml.XMLHTTP_VER=zXml.ARR_XMLHTTP_VERS[f];break}catch(j){}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 f=document.implementation.createDocument("","",null);f.parseError={valueOf:function(){return this.errorCode},toString:function(){return this.errorCode.toString()}};f.__initError__();f.addEventListener("load",function(){this.__checkForErrors__();this.__changeReadyState__(4)},false);return f}else if(zXml.useActiveX){if(!zXml.DOM_VER)for(f=0;f<zXml.ARR_DOM_VERS.length;f++)try{new ActiveXObject(zXml.ARR_DOM_VERS[f]);zXml.DOM_VER=zXml.ARR_DOM_VERS[f]; break}catch(j){}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(f){this.readyState=f;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(f){this.__initError__();this.__changeReadyState__(1);for(f=(new DOMParser).parseFromString(f, "text/xml");this.firstChild;)this.removeChild(this.firstChild);for(var j=0;j<f.childNodes.length;j++)this.appendChild(this.importNode(f.childNodes[j],true));this.__checkForErrors__();this.__changeReadyState__(4)};oMozDocument.prototype.__load__=oMozDocument.prototype.load;oMozDocument.prototype.load=function(f){this.__initError__();this.__changeReadyState__(1);this.__load__(f)};Node.prototype.__defineGetter__("xml",function(){return(new XMLSerializer).serializeToString(this,"text/xml")});Node.prototype.__defineGetter__("text", function(){for(var f="",j=0;j<this.childNodes.length;j++)f+=this.childNodes[j].hasChildNodes()?this.childNodes[j].text:this.childNodes[j].nodeValue;return f})}function zXslt(){} zXslt.transformToText=function(f,j){if(typeof XSLTProcessor!="undefined"){var l=new XSLTProcessor;l.importStylesheet(j);l=l.transformToDocument(f).xml;if(l.indexOf("<transformiix:result")>-1)l=l.substring(l.indexOf(">")+1,l.lastIndexOf("<"));return l}else if(zXml.useActiveX)return f.transformNode(j);else throw Error("No XSLT engine found.");};function zXPath(){} zXPath.selectNodes=function(f,j,l){if(typeof XPathEvaluator!="undefined"){l=l||{};f=(new XPathEvaluator).evaluate(j,f,function(C){return l[C]},XPathResult.ORDERED_NODE_ITERATOR_TYPE,null);j=[];if(f!=null)for(var q=f.iterateNext();q;){j.push(q);q=f.iterateNext()}return j}else if(zXml.useActiveX){if(l){q="";for(var w in l)q+="xmlns:"+w+"='"+l[w]+"' ";f.ownerDocument.setProperty("SelectionNamespaces",q)}return f.selectNodes(j)}else throw Error("No XPath engine found.");}; zXPath.selectSingleNode=function(f,j,l){if(typeof XPathEvaluator!="undefined"){l=l||{};f=(new XPathEvaluator).evaluate(j,f,function(C){return l[C]},XPathResult.FIRST_ORDERED_NODE_TYPE,null);return f!=null?f.singleNodeValue:null}else if(zXml.useActiveX){if(l){var q="",w;for(w in l)q+="xmlns:"+w+"='"+l[w]+"' ";f.ownerDocument.setProperty("SelectionNamespaces",q)}return f.selectSingleNode(j)}else throw Error("No XPath engine found.");};function zXMLSerializer(){} zXMLSerializer.prototype.serializeToString=function(f){var j="";switch(f.nodeType){case 1:j="<"+f.tagName;for(var l=0;l<f.attributes.length;l++)j+=" "+f.attributes[l].name+'="'+f.attributes[l].value+'"';j+=">";for(l=0;l<f.childNodes.length;l++)j+=this.serializeToString(f.childNodes[l]);j+="</"+f.tagName+">";break;case 3:j=f.nodeValue;break;case 4:j="<![CDATA["+f.nodeValue+"]]\>";break;case 7:j="<?"+f.nodevalue+"?>";break;case 8:j="<!--"+f.nodevalue+"--\>";break;case 9:for(l=0;l<f.childNodes.length;l++)j+= this.serializeToString(f.childNodes[l])}return j};
