﻿/*@cc_on(function(p,e){var q=e.createElement("div");q.innerHTML="<z>i</z>";q.childNodes.length!==1&&function(){function r(a,b){if(g[a])g[a].styleSheet.cssText+=b;else{var c=s[l],d=e[j]("style");d.media=a;c.insertBefore(d,c[l]);g[a]=d;r(a,b)}}function t(a,b){for(var c=new RegExp("\\b("+m+")\\b(?!.*[;}])","gi"),d=function(k){return".iepp_"+k},h=-1;++h<a.length;){b=a[h].media||b;t(a[h].imports,b);r(b,a[h].cssText.replace(c,d))}}for(var s=e.documentElement,i=e.createDocumentFragment(),g={},m="abbr article aside audio canvas details figcaption figure footer header hgroup mark meter nav output progress section summary time video".replace(/ /g, '|'),
n=m.split("|"),f=[],o=-1,l="firstChild",j="createElement";++o<n.length;){e[j](n[o]);i[j](n[o])}i=i.appendChild(e[j]("div"));p.attachEvent("onbeforeprint",function(){for(var a,b=e.getElementsByTagName("*"),c,d,h=new RegExp("^"+m+"$","i"),k=-1;++k<b.length;)if((a=b[k])&&(d=a.nodeName.match(h))){c=new RegExp("^\\s*<"+d+"(.*)\\/"+d+">\\s*$","i");i.innerHTML=a.outerHTML.replace(/\r|\n/g," ").replace(c,a.currentStyle.display=="block"?"<div$1/div>":"<span$1/span>");c=i.childNodes[0];c.className+=" iepp_"+
d;c=f[f.length]=[a,c];a.parentNode.replaceChild(c[1],c[0])}t(e.styleSheets,"all")});p.attachEvent("onafterprint",function(){for(var a=-1,b;++a<f.length;)f[a][1].parentNode.replaceChild(f[a][0],f[a][1]);for(b in g)s[l].removeChild(g[b]);g={};f=[]})}()})(this,document);@*/
Cufon.replace("#ctaShell .widgetCTAHeaders, article h1, article h2",{hover:true,fontFamily:"Trajan Pro"});Cufon.replace(".twoColumn2 .widgetCTAHeaders",{hover:true,fontFamily:"caflischScript"});$(document).ready(function(){$("#ibeForm").attr("action","https://booking.ihotelier.com/istay/istay.jsp");$("#ctaShell .widgetCTA:last").addClass("lastItem");if($("body").hasClass("homepage")){$(".toggleLinks").appendTo("#subNav")}$(".toggleContainer").css({position:"relative"});$(".toggleContainer div:first-child").addClass("toggleOn");$(".toggleContainer div").css({position:"absolute",top:"0",left:"0"});var d=$(".toggleContainer div.toggleOn").width();var c=$(".toggleContainer div.toggleOn").height();$(".toggleContainer").css({height:c,width:d});$(".toggleLinks li:first-child a").addClass("active");var b=1;$(".toggleLinks li a").each(function(){$(this).attr("id","toggleLink"+b);b++;var e=$(this).attr("id");var e=e.replace("toggleLink","");$(this).click(function(){$(".toggleLinks li a").removeClass("active");$(this).addClass("active");$(".toggleContainer div").removeClass("toggleOn").fadeOut();$(".toggleContainer div:nth-child("+e+")").addClass("toggleOn").fadeIn();var g=$(".toggleContainer div.toggleOn").width();var f=$(".toggleContainer div.toggleOn").height();$(".toggleContainer").animate({height:f,width:g})})});$("article ul:not(.sitemapWidget):not(.noFloat)").each(function(){var g=$(this).children().size();if(g>=6){var f=this;$(f).wrap("<div class='colContainer'><div class='twoCols'></div></div>");var e=$(f).parent().parent();$(e).append("<div class='twoCols next'><ul></ul></div>");var h=$(".twoCols:last ul",e);var i=$(f).children().slice(Math.ceil(g/2));$(h).append(i);$("div.colContainer").next().addClass("clear");if($(this).hasClass("noStyle")){$(this).parent().parent().find(".twoCols.next ul").addClass("noStyle")}}});var a=0;$(".widgetPhotoGallery").each(function(){$(this).append("<ul style='padding: 0;'></ul>").addClass("shadowBoxGallery").attr({id:"gallery"+a});$(this).find(".galleryImgThumb").each(function(){var g=$(this).css("backgroundImage");var g=g.replace("url(","").replace(")","");var f=$(this).attr("href");var e=$(this).attr("title");$("#gallery"+a+" ul").append("<li class='shadowBoxThumbs'><a title='"+e+"' href="+f+" rel='shadowbox[gallery"+a+"]'><img src="+g+" /></a></li>")});a+=1});$(".shadowBoxThumbs").css({"list-style-type":"none",display:"inline"});$(".galleryImgFullShell, .imgDescriptionShell, .imgPreviousNextShell, .imgThumbnailsOuterShell").remove();Shadowbox.setup();$.expr[":"].external=function(e){return !e.href.match(/^mailto\:/)&&!e.href.match(/^javascript/)&&!e.href.match(/^http\:\/\/www.vizergy.com/)&&(e.hostname!=location.hostname)};$("article a:external, article a[href*=.pdf], article a[href*=.doc], article a[href*=.docx]").addClass("external").click(function(){window.open(this.href);return false});$("article a[href*=.pdf]").addClass("pdf");$("article a[href*=.doc], article a[href*=.docx]").addClass("doc")});
