var sampleAd_images=["/images/adSample4.jpg","/images/adSample2.jpg","/images/adSample3.jpg"],sampleAd_titles=["","",""],sampleAd_descriptions=["","",""],$seeSampleAd=$("a.seeSampleAd"),$contactWayTech=$(".contactWaytech"),$contactUR=$(".contactUR"),currentDate=new Date;currentDate.setFullYear(currentDate.getFullYear()+1);var expireOneYear={expiresAt:currentDate};
$("a[rel^='prettyPhoto']").prettyPhoto({slideshow:8E3,theme:"facebook",animation_speed:"normal",allow_resize:true,show_title:true,social_tools:false,deeplinking:false,autoplay_slideshow:false});$seeSampleAd.click(function(){$.prettyPhoto.open(sampleAd_images,sampleAd_titles,sampleAd_descriptions);return false});$contactUR.live("click",function(){$.prettyPhoto.open("https://urbanrenters.wufoo.com/forms/m7x4a3/?iframe=true&width=700&height=700","","");return false});
$contactWayTech.live("click",function(){$.prettyPhoto.open("http://waytech.wufoo.com/forms/contact-waytech/?iframe=true&width=700&height=700","We create Websites that mean business!","");return false});function toggleDiv(a){jq(a).hasClass("hidden")?showDiv(a):hideDiv(a)}function hideDiv(a){jq(a).removeClass("shown");jq(a).addClass("hidden")}function showDiv(a){jq(a).removeClass("hidden")}
$.fn.splitUp=function(a,b){$all=$(this).find(">*");var c=Math.ceil($all.length/a);for(i=0;i<c;i++)$all.slice(a*i,a*(i+1)).wrapAll(b);return $(this)};var defaultOptions={secure:false},saveFormToCookies=function(a,b,c){c=typeof c!=="object"||c==null?defaultOptions:c;a=a.serializeObject();$.cookies.set(b,a,c)},concatenateCheckBoxValues=function(a){var b="";a.each(function(){b=$(this).is(":checked")?b+$(this).val()+",":b});return b};
function removeLastChar(a,b){return a.charAt(a.length-1,1)==b?a.substring(0,a.length-1):a}var mutuallyExclude=function(a,b){b=typeof b==="undefined"?a:b;$(a).click(function(){checkedState=$(this).attr("checked");$(b+":checked").each(function(){$(this).attr("checked",false)});$(this).attr("checked",checkedState)});b!==a&&$(b).click(function(){checkedState=$(this).attr("checked");$(a+":checked").each(function(){$(this).attr("checked",false)});$(this).attr("checked",checkedState)})};
function toggleDivByName(a,b,c,e,d,f,g){var c=$(c),a=$(a),b=$(b),h=b.text();a.toggleClass(e);c.slideToggle(g);b.text(h===d?f:d)}function addShadownText(a,b){oldShadowText=[];$(a).each(function(a){oldShadowText[a]=$(this).val();$(this).focus(function(){$(this).val()==oldShadowText[a]&&$(this).val("").removeClass(b)});$(this).blur(function(){$.trim($(this).val())==""&&$(this).val(oldShadowText[a]).addClass(b)})})}String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.slice(1)};
function scrollbarWidth(){var a=$('<div style="width:50px;height:50px;overflow:hidden;position:absolute;top:-200px;left:-200px;"><div style="height:100px;"></div>');$("body").append(a);var b=$("div",a).innerWidth();a.css("overflow-y","scroll");var c=$("div",a).innerWidth();$(a).remove();return b-c};
