﻿classified=function(){var k=navigator.appName,j=navigator.appVersion,b=navigator.userAgent,f=document.getElementsByTagName("html")[0],a="";f.setAttribute("class","");if(/Windows/i.test(b)){a+=" windows";var d=/Windows Phone OS ([0-9]{1,}[\.0-9]{0,})/.exec(b);if(d){var e=parseFloat(d[1]);if(e==7)a+=" wp wp7 mobile";else if(e>=7.1)a+=" wp gt-wp7 mobile";if(/IEMobile/i.test(b))a+=" ie-mobile"}}else if(/Macintosh/i.test(b))a+=" mac";else if(/Linux/i.test(b))a+=" linux";if(/MSIE/.test(b)){var g=/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(j),i=parseFloat(g[1]);a+=" js ie";switch(i){case 9:a+=" ie9 lt-ie10";break;case 8:a+=" ie8 lt-ie9 lt-ie10";break;case 7:a+=" ie7 lt-ie8 lt-ie9 lt-ie10";break;case 6:a+=" ie6 lt-ie7 lt-ie8 lt-ie9 lt-ie10";break;case 5.5:a+=" ie5_5 lt-ie6 lt-ie7 lt-ie8 lt-ie9 lt-ie10";break;case 5:a+=" ie5 lt-ie5_5 lt-ie6 lt-ie7 lt-ie8 lt-ie9 lt-ie10";break;default:a+=" lt-ie5 lt-ie5_5 lt-ie6 lt-ie7 lt-ie8 lt-ie9 lt-ie10"}}else if(/Firefox/i.test(b)){a+=" js ff";var h=parseInt(/[0-9]+/.exec(/Firefox\/[0-9]+\./i.exec(b)));switch(h){case 3:a+=" ff3 lt-ff4 lt-ff5";break;case 4:a+=" ff4 lt-ff5";break;case 2:a+=" ff2 lt-ff3 lt-ff4 lt-ff5";break;case 1:a+=" ff1 lt-ff2 lt-ff3 lt-ff4 lt-ff5"}}else if(/AppleWebKit/i.test(b)){if(/Mobile/i.test(b)){if(/iPhone/i.test(b))if(/iPod/i.test(b))a+=" ios ipod mobile";else a+=" ios iphone mobile";else if(/Android/i.test(b))a+=" android mobile";else if(/iPad/i.test(b))a+=" ios ipad";else if(/webOS/i.test(b))a+=" webos mobile"}else if(/Android/i.test(b))a+=" android-tablet";if(/Chrome/i.test(b))a+=" js webkit chrome";else if(/Safari/i.test(b))a+=" js webkit safari"}else if(/Opera/i.test(b))a+=" js opera";f.className+=a;var c={};c.is=function(d){for(var c=d.split(" "),b=0;b<c.length;b++){var e=new RegExp(c[b],"i");if(!e.test(a))return false}return true};c.has=function(d){for(var c=d.split(" "),b=0;b<c.length;b++){var e=new RegExp(c[b],"i");if(e.test(a))return true}return false};return c}();jQuery.cookie=function(d,b,a){if(arguments.length>1&&String(b)!=="[object Object]"){a=jQuery.extend({},a);if(b===null||b===undefined)a.expires=-1;if(typeof a.expires==="number"){var g=a.expires,e=a.expires=new Date;e.setDate(e.getDate()+g)}b=String(b);return document.cookie=[encodeURIComponent(d),"=",a.raw?b:encodeURIComponent(b),a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("")}a=b||{};var c,f=a.raw?function(a){return a}:decodeURIComponent;return(c=new RegExp("(?:^|; )"+encodeURIComponent(d)+"=([^;]*)").exec(document.cookie))?f(c[1]):null};var DTD={is_iOS:function(){return navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)?true:false},isMac:function(){return navigator.appVersion.match(/Mac/i)?true:false},isWindows:function(){return navigator.appVersion.match(/Windows/i)?true:false},format_for_iOS:function(){if(DTD.is_iOS()){var a=$(window).width(),b=a>1042?a:1042;$("#footerBack").css("width",b+"px");var c=a>1042?a:1042;$("#userNavBar").css("width",c+"px")}},format_for_Mac:function(){DTD.isMac()&&!DTD.is_iOS()},resizeUserNavBar:function(){$("div#userNavBar").width(function(){if(!DTD.is_iOS())if($(window).width()<=$("div#mainWrap").width()){$("div#userNavBar").css("padding-right","10px");$("div#footerBack").width($("div#mainWrap").width());$("div#footerBack").css("padding-right","10px");return $("div#mainWrap").width()}else{$("div#userNavBar").css("padding-right","0");$("div#footerBack").width("100%");$("div#footerBack").css("padding-right","0");return"100%"}})},setupSignupBox:function(){$("#<%=txtSignUp.ClientID%>").keydown(function(a){a.keyCode==13&&$("#<%=cmdSignUp.ClientID%>").click()})},setupOptionFlyOut:function(){$("div.sOptionFlyOutOverlay").attr("id","optionFlyOutOverlay");$("div.sOptionFlyOut").attr("id","optionFlyOut");$("div#optionFlyOutOverlay").click(function(){hideOptionFlyOut()});$("div#closeButtonContainer").click(function(){hideOptionFlyOut()})},setupToolTips:function(){var a=$("input:text").filter(function(){return $(this).attr("title")!=""&&!$(this).hasClass("excludeWatermark")});a.each(function(){$(this).focus(function(){if($(this).val()==$(this).attr("title")){$(this).val("");$(this).removeClass("instructions")}});$(this).blur(function(){if($(this).val()==""){$(this).val($(this).attr("title"));$(this).addClass("instructions")}});if($(this).val()==""||$(this).val()==$(this).attr("title")){$(this).val($(this).attr("title"));$(this).addClass("instructions")}})},RedirectDeal:function(c,b,d){var a="";if(b&&b!="null"){a=b;if(a!=""&&DTD.emailRegex.test(a))$.ajax({url:RequestEmailForDealRedirectServiceURL+"/AddSubscriptionWithSource",dataType:"json",type:"POST",data:{email:a,allLocations:"",source:d},complete:function(){window.location.href=c}});else window.location.href=c}},showEmailRequestBoxForRedirectDeal:function(b,a,d){var c=function(){var c=$("#tbRequestEmailForDealRedirect").val();if(a&&a!="null")c=a;if(c!=""&&DTD.emailRegex.test(c))$.ajax({url:RequestEmailForDealRedirectServiceURL+"/AddSubscriptionWithSource",dataType:"json",type:"POST",data:{email:c,allLocations:"",source:d},complete:function(){window.location.href=b}});else{var e=$.cookie("subscribeduser");if($.trim(e)!=""&&$.trim(e)!="0")$.ajax({url:RequestEmailForDealRedirectServiceURL+"/AddSubscriptionByIdWithSource",dataType:"json",type:"POST",data:{subscribedUserId:e,allLocations:"",source:d},complete:function(){window.location.href=b}});else window.location.href=b}};$("#btnRequestEmailForDealRedirect").unbind();$("#btnRequestEmailForDealRedirect").click(c);if($.cookie("subscribeduser")&&$.cookie("subscribeduser")!=""||a&&a!="null"&&a!=""&&DTD.emailRegex.test(a))c();else $.fancybox({href:"#modalRequestEmailForDealRedirect",easingIn:"easeOutBack",easingOut:"easeInBack",hideOnContentClick:false,hideOnOverlayClick:false,enableEscapeButton:false,overlayOpacity:.6,overlayColor:"#006699",scrolling:"no",autoDimensions:true,showCloseButton:true})}};function setupToolTips(){var a=$("input:text").filter(function(){return $(this).attr("title")!=""&&!$(this).hasClass("excludeWatermark")});a.each(function(){$(this).focus(function(){if($(this).val()==$(this).attr("title")){$(this).val("");$(this).removeClass("instructions")}});$(this).blur(function(){if($(this).val()==""){$(this).val($(this).attr("title"));$(this).addClass("instructions")}});if($(this).val()==""||$(this).val()==$(this).attr("title")){$(this).val($(this).attr("title"));$(this).addClass("instructions")}})}var initialLeft=25,step=1,stepSpeed=500,overshoot=25,overshootSpeed=250,fadeSpeed=200,isReady=true;function sliderSetup(){var a=$("#cityBox");if(a.is(":visible")){a.parent().width(a.parent().width());if(getTotalWidthOfElements()<parentWidth()){var b=$("<li class='spacer'>&nbsp;</li>").width(parentWidth()-getTotalWidthOfElements());$("#cityUl").append(b)}$("#sliderLeftFade").hide();if(getTotalWidthOfElements()>parentWidth())$("#sliderRightFade").show();else $("#sliderRightFade").hide();setupSliderSelectedArrow();window.onresize=function(){}}}function setupSliderSelectedArrow(){$("#sliderSelectedArrow").css("left",25);$("#sliderSelectedArrow").css("top",getHeightOfSelected()+1);$("#sliderSelectedArrow").css("width",getWidthOfSelected())}function sliderScrollRight(){if(window.isReady){isReady=false;var f=$("#cityBox"),g=parseInt(f.css("left")),c=initialLeft-(getTotalWidthOfElements()-parentWidth()),e=$("#sliderCityWrap").width()-$("#sliderLeftFade").width()-$("#sliderRightFade").width(),d=parseInt($("#cityBox").css("left"))-$("#sliderLeftFade").width()-e,b=0,a=[];$.each($("#cityUl").children(),function(b,c){a[b]=b==0?$(c).width():$(c).width()+a[b-1]});$.each(a,function(b,c){a[b]=c*-1});$.each(a,function(c,e){if(c+1<a.length-1){if(d<=e&&d>a[c+1]){b=c;return false}}else b=a.length-1});newLeft=a[b]+$("#sliderLeftFade").width()-initialLeft;if(g!=c){if(newLeft<c){$(".slideThese").animate({left:c-overshoot+"px"},stepSpeed,function(){isReady=true});$("#sliderRightFade").fadeOut(fadeSpeed)}else $("#cityBox").animate({left:newLeft-overshoot+"px"},stepSpeed,function(){isReady=true});$(".slideThese").animate({left:"+="+overshoot+"px"},overshootSpeed);$("#slideLeft").width(54);$("#sliderLeftFade").fadeIn(fadeSpeed);$("#sliderSelectedArrow").hide()}else{$(".slideThese").animate({left:"-="+overshoot+"px"},overshootSpeed);$(".slideThese").animate({left:"+="+overshoot+"px"},overshootSpeed,function(){isReady=true})}}}function sliderScrollLeft(){if(window.isReady){isReady=false;var f=$("#cityBox"),d=parseInt(f.css("left")),b=d-step,h=initialLeft-(getTotalWidthOfElements()-parentWidth()),e=$("#sliderCityWrap").width()-$("#sliderLeftFade").width()-$("#sliderRightFade").width(),c=parseInt($("#cityBox").css("left"))-$("#sliderLeftFade").width()+e;if(c>0)c=25;var g=0,a=[];$.each($("#cityUl").children(),function(b,c){a[b]=b==0?$(c).width():$(c).width()+a[b-1]});$.each(a,function(b,c){a[b]=c*-1});$.each(a,function(f,g){if(f+1<a.length-1){if(c<=g&&c>a[f+1]){b=a[f]+$("#sliderLeftFade").width()-initialLeft;if(b-d>e)b=a[f+1]+$("#sliderLeftFade").width()-initialLeft;return false}}else{b=initialLeft;return false}});if(d!=initialLeft){if(b>=initialLeft){$(".slideThese").animate({left:initialLeft+overshoot+"px"},stepSpeed,function(){$("#sliderSelectedArrow").fadeIn(fadeSpeed);$("#slideLeft").animate({width:35},overshootSpeed,function(){isReady=true});$("#sliderLeftFade").fadeOut(fadeSpeed)});$("#sliderLeftFade").fadeOut(fadeSpeed)}else $("#cityBox").animate({left:b+overshoot+"px"},stepSpeed,function(){isReady=true});$(".slideThese").animate({left:"-="+overshoot+"px"},overshootSpeed,function(){$("#sliderSelectedArrow").css("left")=="-25px"&&$("#sliderSelectedArrow").css("left","25px")});$("#sliderRightFade").fadeIn(fadeSpeed)}else{$("#slideLeft").animate({width:"+="+overshoot+"px"},overshootSpeed);$("#slideLeft").animate({width:"-="+overshoot+"px"},overshootSpeed);$(".slideThese").animate({left:"+="+overshoot+"px"},overshootSpeed);$(".slideThese").animate({left:"-="+overshoot+"px"},overshootSpeed,function(){isReady=true})}}}function getWidthOfSelected(){var a=0;$("#cityUl").children().each(function(){if($(this).attr("class")=="selected"){a+=$(this).outerWidth(true);return}});return a}function getHeightOfSelected(){var a=0;$("#cityUl").children().each(function(){if($(this).attr("class")=="selected"){a+=$(this).outerHeight(true)-2;return}});return a}function parentWidth(){var a=$("#cityBox");return parseInt(a.parent().outerWidth(true))-initialLeft*2}function getTotalWidthOfElements(){var a=0;$("#cityUl").children().each(function(){a+=$(this).outerWidth(true)});return a}function getSteps(){var b=parseInt($("#cityBox").css("left"));if(b==25)widthOfVisibleArea=$("#slider").width()-b-$("#slideRight").width();else widthOfVisibleArea=$("#slider").width()-$("#slideLeft").width()-$("#slideRight").width();var a=0,c=[];$.each($("#cityUl").children(),function(d,b){a+=$(b).width();if(a>=widthOfVisibleArea){c.push(a-$(b).width());a=$(b).width()}});return c}function getLefts(){lefts=[];$.each(getSteps(),function(a,b){if(a==0)lefts[a]=b;else lefts[a]=b+lefts[a-1]});return lefts}/*!
* jQuery corner plugin: simple corner rounding
* Examples and documentation at: http://jquery.malsup.com/corner/
* version 2.11 (15-JUN-2010)
* Requires jQuery v1.3.2 or later
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
* Authors: Dave Methvin and Mike Alsup
*/
(function(a){a.fn.corner=function(){}})(jQuery);(function(a){var d=document.createElement("div").style,c=d.MozBorderRadius!==undefined,e=d.WebkitBorderRadius!==undefined,b=d.borderRadius!==undefined||d.BorderRadius!==undefined,h=document.documentMode||0,j=a.browser.msie&&(a.browser.version<8&&!h||h<8),g=a.browser.msie&&function(){var a=document.createElement("div");try{a.style.setExpression("width","0+0");a.style.removeExpression("width")}catch(b){return false}return true}();a.support=a.support||{};a.support.borderRadius=c||e||b;function i(b,c){return parseInt(a.css(b,c))||0}function f(a){var a=parseInt(a).toString(16);return a.length<2?"0"+a:a}function l(c){while(c){var b=a.css(c,"backgroundColor"),d;if(b&&b!="transparent"&&b!="rgba(0, 0, 0, 0)"){if(b.indexOf("rgb")>=0){d=b.match(/\d+/g);return"#"+f(d[0])+f(d[1])+f(d[2])}return b}if(c.nodeName.toLowerCase()=="html")break;c=c.parentNode}return"#ffffff"}function k(c,b,a){switch(c){case"round":return Math.round(a*(1-Math.cos(Math.asin(b/a))));case"cool":return Math.round(a*(1+Math.cos(Math.asin(b/a))));case"sharp":return Math.round(a*(1-Math.cos(Math.acos(b/a))));case"bite":return Math.round(a*Math.cos(Math.asin((a-b-1)/a)));case"slide":return Math.round(a*Math.atan2(b,a/b));case"jut":return Math.round(a*Math.atan2(a,a-b-1));case"curl":return Math.round(a*Math.atan(b));case"tear":return Math.round(a*Math.cos(b));case"wicked":return Math.round(a*Math.tan(b));case"long":return Math.round(a*Math.sqrt(b));case"sculpt":return Math.round(a*Math.log(a-b-1,a));case"dogfold":case"dog":return b&1?b+1:a;case"dog2":return b&2?b+1:a;case"dog3":return b&3?b+1:a;case"fray":return b%2*a;case"notch":return a;case"bevelfold":case"bevel":return b+1}}a.fn.corner=function(d){if(this.length==0){if(!a.isReady&&this.selector){var h=this.selector,f=this.context;a(function(){a(h,f).corner(d)})}return this}return this.each(function(){var v=a(this),p=[v.attr(a.fn.corner.defaults.metaAttr)||"",d||""].join(" ").toLowerCase(),I=/keep/.test(p),E=(p.match(/cc:(#[0-9a-f]+)/)||[])[1],G=(p.match(/sc:(#[0-9a-f]+)/)||[])[1],m=parseInt((p.match(/(\d+)px/)||[])[1])||10,J=/round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog/,F=(p.match(J)||["round"])[0],H=/dogfold|bevelfold/.test(p),C={T:0,B:1},f={TL:/top|tl|left/.test(p),TR:/top|tr|right/.test(p),BL:/bottom|bl|left/.test(p),BR:/bottom|br|right/.test(p)},t,q,B,u,n,o,h,D,y,A,x,r,z,s;if(!f.TL&&!f.TR&&!f.BL&&!f.BR)f={TL:1,TR:1,BL:1,BR:1};if(a.fn.corner.defaults.useNative&&F=="round"&&(b||c||e)&&!E&&!G){f.TL&&v.css(b?"border-top-left-radius":c?"-moz-border-radius-topleft":"-webkit-border-top-left-radius",m+"px");f.TR&&v.css(b?"border-top-right-radius":c?"-moz-border-radius-topright":"-webkit-border-top-right-radius",m+"px");f.BL&&v.css(b?"border-bottom-left-radius":c?"-moz-border-radius-bottomleft":"-webkit-border-bottom-left-radius",m+"px");f.BR&&v.css(b?"border-bottom-right-radius":c?"-moz-border-radius-bottomright":"-webkit-border-bottom-right-radius",m+"px");return}t=document.createElement("div");a(t).css({overflow:"hidden",height:"1px",minHeight:"1px",fontSize:"1px",backgroundColor:G||"transparent",borderStyle:"solid"});q={T:parseInt(a.css(this,"paddingTop"))||0,R:parseInt(a.css(this,"paddingRight"))||0,B:parseInt(a.css(this,"paddingBottom"))||0,L:parseInt(a.css(this,"paddingLeft"))||0};if(typeof this.style.zoom!=undefined)this.style.zoom=1;if(!I)this.style.border="none";t.style.borderColor=E||l(this.parentNode);B=a(this).outerHeight();for(u in C){n=C[u];if(n&&(f.BL||f.BR)||!n&&(f.TL||f.TR)){t.style.borderStyle="none "+(f[u+"R"]?"solid":"none")+" none "+(f[u+"L"]?"solid":"none");o=document.createElement("div");a(o).addClass("jquery-corner");h=o.style;n?this.appendChild(o):this.insertBefore(o,this.firstChild);if(n&&B!="auto"){if(a.css(this,"position")=="static")this.style.position="relative";h.position="absolute";h.bottom=h.left=h.padding=h.margin="0";if(g)h.setExpression("width","this.parentNode.offsetWidth");else h.width="100%"}else if(!n&&a.browser.msie){if(a.css(this,"position")=="static")this.style.position="relative";h.position="absolute";h.top=h.left=h.right=h.padding=h.margin="0";if(g){D=i(this,"borderLeftWidth")+i(this,"borderRightWidth");h.setExpression("width","this.parentNode.offsetWidth - "+D+'+ "px"')}else h.width="100%"}else{h.position="relative";h.margin=!n?"-"+q.T+"px -"+q.R+"px "+(q.T-m)+"px -"+q.L+"px":q.B-m+"px -"+q.R+"px -"+q.B+"px -"+q.L+"px"}for(y=0;y<m;y++){A=Math.max(0,k(F,y,m));x=t.cloneNode(false);x.style.borderWidth="0 "+(f[u+"R"]?A:0)+"px 0 "+(f[u+"L"]?A:0)+"px";n?o.appendChild(x):o.insertBefore(x,o.firstChild)}if(H&&a.support.boxModel){if(n&&j)continue;for(r in f){if(!f[r])continue;if(n&&(r=="TL"||r=="TR"))continue;if(!n&&(r=="BL"||r=="BR"))continue;z={position:"absolute",border:"none",margin:0,padding:0,overflow:"hidden",backgroundColor:t.style.borderColor};s=a("<div/>").css(z).css({width:m+"px",height:"1px"});switch(r){case"TL":s.css({bottom:0,left:0});break;case"TR":s.css({bottom:0,right:0});break;case"BL":s.css({top:0,left:0});break;case"BR":s.css({top:0,right:0})}o.appendChild(s[0]);var w=a("<div/>").css(z).css({top:0,bottom:0,width:"1px",height:m+"px"});switch(r){case"TL":w.css({left:m});break;case"TR":w.css({right:m});break;case"BL":w.css({left:m});break;case"BR":w.css({right:m})}o.appendChild(w[0])}}}}})};a.fn.uncorner=function(){(b||c||e)&&this.css(b?"border-radius":c?"-moz-border-radius":"-webkit-border-radius",0);a("div.jquery-corner",this).remove();return this};a.fn.corner.defaults={useNative:true,metaAttr:"data-corner"}})(jQuery);(function(a){var j,p,q,d,y,g,x,i,u,t,m=0,c={},k=[],l=0,b={},h=[],z=null,o=new Image,E=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,U=/[^\.]\.(swf)\s*$/i,D,C=1,s=0,r="",n,f,e=false,v=a.extend(a("<div/>")[0],{prop:0}),I=a.browser.msie&&a.browser.version<7&&!window.XMLHttpRequest,G=function(){p.hide();o.onerror=o.onload=null;z&&z.abort();j.empty()},H=function(){if(false===c.onError(k,m,c)){p.hide();e=false;return}c.titleShow=false;c.width="auto";c.height="auto";j.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');w()},A=function(){var d=k[m],b,f,i,l,n,h;G();c=a.extend({},a.fn.fancybox.defaults,typeof a(d).data("fancybox")=="undefined"?c:a(d).data("fancybox"));h=c.onStart(k,m,c);if(h===false){e=false;return}else if(typeof h=="object")c=a.extend(c,h);i=c.title||(d.nodeName?a(d).attr("title"):d.title)||"";if(d.nodeName&&!c.orig)c.orig=a(d).children("img:first").length?a(d).children("img:first"):a(d);if(i===""&&c.orig&&c.titleFromAlt)i=c.orig.attr("alt");b=c.href||(d.nodeName?a(d).attr("href"):d.href)||null;if(/^(?:javascript)/i.test(b)||b=="#")b=null;if(c.type){f=c.type;if(!b)b=c.content}else if(c.content)f="html";else if(b)if(b.match(E))f="image";else if(b.match(U))f="swf";else if(a(d).hasClass("iframe"))f="iframe";else if(b.indexOf("#")===0)f="inline";else f="ajax";if(!f){H();return}if(f=="inline"){d=b.substr(b.indexOf("#"));f=a(d).length>0?"inline":"ajax"}c.type=f;c.href=b;c.title=i;if(c.autoDimensions)if(c.type=="html"||c.type=="inline"||c.type=="ajax"){c.width="auto";c.height="auto"}else c.autoDimensions=false;if(c.modal){c.overlayShow=true;c.hideOnOverlayClick=false;c.hideOnContentClick=false;c.enableEscapeButton=false;c.showCloseButton=false}c.padding=parseInt(c.padding,10);c.margin=parseInt(c.margin,10);j.css("padding",c.padding+c.margin);a(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){a(this).replaceWith(g.children())});switch(f){case"html":j.html(c.content);w();break;case"inline":if(a(d).parent().is("#fancybox-content")===true){e=false;return}a('<div class="fancybox-inline-tmp" />').hide().insertBefore(a(d)).bind("fancybox-cleanup",function(){a(this).replaceWith(g.children())}).bind("fancybox-cancel",function(){a(this).replaceWith(j.children())});a(d).appendTo(j);w();break;case"image":e=false;a.fancybox.showActivity();o=new Image;o.onerror=function(){H()};o.onload=function(){e=true;o.onerror=o.onload=null;P()};o.src=b;break;case"swf":c.scrolling="no";l='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+c.width+'" height="'+c.height+'"><param name="movie" value="'+b+'"></param>';n="";a.each(c.swf,function(a,b){l+='<param name="'+a+'" value="'+b+'"></param>';n+=" "+a+'="'+b+'"'});l+='<embed src="'+b+'" type="application/x-shockwave-flash" width="'+c.width+'" height="'+c.height+'"'+n+"></embed></object>";j.html(l);w();break;case"ajax":e=false;a.fancybox.showActivity();c.ajax.win=c.ajax.success;z=a.ajax(a.extend({},c.ajax,{url:b,data:c.ajax.data||{},error:function(a){a.status>0&&H()},success:function(d,e,a){var f=typeof a=="object"?a:z;if(f.status==200){if(typeof c.ajax.win=="function"){h=c.ajax.win(b,d,e,a);if(h===false){p.hide();return}else if(typeof h=="string"||typeof h=="object")d=h}j.html(d);w()}}}));break;case"iframe":K()}},w=function(){var d=c.width,b=c.height;if(d.toString().indexOf("%")>-1)d=parseInt((a(window).width()-c.margin*2)*parseFloat(d)/100,10)+"px";else d=d=="auto"?"auto":d+"px";if(b.toString().indexOf("%")>-1)b=parseInt((a(window).height()-c.margin*2)*parseFloat(b)/100,10)+"px";else b=b=="auto"?"auto":b+"px";j.wrapInner('<div style="width:'+d+";height:"+b+";overflow: "+(c.scrolling=="auto"?"auto":c.scrolling=="yes"?"scroll":"hidden")+';position:relative;"></div>');c.width=j.width();c.height=j.height();K()},P=function(){c.width=o.width;c.height=o.height;a("<img />").attr({id:"fancybox-img",src:o.src,alt:c.title}).appendTo(j);K()},K=function(){var o,r;p.hide();if(d.is(":visible")&&false===b.onCleanup(h,l,b)){a.event.trigger("fancybox-cancel");e=false;return}e=true;a(g.add(q)).unbind();a(window).unbind("resize.fb scroll.fb");a(document).unbind("keydown.fb");d.is(":visible")&&b.titlePosition!=="outside"&&d.css("height",d.height());h=k;l=m;b=c;if(b.overlayShow){q.css({"background-color":b.overlayColor,opacity:b.overlayOpacity,cursor:b.hideOnOverlayClick?"pointer":"auto",height:a(document).height()});if(!q.is(":visible")){if(I)a("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});q.show()}}else q.hide();f=T();Q();if(d.is(":visible")){a(x.add(u).add(t)).hide();o=d.position(),n={top:o.top,left:o.left,width:d.width(),height:d.height()};r=n.width==f.width&&n.height==f.height;g.fadeTo(b.changeFade,.3,function(){var d=function(){g.html(j.contents()).fadeTo(b.changeFade,1,F)};a.event.trigger("fancybox-change");g.empty().removeAttr("filter").css({"border-width":b.padding,width:f.width-b.padding*2,height:c.autoDimensions?"auto":f.height-s-b.padding*2});if(r)d();else{v.prop=0;a(v).animate({prop:1},{duration:b.changeSpeed,easing:b.easingChange,step:J,complete:d})}});return}d.removeAttr("style");g.css("border-width",b.padding);if(b.transitionIn=="elastic"){n=L();g.html(j.contents());d.show();if(b.opacity)f.opacity=0;v.prop=0;a(v).animate({prop:1},{duration:b.speedIn,easing:b.easingIn,step:J,complete:F});return}b.titlePosition=="inside"&&s>0&&i.show();g.css({width:f.width-b.padding*2,height:c.autoDimensions?"auto":f.height-s-b.padding*2}).html(j.contents());d.css(f).fadeIn(b.transitionIn=="none"?0:b.speedIn,F)},R=function(a){return a&&a.length?b.titlePosition=="float"?'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+a+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+b.titlePosition+'">'+a+"</div>":false},Q=function(){r=b.title||"";s=0;i.empty().removeAttr("style").removeClass();if(b.titleShow===false){i.hide();return}r=a.isFunction(b.titleFormat)?b.titleFormat(r,h,l,b):R(r);if(!r||r===""){i.hide();return}i.addClass("fancybox-title-"+b.titlePosition).html(r).appendTo("body").show();switch(b.titlePosition){case"inside":i.css({width:f.width-b.padding*2,marginLeft:b.padding,marginRight:b.padding});s=i.outerHeight(true);i.appendTo(y);f.height+=s;break;case"over":i.css({marginLeft:b.padding,width:f.width-b.padding*2,bottom:b.padding}).appendTo(y);break;case"float":i.css("left",parseInt((i.width()-f.width-40)/2,10)*-1).appendTo(d);break;default:i.css({width:f.width-b.padding*2,paddingLeft:b.padding,paddingRight:b.padding}).appendTo(d)}i.hide()},O=function(){(b.enableEscapeButton||b.enableKeyboardNav)&&a(document).bind("keydown.fb",function(c){if(c.keyCode==27&&b.enableEscapeButton){c.preventDefault();a.fancybox.close()}else if((c.keyCode==37||c.keyCode==39)&&b.enableKeyboardNav&&c.target.tagName!=="INPUT"&&c.target.tagName!=="TEXTAREA"&&c.target.tagName!=="SELECT"){c.preventDefault();a.fancybox[c.keyCode==37?"prev":"next"]()}});if(!b.showNavArrows){u.hide();t.hide();return}(b.cyclic&&h.length>1||l!==0)&&u.show();(b.cyclic&&h.length>1||l!=h.length-1)&&t.show()},F=function(){if(!a.support.opacity){g.get(0).style.removeAttribute("filter");d.get(0).style.removeAttribute("filter")}c.autoDimensions&&g.css("height","auto");d.css("height","auto");r&&r.length&&i.show();b.showCloseButton&&x.show();O();b.hideOnContentClick&&g.bind("click",a.fancybox.close);b.hideOnOverlayClick&&q.bind("click",a.fancybox.close);a(window).bind("resize.fb",a.fancybox.resize);b.centerOnScroll&&a(window).bind("scroll.fb",a.fancybox.center);b.type=="iframe"&&a('<iframe id="fancybox-frame" name="fancybox-frame'+ +new Date+'" frameborder="0" hspace="0" '+(a.browser.msie?'allowtransparency="true""':"")+' scrolling="'+c.scrolling+'" src="'+b.href+'"></iframe>').appendTo(g);d.show();e=false;a.fancybox.center();b.onComplete(h,l,b);N()},N=function(){var a,b;if(h.length-1>l){a=h[l+1].href;if(typeof a!=="undefined"&&a.match(E)){b=new Image;b.src=a}}if(l>0){a=h[l-1].href;if(typeof a!=="undefined"&&a.match(E)){b=new Image;b.src=a}}},J=function(a){var c={width:parseInt(n.width+(f.width-n.width)*a,10),height:parseInt(n.height+(f.height-n.height)*a,10),top:parseInt(n.top+(f.top-n.top)*a,10),left:parseInt(n.left+(f.left-n.left)*a,10)};if(typeof f.opacity!=="undefined")c.opacity=a<.5?.5:a;d.css(c);g.css({width:c.width-b.padding*2,height:c.height-s*a-b.padding*2})},B=function(){return[a(window).width()-b.margin*2,a(window).height()-b.margin*2,a(document).scrollLeft()+b.margin,a(document).scrollTop()+b.margin]},T=function(){var d=B(),a={},g=b.autoScale,e=b.padding*2,f;if(b.width.toString().indexOf("%")>-1)a.width=parseInt(d[0]*parseFloat(b.width)/100,10);else a.width=b.width+e;if(b.height.toString().indexOf("%")>-1)a.height=parseInt(d[1]*parseFloat(b.height)/100,10);else a.height=b.height+e;if(g&&(a.width>d[0]||a.height>d[1]))if(c.type=="image"||c.type=="swf"){f=b.width/b.height;if(a.width>d[0]){a.width=d[0];a.height=parseInt((a.width-e)/f+e,10)}if(a.height>d[1]){a.height=d[1];a.width=parseInt((a.height-e)*f+e,10)}}else{a.width=Math.min(a.width,d[0]);a.height=Math.min(a.height,d[1])}a.top=parseInt(Math.max(d[3]-20,d[3]+(d[1]-a.height-40)*.5),10);a.left=parseInt(Math.max(d[2]-20,d[2]+(d[0]-a.width-40)*.5),10);return a},S=function(a){var b=a.offset();b.top+=parseInt(a.css("paddingTop"),10)||0;b.left+=parseInt(a.css("paddingLeft"),10)||0;b.top+=parseInt(a.css("border-top-width"),10)||0;b.left+=parseInt(a.css("border-left-width"),10)||0;b.width=a.width();b.height=a.height();return b},L=function(){var g=c.orig?a(c.orig):false,f={},e,d;if(g&&g.length){e=S(g);f={width:e.width+b.padding*2,height:e.height+b.padding*2,top:e.top-b.padding-20,left:e.left-b.padding-20}}else{d=B();f={width:b.padding*2,height:b.padding*2,top:parseInt(d[3]+d[1]*.5,10),left:parseInt(d[2]+d[0]*.5,10)}}return f},M=function(){if(!p.is(":visible")){clearInterval(D);return}a("div",p).css("top",C*-40+"px");C=(C+1)%12};a.fn.fancybox=function(b){if(!a(this).length)return this;a(this).data("fancybox",a.extend({},b,a.metadata?a(this).metadata():{})).unbind("click.fb").bind("click.fb",function(c){c.preventDefault();if(e)return;e=true;a(this).blur();k=[];m=0;var b=a(this).attr("rel")||"";if(!b||b==""||b==="nofollow")k.push(this);else{k=a("a[rel="+b+"], area[rel="+b+"]");m=k.index(this)}A();return});return this};a.fancybox=function(b){var d;if(e)return;e=true;d=typeof arguments[1]!=="undefined"?arguments[1]:{};k=[];m=parseInt(d.index,10)||0;if(a.isArray(b)){for(var c=0,f=b.length;c<f;c++)if(typeof b[c]=="object")a(b[c]).data("fancybox",a.extend({},d,b[c]));else b[c]=a({}).data("fancybox",a.extend({content:b[c]},d));k=jQuery.merge(k,b)}else{if(typeof b=="object")a(b).data("fancybox",a.extend({},d,b));else b=a({}).data("fancybox",a.extend({content:b},d));k.push(b)}if(m>k.length||m<0)m=0;A()};a.fancybox.showActivity=function(){clearInterval(D);p.show();D=setInterval(M,66)};a.fancybox.hideActivity=function(){p.hide()};a.fancybox.next=function(){return a.fancybox.pos(l+1)};a.fancybox.prev=function(){return a.fancybox.pos(l-1)};a.fancybox.pos=function(a){if(e)return;a=parseInt(a);k=h;if(a>-1&&a<h.length){m=a;A()}else if(b.cyclic&&h.length>1){m=a>=h.length?0:h.length-1;A()}return};a.fancybox.cancel=function(){if(e)return;e=true;a.event.trigger("fancybox-cancel");G();c.onCancel(k,m,c);e=false};a.fancybox.close=function(){if(e||d.is(":hidden"))return;e=true;if(b&&false===b.onCleanup(h,l,b)){e=false;return}G();a(x.add(u).add(t)).hide();a(g.add(q)).unbind();a(window).unbind("resize.fb scroll.fb");a(document).unbind("keydown.fb");g.find("iframe").attr("src",I&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");b.titlePosition!=="inside"&&i.empty();d.stop();function j(){q.fadeOut("fast");i.empty().hide();d.hide();a.event.trigger("fancybox-cleanup");g.empty();b.onClosed(h,l,b);h=c=[];l=m=0;b=c={};e=false}if(b.transitionOut=="elastic"){n=L();var k=d.position();f={top:k.top,left:k.left,width:d.width(),height:d.height()};if(b.opacity)f.opacity=1;i.empty().hide();v.prop=1;a(v).animate({prop:0},{duration:b.speedOut,easing:b.easingOut,step:J,complete:j})}else d.fadeOut(b.transitionOut=="none"?0:b.speedOut,j)};a.fancybox.resize=function(){q.is(":visible")&&q.css("height",a(document).height());a.fancybox.center(true)};a.fancybox.center=function(){var a,c;if(e)return;c=arguments[0]===true?1:0;a=B();if(!c&&(d.width()>a[0]||d.height()>a[1]))return;d.stop().animate({top:parseInt(Math.max(a[3]-20,a[3]+(a[1]-g.height()-40)*.5-b.padding)),left:parseInt(Math.max(a[2]-20,a[2]+(a[0]-g.width()-40)*.5-b.padding))},typeof arguments[0]=="number"?arguments[0]:200)};a.fancybox.init=function(){if(a("#fancybox-wrap").length)return;a("body").append(j=a('<div id="fancybox-tmp"></div>'),p=a('<div id="fancybox-loading"><div></div></div>'),q=a('<div id="fancybox-overlay"></div>'),d=a('<div id="fancybox-wrap"></div>'));y=a('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(d);y.append(g=a('<div id="fancybox-content"></div>'),x=a('<a id="fancybox-close"></a>'),i=a('<div id="fancybox-title"></div>'),u=a('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),t=a('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));x.click(a.fancybox.close);p.click(a.fancybox.cancel);u.click(function(b){b.preventDefault();a.fancybox.prev()});t.click(function(b){b.preventDefault();a.fancybox.next()});a.fn.mousewheel&&d.bind("mousewheel.fb",function(b,c){if(e)b.preventDefault();else if(a(b.target).get(0).clientHeight==0||a(b.target).get(0).scrollHeight===a(b.target).get(0).clientHeight){b.preventDefault();a.fancybox[c>0?"prev":"next"]()}});!a.support.opacity&&d.addClass("fancybox-ie");if(I){p.addClass("fancybox-ie6");d.addClass("fancybox-ie6");a('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(y)}};a.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};a(document).ready(function(){a.fancybox.init()})})(jQuery);var Facebook=new function(){var b=false,a=this;this.access_token=null;this.id=null;this.isUserFound=false;this.isAuthedWithDTD=false;this.autoReconnect=false;this.fb_appId="";this.overrideId=null;this.locationKeys="";this.fb_uid=function(){return this.overrideId?this.overrideId:this.id};this.setLocationKeys=function(b){a.locationKeys=b};this.showFacebookLogin=function(){a.access_token=null;a.id=null;a.overrideId=null;a.isUserFound=false;a.autoReconnect=false;a.isAuthedWithDTD=false;FB.init({appId:a.fb_appId,status:true,cookie:true,xfbml:true,oauth:true});FB.login(function(b){if(b.authResponse){a.access_token=b.authResponse.accessToken;var c=b.authResponse.expiresIn;FB.api("/me",function(e){var d=window.location.href;a.id=e.id;if(!a.isAuthedWithDTD)if(d.indexOf("Login")<0&&d.indexOf("access_token")<0){$.cookie("firstUse","false",{path:"/",expires:365});var b="";if(a.locationKeys!="")b="&locKeys="+encodeURIComponent(a.locationKeys);window.location.href="/Login.aspx?access_token="+a.access_token+"&expires_in="+c+"&fb_uid="+a.id+"&ReturnUrl="+encodeURIComponent(window.location.href)+b}})}},{scope:"publish_stream,email,user_location,offline_access"})};this.showDTDLogin=function(b,c){if(!b)b=a.access_token;if(!c)c=a.fb_uid();if(window.location.href.indexOf("Login")<0&&window.location.href.indexOf("access_token")<0)window.location.href="/Login.aspx?access_token="+b+"&fb_uid="+c+"&ReturnUrl="+encodeURI(window.location.href)};this.showShareScreen=function(b){b.method="feed";if(b.picture){var c=Math.random();b.picture+="?v="+c}b.message="";FB.ui(b,function(b){if(a.debug)if(b&&b.post_id)alert("Post was published.");else alert("Post was not published.")})};this.isLoggedIn=function(){return a.isAuthedWithDTD&&a.isUserFound};this.init=function(b,c,d){if(c)a.overrideId=c;if(d)a.fb_appId=d;else a.fb_appId="161014790590908";a.addConnectButton(function(){if(b&&a.isLoggedIn()){if(window.location.href.indexOf("buynow")>0)$("#"+b).attr("src","https://graph.facebook.com/"+a.fb_uid()+"/picture?access_token="+a.access_token+"&type=small&return_ssl_resources=1");else $("#"+b).attr("src","https://graph.facebook.com/"+a.fb_uid()+"/picture?access_token="+a.access_token+"&type=small");$("#"+b).height(35)}})};this.initFacebook=function(b){FB.init({appId:a.fb_appId,status:true,cookie:true,xfbml:true,oauth:true});a.checkConnectionStatus(function(){a.isUserFound&&!a.isAuthedWithDTD&&a.autoReconnect&&window.location.href.indexOf("login")<0&&a.showDTDLogin(a.access_token,a.fb_uid());b&&b()})};this.addConnectButton=function(b){a.initFacebook(function(){var a=$('<a href="javascript:Facebook.showFacebookLogin();"><img src="/Content/Images/Dtd2/ButtonsCommon/button_connect_w_fb.png" alt="Sign In With Facebook" style="cursor:pointer;" /></a>');$(".facebookConnectButton").append(a);b&&b()})};this.checkConnectionStatus=function(b){$.ajax({url:"/CheckFacebook.aspx",dataType:"json",type:"POST",data:{op:"1"},success:function(c){a.id=c.fb_uid;a.access_token=c.access_token;a.isAuthedWithDTD=a.fb_uid!=null&&a.access_token!=null;a.isUserFound=a.fb_uid!=null&&a.access_token!=null;a.autoReconnect=c.autoReconnect;if(!a.isUserFound)FB.getLoginStatus(function(c){if(c.status==="connected")$.ajax({url:"/CheckFacebook.aspx",dataType:"json",type:"POST",data:{access_token:c.authResponse.accessToken,fb_uid:c.authResponse.userID},success:function(c){a.isAuthedWithDTD=c.isLoggedIn;a.isUserFound=c.isFound;a.autoReconnect=c.autoReconnect;a.access_token=c.access_token;a.id=c.fb_uid;b&&b()}});else b&&b()});else b&&b()}})};this.connect=function(){a.initFacebook();if(a.isLoggedIn())return;else if(!a.isAuthedWithDTD)a.showDTDLogin();else a.showFacebookLogin()};this.postToWall=function(b){a.initFacebook(function(){a.showShareScreen(b)})}};window.Modernizr=function(j,a,b){;function h(a,b){return typeof a===b}function n(a){r.cssText=a}var o="2.0.6",c={},p=true,k=a.documentElement,t=a.head||a.getElementsByTagName("head")[0],q="modernizr",l=a.createElement(q),r=l.style,s,u=Object.prototype.toString,d={},v={},w={},m=[],e,f={}.hasOwnProperty,g;!h(f,b)&&!h(f.call,b)?g=function(a,b){return f.call(a,b)}:g=function(a,c){return c in a&&h(a.constructor.prototype[c],b)},d.geolocation=function(){return!!navigator.geolocation};for(var i in d)g(d,i)&&(e=i.toLowerCase(),c[e]=d[i](),m.push((c[e]?"":"no-")+e));n(""),l=s=null,j.attachEvent&&function(){var b=a.createElement("div");b.innerHTML="<elem></elem>";return b.childNodes.length!==1}()&&function(f,c){function n(b){var a=-1;while(++a<k)b.createElement(i[a])}f.iepp=f.iepp||{};var a=f.iepp,h=a.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",i=h.split("|"),k=i.length,o=new RegExp("(^|\\s)("+h+")","gi"),p=new RegExp("<(/*)("+h+")","gi"),q=/^\s*[\{\}]\s*$/,r=new RegExp("(^|[^\\n]*?\\s)("+h+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),l=c.createDocumentFragment(),j=c.documentElement,m=j.firstChild,e=c.createElement("body"),g=c.createElement("style"),s=/print|all/,d;a.getCSS=function(e,c){if(e+""===b)return"";var f=-1,h=e.length,d,g=[];while(++f<h){d=e[f];if(d.disabled)continue;c=d.media||c,s.test(c)&&g.push(a.getCSS(d.imports,c),d.cssText),c="all"}return g.join("")},a.parseCSS=function(c){var b=[],a;while((a=r.exec(c))!=null)b.push(((q.exec(a[1])?"\n":a[1])+a[2]+a[3]).replace(o,"$1.iepp_$2")+a[4]);return b.join("\n")},a.writeHTML=function(){var a=-1;d=d||c.body;while(++a<k){var b=c.getElementsByTagName(i[a]),g=b.length,f=-1;while(++f<g)b[f].className.indexOf("iepp_")<0&&(b[f].className+=" iepp_"+i[a])}l.appendChild(d),j.appendChild(e),e.className=d.className,e.id=d.id,e.innerHTML=d.innerHTML.replace(p,"<$1font")},a._beforePrint=function(){g.styleSheet.cssText=a.parseCSS(a.getCSS(c.styleSheets,"all")),a.writeHTML()},a.restoreHTML=function(){e.innerHTML="",j.removeChild(e),j.appendChild(d)},a._afterPrint=function(){a.restoreHTML(),g.styleSheet.cssText=""},n(c),n(l);a.disablePP||(m.insertBefore(g,m.firstChild),g.media="print",g.className="iepp-printshim",f.attachEvent("onbeforeprint",a._beforePrint),f.attachEvent("onafterprint",a._afterPrint))}(j,a),c._version=o,k.className=k.className.replace(/\bno-js\b/,"")+(p?" js "+m.join(" "):"");return c}(this,this.document),function(g,a,z){function x(a){return!a||a=="loaded"||a=="complete"}function c(){var b=1,a=-1;while(e.length-++a)if(e[a].s&&!(b=e[a].r))break;b&&p()}function D(h){var e=a.createElement("script"),g;e.src=h.s,e.onreadystatechange=e.onload=function(){!g&&x(e.readyState)&&(g=1,c(),e.onload=e.onreadystatechange=null)},d(function(){g||(g=1,c())},b.errorTimeout),h.e?e.onload():f.parentNode.insertBefore(e,f)}function C(h){var e=a.createElement("link"),g;e.href=h.s,e.rel="stylesheet",e.type="text/css";if(!h.e&&(s||k)){var i=function(a){d(function(){if(!g)try{a.sheet.cssRules.length?(g=1,c()):i(a)}catch(b){b.code==1e3||b.message=="security"||b.message=="denied"?(g=1,d(function(){c()},0)):i(a)}},0)};i(e)}else e.onload=function(){g||(g=1,d(function(){c()},0))},h.e&&e.onload();d(function(){g||(g=1,c())},b.errorTimeout),!h.e&&f.parentNode.insertBefore(e,f)}function p(){var a=e.shift();j=1,a?a.t?d(function(){a.t=="c"?C(a):D(a)},0):(a(),c()):j=0}function B(i,m,n,q,t,s){function o(){!k&&x(g.readyState)&&(h.r=k=1,!j&&c(),g.onload=g.onreadystatechange=null,d(function(){r.removeChild(g)},0))}var g=a.createElement(i),k=0,h={t:n,s:m,e:s};g.src=g.data=m,!l&&(g.style.display="none"),g.width=g.height="0",i!="object"&&(g.type=n),g.onload=g.onreadystatechange=o,i=="img"?g.onerror=o:i=="script"&&(g.onerror=function(){h.e=h.r=1,p()}),e.splice(q,0,h),r.insertBefore(g,l?null:f),d(function(){k||(r.removeChild(g),h.r=h.e=k=1,c())},b.errorTimeout)}function A(b,a,c){var d=a=="c"?G:y;j=0,a=a||"j",h(b)?B(d,b,a,this.i++,i,c):(e.splice(this.i++,0,b),e.length==1&&p());return this}function u(){var a=b;a.loader={load:A,i:0};return a}var i=a.documentElement,d=g.setTimeout,f=a.getElementsByTagName("script")[0],q={}.toString,e=[],j=0,k="MozAppearance"in i.style,l=k&&!!a.createRange().compareNode,H=k&&!l,r=l?i:f.parentNode,E=g.opera&&q.call(g.opera)=="[object Opera]",s="webkitAppearance"in i.style,F=s&&"async"in a.createElement("script"),y=k?"object":E||F?"img":"script",G=s?"img":y,t=Array.isArray||function(a){return q.call(a)=="[object Array]"},m=function(a){return Object(a)===a},h=function(a){return typeof a=="string"},n=function(a){return q.call(a)=="[object Function]"},o=[],v={},w,b;b=function(a){function i(f){for(var c=f.split("!"),g=o.length,e=c.pop(),h=c.length,b={url:e,origUrl:e,prefixes:c},d,a=0;a<h;a++)d=v[c[a]],d&&(b=d(b));for(a=0;a<g;a++)b=o[a](b);return b}function d(c,a,e,d,f){var b=i(c),g=b.autoCallback;if(!b.bypass){a&&(a=n(a)?a:a[c]||a[d]||a[c.split("/").pop().split("?")[0]]);if(b.instead)return b.instead(c,a,e,d,f);e.load(b.url,b.forceCSS||!b.forceJS&&/css$/.test(b.url)?"c":z,b.noexec),(n(a)||n(g))&&e.load(function(){u(),a&&a(b.origUrl,f,d),g&&g(b.origUrl,f,d)})}}function g(a,c){function f(a){if(h(a))d(a,g,c,0,e);else if(m(a))for(b in a)a.hasOwnProperty(b)&&d(a[b],g,c,b,e)}var e=!!a.test,i=e?a.yep:a.nope,j=a.load||a.both,g=a.callback,b;f(i),f(j),a.complete&&c.load(a.complete)}var e,c,f=this.yepnope.loader;if(h(a))d(a,0,f,0);else if(t(a))for(e=0;e<a.length;e++)c=a[e],h(c)?d(c,0,f,0):t(c)?b(c):m(c)&&g(c,f);else m(a)&&g(a,f)},b.addPrefix=function(a,b){v[a]=b},b.addFilter=function(a){o.push(a)},b.errorTimeout=1e4,a.readyState==null&&a.addEventListener&&(a.readyState="loading",a.addEventListener("DOMContentLoaded",w=function(){a.removeEventListener("DOMContentLoaded",w,0),a.readyState="complete"},0)),g.yepnope=u()}(this,this.document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};DTD.deals={setupMoreDealsWidgets:function(){window.willMove=false},oscillateHotness:function(){$("div.moreDealsWidget").hover(function(){var a=$(this).find("div.infoText"),c=a.children("div.movingInfoText");c.clearQueue();var f=a.outerHeight(true),e=a.prev().outerHeight(true),b=a.parent().outerHeight(true),d=f+e,g=0;if(b<d){c.animate({top:b-d},"slow");window.willMove=true}},function(){var b=$(this).find("div.infoText"),a=b.children("div.movingInfoText");if(window.willMove){a.animate({top:"0px"},"slow",function(){a.clearQueue()});window.willMove=false}})}};$(document).ready(function(){$("#noDealsSubscribe").click(function(){var a="";if($("#tbxFeaturedNoDealsEmail").val()!=""&&EMAIL_REGEX.test($("#tbxFeaturedNoDealsEmail").val())){if(LocationInfo.key!=""){a=LocationInfo.key;$.getJSON("/WebServices/LocationPicker.asmx/SubscribeEmailFromMaster",{EmailAddress:$("#tbxFeaturedNoDealsEmail").val(),PrimaryLocationKey:a},function(a){$.cookie("subscribeduser",a,{expires:365,path:"/",domain:configCookieDomain});$("#businessDescription").hide();$("#signUpDiv").hide();$("#divNoDealsThanks").show()})}}else alert("Invalid email address.")})})
