﻿Cufon.replace("#mainNavLinks>li>a",{hover:true,fontFamily:"rotis"});Cufon.replace("#searchbox1 h2",{hover:true,fontFamily:"rotis"});Cufon.replace("#orCall",{hover:true,fontFamily:"rotis"});Cufon.replace("#side .widgetCTA .widgetCTAHeaders",{hover:true,hoverables:{span:true},fontFamily:"rotis"});Cufon.replace("#side #widgetCTA34626 a.widgetCTALink h1",{hover:false,hoverables:{h1:false},fontFamily:"rotis"});Cufon.replace("#content h1 div",{hover:true,fontFamily:"rotis"});$(document).ready(function(){$("ul#mainNavLinks ul").corner();$.fn.corner.defaults.useNative=false;$("#side .widgetCTA").corner()});function AppendQuerystringToForm(k,j,h){var d=document.location.search.substring(1);var e=d.split("&");var f={};for(i=0;i<e.length;i++){var c=e[i];var g=c.split("=");f[g[0]]=g[1]}if(typeof(f[j])!="undefined"){var a=document.getElementById(k);var b=a.childNodes[0];b.src+="&"+h+"="+f[j]}}
/*
 * jQuery corner plugin: simple corner rounding
 * Examples and documentation at: http://jquery.malsup.com/corner/
 * version 2.11 (15-JUN-2010)
 * Requires jQuery v1.3.2 or later
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Authors: Dave Methvin and Mike Alsup
 */
(function(a){var k=document.createElement("div").style;var g=k.MozBorderRadius!==undefined;var m=k.WebkitBorderRadius!==undefined;var j=k.borderRadius!==undefined||k.BorderRadius!==undefined;var f=document.documentMode||0;var h=a.browser.msie&&((a.browser.version<8&&!f)||f<8);a.support=a.support||{};a.support.borderRadius=g||m||j;var b=a.browser.msie&&(function(){var n=document.createElement("div");try{n.style.setExpression("width","0+0");n.style.removeExpression("width")}catch(o){return false}return true})();function l(n,o){return parseInt(a.css(n,o))||0}function e(n){var n=parseInt(n).toString(16);return(n.length<2)?"0"+n:n}function d(n){while(n){var p=a.css(n,"backgroundColor");if(p&&p!="transparent"&&p!="rgba(0, 0, 0, 0)"){if(p.indexOf("rgb")>=0){var o=p.match(/\d+/g);return"#"+e(o[0])+e(o[1])+e(o[2])}return p}if(n.nodeName.toLowerCase()=="html"){break}n=n.parentNode}return"#ffffff"}function c(n,o,p){switch(n){case"round":return Math.round(p*(1-Math.cos(Math.asin(o/p))));case"cool":return Math.round(p*(1+Math.cos(Math.asin(o/p))));case"sharp":return Math.round(p*(1-Math.cos(Math.acos(o/p))));case"bite":return Math.round(p*(Math.cos(Math.asin((p-o-1)/p))));case"slide":return Math.round(p*(Math.atan2(o,p/o)));case"jut":return Math.round(p*(Math.atan2(p,(p-o-1))));case"curl":return Math.round(p*(Math.atan(o)));case"tear":return Math.round(p*(Math.cos(o)));case"wicked":return Math.round(p*(Math.tan(o)));case"long":return Math.round(p*(Math.sqrt(o)));case"sculpt":return Math.round(p*(Math.log((p-o-1),p)));case"dogfold":case"dog":return(o&1)?(o+1):p;case"dog2":return(o&2)?(o+1):p;case"dog3":return(o&3)?(o+1):p;case"fray":return(o%2)*p;case"notch":return p;case"bevelfold":case"bevel":return o+1}}a.fn.corner=function(o){if(this.length==0){if(!a.isReady&&this.selector){var p=this.selector,n=this.context;a(function(){a(p,n).corner(o)})}return this}return this.each(function(H){var r=a(this);var K=[r.attr(a.fn.corner.defaults.metaAttr)||"",o||""].join(" ").toLowerCase();var J=/keep/.test(K);var x=((K.match(/cc:(#[0-9a-f]+)/)||[])[1]);var O=((K.match(/sc:(#[0-9a-f]+)/)||[])[1]);var R=parseInt((K.match(/(\d+)px/)||[])[1])||10;var N=/round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog/;var F=((K.match(N)||["round"])[0]);var E=/dogfold|bevelfold/.test(K);var D={T:0,B:1};var L={TL:/top|tl|left/.test(K),TR:/top|tr|right/.test(K),BL:/bottom|bl|left/.test(K),BR:/bottom|br|right/.test(K)};if(!L.TL&&!L.TR&&!L.BL&&!L.BR){L={TL:1,TR:1,BL:1,BR:1}}if(a.fn.corner.defaults.useNative&&F=="round"&&(j||g||m)&&!x&&!O){if(L.TL){r.css(j?"border-top-left-radius":g?"-moz-border-radius-topleft":"-webkit-border-top-left-radius",R+"px")}if(L.TR){r.css(j?"border-top-right-radius":g?"-moz-border-radius-topright":"-webkit-border-top-right-radius",R+"px")}if(L.BL){r.css(j?"border-bottom-left-radius":g?"-moz-border-radius-bottomleft":"-webkit-border-bottom-left-radius",R+"px")}if(L.BR){r.css(j?"border-bottom-right-radius":g?"-moz-border-radius-bottomright":"-webkit-border-bottom-right-radius",R+"px")}return}var P=document.createElement("div");a(P).css({overflow:"hidden",height:"1px",minHeight:"1px",fontSize:"1px",backgroundColor:O||"transparent",borderStyle:"solid"});var M={T:parseInt(a.css(this,"paddingTop"))||0,R:parseInt(a.css(this,"paddingRight"))||0,B:parseInt(a.css(this,"paddingBottom"))||0,L:parseInt(a.css(this,"paddingLeft"))||0};if(typeof this.style.zoom!=undefined){this.style.zoom=1}if(!J){this.style.border="none"}P.style.borderColor=x||d(this.parentNode);var z=a(this).outerHeight();for(var I in D){var t=D[I];if((t&&(L.BL||L.BR))||(!t&&(L.TL||L.TR))){P.style.borderStyle="none "+(L[I+"R"]?"solid":"none")+" none "+(L[I+"L"]?"solid":"none");var A=document.createElement("div");a(A).addClass("jquery-corner");var B=A.style;t?this.appendChild(A):this.insertBefore(A,this.firstChild);if(t&&z!="auto"){if(a.css(this,"position")=="static"){this.style.position="relative"}B.position="absolute";B.bottom=B.left=B.padding=B.margin="0";if(b){B.setExpression("width","this.parentNode.offsetWidth")}else{B.width="100%"}}else{if(!t&&a.browser.msie){if(a.css(this,"position")=="static"){this.style.position="relative"}B.position="absolute";B.top=B.left=B.right=B.padding=B.margin="0";if(b){var u=l(this,"borderLeftWidth")+l(this,"borderRightWidth");B.setExpression("width","this.parentNode.offsetWidth - "+u+'+ "px"')}else{B.width="100%"}}else{B.position="relative";B.margin=!t?"-"+M.T+"px -"+M.R+"px "+(M.T-R)+"px -"+M.L+"px":(M.B-R)+"px -"+M.R+"px -"+M.B+"px -"+M.L+"px"}}for(var G=0;G<R;G++){var Q=Math.max(0,c(F,G,R));var C=P.cloneNode(false);C.style.borderWidth="0 "+(L[I+"R"]?Q:0)+"px 0 "+(L[I+"L"]?Q:0)+"px";t?A.appendChild(C):A.insertBefore(C,A.firstChild)}if(E&&a.support.boxModel){if(t&&h){continue}for(var v in L){if(!L[v]){continue}if(t&&(v=="TL"||v=="TR")){continue}if(!t&&(v=="BL"||v=="BR")){continue}var y={position:"absolute",border:"none",margin:0,padding:0,overflow:"hidden",backgroundColor:P.style.borderColor};var q=a("<div/>").css(y).css({width:R+"px",height:"1px"});switch(v){case"TL":q.css({bottom:0,left:0});break;case"TR":q.css({bottom:0,right:0});break;case"BL":q.css({top:0,left:0});break;case"BR":q.css({top:0,right:0});break}A.appendChild(q[0]);var s=a("<div/>").css(y).css({top:0,bottom:0,width:"1px",height:R+"px"});switch(v){case"TL":s.css({left:R});break;case"TR":s.css({right:R});break;case"BL":s.css({left:R});break;case"BR":s.css({right:R});break}A.appendChild(s[0])}}}}})};a.fn.uncorner=function(){if(j||g||m){this.css(j?"border-radius":g?"-moz-border-radius":"-webkit-border-radius",0)}a("div.jquery-corner",this).remove();return this};a.fn.corner.defaults={useNative:true,metaAttr:"data-corner"}})(jQuery);$(window).bind("load",function(){if($("body").is("#pageid1160, #pageid1161")){if(readCookie("popupUnder")!="1"){win2=window.open("http://www.pacificahotels.com/popunder/","","width=520,height=400,scrollbars=0,resizable=no");if(typeof(win2)!="undefined"&&win2!=null){win2.blur();window.focus();createCookie("popupUnder","1")}}}});$(document).ready(function(){$("#footerNavLinks li.lastItem").before('<li pageid11077><b><a href="http://www.konabeachhotel.com/media.htm">Media</a></b></li>')});
