var eo={urls:["http://www.elmerolsenmodels.com/","http://elmerolsenmodels.com/"],fadeTime:1e3,slideTime:1250,pollingTime:250,key:"qrofjqer",mode:"home",window:{loaded:!1,swfLoaded:!1,models:!1,swfTimer:0,sliderLoaded:!1,sliderSwfLoaded:function(){eo.window.sliderLoaded=!0},onload:function(){var a=window.location.hash.substr(1,window.location.hash.length);if(a.indexOf("package")!=-1){eo.navigation.watchHash(a);return}a.indexOf("model")!=-1&&(eo.navigation._loadedDest=a),eo.models.get.all()},begin:function(){eo.screenResize(!0),eo.util.hasFlash()&&eo.window.swfLoaded?(clearInterval(eo.window.swfTimer),$("div.logo_wrapper img").hide(),$("div.logo_wrapper div.flash").css("visibility","visible"),$("div.logo_wrapper div.flash").show(),eo.navigation.home.enter()):(clearInterval(eo.window.swfTimer),eo.navigation.home.enter())},swfLoaded:function(){eo.window.swfLoaded=!0,eo.util.getSliderSwf().resize(eo.resize.model.image.flash())}},util:{favorites:"-1,",heightToText:function(a){var b=Math.floor(a/12),c=(a-b*12)*10;return b+"' "+Math.round(c)/10+'"'},getSliderSwf:function(a){var b=navigator.appName.indexOf("Microsoft")!=-1;return b?window.eoImageSlider:document.eoImageSlider},trace:function(a){try{console.log(a)}catch(b){}},iesux:{imgDirectx:function(){if(eo.util.ie6()){var a=$(this);a.height(a.height()),a.width(a.width());var b=a.attr("data-src");a.attr("src","web_img/transparent.gif"),a.attr("style","filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src='"+b+"',sizingMethod='scale');")}},imgNormal:function(){if(eo.util.ie6()){var a=$(this);a.height(a.height()),a.width(a.width());var b=a.attr("data-src");a.attr("src",b)}}},hasFlash:function(){var a,b,c,d=navigator.plugins;if(d&&d.length){var e=d["Shockwave Flash"];e&&(a=!0,e.description&&(b=e.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))),d["Shockwave Flash 2.0"]&&(a=!0,b="2.0.0.11")}else{try{var f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(g){try{var f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");b=[6,0,21],a=!0}catch(g){}try{f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(g){}}f!=null&&(b=f.GetVariable("$version").split(" ")[1].split(","),a=!0,c=!0)}return a},ie6:function(){if($.browser.msie&&$.browser.version<7)return!0},ie6or7:function(){if($.browser.msie&&$.browser.version<8)return!0}},resize:{window:{width:0,height:0},byWidth:function(){return eo.resize.window.width/eo.resize.window.height<1.57?!0:!1},font:{original:21,size:function(){return eo.resize.byWidth()?Math.round(eo.resize.window.width*eo.resize.font.original/eo.resize.screen.width):Math.round(eo.resize.window.height*eo.resize.font.original/eo.resize.screen.height)},current:0},screen:{height:900,width:1400,ratio:1400/900},logo:{height:function(){return Math.floor(eo.resize.window.height*.09)}},about:{top:function(){return Math.floor((eo.resize.window.height-$("div.about").height())/2)}},booking:{top:function(){return eo.util.ie6or7()?Math.floor(eo.resize.window.height*.3):Math.floor((eo.resize.window.height-$("div.booking").height())/2)}},opencall:{top:function(){return eo.util.ie6or7()?Math.floor(eo.resize.window.height*.3):Math.floor((eo.resize.window.height-$("div.opencall").height())/2)}},submission:{top:function(){return Math.floor((eo.resize.window.height-$("div.submission").height())/2)}},map:{top:function(){return Math.floor((eo.resize.window.height-eo.resize.map.height())/2)},height:function(){return eo.resize.byWidth()?Math.floor(eo.resize.map.width()*1/eo.resize.map.ratio):Math.floor(eo.resize.window.height*.48)},width:function(){return eo.resize.byWidth()?Math.floor(eo.resize.window.width*.4):Math.floor(eo.resize.map.height()*eo.resize.map.ratio)},left:function(){return Math.floor((eo.resize.window.width-eo.resize.map.width())/2)},_width:560,_height:440,ratio:1.15},magnify:{height:function(){return eo.resize.byWidth()?eo.resize.magnify.width():Math.floor(eo.resize.window.height*.0177)},width:function(){return eo.resize.byWidth()?Math.floor(eo.resize.window.width*.0114):eo.resize.magnify.height()}},address:{top:function(){return Math.floor((eo.resize.window.height-$("div.address").height())/2)}},contact:{top:function(){return eo.util.ie6or7()?Math.floor(eo.resize.window.height*.2):Math.floor((eo.resize.window.height-$("div.contact").height())/2)}},mainlogo:{top:function(){return Math.floor((eo.resize.window.height-eo.resize.mainlogo.height())/3)},left:function(){return Math.floor((eo.resize.window.width-eo.resize.mainlogo.width())/2)},width:function(){return eo.resize.byWidth()?Math.floor(eo.resize.window.width*.33):Math.floor(eo.resize.mainlogo.height()*eo.resize.mainlogo.ratio)},height:function(){return eo.resize.byWidth()?Math.floor(1/eo.resize.mainlogo.ratio*eo.resize.mainlogo.width()):Math.floor(eo.resize.window.height*.5)},ratio:1},mainlogoswf:{top:function(){return Math.floor((eo.resize.window.height-eo.resize.mainlogoswf.height())/3)},left:function(){return Math.floor((eo.resize.window.width-eo.resize.mainlogoswf.width()+eo.resize.mainlogoswf.width()*.1)/2)},width:function(){return eo.resize.byWidth()?Math.floor(eo.resize.window.width*.33):Math.floor(eo.resize.mainlogoswf.height()*eo.resize.mainlogoswf.ratio)},height:function(){return eo.resize.byWidth()?Math.floor(1/eo.resize.mainlogoswf.ratio*eo.resize.mainlogoswf.width()):Math.floor(eo.resize.window.height*.63)},ratio:1},images:{_width:412,_height:556,video:{_width:640,_height:360,width:function(){return eo.resize.byWidth()?Math.floor(eo.resize.window.width*.65):Math.floor(eo.resize.images.video.height()*eo.resize.images.video.ratio)},height:function(){return eo.resize.byWidth()?Math.floor(1/eo.resize.images.video.ratio*eo.resize.images.video.width()):Math.floor(eo.resize.window.height*.5)},middlePosition:function(){return Math.floor((eo.resize.window.width-eo.resize.images.video.width())/2)},centerPosition:function(){return Math.floor(eo.resize.window.height*.18)},ratio:640/360},compcard:{_width:360,_height:540,width:function(){return eo.resize.byWidth()?Math.floor(eo.resize.window.width*.24):Math.floor(eo.resize.images.compcard.height()*eo.resize.images.compcard.ratio)},height:function(){return eo.resize.byWidth()?Math.floor(1/eo.resize.images.compcard.ratio*eo.resize.images.compcard.width()):Math.floor(eo.resize.window.height*.6177)},ratio:360/540,middlePosition:function(){return Math.floor((eo.resize.window.width-eo.resize.images.compcard.width()*2)/2)},centerPosition:function(){return eo.resize.byWidth()?Math.floor((eo.resize.window.height*.66-eo.resize.images.compcard.height()*eo.resize.images.compcard.ratio)/2):Math.floor(eo.resize.window.height*.085)}},menu:{top:function(){return Math.floor(eo.resize.images.centerPosition()+eo.resize.images.height()/2-eo.resize.images.menu.height()/4)},left:function(){return Math.floor(eo.resize.images.middlePosition()/2.2)},width:function(){return eo.resize.byWidth()?Math.floor(eo.resize.window.width*.05):eo.resize.images.menu.height()},height:function(){return eo.resize.byWidth()?eo.resize.images.menu.width():Math.floor(eo.resize.window.height*.1)}},nav:{top:function(){return Math.floor(eo.resize.window.height*.74)},left:function(){return eo.resize.images.middlePosition()}},width:function(){return eo.resize.byWidth()?Math.floor(eo.resize.window.width*.295):Math.floor(eo.resize.images.height()*eo.resize.images.ratio)},height:function(){return eo.resize.byWidth()?Math.floor(1/eo.resize.images.ratio*eo.resize.images.width()):Math.floor(eo.resize.window.height*.6177)},ratio:412/556,moveBy:function(){return Math.floor(eo.resize.window.width*1.25)},middlePosition:function(){return Math.floor((eo.resize.window.width-eo.resize.images.width()*2)/2)},centerPosition:function(){return eo.resize.byWidth()?Math.floor((eo.resize.window.height*.66-eo.resize.images.height()*eo.resize.images.ratio)/2):Math.floor(eo.resize.window.height*.085)}},model:{nav:{left:function(){return eo.resize.model.row.centerPosition()/2},right:function(){return eo.resize.window.width-eo.resize.model.row.centerPosition()/2}},_pnav:{left:function(){return Math.floor(eo.resize.model.row.centerPosition()-eo.resize.window.width*.05)},right:function(){return Math.floor(eo.resize.model.row.centerPosition()+eo.resize.model.image.width()*6.4+eo.resize.window.width*.05)}},image:{_width:155,_height:221,width:function(){var a=0;return eo.resize.byWidth()?a=Math.floor(eo.resize.window.width*.1):a=Math.floor(eo.resize.model.image.height()*eo.resize.model.image.ratio),a>eo.resize.model.image._width&&(a=eo.resize.model.image._width),a},height:function(){var a=0;return eo.resize.byWidth()?a=Math.floor(1/eo.resize.model.image.ratio*eo.resize.model.image.width()):a=Math.floor(eo.resize.model.row.height()*.4),a>eo.resize.model.image._height&&(a=eo.resize.model.image._height),a},flash:function(){return eo.resize.model.image.width()/eo.resize.model.image._width},ratio:155/221},row:{_pmiddlePosition:function(){return Math.floor((eo.resize.window.height-eo.resize.model.image.height()*2.35)/2)},middlePosition:function(){return Math.floor((eo.resize.window.height-eo.resize.model.image.height()*2.35)/2)},_pcenterPosition:function(){return Math.floor((eo.resize.window.width-eo.resize.model.image.width()*5.5)/2+eo.resize.model.image.width()*.5)},centerPosition:function(){return Math.floor((eo.resize.window.width-eo.resize.model.image.width()*6.5)/2)},moveBy:function(){return Math.floor(eo.resize.window.width*1.25)},height:function(){return Math.floor(eo.resize.window.height*.62)}}}},navigation:{_lastPage:"none",_currentPage:"intro",_nextPage:"none",_lastHash:"none",timerId:null,watchHash:function(a){if(a==eo.navigation._currentPage||a==eo.navigation._nextPage)return;eo.util.trace("eo.navigation.watchHash : "+a);if(a==undefined||a==null||a=="")location.hash="#"+eo.mode;else if(a.indexOf("_")!=-1){var b=a.split("_");b[0]=="model"?($("div.searchresults").fadeOut(eo.fadeTime),eo.images.modelid=b[1],eo.models._click()):b[0]=="package"&&eo.navigation.package.init(b[1])}else a!=undefined&&a!=null&&a!=""&&a!=eo.navigation._currentPage&&eo.navigation[a].enter()},helper:{transition:function(a){eo.navigation._lastPage=eo.navigation._currentPage,eo.navigation._currentPage=a,eo.navigation._nextPage="none",eo.util.trace("eo.navigation.helper.transition : "+eo.navigation._lastPage+", "+eo.navigation._currentPage+", "+eo.navigation._nextPage)},enter:function(a){return $("div.main table.logo img.menu").css("margin-left",-$("div.main table.logo img.logo").width()*1.06+"px"),eo.util.trace("eo.navigation.helper.enter : "+eo.navigation._lastPage+", "+eo.navigation._currentPage+", "+eo.navigation._nextPage),eo.navigation._nextPage!=a?(eo.navigation._nextPage=a,eo.navigation.helper.nav(eo.navigation._currentPage,eo.navigation._currentPage,"exit"),!0):!1},nav:function(a,b,c){a.indexOf("model")!=-1?eo.navigation.images[c]():a.indexOf("package")!=-1?eo.navigation.package[c]():eo.navigation[b][c]()}},fireNext:function(){eo.navigation._nextPage!="none"&&(eo.util.trace("eo.navigation.fireNext : "+eo.navigation._lastPage+", "+eo.navigation._currentPage+", "+eo.navigation._nextPage),location.hash="#"+eo.navigation._nextPage,eo.navigation.helper.nav(eo.navigation._nextPage,eo.navigation._nextPage,"enter"))},browse:{letter:function(a){eo.navigation[eo.navigation._currentPage].letter(a)},left:function(){eo.navigation.helper.nav(eo.navigation._currentPage,eo.navigation._currentPage,"left")},right:function(){eo.navigation.helper.nav(eo.navigation._currentPage,eo.navigation._currentPage,"right")}},intro:{enter:function(){if(eo.navigation.helper.enter("intro"))return;eo.navigation.helper.transition("intro"),$("div.intro").fadeIn(eo.fadeTime)},exit:function(){setTimeout(eo.navigation.fireNext,eo.fadeTime)}},"package":{init:function(a){eo.resize.model.nav=eo.resize.model._pnav,eo.resize.model.row.centerPosition=eo.resize.model.row._pcenterPosition,eo.resize.model.row.middlePosition=eo.resize.model.row._pmiddlePosition,eo.models._click=eo.models._pclick,eo.package.id=a,$("table.navbar tr.middle td.search div").hide(),$("table.navbar tr.middle td.search").css("width","1px"),$("table.navbar tr.middle td.links").css("textAlign","center"),$("div.logobar div.elmerblurb").html(""),$("table.navbar tr.middle td.links a").hide(),$("table.navbar tr.middle td.links span.address").show(),eo.package.get(a)},left:function(){eo.navigation.neuter.left()},right:function(){eo.navigation.neuter.right()},enter:function(){if(eo.navigation.helper.enter("package_"+eo.package.id))return;eo.navigation.helper.transition("package_"+eo.package.id),eo.generate.package.links(),$("div.intro").fadeOut(eo.fadeTime),$("div.main, table.navbar, div.logobar, div.browse").fadeIn(eo.fadeTime),$("div.packageinfo h1").text(eo.package.data.info.title),$("div.packageinfo h2").text(eo.package.data.info.recipient),$("div.packageinfo h3").text("Expires : "+eo.package.data.info.expires.substr(0,10)),$("div.packagenav").fadeIn(eo.fadeTime),$("div.packagenavright").fadeIn(eo.fadeTime),$("div.packageinfo").fadeIn(eo.fadeTime),$("div.main div.topnav table.alphabet").hide(),eo.models.currentSource=eo.models.data,eo.navigation.neuter.enter("package")},exit:function(){eo.navigation._nextPage.indexOf("model")!=-1&&$("div.main").fadeOut(eo.fadeTime),$("div.browseModels").fadeOut(eo.fadeTime,function(){$(this).remove()}),$("div.browse, div.packageinfo, div.packagenav").fadeOut(eo.fadeTime),$("div.main table.logo img.menu").fadeTo(eo.fadeTime,0),setTimeout(eo.navigation.fireNext,eo.fadeTime)}},favorites:{left:function(){eo.navigation.neuter.left()},right:function(){eo.navigation.neuter.right()},enter:function(){if(eo.navigation.helper.enter("favorites"))return;eo.navigation.helper.transition("favorites"),$("div.main, table.navbar, div.logobar, div.browse").fadeIn(eo.fadeTime),$("div.main div.topnav div.menu, div.main table.alphabet, div.main div.topnav div.ball").fadeOut(eo.fadeTime,function(){$("div.main div.topnav table.logo").fadeIn(eo.fadeTime)}),eo.models.currentPage=0,eo.models.current=0,eo.models.cache.loaded=0,eo.models.currentSource=eo.models.get.byFavorites(),eo.models.cache.moveFinished=!0;var a=eo.generate.model.browseModel(eo.models.currentSource,"right",eo.resize.model.row.moveBy(),eo.resize.model.row.middlePosition(),eo.resize.model.row.height());eo.models.cache.timer=setInterval(eo.models.cache.timerCheck,eo.pollingTime),eo.models.cache.fireNext=function(){eo.models.animateRow(a,eo.resize.model.row.centerPosition(),"center",eo.navigation.neuter.resetNav)}},exit:function(){$("div.browseModels").fadeOut(eo.fadeTime,function(){$(this).remove()}),$("div.browse").fadeOut(eo.fadeTime),eo.navigation._nextPage.indexOf("model")!=-1&&$("div.main").fadeOut(eo.fadeTime),setTimeout(eo.navigation.fireNext,eo.fadeTime)}},opencall:{enter:function(){if(eo.navigation.helper.enter("opencall"))return;eo.navigation.helper.transition("opencall"),$("div.opencall").fadeIn(eo.fadeTime),$("div.main, table.navbar, div.logobar, div.main table.logo").fadeIn(eo.fadeTime),setTimeout(function(){$("div.main table.logo").fadeOut(eo.fadeTime,function(){$("div.main div.topnav div.opencall_menu").fadeIn(eo.fadeTime)})},eo.fadeTime*2)},exit:function(){$("div.opencall, div.main div.topnav div.opencall_menu").fadeOut(eo.fadeTime),eo.navigation._nextPage.indexOf("model")!=-1&&$("div.main, table.navbar, div.logobar").fadeOut(eo.fadeTime),setTimeout(eo.navigation.fireNext,eo.fadeTime)}},about:{enter:function(){if(eo.navigation.helper.enter("about"))return;eo.navigation.helper.transition("about"),$("div.about, div.main div.topnav table.logo").fadeIn(eo.fadeTime),$("div.main, table.navbar, div.logobar").fadeIn(eo.fadeTime)},exit:function(){$("div.about").fadeOut(eo.fadeTime),eo.navigation._nextPage.indexOf("model")!=-1&&$("div.main, table.navbar, div.logobar").fadeOut(eo.fadeTime),setTimeout(eo.navigation.fireNext,eo.fadeTime)}},booking:{enter:function(){if(eo.navigation.helper.enter("booking"))return;eo.navigation.helper.transition("booking"),$("div.booking, div.main div.topnav table.logo").fadeIn(eo.fadeTime),$("div.main, table.navbar, div.logobar").fadeIn(eo.fadeTime)},exit:function(){$("div.booking").fadeOut(eo.fadeTime),eo.navigation._nextPage.indexOf("model")!=-1&&$("div.main, table.navbar, div.logobar").fadeOut(eo.fadeTime),setTimeout(eo.navigation.fireNext,eo.fadeTime)}},submission:{enter:function(){if(eo.navigation.helper.enter("submission"))return;eo.navigation.helper.transition("submission"),$("div.submission div.thankyou").hide(),$("div.submission form").show(),$("div.submission, div.main div.topnav div.opencall_menu").fadeIn(eo.fadeTime),$("div.main, table.navbar, div.logobar").fadeIn(eo.fadeTime)},exit:function(){$("div.submission, div.main div.topnav div.opencall_menu").fadeOut(eo.fadeTime),eo.navigation._nextPage.indexOf("model")!=-1&&$("div.main, table.navbar, div.logobar").fadeOut(eo.fadeTime),setTimeout(eo.navigation.fireNext,eo.fadeTime)}},address:{enter:function(){if(eo.navigation.helper.enter("address"))return;eo.navigation.helper.transition("address"),$("div.main, table.navbar, div.logobar").fadeIn(eo.fadeTime),$("div.address, div.main div.topnav div.contact_menu").fadeIn(eo.fadeTime)},exit:function(){$("div.address, div.main div.topnav div.contact_menu").fadeOut(eo.fadeTime),eo.navigation._nextPage.indexOf("model")!=-1&&$("div.main, table.navbar, div.logobar").fadeOut(eo.fadeTime),setTimeout(eo.navigation.fireNext,eo.fadeTime)}},map:{enter:function(){if(eo.navigation.helper.enter("map"))return;eo.navigation.helper.transition("map"),$("div.main, table.navbar, div.logobar").fadeIn(eo.fadeTime),$("div.map, div.main div.topnav div.opencall_menu").fadeIn(eo.fadeTime)},exit:function(){$("div.map, div.main div.topnav div.opencall_menu").fadeOut(eo.fadeTime),eo.navigation._nextPage.indexOf("model")!=-1&&$("div.main, table.navbar, div.logobar").fadeOut(eo.fadeTime),setTimeout(eo.navigation.fireNext,eo.fadeTime)}},contactmap:{enter:function(){if(eo.navigation.helper.enter("contactmap"))return;eo.navigation.helper.transition("contactmap"),$("div.main, table.navbar, div.logobar").fadeIn(eo.fadeTime),$("div.contactmap, div.main div.topnav div.contact_menu").fadeIn(eo.fadeTime)},exit:function(){$("div.contactmap, div.main div.topnav div.contact_menu").fadeOut(eo.fadeTime),eo.navigation._nextPage.indexOf("model")!=-1&&$("div.main, table.navbar, div.logobar").fadeOut(eo.fadeTime),setTimeout(eo.navigation.fireNext,eo.fadeTime)}},contact:{enter:function(){if(eo.navigation.helper.enter("contact"))return;eo.navigation.helper.transition("contact"),$("div.main, table.navbar, div.logobar, div.main div.topnav table.logo, div.contact").fadeIn(eo.fadeTime),setTimeout(function(){$("div.main table.logo").fadeOut(eo.fadeTime,function(){$("div.main div.topnav div.contact_menu").fadeIn(eo.fadeTime)})},eo.fadeTime*2)},exit:function(){$("div.contact, div.main div.topnav div.contact_menu").fadeOut(eo.fadeTime),eo.navigation._nextPage.indexOf("model")!=-1&&$("div.main, table.navbar, div.logobar").fadeOut(eo.fadeTime),setTimeout(eo.navigation.fireNext,eo.fadeTime)}},images:{menuShown:!0,resetNav:function(){eo.images.currentPage<=0?$("div.imageleft").hide():$("div.imageleft").show(),(eo.images.currentPage+1)*eo.images.perPage>=eo.images.data[eo.images.currentType].length?$("div.imageright").hide():$("div.imageright").show(),$("div.imagelinks a.selected").removeClass("selected"),$("div.imagelinks a[data-type="+eo.images.currentType+"]").addClass("selected");for(var a=0;a<eo.images.types.length;a++)eo.images.data[eo.images.types[a]].length==0?$("div.imagelinks a.changeType[data-type="+eo.images.types[a]+"]").hide():$("div.imagelinks a.changeType[data-type="+eo.images.types[a]+"]").show();var b=eo.models.get.byFavorites();$("div.imagelinks a.favorite").html("&#149; FAVORITE");for(var a=0;a<b.length;a++)eo.images.modelid==b[a].id&&$("div.imagelinks a.favorite").html("&#149; FAVORITE \u2713")},changeType:function(a){if(eo.images.currentType==a)return;$("div.imagelinks a.print[data-type="+eo.images.currentType+"]").hide({effect:"blind",option:"up",speed:eo.fadeTime}),$("div.images[data-position=left]").remove(),$("div.images[data-position=right]").remove(),eo.images.currentType=a,a=="video"?eo.images.perPage=1:a=="compcard"?(eo.images.perPage=2,$("div.imagelinks a.print[data-type=compcard]").attr("href","models/"+eo.images.modelid+"/compcard.pdf")):a=="imageList"?(eo.images.perPage=2,$("div.imagelinks a.print[data-type=imageList]").attr("href","models/"+eo.images.modelid+"/portfolio.pdf")):a=="polaroids"&&(eo.images.perPage=2,$("div.imagelinks a.print[data-type=polaroids]").attr("href","models/"+eo.images.modelid+"/polaroids.pdf")),$("div.imagelinks a.print[data-type="+eo.images.currentType+"]").show({effect:"blind",option:"down",speed:eo.fadeTime}),eo.images.currentPage=-1,eo.navigation.images.left()},left:function(){if(!eo.images.done)return;if((eo.images.currentPage+1)*eo.images.perPage>=eo.images.data[eo.images.currentType].length)return;$("div.images[data-position=left]").remove(),eo.images.done=!1,eo.images.currentPage=eo.images.currentPage+1,$(document.body).append(eo.generate.images.page("right"));var a=$("div.images[data-position=right]");eo.images.currentType=="compcard"?a.css("left",eo.resize.images.compcard.middlePosition()):a.css("left",eo.resize.images.middlePosition()),eo.images.resize(),eo.images.video.resize(),eo.loading.show(),$("div.images[data-position='center']").fadeOut(eo.fadeTime),eo.images.cache.fireNext=function(){$("div.images[data-position='right']").fadeIn(eo.fadeTime,function(){$(this).attr("data-position","center"),eo.images.done=!0}),eo.navigation.images.resetNav(),eo.loading.hide()},eo.images.cache.timer=setInterval(eo.images.cache.onload,eo.pollingTime)},right:function(){if(!eo.images.done)return;if(eo.images.currentPage==0)return;$("div.images[data-position=right]").remove(),eo.images.done=!1,eo.images.currentPage=eo.images.currentPage-1,$(document.body).append(eo.generate.images.page("left"));var a=$("div.images[data-position=left]");a.css("left",eo.resize.images.middlePosition()),eo.images.resize(),eo.images.video.resize(),eo.loading.show(),$("div.images[data-position='center']").fadeOut(eo.fadeTime),eo.images.cache.fireNext=function(){$("div.images[data-position='left']").fadeIn(eo.fadeTime,function(){$(this).attr("data-position","center"),eo.images.done=!0}),eo.navigation.images.resetNav(),eo.loading.hide()},eo.images.cache.timer=setInterval(eo.images.cache.onload,eo.pollingTime)},exit:function(){eo.util.trace("eo.navigation.images.exit "+eo.images.modelid),$("div.imagepage, div.images, div.imagebrowse, div.imagemenu, div.imagelinks, div.logoleft, div.logoright").fadeOut(eo.fadeTime),setTimeout(function(){$("div.images").remove(),eo.navigation.fireNext()},eo.fadeTime)},enter:function(){eo.util.trace("eo.navigation.images.enter "+eo.images.modelid);if(eo.navigation.helper.enter("model_"+eo.images.modelid))return;eo.navigation.helper.transition("model_"+eo.images.modelid),eo.images.currentType="imageList",eo.images.current=0,eo.images.currentPage=0,$(document.body).append(eo.generate.images.page("center")),eo.images.resize();var a="",b=0;eo.images.model.gender=="1"?(eo.images.model.height&&(a=a+eo.generate.images.stat("height",eo.util.heightToText(eo.images.model.height),!0),b=b+2),eo.images.model.shirt&&(a=a+eo.generate.images.stat("shirt",eo.images.model.shirt,!0),b=b+2),eo.images.model.suit&&(a=a+eo.generate.images.stat("suit",eo.images.model.suit,!0),b=b+2),eo.images.model.waist&&(a=a+eo.generate.images.stat("waist",eo.images.model.waist,!0),b=b+2),eo.images.model.inseam&&(a=a+eo.generate.images.stat("inseam",eo.images.model.inseam,!0),b=b+2),eo.images.model.shoe&&(a=a+eo.generate.images.stat("shoe",eo.images.model.shoe,!0),b=b+2),eo.images.model.hair&&(a=a+eo.generate.images.stat("hair",eo.images.model.hair,!0),b=b+2),eo.images.model.eyes&&(a=a+eo.generate.images.stat("eyes",eo.images.model.eyes,!1),b=b+1)):(eo.images.model.height&&(a=a+eo.generate.images.stat("height",eo.util.heightToText(eo.images.model.height),!0),b=b+2),eo.images.model.bust&&(a=a+eo.generate.images.stat("bust",eo.images.model.bust,!0),b=b+2),eo.images.model.waist&&(a=a+eo.generate.images.stat("waist",eo.images.model.waist,!0),b=b+2),eo.images.model.hips&&(a=a+eo.generate.images.stat("hips",eo.images.model.hips,!0),b=b+2),eo.images.model.dress&&(a=a+eo.generate.images.stat("dress",eo.images.model.dress,!0),b=b+2),eo.images.model.suit&&(a=a+eo.generate.images.stat("suit",eo.images.model.suit,!0),b=b+2),eo.images.model.shirt&&(a=a+eo.generate.images.stat("shirt",eo.images.model.shirt,!0),b=b+2),eo.images.model.shoe&&(a=a+eo.generate.images.stat("shoe",eo.images.model.shoe,!0),b=b+2),eo.images.model.hair&&(a=a+eo.generate.images.stat("hair",eo.images.model.hair,!0),b=b+2),eo.images.model.eyes&&(a=a+eo.generate.images.stat("eyes",eo.images.model.eyes,!1),b=b+1)),$("div.imagepage table.stats tr td div.stats").html(a),$("div.imagepage table.stats tr td div.stats span:last").addClass("last"),$("div.imagepage div.name").html(eo.images.model.name),$("div.imagepage, table.navbar, div.logobar, div.images, div.imagebrowse, div.imagemenu").fadeIn(eo.fadeTime),$("div.logoleft, div.logoright").fadeIn(eo.fadeTime),setTimeout(function(){$("div.logoleft, div.logoright").fadeOut(eo.fadeTime),$("div.imagelinksright, div.imagemenuleft").fadeIn(eo.fadeTime)},eo.fadeTime*2),$("div.imagelinks a.email").attr("href","mailto:"+eo.images.model.contact+"@elmerolsenmodels.com"),eo.images.done=!0,$("div.imagelinks a.print").hide(),$("div.imagelinks a.print[data-type=imageList]").show(),$("div.imagelinks a.print[data-type=imageList]").attr("href","models/"+eo.images.modelid+"/portfolio.pdf"),$("table.navbar td.search div.input input").val(""),eo.navigation.images.resetNav()}},home:{exit:function(){$("div.intro").fadeOut(eo.fadeTime),setTimeout(eo.navigation.fireNext,eo.fadeTime)},enter:function(){if(eo.navigation.helper.enter("home"))return;eo.navigation.helper.transition("home"),eo.screenResize(!0),$("div.intro table.navbar").fadeIn(eo.fadeTime),$("div.intro table.logobar").fadeIn(eo.fadeTime);if(eo.navigation._loadedDest!=null&&eo.navigation._loadedDest!=undefined){var a=eo.navigation._loadedDest.split("_");a[0]=="model"&&(eo.images.modelid=a[1],eo.models._click(),eo.navigation._loadedDest=null)}}},women:{letter:function(a){eo.navigation.neuter.letter(a,"women")},left:function(){eo.navigation.neuter.left()},right:function(){eo.navigation.neuter.right()},exit:function(){eo.navigation.neuter.exit("women")},enter:function(){if(eo.navigation.helper.enter("women"))return;eo.navigation.helper.transition("women"),eo.models.currentSource=eo.models.get.women(),eo.navigation.neuter.enter("women")}},men:{letter:function(a){eo.navigation.neuter.letter(a,"men")},left:function(){eo.navigation.neuter.left()},right:function(){eo.navigation.neuter.right()},exit:function(){eo.navigation.neuter.exit("men")},enter:function(){if(eo.navigation.helper.enter("men"))return;eo.navigation.helper.transition("men"),eo.models.currentSource=eo.models.get.men(),eo.navigation.neuter.enter("men")}},search:{left:function(){eo.navigation.neuter.left()},right:function(){eo.navigation.neuter.right()},exit:function(){$("div.main div.topnav div.search").fadeOut(eo.fadeTime),eo.navigation.neuter.exit("search")},enter:function(a){eo.navigation._currentPage=="search"?eo.navigation.neuter.enter("search",!0):eo.navigation._nextPage!="search"?(eo.navigation._nextPage="search",eo.navigation.helper.nav(eo.navigation._currentPage,eo.navigation._currentPage,"exit")):eo.navigation.neuter.enter("search",a)},name:function(a){var b=eo.models.get.byName(a);eo.models.currentSource=b,$("div.main div.topnav div.search").text('Search results for "'+a+'"'),eo.navigation._currentPage=="search"?eo.navigation.search.enter(!0):eo.navigation.search.enter()}},neuter:{browseModelHoverOn:function(){$(this).css("background-color","#D6E03E"),$(this).siblings().css("color","#D6E03E")},browseModelHoverOff:function(){$(this).css("background-color","#FFFFFF"),$(this).siblings().css("color","#696A6D")},browseModelLabelHoverOn:function(){$(this).css("color","#D6E03E");var a=$(this).parent();$(this).siblings().css("background-color","#D6E03E")},browseModelLabelHoverOff:function(){$(this).css("color","#696A6D"),$(this).siblings().css("background-color","#FFFFFF")},resetNav:function(){eo.util.ie6()?(eo.models.current<=eo.models.perPage?$("div.browse a.left, div.packagenavright a.left").hide():$("div.browse a.left, div.packagenavright a.left").show(),eo.models.current>=eo.models.currentSource.length?$("div.browse a.right, div.packagenavright a.right").hide():$("div.browse a.right, div.packagenavright a.right").show()):(eo.models.current<=eo.models.perPage?$("div.browse a.left, div.packagenavright a.left").fadeTo(eo.fadeTime,0):$("div.browse a.left, div.packagenavright a.left").fadeTo(eo.fadeTime,1),eo.models.current>=eo.models.currentSource.length?$("div.browse a.right, div.packagenavright a.right").fadeTo(eo.fadeTime,0):$("div.browse a.right, div.packagenavright a.right").fadeTo(eo.fadeTime,1)),eo.models.resize(),eo.models.cache.done=!0},letter:function(a,b){if(!eo.models.cache.done)return!1;eo.models.lastLetter=a,eo.models.lastGender=b;var c="0";b=="men"&&(c="1"),a=$.trim(a.toUpperCase());if(a=="<"){eo.models.lastLetter=null,eo.models.lastGender=b,$("div.main div.topnav table.alphabet tr td").removeClass("selected"),eo.models.animateRow($("div.browseModels[data-position='center']"),-eo.resize.model.row.moveBy(),"left",function(){$(this).remove()}),b!="men"?(eo.models.currentSource=eo.models.get.women(),eo.navigation.neuter.enter("women",!0)):(eo.models.currentSource=eo.models.get.men(),eo.navigation.neuter.enter("men",!0));return}var d=eo.models.get.byLetter(a,c);eo.navigation._lastPage.indexOf("model")!=-1?(eo.models.current=eo.models.currentPage*eo.models.perPage,eo.models.cache.loaded=0):(eo.models.currentPage=0,eo.models.current=0),eo.models.currentSource=d,eo.models.cache.loaded=0,eo.models.cache.done=!1;if(d.length!=0){var e=eo.generate.model.browseModel(d,"left",eo.resize.model.row.moveBy(),eo.resize.model.row.middlePosition(),eo.resize.model.row.height());eo.loading.show(),eo.models.cache.moveFinished=!1,eo.models.cache.timer=setInterval(eo.models.cache.timerCheck,eo.pollingTime),eo.models.cache.fireNext=function(){eo.models.animateRow(e,eo.resize.model.row.centerPosition(),"center"),eo.navigation.neuter.resetNav(),eo.loading.hide()};var f=$("div.browseModels[data-position='center']");f.length==0?(eo.models.cache.moveFinished=!0,eo.models.cache.check()):eo.models.animateRow($("div.browseModels[data-position='center']"),-eo.resize.model.row.moveBy(),"left",function(){eo.models.cache.moveFinished=!0,eo.models.cache.check()})}else eo.models.cache.done=!0,eo.models.animateRow($("div.browseModels[data-position='center']"),-eo.resize.model.row.moveBy(),"left")},left:function(){var a=eo.models.currentSource;if(eo.models.currentPage*eo.models.perPage>=a.length)return;if(!eo.models.cache.done)return;eo.models.currentPage++,eo.models.current=eo.models.currentPage*eo.models.perPage,eo.models.cache.loaded=0,$("div.browseModels[data-position='left']").remove();var b=eo.generate.model.browseModel(a,"left",eo.resize.model.row.moveBy(),eo.resize.model.row.middlePosition(),eo.resize.model.row.height());eo.loading.show(),eo.models.cache.moveFinished=!1,eo.models.animateRow($("div.browseModels[data-position='center']"),-eo.resize.model.row.moveBy(),"left",function(){eo.models.cache.moveFinished=!0,eo.models.cache.check()}),eo.models.cache.timer=setInterval(eo.models.cache.timerCheck,eo.pollingTime),eo.models.cache.fireNext=function(){eo.models.animateRow(b,eo.resize.model.row.centerPosition(),"center"),eo.navigation.neuter.resetNav(),eo.loading.hide(),eo.screenResize(!0)}},right:function(){var a=eo.models.currentSource;if(!eo.models.cache.done)return;eo.models.currentPage--,eo.models.current=eo.models.currentPage*eo.models.perPage,eo.models.cache.loaded=0,$("div.browseModels[data-position='right']").remove();var b=eo.generate.model.browseModel(a,"right",-eo.resize.model.row.moveBy(),eo.resize.model.row.middlePosition(),eo.resize.model.row.height());eo.loading.show(),eo.models.cache.moveFinished=!1,eo.models.animateRow($("div.browseModels[data-position='center']"),eo.resize.model.row.moveBy(),"right",function(){eo.models.cache.moveFinished=!0,eo.models.cache.check()}),eo.models.cache.timer=setInterval(eo.models.cache.timerCheck,eo.pollingTime),eo.models.cache.fireNext=function(){eo.models.animateRow(b,eo.resize.model.row.centerPosition(),"center"),eo.navigation.neuter.resetNav(),eo.loading.hide(),eo.screenResize(!0)}},exit:function(a){eo.navigation._nextPage.indexOf("model")!=-1&&$("div.main").fadeOut(eo.fadeTime),$("div.browseModels").fadeOut(eo.fadeTime,function(){$(this).remove()}),$("div.browse").fadeOut(eo.fadeTime),$("div.main div.topnav table.alphabet, div.main div.topnav div.ball, div.main table.logo").fadeOut(eo.fadeTime),setTimeout(eo.navigation.fireNext,eo.fadeTime)},swfMoveEnded:function(a){eo.util.trace("SwfMoveEnded "+a)},enter:function(a,b){eo.util.trace("eo.navigation.neuter.enter "+a+", "+b);var c=eo.models.currentSource,d=eo.fadeTime;b||$("div.main, table.navbar, div.logobar, div.browse").fadeIn(d),$("div.main div.topnav table.logo").fadeIn(eo.fadeTime),$("div.imagelinksright, div.imagemenuleft, div.main div.topnav div.opencall_menu, div.main div.topnav div.contact_menu").fadeOut(eo.fadeTime/2),setTimeout(function(){$("div.main div.topnav table.logo").fadeOut(eo.fadeTime,function(){$("div.main div.topnav table.alphabet, div.main div.topnav div.ball").fadeIn(eo.fadeTime)})},eo.fadeTime*2);if(eo.navigation._lastPage.indexOf("model")!=-1&&eo.models.lastLetter!=null){eo.navigation.neuter.letter(eo.models.lastLetter,eo.models.lastGender);return}$("div.main div.topnav table.alphabet tr td").removeClass("selected"),eo.models.lastLetter=null,eo.navigation._lastPage.indexOf("model")!=-1?(eo.models.current=eo.models.currentPage*eo.models.perPage,eo.models.cache.loaded=0):(eo.models.currentPage=0,eo.models.current=0,eo.models.cache.loaded=0);var h=eo.generate.model.browseModel(c,"right",eo.resize.model.row.moveBy(),eo.resize.model.row.middlePosition(),eo.resize.model.row.height());eo.models.cache.moveFinished=!0,eo.models.cache.timer=setInterval(eo.models.cache.timerCheck,eo.pollingTime),eo.models.cache.fireNext=function(){eo.models.animateRow(h,eo.resize.model.row.centerPosition(),"center",eo.navigation.neuter.resetNav)}}}},animate:function(a){$(this).animate(a)},generate:{"package":{links:function(){$("div.packagenav").empty();var a="";for(var b=0;b<eo.package.data.models.length;b++){var c=eo.package.data.models[b];a=a+'<a href="#model_'+c.id+'">'+(b+1)+". "+c.name+"</a>"}$("div.packagenav").html(a),$("div.packagenav a").click(eo.models.click)}},images:{column:function(a,b){return a.fake?'<div class="wrapper '+b+"wrapper"+eo.images.currentType+'"><img class="'+b+'"  src="web_img/transparent.gif" data-height="'+eo.resize.images._height+'" data-width="'+eo.resize.images._width+'"></div>':eo.images.currentType=="compcard"?'<div class="wrapper wrappercompcard '+b+"wrapper"+eo.images.currentType+'"><a href="models/'+eo.images.modelid+'/compcard.pdf" target="_blank"><img class="'+b+'"  src="models/'+eo.images.modelid+"/"+a.filename+'" data-height="'+a.height+'" data-width="'+a.width+'"></a></div>':'<div class="wrapper '+b+"wrapper"+eo.images.currentType+'"><img class="'+b+'"  src="models/'+eo.images.modelid+"/"+a.filename+'" data-height="'+a.height+'" data-width="'+a.width+'" data-iesux="true"></div>'},page:function(a){if(eo.images.currentType=="video"){eo.images.current=eo.images.currentPage*eo.images.perPage;var b=eo.images.data.video[eo.images.current++],c='<div class="images vidwrapper" data-position="'+a+'">';return b.primary=="true"?c=c+'<object style="height:'+eo.resize.images.video.height()+"px; width:"+eo.resize.images.video.width()+'px"><param name="movie" value="http://www.youtube.com/v/'+b.filename+'"><param name="allowFullScreen" value="true"><param name="allowScriptAccess" value="always"><embed src="http://www.youtube.com/v/'+b.filename+'" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="'+eo.resize.images.video.width()+'" height="'+eo.resize.images.video.height()+'"></object>':c=c+'<div class="vzaar_media_player"><object id="video" width="'+eo.resize.images.video.width()+'" height="'+eo.resize.images.video.height()+'" type="application/x-shockwave-flash" data="'+b.filename+'.flashplayer"><param name="movie" value="'+b.filename+'.flashplayer"><param name="allowScriptAccess" value="always"><param name="allowFullScreen" value="true"><param name="wmode" value="transparent"><param name="flashvars" value="border=none&brandText=Elmer+Olsen+Modeling+Agency&brandLink=elmerolsenmodels.com"><embed src="'+b.filename+'.flashplayer" type="application/x-shockwave-flash" wmode="transparent" width="'+eo.resize.images.video.width()+'" height="'+eo.resize.images.video.height()+'" allowScriptAccess="always" allowFullScreen="true" flashvars="border=none&brandText=Elmer+Olsen+Modeling+Agency&brandLink=elmerolsenmodels.com"></embed><video width="'+eo.resize.images.video.width()+'" height="'+eo.resize.images.video.height()+'" src="'+b.filename+'.mobile" poster="'+b.filename+'.image" controls></video></object></div>',c=c+"</div>",c}var d=null,e=null;eo.images.current=eo.images.currentPage*eo.images.perPage,eo.images.current+1==eo.images.data[eo.images.currentType].length?(d={fake:!0},e=e=eo.images.data[eo.images.currentType][eo.images.current++]):(eo.images.current<eo.images.data[eo.images.currentType].length&&(d=eo.images.data[eo.images.currentType][eo.images.current++]),eo.images.current<eo.images.data[eo.images.currentType].length&&(e=eo.images.data[eo.images.currentType][eo.images.current++]));var c='<div class="images images'+eo.images.currentType+'" data-position="'+a+'">';return d&&(c=c+eo.generate.images.column(d,"left")),e&&(c=c+eo.generate.images.column(e,"right")),c=c+"</div>",c},stat:function(a,b,c){var d="<span class='label'>"+a.toLowerCase()+"</span><span class='value'>"+b.toLowerCase()+"</span>";return c&&(d=d+"<span class='sep'>&nbsp;</span>"),d}},model:{image:function(a){var b=eo.resize.model.image.width(),c=eo.resize.model.image.height();return html='<div class="model" data-id="'+a.id+'"><div class="wrapper" style="width:'+b+"px; height:"+c+'px;"><div class="innerwrapper">',html=html+'<img class="model" src="'+a.url+"models/"+a.id+'/primary.jpg">',html+"</div></div><label>"+a.name+"</label></div>"},row:function(a,b){var c='<div class="row '+a+'">';for(var d=0;d<eo.models.perRow;d++)if(eo.models.current<b.length){var e=b[eo.models.current];c=c+eo.generate.model.image(e),eo.models.waitingFor++,eo.models.current++}return c=c+"</div>"},browseModel:function(a,b,c,d,e){eo.models.waitingFor=0;var f=document.createElement("div");$(f).addClass("browseModels"),$(f).attr("data-position",b);var g=eo.generate.model.row("row1",a),h=eo.generate.model.row("row2 bottomRow",a);return $(f).html(g+h),$(f).css("left",c+"px"),$(f).css("top",d+"px"),$(f).css("height",e+"px"),$(f).show(),$(document.body).append(f),f}}},loading:{show:function(){},hide:function(){}},"package":{data:null,id:null,types:["images","polaroids","compcard","videos"],success:function(a){eo.package.set(a),eo.models.data=eo.package.data.models,eo.navigation.package.enter()},error:function(a,b,c){},get:function(a){$.ajax({url:"admin/package/getPackage.php?package_id="+a,dataType:"xml",success:eo.package.success,error:eo.package.error})},set:function(a){eo.package.data={};var b=$(a).find("Package"),c=$(b).find("info");eo.package.data.info={},eo.package.data.info.title=$(c).find("title").text(),eo.package.data.info.recipient=$(c).find("recipient").text(),eo.package.data.info.expires=$(c).find("expires").text(),eo.package.data.info.created=$(c).find("created").text(),eo.package.data.models=new Array;var d=$(b).find("models model");for(var e=0;e<d.length;e++){var f={};f.id=$(d[e]).find("id").text(),f.name=$(d[e]).find("name").text(),f.gender=$(d[e]).find("gender").text(),f.height=$(d[e]).find("height").text(),f.waist=$(d[e]).find("waist").text(),f.shoe=$(d[e]).find("shoe").text(),f.hair=$(d[e]).find("hair").text(),f.eyes=$(d[e]).find("eyes").text(),f.bust=$(d[e]).find("bust").text(),f.hips=$(d[e]).find("hips").text(),f.inseam=$(d[e]).find("inseam").text(),f.dress=$(d[e]).find("dress").text(),f.shirt=$(d[e]).find("shirt").text(),f.suit=$(d[e]).find("suit").text(),f.language=$(d[e]).find("language").text(),f.contact=$(d[e]).find("contact").text(),f.is_active=$(d[e]).find("is_active").text(),f.images=new Array,f.url=eo.urls[e%2];for(var g=0;g<eo.package.types.length;g++){var h=$(d[e]).find(eo.package.types[g]+" image"),i=new Array;if(eo.package.types[g]=="images"){var j={fake:!0};i.push(j)}for(var k=0;k<h.length;k++){var j={};j.filename=$(h[k]).find("filename").text(),j.height=$(h[k]).find("height").text(),j.width=$(h[k]).find("width").text(),j.active=$(h[k]).find("active").text(),j.primary=$(h[k]).find("primary").text(),j.active=="true"&&i.push(j)}eo.package.types[g]=="videos"?f.images.video=i:f.images[eo.package.types[g]]=i}eo.package.data.models.push(f)}}},images:{current:0,currentPage:0,perPage:2,done:!0,modelid:null,data:null,model:null,currentType:"imageList",types:["imageList","polaroids","compcard","video"],cache:{onload:function(){var a=$("div.images div.wrapper img"),b=0;for(var c=0;c<a.length;c++)a[c].complete&&b++;b==a.length&&(eo.images.cache.fireNext!=null&&(eo.images.cache.fireNext(),eo.images.cache.fireNext=null,clearInterval(eo.images.cache.timer)),eo.util.trace("eo.images.cache.onload : done"))},fireNext:null},video:{resize:function(){try{$("div.images object").css("height",eo.resize.images.video.height()+"px").css("width",eo.resize.images.video.width()+"px"),$("div.images embed").attr("width",eo.resize.images.video.width()+"px").attr("height",eo.resize.images.video.height()+"px").attr("height",eo.resize.images.video.height()+"px"),$("div.vidwrapper").css("top",eo.resize.images.video.centerPosition()+"px").css("left",eo.resize.images.video.middlePosition()+"px")}catch(a){}}},resize:function(){$("div.imageleft").css("top",eo.resize.images.nav.top()+"px").css("left",eo.resize.images.nav.left()+"px"),$("div.imageright").css("top",eo.resize.images.nav.top()+"px").css("right",eo.resize.images.nav.left()+"px"),$("div.imagemenu, div.logoleft, div.logoright").css("top",eo.resize.images.menu.top()+"px"),$("div.imagemenuleft, div.logoleft").css("left",eo.resize.images.menu.left()+"px"),$("div.imagemenuright, div.logoright").css("left",eo.resize.window.width-eo.resize.images.menu.left()-eo.resize.images.menu.width()+"px"),$("div.imagemenu img, div.logoright img, div.logoleft img").css("width",eo.resize.images.menu.width()+"px"),$("div.imagelinks").css("top",eo.resize.images.menu.top()-$("div.imagelinks").height()/4+"px"),$("div.imagelinksleft").css("left",eo.resize.images.menu.left()+"px"),$("div.imagelinksright").css("left",eo.resize.window.width-eo.resize.images.menu.left()-eo.resize.images.menu.width()+"px"),$("div.images div.wrapper").css("width",eo.resize.images.width()+"px").css("height",eo.resize.images.height()+"px"),$("div.images div.wrappercompcard").css("width",eo.resize.images.compcard.width()+"px").css("height",eo.resize.images.compcard.height()+"px"),$("div.images").each(function(){if($(this).hasClass("imagescompcard"))return;eo.util.trace("eo.images.resize - each being resized"),$(this).css("width",eo.resize.images.width()*2.2+"px");var a=eo.resize.images.middlePosition(),b=eo.resize.images.centerPosition();$(this).css("top",b+"px"),$(this).attr("data-position")=="center"&&$(this).attr("data-animate")!="true"&&$(this).css("left",a+"px")}),$("div.imagescompcard").each(function(){$(this).css("width",eo.resize.images.width()*2.2+"px");var a=eo.resize.images.compcard.middlePosition(),b=eo.resize.images.compcard.centerPosition();$(this).css("top",b+"px"),$(this).attr("data-position")=="center"&&$(this).attr("data-animate")!="true"&&$(this).css("left",a+"px")}),$("div.images div.wrapper img").each(function(){var a=$(this).attr("data-height"),b=$(this).attr("data-width"),c=eo.resize.images.width(),d=Math.floor(c/b*a),e=eo.resize.images.height();if(!(d>e)&&e!=d){var f=(e-d)/2;$(this).css("paddingTop",f+"px")}})},success:function(a){eo.images.set(a),eo.navigation.images.enter()},error:function(a,b,c){},set:function(a){eo.images.data=new Array;for(var b=0;b<eo.images.types.length;b++){var c=$(a).find(eo.images.types[b]+" images image"),d=new Array;if(eo.images.types[b]=="imageList"){var e={fake:!0};d.push(e)}for(var f=0;f<c.length;f++){var e={};e.filename=$(c[f]).find("filename").text(),e.height=$(c[f]).find("height").text(),e.width=$(c[f]).find("width").text(),e.active=$(c[f]).find("active").text(),e.primary=$(c[f]).find("primary").text(),e.active=="true"&&d.push(e)}eo.images.data[eo.images.types[b]]=d}},animate:function(a,b,c){$(a).attr("data-animate","true"),$(a).animate({left:b+"px"},eo.slideTime,"linear",function(){$(this).attr("data-animate","false"),$(this).attr("data-position",c),eo.images.done=!0,c!="center"&&$(this).remove()})}},models:{currentPage:0,current:0,perPage:10,perRow:5,waitingFor:0,currentSource:null,lastLetter:null,lastSearch:null,lastGender:null,_pclick:function(){var a=eo.models.get.byId(eo.images.modelid);eo.images.model=a,eo.images.data=new Array,eo.images.data.imageList=a.images.images,eo.images.data.polaroids=a.images.polaroids,eo.images.data.compcard=a.images.compcard,eo.images.data.video=a.images.video,eo.navigation.images.enter()},click:function(){eo.images.modelid=$(this).attr("data-id"),eo.models._click()},_click:function(){eo.images.model=eo.models.get.byId(eo.images.modelid),$.ajax({url:"admin/model/images/getAllImages.php?model_id="+eo.images.modelid,dataType:"xml",success:eo.images.success,error:eo.images.error})},resize:function(){$("div.navmodelleft").css("left",eo.resize.model.nav.left()+"px"),$("div.navmodelright").css("left",eo.resize.model.nav.right()+"px");var b=eo.resize.model.image.width(),c=eo.resize.model.image.height();$("div.browseModels div.row div.model div.wrapper").css("height",c+"px").css("width",b+"px"),$("div.browseModels").css("height",eo.resize.model.row.height()+"px"),$("div.browseModels").each(function(){$(this).css("top",eo.resize.model.row.middlePosition()+"px"),$(this).attr("data-position")=="center"&&$(this).attr("data-animated")!="true"&&$(this).css("left",eo.resize.model.row.centerPosition()+"px")})},cache:{loaded:0,done:!1,images:null,moveFinished:!1,timerCheck:function(){var a=$("body > div.browseModels img.model"),b=0;for(var c=0;c<a.length;c++)a[c].complete&&b++;b==a.length&&eo.models.cache.fireNext!=null&&(eo.models.cache.fireNext(),eo.models.cache.fireNext=null,clearInterval(eo.models.cache.timer))},onload:function(){eo.models.cache.loaded=eo.models.cache.loaded+1,eo.models.cache.done=!1,eo.models.cache.check()},check:function(){eo.models.cache.moveFinished&&eo.models.cache.loaded>=eo.models.waitingFor&&eo.models.cache.fireNext()},fireNext:null},sort:function(a,b){var c=a.name.toUpperCase(),d=b.name.toUpperCase();return c<d?-1:c>d?1:0},success:function(a){eo.models.data=new Array;for(var b=0;b<a.response.models.length-1;b++)a.response.models[b].is_active=="1"&&eo.models.data.push(a.response.models[b]);eo.models.data.sort(eo.models.sort),eo.models.cache.images=new Array(eo.models.data.length);for(var b=0;b<eo.models.data.length;b++)eo.models.data[b].url=eo.urls[b%2];eo.window.swfTimer=setInterval(eo.window.begin,eo.pollingTime)},error:function(a,b,c){var d},get:{maxSearchResults:10,lastSearch:new Date,hideTimeout:2500,all:function(){$.ajax({url:"get/models.php",dataType:"json",success:eo.models.success,error:eo.models.error})},women:function(){if(eo.models.get._women)return eo.models.get._women;var a=new Array;for(var b=0;b<eo.models.data.length;b++)eo.models.data[b].gender=="0"&&eo.models.data[b].is_active=="1"&&a.push(eo.models.data[b]);return eo.models.get._women=a,a},men:function(){if(eo.models.get._male)return eo.models.get._male;var a=new Array;for(var b=0;b<eo.models.data.length;b++)eo.models.data[b].gender=="1"&&eo.models.data[b].is_active=="1"&&a.push(eo.models.data[b]);return eo.models.get._male=a,a},byId:function(a){for(var b=0;b<eo.models.data.length;b++)if(eo.models.data[b].id==a)return eo.models.data[b];return null},byLetter:function(a,b){var c=new Array;for(var d=0;d<eo.models.data.length;d++)eo.models.data[d].name.substring(0,1).toUpperCase()==a.toUpperCase()&&eo.models.data[d].gender==b&&c.push(eo.models.data[d]);return c},bySearch:function(a){var b=new Array;if(eo.navigation._currentPage=="women")for(var c=0;c<eo.models.data.length;c++)eo.models.data[c].name.substring(0,a.length).toUpperCase()==a.toUpperCase()&&eo.models.data[c].gender=="0"&&b.push(eo.models.data[c]);else if(eo.navigation._currentPage=="men")for(var c=0;c<eo.models.data.length;c++)eo.models.data[c].name.substring(0,a.length).toUpperCase()==a.toUpperCase()&&eo.models.data[c].gender=="1"&&b.push(eo.models.data[c]);else for(var c=0;c<eo.models.data.length;c++)eo.models.data[c].name.substring(0,a.length).toUpperCase()==a.toUpperCase()&&b.push(eo.models.data[c]);return b},byName:function(a){var b=new Array;for(var c=0;c<eo.models.data.length;c++)eo.models.data[c].name.toUpperCase().indexOf(a.toUpperCase())!=-1&&b.push(eo.models.data[c]);return b},byFavorites:function(){var a=new Array,b=eo.util.favorites.split(",");for(var c=0;c<b.length;c++){var d=eo.models.get.byId(b[c]);d!=null&&a.push(d)}return a}},animateRow:function(a,b,c,d){$(a).attr("data-animate","true"),$(a).animate({left:b+"px"},eo.slideTime,"linear",function(){$(this).attr("data-animate","false"),$(this).attr("data-position",c),c!="center"&&$(this).remove(),d!=undefined&&d()})}},init:function(){$(window).load(eo.window.onload),$(window).bind("hashchange",function(a){eo.navigation.watchHash(a.fragment)}),eo.util.ie6()&&$("img[data-iesux=true]").each(eo.util.iesux.imgDirectx),eo.util.ie6or7()&&(typeof String.prototype.trim!="function"&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),eo.iesux.elements=$("[data-iesux=true]")),eo.util.hasFlash()&&$("div.logo_wrapper div.flash .logo").flash({src:"web_img/logospin.swf",width:$("div.logo_wrapper img").width(),height:$("div.logo_wrapper img").height(),wmode:"transparent"}),$("div.nav a.left").click(function(){eo.navigation.browse.right()}),$("div.nav a.right").click(function(){eo.navigation.browse.left()}),$("div.main div.topnav img.menu").show().fadeTo(1,0),$("div.main div.topnav table.alphabet tr td").hover(function(){$("div.main div.topnav div.ballPointer").stop(),$("div.main div.topnav div.ballPointer").animate({left:$(this).offset().left+"px"},eo.fadeTime/2)},function(){}),$("div.main div.topnav table.alphabet tr td").click(function(){if(!eo.models.cache.done)return;$("div.main div.topnav table.alphabet tr td").removeClass("selected"),$(this).addClass("selected"),eo.navigation.browse.letter($(this).text())}),$("div.intro table.logobar span.right, div.logobar div.elmerblurb, div.imagepage table.stats").hover(function(){$(this).stop().animate({color:"#6A6B6D"},eo.fadeTime)},function(){$(this).stop().animate({color:"#B4B4B6"},eo.fadeTime)}),$("div.intro table.logobar span.hdt img.hdt,div.intro table.logobar span.littleroom img.littleroom").css("opacity",0),$("div.intro table.logobar span.littleroom").hover(function(){$("div.intro table.logobar span.littleroom img.littleroomgray").stop().fadeTo(eo.fadeTime,0),$("div.intro table.logobar span.littleroom img.littleroom").stop().fadeTo(eo.fadeTime,1),$("div.intro table.logobar span.littleroom a").stop().animate({color:"#6A6B6D"},eo.fadeTime)},function(){$("div.intro table.logobar span.littleroom img.littleroomgray").stop().fadeTo(eo.fadeTime,1),$("div.intro table.logobar span.littleroom img.littleroom").stop().fadeTo(eo.fadeTime,0),$("div.intro table.logobar span.littleroom a").stop().animate({color:"#B4B4B6"},eo.fadeTime)}),$("table.navbar td.links a.women").click(function(){eo.navigation._currentPage!="women"?(eo.models.lastLetter=null,eo.models.currentPage=0,eo.navigation.helper.enter("women")):(eo.models.currentPage=0,eo.navigation.neuter.letter("<","women"))}),$("table.navbar td.links a.men").click(function(){eo.navigation._currentPage!="men"?(eo.models.lastLetter=null,eo.models.currentPage=0,eo.navigation.helper.enter("men")):(eo.models.currentPage=0,eo.navigation.neuter.letter("<","men"))}),$("div.logobar div.hdt img.hdt,div.logobar div.littleroom img.littleroom").css("opacity",0),$("div.logobar div.littleroom").hover(function(){$("div.logobar div.littleroom img.littleroomgray").stop().fadeTo(eo.fadeTime,0),$("div.logobar div.littleroom img.littleroom").stop().fadeTo(eo.fadeTime,1),$("div.logobar div.littleroom a.link").stop().animate({color:"#6A6B6D"},eo.fadeTime,function(){$("div.logobar div.elmerblurb").hide(),$("div.logobar div.littleroomblurb").fadeIn(eo.fadeTime/2)})},function(){$("div.logobar div.littleroom img.littleroomgray").stop().fadeTo(eo.fadeTime,1),$("div.logobar div.littleroom img.littleroom").stop().fadeTo(eo.fadeTime,0),$("div.logobar div.elmerblurb").stop(),$("div.logobar div.hdtblurb").stop(),$("div.logobar div.littleroomblurb").stop(),$("div.logobar div.littleroom a.link").stop().animate({color:"#B4B4B6"},eo.fadeTime,function(){$("div.logobar div.littleroomblurb").hide(),$("div.logobar div.elmerblurb").fadeIn(eo.fadeTime/2)})}),$("table.navbar td.search div.input input").focus(function(a){$(this).attr("data-focus","true")}),$("table.navbar td.search div.input input").blur(function(a){$(this).attr("data-focus","false")}),$("table.navbar td.search div.input input").keypress(function(a){eo.models.get.lastSearch=new Date}),$("table.navbar td.search div.input input").keyup(function(a){var b=eo.models.get.bySearch($(this).val()),c="";for(var d=0;d<b.length;d++)d<eo.models.get.maxSearchResults?c=c+'<a href="#model_'+b[d].id+'">'+b[d].name+"</a>":d==eo.models.get.maxSearchResults&&(c=c+'<a href="#" onclick="return false;">...</a>');$("div.searchresults").html(c),$("div.searchresults").css("top",$(this).offset().top-$("div.searchresults").height()),$("div.searchresults").css("left",$(this).offset().left),$("div.searchresults").css("width",$(this).width()*1.1),$("div.searchresults:visible").length==0&&$("div.searchresults").fadeIn(eo.fadeTime)}),$("div.searchresults").mousemove(function(){eo.models.get.lastSearch=new Date}),eo.globalTimer=setInterval(function(){var a=new Date;a.getTime()-eo.models.get.lastSearch.getTime()>eo.models.get.hideTimeout&&$("table.navbar td.search div.input input").attr("data-focus")!="true"&&($("div.searchresults").fadeOut(eo.fadeTime),$("table.navbar td.search div.input input").val(""))},eo.pollingTime),$("div.imagemenu").click(function(){$(this).attr("data-handed")!=eo.navigation.images.handed&&history.go(-1)}),$("div.imagelinks a.changeType").click(function(){var a=$(this).attr("data-type");eo.navigation.images.changeType(a)}),$("div.imagelinks a.favorite").click(function(){var a=eo.models.get.byFavorites(),b="-1,",c=!1;for(var d=0;d<a.length;d++)eo.images.modelid!=a[d].id?b=b+a[d].id+",":c=!0;c?eo.util.favorites=b:eo.util.favorites=eo.util.favorites+eo.images.modelid+",";var e={path:"/",expires:365};$.cookie("FAVORITES",eo.util.favorites,e),eo.navigation.images.resetNav()}),$("div.browseModels div.row div.model div.wrapper").live("mouseenter",eo.navigation.neuter.browseModelHoverOn),$("div.browseModels div.row div.model div.wrapper").live("mouseleave",eo.navigation.neuter.browseModelHoverOff),$("div.browseModels div.row div.model label").live("mouseenter",eo.navigation.neuter.browseModelLabelHoverOn),$("div.browseModels div.row div.model label").live("mouseleave",eo.navigation.neuter.browseModelLabelHoverOff),$("div.browseModels div.row div.model").live("click",eo.models.click);var a=$.cookie("FAVORITES");a!=null&&a!=undefined&&(eo.util.favorites=$.cookie("FAVORITES"));var b={beforeSerialize:function(a,b){$("form.submission input.failed").removeClass("failed");var c=$("form.submission input[name=name]").val().trim();c.length<2&&$("form.submission input[name=name]").addClass("failed");var d=$("form.submission input[name=email]").val().trim();d.length<2&&$("form.submission input[name=email]").addClass("failed");var e=$("form.submission input[name=phone1]").val().trim();e.length<2&&$("form.submission input[name=phone1]").addClass("failed");var f=$("form.submission input[name=city]").val().trim();f.length<2&&$("form.submission input[name=city]").addClass("failed");var g=$("form.submission input[name=country]").val().trim();g.length<2&&$("form.submission input[name=country]").addClass("failed");var h=$("form.submission input[name=height]").val().trim();h.length<2&&$("form.submission input[name=height]").addClass("failed");var i=$("form.submission input[name=waist]").val().trim();i.length<2&&$("form.submission input[name=waist]").addClass("failed");var j=$("form.submission input[name=hips]").val().trim();j.length<2&&$("form.submission input[name=hips]").addClass("failed");var k=$("form.submission input[name=bust]").val().trim();k.length<2&&$("form.submission input[name=bust]").addClass("failed");var l=$("form.submission input[name=age]").val().trim();l.length<2&&$("form.submission input[name=age]").addClass("failed");if($("form.submission input.failed").length>0)return alert("Make sure you fill out everything that is required.\n\nThank you and try again."),!1;var m=$("form.submission input[type=file][name=headshot]").val().trim();if(m.length<2)return alert("Make sure you attach a head shot.\n\nThank you and try again."),!1;var n=$("form.submission input[type=file][name=fulllength]").val().trim();if(n.length<2)return alert("Make sure you attach a full length shot.\n\nThank you and try again."),!1;var o=$("form.submission input[name=name]").val()+$("form.submission input[name=email]").val();$("form.submission input.key").val(eoDes.stringToHex(eoDes.des(eo.key,o,1,0))),$("div.submission form.submission").fadeOut(eo.fadeTime,function(){$("div.submission div.thankyou").fadeIn(eo.fadeTime)})},success:function(){}};$("form.submission").ajaxForm(b),eo.screenResize(!0),$("div.main div.topnav div.ballPointer").css("left",Math.floor(eo.resize.window.width*.16)+"px")},iesux:{forceDimensions:function(a){var b=$(this);if(this.tagName!="IMG"){if(b.attr("data-height")){var c="%";b.attr("data-height-unit")&&(c=b.attr("data-height-unit"));var d=0;b.parent()[0].tagName=="BODY"?d=eo.resize.window.height:d=b.parent().height(),c=="%"?b.height(Math.floor(b.attr("data-height")/100*d)):c=="em"&&b.height(Math.floor(b.attr("data-height")*eo.resize.font.current))}if(b.attr("data-width")){var e=0;b.parent()[0].tagName=="BODY"?e=eo.resize.window.width:e=b.parent().width(),b.width(Math.floor(b.attr("data-width")/100*e))}}},elements:null},screenResize:function(a){var b=$(window).width(),c=$(window).height();if(b==eo.resize.window.width&&c==eo.resize.window.height&&!a)return;eo.resize.window.width=b,eo.resize.window.height=c,eo.util.ie6or7()&&eo.iesux.elements.each(eo.iesux.forceDimensions),$("div.about").css("top",eo.resize.about.top()+"px"),$("div.booking").css("top",eo.resize.booking.top()+"px"),$("div.opencall").css("top",eo.resize.opencall.top()+"px"),$("div.submission").css("top",eo.resize.submission.top()+"px"),$("div.map").css("top",eo.resize.map.top()+"px").css("left",eo.resize.map.left()+"px"),$("div.map img").css("width",eo.resize.map.width()+"px").css("height",eo.resize.map.height()+"px"),$("div.contactmap").css("top",eo.resize.map.top()+"px").css("left",eo.resize.map.left()+"px"),$("div.contactmap img").css("width",eo.resize.map.width()+"px"),$("div.contactmap img").css("height",eo.resize.map.height()+"px"),$("div.contact").css("top",eo.resize.contact.top()+"px"),$("div.address").css("top",eo.resize.address.top()+"px"),$("table.navbar div.icon img").css("height",eo.resize.magnify.height()+"px").css("width",eo.resize.magnify.width()+"px"),$("img.mainlogo").css("left",eo.resize.mainlogo.left()+"px").css("top",eo.resize.mainlogo.top()+"px").css("height",eo.resize.mainlogo.height()+"px").css("width",eo.resize.mainlogo.width()+"px"),$("div.logo_wrapper div.flash .logo").css("left",eo.resize.mainlogoswf.left()+"px").css("top",eo.resize.mainlogoswf.top()+"px").css("height",eo.resize.mainlogoswf.height()+"px").css("width",eo.resize.mainlogoswf.width()+"px"),$("div.main table.logo img.logo").css("height",eo.resize.logo.height()+"px"),eo.resize.font.current=eo.resize.font.size(),$(document.body).css("fontSize",eo.resize.font.current+"px"),eo.models.resize(),eo.images.resize(),eo.images.video.resize()}},eoDes={des:function(a,b,c,d,e,f){var g=new Array(16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756),h=new Array(-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344),i=new Array(520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584),j=new Array(8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928),k=new Array(256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080),l=new Array(536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312),m=new Array(2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154),n=new Array(268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696),o=eoDes.des_createKeys(a),p=0,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F=b.length,G=0,H=o.length==32?3:9;H==3?y=c?new Array(0,32,2):new Array(30,-2,-2):y=c?new Array(0,32,2,62,30,-2,64,96,2):new Array(94,62,-2,32,64,2,30,-2,-2),f==2?b+="        ":f==1?(s=8-F%8,b+=String.fromCharCode(s,s,s,s,s,s,s,s),s==8&&(F+=8)):f||(b+="��������"),result="",tempresult="",d==1&&(z=e.charCodeAt(p++)<<24|e.charCodeAt(p++)<<16|e.charCodeAt(p++)<<8|e.charCodeAt(p++),B=e.charCodeAt(p++)<<24|e.charCodeAt(p++)<<16|e.charCodeAt(p++)<<8|e.charCodeAt(p++),p=0);while(p<F){w=b.charCodeAt(p++)<<24|b.charCodeAt(p++)<<16|b.charCodeAt(p++)<<8|b.charCodeAt(p++),x=b.charCodeAt(p++)<<24|b.charCodeAt(p++)<<16|b.charCodeAt(p++)<<8|b.charCodeAt(p++),d==1&&(c?(w^=z,x^=B):(A=z,C=B,z=w,B=x)),s=(w>>>4^x)&252645135,x^=s,w^=s<<4,s=(w>>>16^x)&65535,x^=s,w^=s<<16,s=(x>>>2^w)&858993459,w^=s,x^=s<<2,s=(x>>>8^w)&16711935,w^=s,x^=s<<8,s=(w>>>1^x)&1431655765,x^=s,w^=s<<1,w=w<<1|w>>>31,x=x<<1|x>>>31;for(r=0;r<H;r+=3){D=y[r+1],E=y[r+2];for(q=y[r];q!=D;q+=E)u=x^o[q],v=(x>>>4|x<<28)^o[q+1],s=w,w=x,x=s^(h[u>>>24&63]|j[u>>>16&63]|l[u>>>8&63]|n[u&63]|g[v>>>24&63]|i[v>>>16&63]|k[v>>>8&63]|m[v&63]);s=w,w=x,x=s}w=w>>>1|w<<31,x=x>>>1|x<<31,s=(w>>>1^x)&1431655765,x^=s,w^=s<<1,s=(x>>>8^w)&16711935,w^=s,x^=s<<8,s=(x>>>2^w)&858993459,w^=s,x^=s<<2,s=(w>>>16^x)&65535,x^=s,w^=s<<16,s=(w>>>4^x)&252645135,x^=s,w^=s<<4,d==1&&(c?(z=w,B=x):(w^=A,x^=C)),tempresult+=String.fromCharCode(w>>>24,w>>>16&255,w>>>8&255,w&255,x>>>24,x>>>16&255,x>>>8&255,x&255),G+=8,G==512&&(result+=tempresult,tempresult="",G=0)}return result+tempresult},des_createKeys:function(a){pc2bytes0=new Array(0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964),pc2bytes1=new Array(0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697),pc2bytes2=new Array(0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272),pc2bytes3=new Array(0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144),pc2bytes4=new Array(0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256),pc2bytes5=new Array(0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488),pc2bytes6=new Array(0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746),pc2bytes7=new Array(0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568),pc2bytes8=new Array(0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578),pc2bytes9=new Array(0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488),pc2bytes10=new Array(0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800),pc2bytes11=new Array(0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744),pc2bytes12=new Array(0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128),pc2bytes13=new Array(0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261);var b=a.length>8?3:1,c=new Array(32*b),d=new Array(0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0),e,f,g=0,h=0,i;for(var j=0;j<b;j++){left=a.charCodeAt(g++)<<24|a.charCodeAt(g++)<<16|a.charCodeAt(g++)<<8|a.charCodeAt(g++),right=a.charCodeAt(g++)<<24|a.charCodeAt(g++)<<16|a.charCodeAt(g++)<<8|a.charCodeAt(g++),i=(left>>>4^right)&252645135,right^=i,left^=i<<4,i=(right>>>-16^left)&65535,left^=i,right^=i<<-16,i=(left>>>2^right)&858993459,right^=i,left^=i<<2,i=(right>>>-16^left)&65535,left^=i,right^=i<<-16,i=(left>>>1^right)&1431655765,right^=i,left^=i<<1,i=(right>>>8^left)&16711935,left^=i,right^=i<<8,i=(left>>>1^right)&1431655765,right^=i,left^=i<<1,i=left<<8|right>>>20&240,left=right<<24|right<<8&16711680|right>>>8&65280|right>>>24&240,right=i;for(var k=0;k<d.length;k++)d[k]?(left=left<<2|left>>>26,right=right<<2|right>>>26):(left=left<<1|left>>>27,right=right<<1|right>>>27),left&=-15,right&=-15,e=pc2bytes0[left>>>28]|pc2bytes1[left>>>24&15]|pc2bytes2[left>>>20&15]|pc2bytes3[left>>>16&15]|pc2bytes4[left>>>12&15]|pc2bytes5[left>>>8&15]|pc2bytes6[left>>>4&15],f=pc2bytes7[right>>>28]|pc2bytes8[right>>>24&15]|pc2bytes9[right>>>20&15]|pc2bytes10[right>>>16&15]|pc2bytes11[right>>>12&15]|pc2bytes12[right>>>8&15]|pc2bytes13[right>>>4&15],i=(f>>>16^e)&65535,c[h++]=e^i,c[h++]=f^i<<16}return c},stringToHex:function(a){var b="0x",c=new Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f");for(var d=0;d<a.length;d++)b+=c[a.charCodeAt(d)>>4]+c[a.charCodeAt(d)&15];return b},hexToString:function(a){var b="";for(var c=a.substr(0,2)=="0x"?2:0;c<a.length;c+=2)b+=String.fromCharCode(parseInt(a.substr(c,2),16));return b}};jQuery.effects||function(a,b){function c(b){var c;return b&&b.constructor==Array&&b.length==3?b:(c=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(b))?[parseInt(c[1],10),parseInt(c[2],10),parseInt(c[3],10)]:(c=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(b))?[parseFloat(c[1])*2.55,parseFloat(c[2])*2.55,parseFloat(c[3])*2.55]:(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(b))?[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)]:(c=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(b))?[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)]:/rgba\(0, 0, 0, 0\)/.exec(b)?i.transparent:i[a.trim(b).toLowerCase()]}function d(b,d){var e;do{e=a.curCSS(b,d);if(e!=""&&e!="transparent"||a.nodeName(b,"body"))break;d="backgroundColor"}while(b=b.parentNode);return c(e)}function e(){var a=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,b={},c,d;if(a&&a.length&&a[0]&&a[a[0]])for(var e=a.length;e--;)c=a[e],typeof a[c]=="string"&&(d=c.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()}),b[d]=a[c]);else for(c in a)typeof a[c]=="string"&&(b[c]=a[c]);return b}function f(b){var c,d;for(c in b)d=b[c],(d==null||a.isFunction(d)||c in k||/scrollbar/.test(c)||!/color/i.test(c)&&isNaN(parseFloat(d)))&&delete b[c];return b}function g(a,b){var c={_:0},d;for(d in b)a[d]!=b[d]&&(c[d]=b[d]);return c}function h(b,c,d,e){typeof b=="object"&&(e=c,d=null,c=b,b=c.effect),a.isFunction(c)&&(e=c,d=null,c={});if(typeof c=="number"||a.fx.speeds[c])e=d,d=c,c={};return a.isFunction(d)&&(e=d,d=null),c=c||{},d=d||c.duration,d=a.fx.off?0:typeof d=="number"?d:a.fx.speeds[d]||a.fx.speeds._default,e=e||c.complete,[b,c,d,e]}a.effects={},a.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(b,e){a.fx.step[e]=function(a){a.colorInit||(a.start=d(a.elem,e),a.end=c(a.end),a.colorInit=!0),a.elem.style[e]="rgb("+Math.max(Math.min(parseInt(a.pos*(a.end[0]-a.start[0])+a.start[0],10),255),0)+","+Math.max(Math.min(parseInt(a.pos*(a.end[1]-a.start[1])+a.start[1],10),255),0)+","+Math.max(Math.min(parseInt(a.pos*(a.end[2]-a.start[2])+a.start[2],10),255),0)+")"}});var i={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},j=["add","remove","toggle"],k={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.effects.animateClass=function(b,c,d,h){return a.isFunction(d)&&(h=d,d=null),this.each(function(){var i=a(this),k=i.attr("style")||" ",l=f(e.call(this)),m,q=i.attr("className");a.each(j,function(a,c){b[c]&&i[c+"Class"](b[c])}),m=f(e.call(this)),i.attr("className",q),i.animate(g(l,m),c,d,function(){a.each(j,function(a,c){b[c]&&i[c+"Class"](b[c])}),typeof i.attr("style")=="object"?(i.attr("style").cssText="",i.attr("style").cssText=k):i.attr("style",k),h&&h.apply(this,arguments)})})},a.fn.extend({_addClass:a.fn.addClass,addClass:function(b,c,d,e){return c?a.effects.animateClass.apply(this,[{add:b},c,d,e]):this._addClass(b)},_removeClass:a.fn.removeClass,removeClass:function(b,c,d,e){return c?a.effects.animateClass.apply(this,[{remove:b},c,d,e]):this._removeClass(b)},_toggleClass:a.fn.toggleClass,toggleClass:function(c,d,e,f,g){return typeof d=="boolean"||d===b?e?a.effects.animateClass.apply(this,[d?{add:c}:{remove:c},e,f,g]):this._toggleClass(c,d):a.effects.animateClass.apply(this,[{toggle:c},d,e,f])},switchClass:function(b,c,d,e,f){return a.effects.animateClass.apply(this,[{add:c,remove:b},d,e,f])}}),a.extend(a.effects,{version:"1.8.5",save:function(a,b){for(var c=0;c<b.length;c++)b[c]!==null&&a.data("ec.storage."+b[c],a[0].style[b[c]])},restore:function(a,b){for(var c=0;c<b.length;c++)b[c]!==null&&a.css(b[c],a.data("ec.storage."+b[c]))},setMode:function(a,b){return b=="toggle"&&(b=a.is(":hidden")?"show":"hide"),b},getBaseline:function(a,b){var c;switch(a[0]){case"top":c=0;break;case"middle":c=.5;break;case"bottom":c=1;break;default:c=a[0]/b.height}switch(a[1]){case"left":a=0;break;case"center":a=.5;break;case"right":a=1;break;default:a=a[1]/b.width}return{x:a,y:c}},createWrapper:function(b){if(b.parent().is(".ui-effects-wrapper"))return b.parent();var c={width:b.outerWidth(!0),height:b.outerHeight(!0),"float":b.css("float")},d=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});return b.wrap(d),d=b.parent(),b.css("position")=="static"?(d.css({position:"relative"}),b.css({position:"relative"})):(a.extend(c,{position:b.css("position"),zIndex:b.css("z-index")}),a.each(["top","left","bottom","right"],function(a,d){c[d]=b.css(d),isNaN(parseInt(c[d],10))&&(c[d]="auto")}),b.css({position:"relative",top:0,left:0})),d.css(c).show()},removeWrapper:function(a){return a.parent().is(".ui-effects-wrapper")?a.parent().replaceWith(a):a},setTransition:function(b,c,d,e){return e=e||{},a.each(c,function(a,c){unit=b.cssUnit(c),unit[0]>0&&(e[c]=unit[0]*d+unit[1])}),e}}),a.fn.extend({effect:function(b){var c=h.apply(this,arguments);c={options:c[1],duration:c[2],callback:c[3]};var d=a.effects[b];return d&&!a.fx.off?d.call(this,c):this},_show:a.fn.show,show:function(b){if(!b||typeof b=="number"||a.fx.speeds[b]||!a.effects[b])return this._show.apply(this,arguments);var c=h.apply(this,arguments);return c[1].mode="show",this.effect.apply(this,c)},_hide:a.fn.hide,hide:function(b){if(!b||typeof b=="number"||a.fx.speeds[b]||!a.effects[b])return this._hide.apply(this,arguments);var c=h.apply(this,arguments);return c[1].mode="hide",this.effect.apply(this,c)},__toggle:a.fn.toggle,toggle:function(b){if(!b||typeof b=="number"||a.fx.speeds[b]||!a.effects[b]||typeof b=="boolean"||a.isFunction(b))return this.__toggle.apply(this,arguments);var c=h.apply(this,arguments);return c[1].mode="toggle",this.effect.apply(this,c)},cssUnit:function(b){var c=this.css(b),d=[];return a.each(["em","px","%","pt"],function(a,b){c.indexOf(b)>0&&(d=[parseFloat(c),b])}),d}}),a.easing.jswing=a.easing.swing,a.extend(a.easing,{def:"easeOutQuad",swing:function(b,c,d,e,f){return a.easing[a.easing.def](b,c,d,e,f)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return(b/=e/2)<1?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){a=1.70158;var f=0,g=d;return b==0?c:(b/=e)==1?c+d:(f||(f=e*.3),g<Math.abs(d)?(g=d,a=f/4):a=f/(2*Math.PI)*Math.asin(d/g),-(g*Math.pow(2,10*(b-=1))*Math.sin((b*e-a)*2*Math.PI/f))+c)},easeOutElastic:function(a,b,c,d,e){a=1.70158;var f=0,g=d;return b==0?c:(b/=e)==1?c+d:(f||(f=e*.3),g<Math.abs(d)?(g=d,a=f/4):a=f/(2*Math.PI)*Math.asin(d/g),g*Math.pow(2,-10*b)*Math.sin((b*e-a)*2*Math.PI/f)+d+c)},easeInOutElastic:function(a,b,c,d,e){a=1.70158;var f=0,g=d;return b==0?c:(b/=e/2)==2?c+d:(f||(f=e*.3*1.5),g<Math.abs(d)?(g=d,a=f/4):a=f/(2*Math.PI)*Math.asin(d/g),b<1?-0.5*g*Math.pow(2,10*(b-=1))*Math.sin((b*e-a)*2*Math.PI/f)+c:g*Math.pow(2,-10*(b-=1))*Math.sin((b*e-a)*2*Math.PI/f)*.5+d+c)},easeInBack:function(a,c,d,e,f,g){return g==b&&(g=1.70158),e*(c/=f)*c*((g+1)*c-g)+d},easeOutBack:function(a,c,d,e,f,g){return g==b&&(g=1.70158),e*((c=c/f-1)*c*((g+1)*c+g)+1)+d},easeInOutBack:function(a,c,d,e,f,g){return g==b&&(g=1.70158),(c/=f/2)<1?e/2*c*c*(((g*=1.525)+1)*c-g)+d:e/2*((c-=2)*c*(((g*=1.525)+1)*c+g)+2)+d},easeInBounce:function(b,c,d,e,f){return e-a.easing.easeOutBounce(b,f-c,0,e,f)+d},easeOutBounce:function(a,b,c,d,e){return(b/=e)<1/2.75?d*7.5625*b*b+c:b<2/2.75?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:b<2.5/2.75?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(b,c,d,e,f){return c<f/2?a.easing.easeInBounce(b,c*2,0,e,f)*.5+d:a.easing.easeOutBounce(b,c*2-f,0,e,f)*.5+e*.5+d}})}(jQuery),function(a,b){function z(a){return typeof a=="string"}function A(a){var b=d.call(arguments,1);return function(){return a.apply(this,b.concat(d.call(arguments)))}}function B(a){return a.replace(/^[^#]*#?(.*)$/,"$1")}function C(a){return a.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function D(d,g,i,j,k){var l,m,n,o,r;return j!==c?(n=i.match(d?/^([^#]*)\#?(.*)$/:/^([^#?]*)\??([^#]*)(#?.*)/),r=n[3]||"",k===2&&z(j)?m=j.replace(d?w:v,""):(o=h(n[2]),j=z(j)?h[d?q:p](j):j,m=k===2?j:k===1?a.extend({},j,o):a.extend({},o,j),m=f(m),d&&(m=m.replace(x,e))),l=n[1]+(d?"#":m||!n[1]?"?":"")+m+r):l=g(i!==c?i:b[s][t]),l}function E(a,b,d){return b===c||typeof b=="boolean"?(d=b,b=f[a?q:p]()):b=z(b)?b.replace(a?w:v,""):b,h(b,d)}function F(b,d,e,g){return!z(e)&&typeof e!="object"&&(g=e,e=d,d=c),this.each(function(){var c=a(this),h=d||m()[(this.nodeName||"").toLowerCase()]||"",i=h&&c.attr(h)||"";c.attr(h,f[b](i,e,g))})}var c,d=Array.prototype.slice,e=decodeURIComponent,f=a.param,g,h,i,j=a.bbq=a.bbq||{},k,l,m,n=a.event.special,o="hashchange",p="querystring",q="fragment",r="elemUrlAttr",s="location",t="href",u="src",v=/^.*\?|#.*$/g,w=/^.*\#/,x,y={};f[p]=A(D,0,C),f[q]=g=A(D,1,B),g.noEscape=function(b){b=b||"";var c=a.map(b.split(""),encodeURIComponent);x=new RegExp(c.join("|"),"g")},g.noEscape(",/"),a.deparam=h=function(b,d){var f={},g={"true":!0,"false":!1,"null":null};return a.each(b.replace(/\+/g," ").split("&"),function(b,h){var i=h.split("="),j=e(i[0]),k,l=f,m=0,n=j.split("]["),o=n.length-1;/\[/.test(n[0])&&/\]$/.test(n[o])?(n[o]=n[o].replace(/\]$/,""),n=n.shift().split("[").concat(n),o=n.length-1):o=0;if(i.length===2){k=e(i[1]),d&&(k=k&&!isNaN(k)?+k:k==="undefined"?c:g[k]!==c?g[k]:k);if(o)for(;m<=o;m++)j=n[m]===""?l.length:n[m],l=l[j]=m<o?l[j]||(n[m+1]&&isNaN(n[m+1])?{}:[]):k;else a.isArray(f[j])?f[j].push(k):f[j]!==c?f[j]=[f[j],k]:f[j]=k}else j&&(f[j]=d?c:"")}),f},h[p]=A(E,0),h[q]=i=A(E,1),a[r]||(a[r]=function(b){return a.extend(y,b)})({a:t,base:t,iframe:u,img:u,input:u,form:"action",link:t,script:u}),m=a[r],a.fn[p]=A(F,p),a.fn[q]=A(F,q),j.pushState=k=function(a,d){z(a)&&/^#/.test(a)&&d===c&&(d=2);var e=a!==c,f=g(b[s][t],e?a:{},e?d:2);b[s][t]=f+(/#/.test(f)?"":"#")},j.getState=l=function(a,b){return a===c||typeof a=="boolean"?i(a):i(b)[a]},j.removeState=function(b){var d={};b!==c&&(d=l(),a.each(a.isArray(b)?b:arguments,function(a,b){delete d[b]})),k(d,2)},n[o]=a.extend(n[o],{add:function(b){function e(a){var b=a[q]=g();a.getState=function(a,d){return a===c||typeof a=="boolean"?h(b,a):h(b,d)[a]},d.apply(this,arguments)}var d;if(a.isFunction(b))return d=b,e;d=b.handler,b.handler=e}})}(jQuery,this),function(a,b,c){function m(a){return a=a||b[f][h],a.replace(/^[^#]*#?(.*)$/,"$1")}var d,e=a.event.special,f="location",g="hashchange",h="href",i=a.browser,j=document.documentMode,k=i.msie&&(j===c||j<8),l="on"+g in b&&!k;a[g+"Delay"]=100,e[g]=a.extend(e[g],{setup:function(){if(l)return!1;a(d.start)},teardown:function(){if(l)return!1;a(d.stop)}}),d=function(){function l(){i=j=function(a){return a},k&&(e=a('<iframe src="javascript:0"/>').hide().insertAfter("body")[0].contentWindow,j=function(){return m(e.document[f][h])},i=function(a,b){if(a!==b){var c=e.document;c.open().close(),c[f].hash="#"+a}},i(m()))}var c={},d,e,i,j;return c.start=function(){if(d)return;var c=m();i||l(),function e(){var k=m(),l=j(c);k!==c?(i(c=k,l),a(b).trigger(g)):l!==c&&(b[f][h]=b[f][h].replace(/#.*/,"")+"#"+l),d=setTimeout(e,a[g+"Delay"])}()},c.stop=function(){e||(d&&clearTimeout(d),d=0)},c}()}(jQuery,this),Array.prototype.indexOf=function(a,b){for(var c=this.length,b=b<0?b+c<0?0:b+c:b||0;b<c&&this[b]!==a;b++);return c<=b?-1:b},$.fn.extend({flash:function(a){function e(a,b){return" "+a+'="'+b+'"'}function f(a,b){return'<param name="'+a+'" value="'+b+'" />'}var b,c,d,g=navigator.plugins;if(g&&g.length){var h=g["Shockwave Flash"];h&&(b=!0,h.description&&(c=h.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))),g["Shockwave Flash 2.0"]&&(b=!0,c="2.0.0.11")}else{try{var i=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(j){try{var i=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");c=[6,0,21],b=!0}catch(j){}try{i=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(j){}}i!=null&&(c=i.GetVariable("$version").split(" ")[1].split(","),b=!0,d=!0)}$(this).each(function(){if(b){var g=$(this),h=$.extend({id:g.attr("id"),"class":g.attr("class"),width:g.width(),height:g.height(),src:g.attr("href"),classid:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",pluginspace:"http://get.adobe.com/flashplayer",availattrs:["id","class","width","height","src"],availparams:["src","bgcolor","quality","allowscriptaccess","allowfullscreen","flashvars","wmode"],version:"9.0.24"},a),i=h.availattrs,j=h.availparams,l=h.version.split("."),m="<object";h.codebase||(h.codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+l.join(","));if(h.express)for(var n in c){if(parseInt(c[n])>parseInt(l[n]))break;parseInt(c[n])<parseInt(l[n])&&(h.src=h.express)}h.flashvars&&(h.flashvars=unescape($.param(h.flashvars))),i=d?i.concat(["classid","codebase"]):i.concat(["pluginspage"]);for(k in i){var o=k==i.indexOf("src")?"data":i[k];m+=h[i[k]]?e(o,h[i[k]]):""}m+=">";for(k in j){var o=k==j.indexOf("src")?"movie":j[k];m+=h[j[k]]?f(o,h[j[k]]):""}m+="</object>",g.replaceWith(m)}return this})}}),jQuery.cookie=function(a,b,c){if(typeof b=="undefined"){var i=null;if(document.cookie&&document.cookie!=""){var j=document.cookie.split(";");for(var k=0;k<j.length;k++){var l=jQuery.trim(j[k]);if(l.substring(0,a.length+1)==a+"="){i=decodeURIComponent(l.substring(a.length+1));break}}}return i}c=c||{},b===null&&(b="",c.expires=-1);var d="";if(c.expires&&(typeof c.expires=="number"||c.expires.toUTCString)){var e;typeof c.expires=="number"?(e=new Date,e.setTime(e.getTime()+c.expires*24*60*60*1e3)):e=c.expires,d="; expires="+e.toUTCString()}var f=c.path?"; path="+c.path:"",g=c.domain?"; domain="+c.domain:"",h=c.secure?"; secure":"";document.cookie=[a,"=",encodeURIComponent(b),d,f,g,h].join("")},function(a){function b(){if(a.fn.ajaxSubmit.debug){var b="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(b):window.opera&&window.opera.postError&&window.opera.postError(b)}}a.fn.ajaxSubmit=function(c){function q(){function q(){var b=j.attr("target"),c=j.attr("action");d.setAttribute("target",g),d.getAttribute("method")!="POST"&&d.setAttribute("method","POST"),d.getAttribute("action")!=e.url&&d.setAttribute("action",e.url),e.skipEncodingOverride||j.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),e.timeout&&setTimeout(function(){n=!0,s()},e.timeout);var f=[];try{if(e.extraData)for(var i in e.extraData)f.push(a('<input type="hidden" name="'+i+'" value="'+e.extraData[i]+'" />').appendTo(d)[0]);h.appendTo("body"),h.data("form-plugin-onload",s),d.submit()}finally{d.setAttribute("action",c),b?d.setAttribute("target",b):j.removeAttr("target"),a(f).remove()}}function s(){if(m)return;var c=!0;try{if(n)throw"timeout";var d,f;f=i.contentWindow?i.contentWindow.document:i.contentDocument?i.contentDocument:i.document;var g=e.dataType=="xml"||f.XMLDocument||a.isXMLDoc(f);b("isXml="+g);if(!g&&(f.body==null||f.body.innerHTML=="")){if(--r){b("requeing onLoad callback, DOM not available"),setTimeout(s,250);return}b("Could not access iframe DOM after 100 tries.");return}b("response detected"),m=!0,k.responseText=f.body?f.body.innerHTML:null,k.responseXML=f.XMLDocument?f.XMLDocument:f,k.getResponseHeader=function(a){var b={"content-type":e.dataType};return b[a]};if(e.dataType=="json"||e.dataType=="script"){var j=f.getElementsByTagName("textarea")[0];if(j)k.responseText=j.value;else{var o=f.getElementsByTagName("pre")[0];o&&(k.responseText=o.innerHTML)}}else e.dataType=="xml"&&!k.responseXML&&k.responseText!=null&&(k.responseXML=t(k.responseText));d=a.httpData(k,e.dataType)}catch(p){b("error caught:",p),c=!1,k.error=p,a.handleError(e,k,"error",p)}c&&(e.success(d,"success"),l&&a.event.trigger("ajaxSuccess",[k,e])),l&&a.event.trigger("ajaxComplete",[k,e]),l&&!--a.active&&a.event.trigger("ajaxStop"),e.complete&&e.complete(k,c?"success":"error"),setTimeout(function(){h.removeData("form-plugin-onload"),h.remove(),k.responseXML=null},100)}function t(a,b){return window.ActiveXObject?(b=new ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(a)):b=(new DOMParser).parseFromString(a,"text/xml"),b&&b.documentElement&&b.documentElement.tagName!="parsererror"?b:null}var d=j[0];if(a(":input[name=submit]",d).length){alert('Error: Form elements must not be named "submit".');return}var e=a.extend({},a.ajaxSettings,c),f=a.extend(!0,{},a.extend(!0,{},a.ajaxSettings),e),g="jqFormIO"+(new Date).getTime(),h=a('<iframe id="'+g+'" name="'+g+'" src="'+e.iframeSrc+'" onload="(jQuery(this).data(\'form-plugin-onload\'))()" />'),i=h[0];h.css({position:"absolute",top:"-1000px",left:"-1000px"});var k={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1,h.attr("src",e.iframeSrc)}},l=e.global;l&&!(a.active++)&&a.event.trigger("ajaxStart"),l&&a.event.trigger("ajaxSend",[k,e]);if(f.beforeSend&&f.beforeSend(k,f)===!1){f.global&&a.active--;return}if(k.aborted)return;var m=!1,n=0,o=d.clk;if(o){var p=o.name;p&&!o.disabled&&(e.extraData=e.extraData||{},e.extraData[p]=o.value,o.type=="image"&&(e.extraData[p+".x"]=d.clk_x,e.extraData[p+".y"]=d.clk_y))}e.forceSync?q():setTimeout(q,10);var r=100}if(!this.length)return b("ajaxSubmit: skipping submit process - no element selected"),this;typeof c=="function"&&(c={success:c});var d=a.trim(this.attr("action"));d&&(d=(d.match(/^([^#]+)/)||[])[1]),d=d||window.location.href||"",c=a.extend({url:d,type:this.attr("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},c||{});var e={};this.trigger("form-pre-serialize",[this,c,e]);if(e.veto)return b("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(c.beforeSerialize&&c.beforeSerialize(this,c)===!1)return b("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var f=this.formToArray(c.semantic);if(c.data){c.extraData=c.data;for(var g in c.data)if(c.data[g]instanceof Array)for(var h in c.data[g])f.push({name:g,value:c.data[g][h]});else f.push({name:g,value:c.data[g]})}if(c.beforeSubmit&&c.beforeSubmit(f,this,c)===!1)return b("ajaxSubmit: submit aborted via beforeSubmit callback"),this;this.trigger("form-submit-validate",[f,this,c,e]);if(e.veto)return b("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var i=a.param(f);c.type.toUpperCase()=="GET"?(c.url+=(c.url.indexOf("?")>=0?"&":"?")+i,c.data=null):c.data=i;var j=this,k=[];c.resetForm&&k.push(function(){j.resetForm()}),c.clearForm&&k.push(function(){j.clearForm()});if(!c.dataType&&c.target){var l=c.success||function(){};k.push(function(b){var d=c.replaceTarget?"replaceWith":"html";a(c.target)[d](b).each(l,arguments)})}else c.success&&k.push(c.success);c.success=function(a,b,d){for(var e=0,f=k.length;e<f;e++)k[e].apply(c,[a,b,d||j,j])};var m=a("input:file",this).fieldValue(),n=!1;for(var o=0;o<m.length;o++)m[o]&&(n=!0);var p=!1;return m.length&&c.iframe!==!1||c.iframe||n||p?c.closeKeepAlive?a.get(c.closeKeepAlive,q):q():a.ajax(c),this.trigger("form-submit-notify",[this,c]),this},a.fn.ajaxForm=function(b){return this.ajaxFormUnbind().bind("submit.form-plugin",function(c){c.preventDefault(),a(this).ajaxSubmit(b)}).bind("click.form-plugin",function(b){var c=b.target,d=a(c);if(!d.is(":submit,input:image")){var e=d.closest(":submit");if(e.length==0)return;c=e[0]}var f=this;f.clk=c;if(c.type=="image")if(b.offsetX!=undefined)f.clk_x=b.offsetX,f.clk_y=b.offsetY;else if(typeof a.fn.offset=="function"){var g=d.offset();f.clk_x=b.pageX-g.left,f.clk_y=b.pageY-g.top}else f.clk_x=b.pageX-c.offsetLeft,f.clk_y=b.pageY-c.offsetTop;setTimeout(function(){f.clk=f.clk_x=f.clk_y=null},100)})},a.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},a.fn.formToArray=function(b){var c=[];if(this.length==0)return c;var d=this[0],e=b?d.getElementsByTagName("*"):d.elements;if(!e)return c;for(var f=0,g=e.length;f<g;f++){var h=e[f],i=h.name;if(!i)continue;if(b&&d.clk&&h.type=="image"){!h.disabled&&d.clk==h&&(c.push({name:i,value:a(h).val()}),c.push({name:i+".x",value:d.clk_x},{name:i+".y",value:d.clk_y}));continue}var j=a.fieldValue(h,!0);if(j&&j.constructor==Array)for(var k=0,l=j.length;k<l;k++)c.push({name:i,value:j[k]});else j!==null&&typeof j!="undefined"&&c.push({name:i,value:j})}if(!b&&d.clk){var m=a(d.clk),n=m[0],i=n.name;i&&!n.disabled&&n.type=="image"&&(c.push({name:i,value:m.val()}),c.push({name:i+".x",value:d.clk_x},{name:i+".y",value:d.clk_y}))}return c},a.fn.formSerialize=function(b){return a.param(this.formToArray(b))},a.fn.fieldSerialize=function(b){var c=[];return this.each(function(){var d=this.name;if(!d)return;var e=a.fieldValue(this,b);if(e&&e.constructor==Array)for(var f=0,g=e.length;f<g;f++)c.push({name:d,value:e[f]});else e!==null&&typeof e!="undefined"&&c.push({name:this.name,value:e})}),a.param(c)},a.fn.fieldValue=function(b){for(var c=[],d=0,e=this.length;d<e;d++){var f=this[d],g=a.fieldValue(f,b);if(g===null||typeof g=="undefined"||g.constructor==Array&&!g.length)continue;g.constructor==Array?a.merge(c,g):c.push(g)}return c},a.fieldValue=function(a,b){var c=a.name,d=a.type,e=a.tagName.toLowerCase();typeof b=="undefined"&&(b=!0);if(b&&(!c||a.disabled||d=="reset"||d=="button"||(d=="checkbox"||d=="radio")&&!a.checked||(d=="submit"||d=="image")&&a.form&&a.form.clk!=a||e=="select"&&a.selectedIndex==-1))return null;if(e=="select"){var f=a.selectedIndex;if(f<0)return null;var g=[],h=a.options,i=d=="select-one",j=i?f+1:h.length;for(var k=i?f:0;k<j;k++){var l=h[k];if(l.selected){var m=l.value;m||(m=l.attributes&&l.attributes.value&&!l.attributes.value.specified?l.text:l.value);if(i)return m;g.push(m)}}return g}return a.value},a.fn.clearForm=function(){return this.each(function(){a("input,select,textarea",this).clearFields()})},a.fn.clearFields=a.fn.clearInputs=function(){return this.each(function(){var a=this.type,b=this.tagName.toLowerCase();a=="text"||a=="password"||b=="textarea"?this.value="":a=="checkbox"||a=="radio"?this.checked=!1:b=="select"&&(this.selectedIndex=-1)})},a.fn.resetForm=function(){return this.each(function(){(typeof this.reset=="function"||typeof this.reset=="object"&&!this.reset.nodeType)&&this.reset()})},a.fn.enable=function(a){return a==undefined&&(a=!0),this.each(function(){this.disabled=!a})},a.fn.selected=function(b){return b==undefined&&(b=!0),this.each(function(){var c=this.type;if(c=="checkbox"||c=="radio")this.checked=b;else if(this.tagName.toLowerCase()=="option"){var d=a(this).parent("select");b&&d[0]&&d[0].type=="select-one"&&d.find("option").selected(!1),this.selected=b}})}}(jQuery)

