var IEPNGFix=window.IEPNGFix||{};IEPNGFix.tileBG=function(Y,N,R){var y=this.data[Y.uniqueID],ac=Math.max(Y.clientWidth,Y.scrollWidth),X=Math.max(Y.clientHeight,Y.scrollHeight),V=Y.currentStyle.backgroundPositionX,W=Y.currentStyle.backgroundPositionY,Q=Y.currentStyle.backgroundRepeat;if(!y.tiles){y.tiles={elm:Y,src:"",cache:[],img:new Image(),old:{}}}var M=y.tiles,G=M.img.width,ab=M.img.height;if(N){if(!R&&N!=M.src){M.img.onload=function(){this.onload=null;IEPNGFix.tileBG(Y,N,1)};return M.img.src=N}}else{if(M.src){R=1}G=ab=0}M.src=N;if(!R&&ac==M.old.w&&X==M.old.h&&V==M.old.x&&W==M.old.y&&Q==M.old.r){return}var aa={top:"0%",left:"0%",center:"50%",bottom:"100%",right:"100%"},T,U,ad;T=aa[V]||V;U=aa[W]||W;if(ad=T.match(/(\d+)%/)){T=Math.round((ac-G)*(parseInt(ad[1])/100))}if(ad=U.match(/(\d+)%/)){U=Math.round((X-ab)*(parseInt(ad[1])/100))}T=parseInt(T);U=parseInt(U);var J={repeat:1,"repeat-x":1}[Q],P={repeat:1,"repeat-y":1}[Q];if(J){T%=G;if(T>0){T-=G}}if(P){U%=ab;if(U>0){U-=ab}}this.hook.enabled=0;if(!({relative:1,absolute:1}[Y.currentStyle.position])){Y.style.position="relative"}var Z=0,S,d=J?ac:T+0.1,L,x=P?X:U+0.1,s,O,K;if(G&&ab){for(S=T;S<d;S+=G){for(L=U;L<x;L+=ab){K=0;if(!M.cache[Z]){M.cache[Z]=document.createElement("div");K=1}var I=(S+G>ac?ac-S:G),H=(L+ab>X?X-L:ab);s=M.cache[Z];O=s.style;O.behavior="none";O.left=S+"px";O.top=L+"px";O.width=I+"px";O.height=H+"px";O.clip="rect("+(L<0?0-L:0)+"px,"+I+"px,"+H+"px,"+(S<0?0-S:0)+"px)";O.display="block";if(K){O.position="absolute";O.zIndex=-999;if(Y.firstChild){Y.insertBefore(s,Y.firstChild)}else{Y.appendChild(s)}}this.fix(s,N,0);Z++}}}while(Z<M.cache.length){this.fix(M.cache[Z],"",0);M.cache[Z++].style.display="none"}this.hook.enabled=1;M.old={w:ac,h:X,x:V,y:W,r:Q}};IEPNGFix.update=function(){for(var c in IEPNGFix.data){var d=IEPNGFix.data[c].tiles;if(d&&d.elm&&d.src){IEPNGFix.tileBG(d.elm,d.src)}}};IEPNGFix.update.timer=0;if(window.attachEvent&&!window.opera){window.attachEvent("onresize",function(){clearTimeout(IEPNGFix.update.timer);IEPNGFix.update.timer=setTimeout(IEPNGFix.update,100)})}$(document).ready(function(){$("#jemail1").html('<p><strong><a href="#" class="openJE">SIGN UP FOR OUR NEWS &amp; OFFERS</a></strong></p>');$("#jemail2").html('<div id="joinemail" title="SIGN UP FOR OUR NEWS &amp; OFFERS"><iframe frameborder="0" width="100%" height="500" src="http://www.yosemitethisyear.com/form/news-offers.php" scrolling="auto"></iframe></div>');$("#jemail3").html('<a href="#" class="openJE"><img src="/images/email.gif" alt="SIGN UP FOR OUR NEWS &amp; OFFERS" width="35" height="24" border="0" /></a>');$(".hide-jq").remove();$("#accordion").accordion({header:"h3",autoHeight:false,navigation:true});$("#dialog").dialog({autoOpen:false,width:650,buttons:{Ok:function(){$(this).dialog("close")},Cancel:function(){$(this).dialog("close")}}});$.fx.speeds._default=1000;$("#joinemail").dialog({autoOpen:false,modal:true,show:"blind",hide:"blind",width:600,height:550});$(".openJE").click(function(){$("#joinemail").dialog("open");return false});$("#dialog_link").click(function(){$("#dialog").dialog("open");return false});$("#dialog_link, ul#icons li").hover(function(){$(this).addClass("ui-state-hover")},function(){$(this).removeClass("ui-state-hover")})});function newImage(b){if(document.images){rslt=new Image();rslt.src=b;return rslt}}function changeImages(){if(document.images&&(preloadFlag==true)){for(var b=0;b<changeImages.arguments.length;b+=2){document[changeImages.arguments[b]].src=changeImages.arguments[b+1]}}}function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p){d.MM_p=new Array()}var g,h=d.MM_p.length,a=MM_preloadImages.arguments;for(g=0;g<a.length;g++){if(a[g].indexOf("#")!=0){d.MM_p[h]=new Image;d.MM_p[h++].src=a[g]}}}}function MM_findObj(h,i){var j,d,g;if(!i){i=document}if((j=h.indexOf("?"))>0&&parent.frames.length){i=parent.frames[h.substring(j+1)].document;h=h.substring(0,j)}if(!(g=i[h])&&i.all){g=i.all[h]}for(d=0;!g&&d<i.forms.length;d++){g=i.forms[d][h]}for(d=0;!g&&i.layers&&d<i.layers.length;d++){g=MM_findObj(h,i.layers[d].document)}if(!g&&i.getElementById){g=i.getElementById(h)}return g}function MM_nbGroup(j,k){var l,h,i,g=MM_nbGroup.arguments;if(j=="init"&&g.length>2){if((h=MM_findObj(g[2]))!=null&&!h.MM_init){h.MM_init=true;h.MM_up=g[3];h.MM_dn=h.src;if((i=document[k])==null){i=document[k]=new Array()}i[i.length]=h;for(l=4;l<g.length-1;l+=2){if((h=MM_findObj(g[l]))!=null){if(!h.MM_up){h.MM_up=h.src}h.src=h.MM_dn=g[l+1];i[i.length]=h}}}}else{if(j=="over"){document.MM_nbOver=i=new Array();for(l=1;l<g.length-1;l+=3){if((h=MM_findObj(g[l]))!=null){if(!h.MM_up){h.MM_up=h.src}h.src=(h.MM_dn&&g[l+2])?g[l+2]:((g[l+1])?g[l+1]:h.MM_up);i[i.length]=h}}}else{if(j=="out"){for(l=0;l<document.MM_nbOver.length;l++){h=document.MM_nbOver[l];h.src=(h.MM_dn)?h.MM_dn:h.MM_up}}else{if(j=="down"){i=document[k];if(i){for(l=0;l<i.length;l++){h=i[l];h.src=h.MM_up;h.MM_dn=0}}document[k]=i=new Array();for(l=2;l<g.length-1;l+=2){if((h=MM_findObj(g[l]))!=null){if(!h.MM_up){h.MM_up=h.src}h.src=h.MM_dn=(g[l+1])?g[l+1]:h.MM_up;i[i.length]=h}}}}}}}function MM_reloadPage(init){if(init==true){with(navigator){if((appName=="Netscape")&&(parseInt(appVersion)==4)){document.MM_pgW=innerWidth;document.MM_pgH=innerHeight;onresize=MM_reloadPage}}}else{if(innerWidth!=document.MM_pgW||innerHeight!=document.MM_pgH){location.reload()}}}MM_reloadPage(true);function MM_swapImgRestore(){var e,a,f=document.MM_sr;for(e=0;f&&e<f.length&&(a=f[e])&&a.oSrc;e++){a.src=a.oSrc}}function MM_swapImage(){var f,g=0,a,h=MM_swapImage.arguments;document.MM_sr=new Array;for(f=0;f<(h.length-2);f+=3){if((a=MM_findObj(h[f]))!=null){document.MM_sr[g++]=a;if(!a.oSrc){a.oSrc=a.src}a.src=h[f+2]}}}function WBAdGoRound_API(){var c=new Array("WBAdGoRound_API");for(var d=0;d<WBAdGoRound_API.arguments.length;d++){c[d+1]=WBAdGoRound_API.arguments[d]}WBAdGoRound(c);return}var AGRExposure=0,AGRAction=null,AGRObjectArray=new Array(),AGRad;var AGRW3C=document.getElementById?true:false;function WBAdGoRound(action){if(AGRVersion()){try{AGRSize1()}catch(errorCode){var mess="WBAdGoRound can not find the AGRAd.js file.\n";mess+="You must link the AGRAd.js file, inside your site folder, to this page.";alert(mess);return}AGRAction=action;for(var i=1;(action[i+1]!=""||action[i+2]!="")&&i<=25;i=i+6){if(action[i+1]!=""){var adObject=AGRGetObject(action[i+1]);adObject.type="box"}else{if(action[i+2]!=""){if(window.navigator.userAgent.indexOf("MSIE")>0||AGRW3C){var adObject=document.images[action[i+2]]}else{var adObject=parseInt(navigator.appVersion.charAt(0))>3?AGRFindImageObject(action[i+2],0):document.images[action[i+1]]}adObject.type="image"}}adObject.action=action;adObject.adGroup=action[i];adObject.exposure=parseInt(action[i+3]);adObject.random=action[i+4];adObject.loops=action[i+5];adObject.adPointer=1;for(var count=1;eval("AGRAd"+(adObject.adGroup+1)+"_"+count+"()").toLowerCase()!="end";count++){}count-=1;adObject.numberOfAds=count;adObject.isswf=false;adObject.display=AGRDisplay;adObject.onmousedown=AdGoRoundLinks;if(adObject.random){adObject.adPointer=(Math.floor((Math.random()*10000))%(adObject.numberOfAds));adObject.adPointer=adObject.adPointer==0?adObject.numberOfAds:adObject.adPointer}if(!adObject.running){adObject.running=true;adObject.display()}}}if(parseInt(action[31])>0){var AGRlimit=setTimeout("AGRVisitorLimit()",parseInt(action[31])*1000*60)}return}function AGRDisplay(){if(this.adPointer>this.numberOfAds){this.adPointer=1}var size=eval("AGRSize"+(this.adGroup+1)+"()");this.ad=eval("AGRAd"+(this.adGroup+1)+"_"+this.adPointer+"()");this.url=AGRAdURL;if(this.ad!=""){this.height=AGRHeight==0?AGRdefaultHeight:AGRHeight;this.width=AGRWidth==0?AGRdefaultWidth:AGRWidth;if(this.type=="box"){if(this.ad.indexOf("swf")==-1){var html="<img src='"+this.ad+"' alt='' height='"+this.height+"' width='"+this.width+"' border='0'>";this.isswf=false}else{if(this.ad.indexOf("swf")>-1){var html='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="'+this.height+'" width="'+this.width+'"> ';html+='<param name="movie" value="'+this.ad+'"> ';html+='<param name="quality" value="best"> ';html+='<param name="play" value="true">';html+='<embed height="'+this.height+'" width="'+this.width+'" pluginspage="http://www.macromedia.com/go/getflashplayer" src="'+this.ad+'" type="application/x-shockwave-flash" quality="best" play="true" loop="'+this.loops+'"> ';html+="</object>";this.isswf=true}}if(document.getElementById){this.innerHTML=html}else{if(document.all){if(this.isswf){this.exposure=0}else{this.innerHTML="";this.innerHTML=html}}else{if(document.layers){if(this.isswf){this.exposure=0}else{this.clip.width=this.width;this.clip.height=this.height;this.background.src=this.ad}}}}}else{if(this.type=="image"){this.src=this.ad}}if(AGRExposure>0){this.exposure=AGRExposure}}var t=setTimeout("AGRNextAd"+this.adGroup+"()",this.exposure*1000);this.adPointer++;AGRObjectArray[this.adGroup+1]=this;return}function AGRNextAd0(){AGRObjectArray[1].display();return}function AGRNextAd1(){AGRObjectArray[2].display();return}function AGRNextAd2(){AGRObjectArray[3].display();return}function AGRNextAd3(){AGRObjectArray[4].display();return}function AGRNextAd4(b){AGRObjectArray[5].display();return}function AGRNextAd5(b){AGRObjectArray[6].display();return}function AGRNextAd6(){AGRObjectArray[7].display();return}function AGRNextAd7(){AGRObjectArray[8].display();return}function AGRNextAd8(b){AGRObjectArray[9].display();return}function AGRNextAd9(b){AGRObjectArray[10].display();return}function AGRGetObject(objName){var params;if(document.getElementById){params=eval("document.getElementById('"+objName+"')")}else{if(document.all){params=eval("document.all."+objName)}else{if(document.layers){params=AGRFindLayerObject(objName,0)}}}return params}function AGRFindLayerObject(f,h){if(h){var j=h.document}else{var j=document}var i=j[f];if(i){return i}else{for(var g=0;g<j.layers.length;g++){i=AGRFindLayerObject(f,j.layers[g]);if(i){break}}}return i}function AGRFindImageObject(f,h){if(h){var j=h.document}else{var j=document}var i=j[f];if(i){return i}else{for(var g=0;g<j.layers.length;g++){i=AGRFindImageObject(f,j.layers[g]);if(i){break}}}return i}function AGRVisitorLimit(){var url=AGRAction[32];if(url!=""&&url!="#"){var params;if(AGRAction[33].length<1){window.location.href=url}else{if(AGRAction[33].toLowerCase().indexOf("blank")!=-1){var ACNewWindow=window.open(url,"newWindow","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,personalbar=yes,scrollbars=yes,favorites=yes,resizable=yes");return}else{params=eval(AGRAction[33]+".window.location")}params.href=url}}return}function AdGoRoundLinks(){if(this.url!=""){var params;if(this.action[34]==""){window.location.href=this.url}else{if(this.action[34].toLowerCase().indexOf("blank")!=-1){var params="";var top="";var left="";if(this.action[46]==1){top=this.action[37]<=screen.availHeight?this.action[47]:0;left=this.action[36]<=screen.availWidth?this.action[48]:0}else{if(this.action[46]==2){top=Math.round(screen.availHeight-this.action[47])/2;left=Math.round(screen.availWidth-this.action[48])/2}}var newWidth=document.body.clientWidth;var newHeight=document.body.clientHeight;if(this.action[35]==1){var newWidth=(this.action[36]>0&&this.action[36]<=screen.availWidth)?this.action[36]:screen.availWidth;var newHeight=(this.action[37]>0&&this.action[37]<=screen.availHeight)?this.action[37]:screen.availHeight}else{if(this.action[35]==2){newWidth=(this.action[36]*screen.availWidth/100<=screen.availWidth)?Math.round(this.action[36]*screen.availWidth/100):screen.availWidth;newHeight=(this.action[37]*screen.availWidth/100<=screen.availHeight)?Math.round(this.action[37]*screen.availWidth/100):screen.availHeight}else{if(this.action[35]==3){newWidth=screen.availWidth;newHeight=screen.availHeight}}}params+="width="+newWidth;params+=",height="+newHeight;params+=",toolbar="+(this.action[38]?"1":"0");params+=",location="+(this.action[39]?"1":"0");params+=",directories="+(this.action[40]?"1":"0");params+=",status="+(this.action[41]?"1":"0");params+=",menubar="+(this.action[42]?"1":"0");params+=",favorites="+(this.action[43]?"1":"0");params+=",scrollbars="+(this.action[44]?"1":"0");params+=",resizable="+(this.action[45]?"1":"0");params+=(AGRW3C)?",top="+top+",left="+left:",screenY="+top+",screenX="+left;var AGRLNewWindow=window.open(this.url,"AGRNewWindow",params);return}else{params=eval(this.action[34]+".window.location");params.href=this.url}}}return}function AGRVersion(){return true}function AGRSize1(){AGRdefaultWidth=400;AGRdefaultHeight=140;return}function AGRAd1_1(){AGRAdURL="http://www.ymsprr.com";AGRExposure=10;AGRWidth=400;AGRHeight=140;return AGRAd="/ads/ad3.gif"}function AGRAd1_2(){AGRAdURL="http://www.comfortinn.com/hotel-oakhurst-california-CA937";AGRExposure=10;AGRWidth=400;AGRHeight=140;return AGRAd="/ads/ad8.gif"}function AGRAd1_3(){AGRAdURL="http://www.basslake.com";AGRExposure=10;AGRWidth=400;AGRHeight=140;return AGRAd="/ads/bl1208.jpg"}function AGRAd1_4(){AGRAdURL="http://www.clm-services.com/index.html";AGRExposure=10;AGRWidth=400;AGRHeight=140;return AGRAd="/ads/ov308.gif"}function AGRAd1_5(){AGRAdURL="http://www.millerslanding.com/";AGRExposure=10;AGRWidth=400;AGRHeight=140;return AGRAd="/ads/Millers-Banner2.gif"}function AGRAd1_6(){AGRAdURL="http://www.theforksresort.com/";AGRExposure=10;AGRWidth=400;AGRHeight=140;return AGRAd="/ads/frk08.gif"}function AGRAd1_7(){AGRAdURL="http://www.tenayalodge.com/?ic_campid=2&ic_pkw=YSVB_Banner_Apr09";AGRExposure=10;AGRWidth=400;AGRHeight=140;return AGRAd="/ads/ad-tenaya.jpg"}function AGRAd1_8(){AGRAdURL="http://www.bookability.net/b2/front.php?siteid=328&hnum=651";AGRExposure=10;AGRWidth=400;AGRHeight=140;return AGRAd="/ads/ad2a.gif"}function AGRAd1_9(){AGRAdURL="http://www.queensinn.com/";AGRExposure=10;AGRWidth=400;AGRHeight=140;return AGRAd="/ads/ad-queensinn.gif"}function AGRAd1_10(){AGRAdURL="http://www.discoveryosemite.com/";AGRExposure=10;AGRWidth=400;AGRHeight=140;return AGRAd="/ads/ad-discoveryos.gif"}function AGRAd1_11(){AGRAdURL="";AGRExposure=0;AGRWidth=0;AGRHeight=0;return AGRAd="end"}
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
 * Licensed under the MIT License (LICENSE.txt).
 *
 * Version 2.1.2
 */
(function(a){a.fn.bgiframe=(a.browser.msie&&/msie 6\.0/i.test(navigator.userAgent)?function(d){d=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},d);var c='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+d.src+'"style="display:block;position:absolute;z-index:-1;'+(d.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(d.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":b(d.top))+";left:"+(d.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":b(d.left))+";width:"+(d.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":b(d.width))+";height:"+(d.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":b(d.height))+';"/>';return this.each(function(){if(a(this).children("iframe.bgiframe").length===0){this.insertBefore(document.createElement(c),this.firstChild)}})}:function(){return this});a.fn.bgIframe=a.fn.bgiframe;function b(c){return c&&c.constructor===Number?c+"px":c}})(jQuery);
