var log;log=!~document.location.hostname.indexOf("kathleenvanderspek.com")&&typeof console!="undefined"&&console.log&&console.log.apply?function(){console.log.apply(console,arguments)}:function(){};function debug(a){var b=document.getElementById("debug");if(b)b.innerHTML=a}
xmlCache={"images/angel-top-snake-print-j223-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2531" Height="3378" /></Image>',"images/angel0570-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2912" Height="3882" /></Image>',"images/ashore-top-blue-324-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2607" Height="3476" /></Image>',
"images/ashore-top-natural-agf458-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2754" Height="3672" /></Image>',"images/ashoretop9563-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2441" Height="3254" /></Image>',"images/ashoretop9819-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2327" Height="3102" /></Image>',
"images/background-spring-2012-od298.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2604" Height="2604" /></Image>',"images/background-spring9661-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="4368" Height="2912" /></Image>',"images/background-summer9661-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="4368" Height="2912" /></Image>',
"images/background.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2647" Height="1985" /></Image>',"images/beach-goer-top-ac116-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2357" Height="3142" /></Image>',"images/belfast0424-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2912" Height="3882" /></Image>',
"images/belfast0701-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2030" Height="2706" /></Image>',"images/bellina0357-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2672" Height="3562" /></Image>',"images/bellina0667-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2372" Height="3163" /></Image>',
"images/butterfly.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="3315" Height="2486" /></Image>',"images/cape0778-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2141" Height="2855" /></Image>',"images/clara0648-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2912" Height="3882" /></Image>',
"images/cooper0641-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2845" Height="3794" /></Image>',"images/dotfringe0579-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2149" Height="2865" /></Image>',"images/dotty-tank-black-415-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2832" Height="3775" /></Image>',
"images/dotty-tank-navy-294-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2083" Height="2777" /></Image>',"images/dublin0464-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2549" Height="3399" /></Image>',"images/dublin0727-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2095" Height="2793" /></Image>',
"images/flirting-romper-black-489-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="1612" Height="2152" /></Image>',"images/flirtingromper9748-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2009" Height="2678" /></Image>',"images/galway0519-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2062" Height="2749" /></Image>',
"images/jackiedress9285-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2574" Height="3427" /></Image>',"images/keyhole0619-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2184" Height="2912" /></Image>',"images/lighthouse-sweatshirt-wn350-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2736" Height="3648" /></Image>',
"images/luncheon0680-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2815" Height="3754" /></Image>',"images/picnictop9478-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2888" Height="3851" /></Image>',"images/skipper-tank-blue-g164-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2049" Height="2736" /></Image>',
"images/skipper-tank-citrus-b137-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="1793" Height="2390" /></Image>',"images/skippertank9571-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2108" Height="2810" /></Image>',"images/skippertank9723-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2912" Height="3882" /></Image>',
"images/sparrow0508-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2844" Height="3793" /></Image>',"images/sparrow0756-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2912" Height="3882" /></Image>',"images/spiral.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="4373" Height="2744" /></Image>',
"images/sundowner-jacket-af422-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2563" Height="3417" /></Image>',"images/swiss-dot-dress-n266-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2832" Height="3775" /></Image>',"images/swissdot0553-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2438" Height="3251" /></Image>',
"images/tri-color-tank-x369-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="1298" Height="1732" /></Image>',"images/vacayskirt-p.xml":'<?xml version="1.0" encoding="utf-8"?><Image TileSize="256" Overlap="1" Format="jpg" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009"><Size Width="2794" Height="3725" /></Image>'};
var summer2012Collection={gallery:[{name:"skippertankcitrus",portrait:"images/skipper-tank-citrus-b137-p.xml",landscape:"images/skipper-tank-citrus-b137-p.xml"},{name:"skippertankblue",portrait:"images/skipper-tank-blue-g164-p.xml",landscape:"images/skipper-tank-blue-g164-p.xml"},{name:"ashoretopnatural",portrait:"images/ashore-top-natural-agf458-p.xml",landscape:"images/ashore-top-natural-agf458-p.xml"},{name:"ashoretopblue",portrait:"images/ashore-top-blue-324-p.xml",landscape:"images/ashore-top-blue-324-p.xml"},
{name:"beachgoer",portrait:"images/beach-goer-top-ac116-p.xml",landscape:"images/beach-goer-top-ac116-p.xml"},{name:"sundowner",portrait:"images/sundowner-jacket-af422-p.xml",landscape:"images/sundowner-jacket-af422-p.xml"},{name:"lighthouse",portrait:"images/lighthouse-sweatshirt-wn350-p.xml",landscape:"images/lighthouse-sweatshirt-wn350-p.xml"},{name:"tricolor",portrait:"images/tri-color-tank-x369-p.xml",landscape:"images/tri-color-tank-x369-p.xml"},{name:"dottyblue",portrait:"images/dotty-tank-navy-294-p.xml",
landscape:"images/dotty-tank-navy-294-p.xml"},{name:"dottyblack",portrait:"images/dotty-tank-black-415-p.xml",landscape:"images/dotty-tank-black-415-p.xml"},{name:"swissdot",portrait:"images/swiss-dot-dress-n266-p.xml",landscape:"images/swiss-dot-dress-n266-p.xml"},{name:"angel",portrait:"images/angel-top-snake-print-j223-p.xml",landscape:"images/angel-top-snake-print-j223-p.xml"},{name:"romper",portrait:"images/flirting-romper-black-489-p.xml",landscape:"images/flirting-romper-black-489-p.xml"}]},
fall2011Collection={gallery:[{name:"belfast",portrait:"images/belfast0424-p.xml",landscape:"images/belfast0424-p.xml"},{name:"belfastdark",portrait:"images/belfast0701-p.xml",landscape:"images/belfast0701-p.xml"},{name:"clara",portrait:"images/clara0648-p.xml",landscape:"images/clara0648-p.xml"},{name:"bellina",portrait:"images/bellina0357-p.xml",landscape:"images/bellina0357-p.xml"},{name:"bellinadark",portrait:"images/bellina0667-p.xml",landscape:"images/bellina0667-p.xml"},{name:"galwaytop",portrait:"images/galway0519-p.xml",
landscape:"images/galway0519-p.xml"},{name:"sparrow",portrait:"images/sparrow0508-p.xml",landscape:"images/sparrow0508-p.xml"},{name:"sparrowblack",portrait:"images/sparrow0756-p.xml",landscape:"images/sparrow0756-p.xml"},{name:"dublin",portrait:"images/dublin0464-p.xml",landscape:"images/dublin0464-p.xml"},{name:"dublindark",portrait:"images/dublin0727-p.xml",landscape:"images/dublin0727-p.xml"},{name:"swissdot",portrait:"images/swissdot0553-p.xml",landscape:"images/swissdot0553-p.xml"},{name:"angel",
portrait:"images/angel0570-p.xml",landscape:"images/angel0570-p.xml"},{name:"dotfringe",portrait:"images/dotfringe0579-p.xml",landscape:"images/dotfringe0579-p.xml"},{name:"keyhole",portrait:"images/keyhole0619-p.xml",landscape:"images/keyhole0619-p.xml"},{name:"cooper",portrait:"images/cooper0641-p.xml",landscape:"images/cooper0641-p.xml"},{name:"luncheon",portrait:"images/luncheon0680-p.xml",landscape:"images/luncheon0680-p.xml"},{name:"cape",portrait:"images/cape0778-p.xml",landscape:"images/cape0778-p.xml"}]},
summer2011Collection={gallery:[{name:"jackiedress",portrait:"images/jackiedress9285-p.xml",landscape:"images/jackiedress9285-p.xml"},{name:"ashoretoppink",portrait:"images/ashoretop9563-p.xml",landscape:"images/ashoretop9563-p.xml"},{name:"ashoretopgunmetal",portrait:"images/ashoretop9819-p.xml",landscape:"images/ashoretop9819-p.xml"},{name:"picnictop",portrait:"images/picnictop9478-p.xml",landscape:"images/picnictop9478-p.xml"},{name:"vacayskirt",portrait:"images/vacayskirt-p.xml",landscape:"images/vacayskirt-p.xml"},
{name:"skippertankpink",portrait:"images/skippertank9723-p.xml",landscape:"images/skippertank9723-p.xml"},{name:"skippertankgunmetal",portrait:"images/skippertank9571-p.xml",landscape:"images/skippertank9571-p.xml"}]};function currentOrientation(){switch(window.orientation){case 0:case 180:return"portrait";default:return"landscape"}}
var ImageController=function(a){function b(b){switch(b){case "newTarget":b=a.image[e];d.openDzi(b,xmlCache[b]);break;default:log("unhandled event")}}function c(){newOrientation=currentOrientation();newOrientation!=e&&(e=newOrientation,b("newTarget"))}var d,e=currentOrientation(),g;this.init=function(a){g=a;$(window).bind("orientationchange",c);d=new Seadragon.Viewer(g);b("newTarget")};this.destroy=function(){d.destroy()};this.updateState=function(a,d){b(a,d)}},GalleryController=function(a){function b(){if(s.length)return s.pop();
var a=$(document.createElement("div"));viewer=new Seadragon.Viewer(a[0]);return{dom:a,viewer:viewer}}function c(a){a.dom.remove();s.length<C?(a.viewer.close(),s.push(a)):a.viewer.destroy()}function d(b){b=b-D+E;b<0&&(b+=Math.ceil(-b/a.length)*a.length);return a[b%a.length]}function e(){return{position:"absolute",height:"100%",width:u+"px",display:"inline-block","border-left-style":"solid","border-left-width":t+"px","border-left-color":"#515055","border-right-style":"solid","border-right-width":t+
"px","border-right-color":"#515055"}}function g(){var a=e(),b=-Math.floor(n.length/2);$(n).each(function(d,c){c.dom.css(a);c.dom.css("left",Math.ceil((b+d-0.5)*h));c.viewer.onResize()});p=Math.ceil((b-0.5)*h);q=Math.ceil((b+n.length-1-0.5)*h);j=k=Math.floor(i.innerWidth()/2);r();o.css({left:k+"px"})}function f(){var a=F[v];u=Math.round(i.innerHeight()*a);t=1;h=u+t*2;i.innerWidth();i.innerWidth();l&&(clearInterval(l),l=null);g()}function r(){for(;q+Math.min(k,j)>i.innerWidth();)q-=h,z--,c(n.pop());
for(;p+Math.max(k,j)+h<=0;)p+=h,A++,c(n.shift());for(;p+j>=0;){var a=b();n.unshift(a);o.prepend(a.dom);var f=d(--A)[v];a.viewer.openDzi(f,xmlCache[f]);p-=h;a.dom.css(e());a.dom.css("left",p)}for(;q+j+h<=i.innerWidth();)a=b(),n.push(a),o.append(a.dom),f=d(z++)[v],a.viewer.openDzi(f,xmlCache[f]),q+=h,a.dom.css(e()),a.dom.css("left",q)}function m(){var a=+new Date,b=Math.pow(G,m.lastFrameTime?(a-m.lastFrameTime)/w:1);k=j*(1-b)+k*b;m.lastFrameTime=a;if(Math.abs(k-j)<0.5)k=j,clearInterval(l),l=m.lastFrameTime=
null;r();o.css("left",k+"px")}function x(){j+=h;l||(l=setInterval(m,w))}function y(){j-=h;l||(l=setInterval(m,w))}function B(a){switch(a.keyCode){case 37:x();a.preventDefault();break;case 39:y(),a.preventDefault()}}var i,o,F={portrait:0.75,landscape:4/3},v="portrait",n=[],u,h,t=1,k=0,j=0,E=0,D=0,s=[],l,A=0,z=0,p=0,q=0,C=2,G=0.92,w=1E3/60;this.init=function(a){i=$(document.createElement("div")).addClass("gallery_container");$(a).append(i);o=$(document.createElement("div")).addClass("gallery");i.append(o);
f();$(window).bind("resize",f);$(document).bind("keydown",B);$(".leftarrow").bind("click",x);$(".rightarrow").bind("click",y)};this.destroy=function(){$(window).unbind("resize",f);$(document).unbind("keydown",B);$(".leftarrow").unbind("click",x);$(".rightarrow").unbind("click",y);i.remove();o=i=null}},ANIMATION_DURATION=250,TopMenuController=function(a){var b,c;this.transitionFromState=function(a,e){this.handleState(a)?a!=""?$("#"+a).fadeOut(ANIMATION_DURATION,function(){e()}):e():(b=new ImageController({image:{portrait:"images/background-spring-2012-od298.xml",
landscape:"images/background-spring-2012-od298.xml"}}),b.init("backgroundimage"),$("#rhs").fadeIn(ANIMATION_DURATION),c!=""&&$("#"+c).fadeIn(ANIMATION_DURATION),$("#topmenu").fadeIn(ANIMATION_DURATION,e))};this.transitionToState=function(a,e){this.handleState(a)?($("#rhs").fadeIn(ANIMATION_DURATION),$("#topmenu").fadeIn(ANIMATION_DURATION,e),a!=""&&$("#"+a).fadeIn(ANIMATION_DURATION,function(){}),c=a):(b.destroy(),b=null,c&&$("#"+c).fadeOut(ANIMATION_DURATION),$("#rhs").fadeOut(ANIMATION_DURATION),
$("#topmenu").fadeOut(ANIMATION_DURATION,e))};this.handleState=function(a){switch(a){case "":case "stores":case "contact":case "about":return!0}return!1};c=a},CollectionController=function(a){var b;this.transitionFromState=function(c,d){b=new GalleryController(a.gallery);b.init($("#backgroundimage"));$("#gallery").fadeIn(ANIMATION_DURATION,d)};this.transitionToState=function(a,d){b.destroy();b=null;$("#gallery").fadeOut(ANIMATION_DURATION,d)}},NoOpController=function(){this.transitionToState=function(a,
b){b()};this.transitionFromState=function(a,b){b()}},navController=new function(){function a(a){if(g&&g.handleState&&g.handleState(a))return g;switch(a){case "":case "stores":case "contact":case "about":return new TopMenuController(a);case "summer2012collection":return new CollectionController(summer2012Collection);case "summer2011collection":return new CollectionController(summer2011Collection);case "fall2011collection":return new CollectionController(fall2011Collection);default:return g}}var b=
this,c="init",d="",e=[],g;this.parseStateFromLocation=function(){this.transitionToState(document.location.hash.substring(2))};this.getState=function(){return c};this.transitionToState=function(f){if(d==""){var r=c;if(c!=f){r!="init"&&trackPageview(c);d="leavingState";var m=function(){d="enteringState";c=f;g=a(c);g.transitionFromState(r,function(){d="";e.length&&b.transitionToState(e.shift())})};g?g.transitionToState(f,m):m()}}else e.push(f)};this.init=function(){$("a").map(function(){~$(this).attr("href").indexOf("#!")&&
$(this).click(function(){b.transitionToState($(this).attr("href").substring(2))})});this.parseStateFromLocation();var a=document.location.hash;setInterval(function(){if(document.location.hash!=a)a=document.location.hash,b.parseStateFromLocation()},1E3)}},layoutController=new function(){var a={x:0,y:0,z:0},b=window.orientation;window.ondevicemotion=function(c){c=c.accelerationIncludingGravity;a.x=c.x*0.1+a.x*0.9;a.y=c.y*0.1+a.y*0.9;a.z=c.z*0.1+a.z*0.9;targetOrientation=window.orientation;switch(window.orientation){case 0:case 180:a.x>
5?targetOrientation=-90:a.x<-5&&(targetOrientation=90);break;case -90:case 90:a.y>5?targetOrientation=180:a.y<-5&&(targetOrientation=0)}targetOrientation!=b&&(targetOrientation!=window.orientation?$(window).trigger("startorientationchange"):b!=window.orientation&&$(window).trigger("cancelorientationchange"),b=targetOrientation)};$(window).bind("orientationchange",function(){$(".fadeout").css("opacity","0")});$(window).bind("startorientationchange",function(){$(".fadeout").css("opacity","1")});$(window).bind("cancelorientationchange",
function(){$(".fadeout").css("opacity","0")});$(window).resize(function(){})};function preventBehavior(a){a.preventDefault()}document.addEventListener&&document.addEventListener("touchmove",preventBehavior,!1);function loadFb(){var a=document.createElement("script");a.async=!0;a.src=(document.location.protocol=="https"?"https":"http")+"://connect.facebook.net/en_US/all.js#xfbml=1";document.getElementById("fb-root").appendChild(a)}
function fbAsyncInit(){var a;FB.init({xfbml:!0,channelUrl:"http://kathleenvanderspek.com/channel.html"});FB.Event.subscribe("xfbml.render",function(){a||(a=setTimeout(function(){$(".fblike").css("display","none");$(".fblike").removeClass("hidden");$(".fblike").fadeIn(ANIMATION_DURATION)},250))})}function setupDebuggingHooks(){}$(document).ready(function(){loadFb();navController.init();setupDebuggingHooks()});

