﻿Cufon.replace("#side .widgetCTA .widgetCTAHeaders, article h1, article h2, #newsletterText",{hover:true,fontFamily:"myriad-light"});function NewsletterEmailSignup(){if(document.sub_form.email.value!=""&&document.sub_form.email.value!="Enter Email Address"){var a;a="specials-sign-up.htm?disableemailpost=1&email="+document.sub_form.email.value;document.location=a}else{alert("You must supply an email address to sign up.")}return false}$(document).ready(function(){$("#usabilityNav li:not(:first-child)").before("<li>|</li>");var a=1;$("#side .widgetCTA").each(function(){$(this).addClass("cta"+a);a+=1});$("article ul:not(.sitemapWidget):not(.noFloat)").each(function(){var g=$(this).children().size();if(g>=6){var f=this;$(f).wrap("<div class='colContainer'><div class='twoCols'></div></div>");var e=$(f).parent().parent();$(e).append("<div class='twoCols next'><ul></ul></div>");var h=$(".twoCols:last ul",e);var i=$(f).children().slice(Math.ceil(g/2));$(h).append(i);$("div.colContainer").next().addClass("clear");if($(this).hasClass("noStyle")){$(this).parent().parent().find(".twoCols.next ul").addClass("noStyle")}}});$.expr[":"].external=function(e){return !e.href.match(/^mailto\:/)&&!e.href.match(/^javascript/)&&!e.href.match(/^http\:\/\/www.vizergy.com/)&&(e.hostname!=location.hostname)};$("a[href*=.pdf]").addClass("pdf");$("a[href*=.doc], a[href*=.docx]").addClass("doc");var b=1;$("header .widgetPhotoGallery").each(function(){$(this).append("<ul style='padding: 0; margin: 0;'></ul>").addClass("headerGallery").css("text-align","left").attr({id:"headerGallery"+b});$(this).find(".galleryImgThumb").each(function(){var f=$(this).attr("href");var e=$(this).attr("title");$("#headerGallery"+b+" ul").append("<li class='gallerySlides'><img src="+f+" alt='' /><span class='slideText'>"+e+"</span></li>")});b+=1});var b=0;$(".widgetPhotoGallery").each(function(){$(this).append("<ul style='padding: 0;'></ul>").addClass("shadowBoxGallery").attr({id:"gallery"+b});$(this).find(".galleryImgThumb").each(function(){var g=$(this).css("backgroundImage");var g=g.replace("url(","").replace(")","");g=g.replace(/\s/g,"%20");var f=$(this).attr("href");f=f.replace(/\s/g,"%20");var e=$(this).attr("title");$("#gallery"+b+" ul").append("<li class='shadowBoxThumbs'><a title='"+e+"' href="+f+" rel='shadowbox[gallery"+b+"]'><img src="+g+" /></a></li>")});b+=1});$(".shadowBoxThumbs").css({"list-style-type":"none",display:"inline"});$(".galleryImgFullShell, .imgDescriptionShell, .imgPreviousNextShell, .imgThumbnailsOuterShell").remove();Shadowbox.setup();if($.browser.mozilla){$("body").addClass("mozilla");var d=$.browser.version.split(".");var c=0;if(d.length>0){c=c+d[0]*1000000000000}if(d.length>1){c=c+d[1]*1000000000}if(d.length>2){c=c+d[2]*1000000}if(d.length>3){c=c+d[3]*1000}if(c>=1009002000000){$("body").addClass("ff36plus")}else{$("body").addClass("ff35under")}}if($("body").hasClass("homepage")){$("#headerGallery1 ul").cycle({fx:"scrollDown",timeout:4000});$("#headerGallery2 ul").cycle({fx:"scrollLeft",timeout:7000})}});window.onload=function(){};Cufon.replace("article h1, header > nav > ul > li > a",{hover:true,fontFamily:"Georgia"});Cufon.replace("article h2",{hover:true,fontFamily:"Myriad Pro"});Cufon.replace("#side .widgetCTA .widgetCTAHeaders",{hover:true,fontFamily:"myriad-light"});$(function(){$("body").addClass("Georgia");$("#side .widgetCTA").hover(function(){$(this).find(".widgetCTAimg").animate({top:"20px"},200)},function(){$(this).find(".widgetCTAimg").animate({top:"24px"},200)});$("header nav ul li").hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")})});
