function initializeSpecificLocation(a,d,c){var b=$("#"+a+" option:selected").text();switch(b){case"Magazine":case"Website":case"Trade Show":$("#"+d).attr("disabled","");setupSpecificLocationList(a,d);if(c!=null){$("#"+d).val(c)}break;default:$("#"+d).attr("disabled","disabled");break}}var magazineOptions="<option value='1'>Cleaner</option><option value='2'>Cleaner Buyers Guide</option><option value='3'>Contractor</option><option value='4'>IMPO</option><option value='5'>Inter-Mecanique du Batiment</option><option value='6'>Maintenance Solutions</option><option value='7'>PHC News</option><option value='8'>Plant Engineering</option><option value='9'>Plumbing & HVAC Product News</option><option value='10'>Plumbing & Mechanical</option><option value='11'>Reeves Journal</option><option value='12'>Other</option>";var websiteOptions="<option value='13'>www.Cleaner.com</option><option value='14'>www.ContractorMag.com</option><option value='15'>www.IMPOmag.com</option><option value='16'>www.MaintenanceSolutionsMag.com</option><option value='17'>www.PHCCweb.org</option><option value='18'>www.PHCNews.com</option><option value='19'>www.PMmag.com</option><option value='20'>www.PlantEngineering.com</option><option value='21'>www.PlumbingandHVAC.ca</option><option value='22'>www.ReevesJournal.com</option><option value='23'>www.SupplyHouseTimes.com</option><option value='24'>Other</option>";var tradeShowOptions="<option value='26'>AHR</option><option value='27'>Pumper & Cleaner</option><option value='28'>RIDGID Road Show</option><option value='29'>Other</option>";function setupSpecificLocationList(a,c){var b=$("#"+a+" option:selected").text();switch(b){case"Magazine":$("#"+c).html(magazineOptions);$("#"+c).attr("disabled","");break;case"Website":$("#"+c).html(websiteOptions);$("#"+c).attr("disabled","");break;case"Trade Show":$("#"+c).html(tradeShowOptions);$("#"+c).attr("disabled","");break;default:$("#"+c).html("");$("#"+c).attr("disabled","disabled");break}}function initializeAllTabs(){$("#tabs").tabs();$("#tabs").css("visibility","visible");$("#tabs").bind("tabsselect",tabs_OnSelect);InitializeShareStoreSimplifyTab();InitializeHowTab()}var unselectedImages=new Array();unselectedImages[0]="/Images/btn_sss.gif";unselectedImages[1]="/Images/btn_wts.gif";unselectedImages[2]="/Images/btn_shiw.gif";unselectedImages[3]="/Images/btn_gd.gif";var selectedImages=new Array();selectedImages[0]="/Images/btn_sss_active.gif";selectedImages[1]="/Images/btn_wts_active.gif";selectedImages[2]="/Images/btn_shiw_active.gif";selectedImages[3]="/Images/btn_gd_active.gif";var hoverImages=new Array();hoverImages[0]="/Images/btn_sss_active.gif";hoverImages[1]="/Images/btn_wts_active.gif";hoverImages[2]="/Images/btn_shiw_active.gif";hoverImages[3]="/Images/btn_gd_active.gif";function tabs_OnSelect(b,c){SetHoverAttributesTabs(c.index);var a=$("#tabs").tabs("option","selected");$("#tabs li.ui-tabs-selected a").css("backgroundImage","url('"+unselectedImages[a]+"')");$(c.tab).css("backgroundImage","url('"+selectedImages[c.index]+"')");StopAllMovies();if(c.index==0){ShareStoreSimplifyAction("imgIntro")}else{if(c.index==1){InitializeWhatTheyAreSayingTab()}else{if(c.index==2){}}}return true}function getFlashMovie(b){var a=navigator.appName.indexOf("Microsoft")!=-1;if(a){return window.document[b]}else{return window.document[b]}}function InitializeShareStoreSimplifyTab(){$("#imgIntro, #imgShare, #imgStore, #imgSimplify").click(ShareStoreSimplify_Click);$("#imgIntro, #imgShare, #imgStore, #imgSimplify").css("cursor","pointer");SetHoverAttributesSSS("");SetHoverAttributesTabs(0);CreateFlashPlayer("divIntro","divIntroPlayer","IntroFLV.flv",true,false)}function CreateFlashPlayer(j,a,g,i,l){var c=432;var e=243;var h=false;var k=true;if(a=="divSimplifyPlayer"){k=false}if(i){c=640;e=360;h=true}else{if(l){c=640;e=480;k=false}}var b={allowFullScreen:"true",allowScriptAccess:"always",wmode:"opaque",swliveconnect:"true"};var d={id:a,name:a};var f={mediaId:"",rtmpPath:"",fileFolder:"http://c0504602.cdn.cloudfiles.rackspacecloud.com/",fileName:g,videoTitle:"",videoDesc:"",readOnly:"true",playAudio:"true",videoWidth:c,videoHeight:e,backgroundImage:h,allowFullScreen:"true",autoPlay:i?IsFirstTimeHere:"true",isStreaming:"false",callOnVideoEnd:k};if(i){$("#"+j).append("<div id='"+a+"' class='whbxnoflash'>This page requires flash player. Please&nbsp;<a href='http://www.adobe.com/go/getflash/' target='_blank'>Install Flash</a></div>");swfobject.embedSWF("/Scripts/RidgePlayer-v1.4.swf",a,c,e,"9.0.0","/Scripts/expressInstall.swf",f,b,d)}else{if(l){$("#"+j).append("<div id='"+a+"'>This page requires flash player. Please&nbsp;<a href='http://www.adobe.com/go/getflash/' target='_blank'>Install Flash</a></div>");swfobject.embedSWF("/Scripts/RidgePlayer-v1.4.swf",a,c,e,"9.0.0","/Scripts/expressInstall.swf",f,b,d)}else{$("#"+j).append("<div id='"+a+"'>This page requires flash player. Please&nbsp;<a href='http://www.adobe.com/go/getflash/' target='_blank'>Install Flash</a></div>");swfobject.embedSWF("/Scripts/RidgePlayer-v1.4.swf",a,c,e,"9.0.0","/Scripts/expressInstall.swf",f,b,d)}}}function OnVideoEnd(a){if(a){if($("#divIntroPlayer").is(":visible")){$("#imgShare").click()}else{if($("#divSharePlayer").is(":visible")){$("#imgStore").click()}else{if($("#divStorePlayer").is(":visible")){$("#imgSimplify").click()}}}}}var ContentConstants={Share:0,Store:1,Simplify:2};var subTabMap=new Array();subTabMap.imgIntro={Images:["Images/share.gif","Images/store.gif","Images/simplify.gif"],DivIntroDisplay:"block",DivShareDisplay:"none",ContentTitle:null,ContentDescriptions:null};subTabMap.imgShare={Images:["/Images/share_active.gif","/Images/store.gif","/Images/simplify.gif"],DivIntroDisplay:"none",DivShareDisplay:"block",ContentTitle:"Overcome communication challenges",ContentDescriptions:["Prepare and send professional job reports to multiple recipients","Edit and narrate videos to ease explanation","Control recipients' access privileges"]};subTabMap.imgStore={Images:["/Images/share.gif","/Images/store_active.gif","/Images/simplify.gif"],DivIntroDisplay:"none",DivShareDisplay:"block",ContentTitle:"Protect your digital assets",ContentDescriptions:["Create detailed customer lists and job histories","Secure, backed-up system for your files","Easily upload media from tools"]};subTabMap.imgSimplify={Images:["/Images/share.gif","/Images/store.gif","/Images/simplify_active.gif"],DivIntroDisplay:"none",DivShareDisplay:"block",ContentTitle:"Increase your efficiency",ContentDescriptions:["No more burning DVDs or hassling with SD cards or thumb drives","Less back-and-forth explanations","Access records from anywhere 24x7"]};function ShareStoreSimplify_Click(b){var a=$(this).attr("id");return ShareStoreSimplifyAction(a)}function ShareStoreSimplifyAction(b){StopAllMovies();var a="";if(b=="imgShare"){CreateFlashPlayer("divShareStoreSimplifyPlayers","divSharePlayer","ShareFLV.flv",false,false);a="divSharePlayer"}else{if(b=="imgStore"){CreateFlashPlayer("divShareStoreSimplifyPlayers","divStorePlayer","StoreFLV.flv",false,false);a="divStorePlayer"}else{if(b=="imgSimplify"){CreateFlashPlayer("divShareStoreSimplifyPlayers","divSimplifyPlayer","SimplifyFLV.flv",false,false);a="divSimplifyPlayer"}else{if(b=="imgIntro"){CreateFlashPlayer("divIntro","divIntroPlayer","IntroFLV.flv",true,false);a="divIntroPlayer"}}}}SetHoverAttributesSSS(b);$("#imgShare").attr("src",subTabMap[b].Images[ContentConstants.Share]);$("#imgStore").attr("src",subTabMap[b].Images[ContentConstants.Store]);$("#imgSimplify").attr("src",subTabMap[b].Images[ContentConstants.Simplify]);$("#imgIntro, #imgShare, #imgStore, #imgSimplify").css("cursor","pointer");$("#"+b).css("cursor","default");$("#divIntro").css("display",subTabMap[b].DivIntroDisplay);$("#divShare").css("display",subTabMap[b].DivShareDisplay);if(b!="imgIntro"){UpdateContent(subTabMap[b].ContentTitle,subTabMap[b].ContentDescriptions)}if($("#"+a).is(":visible")){try{getFlashMovie(a).jsPlayClicked()}catch(c){}}return true}function UpdateContent(c,a){$("#contentTitle").html(c);var d="<ul>";for(var b=0;b<a.length;b++){d+="<li>"+a[b]+"</li>"}$("#contentDescription").html(d)}function StopAllMovies(){if($("#divIntroPlayer").is(":visible")){try{swfobject.removeSWF("divIntroPlayer")}catch(a){}}if($("#divSharePlayer").is(":visible")){try{swfobject.removeSWF("divSharePlayer")}catch(a){}}if($("#divStorePlayer").is(":visible")){try{swfobject.removeSWF("divStorePlayer")}catch(a){}}if($("#divSimplifyPlayer").is(":visible")){try{swfobject.removeSWF("divSimplifyPlayer")}catch(a){}}}function SetHoverAttributesSSS(a){$("#imgShare").hover(function(){$("#imgShare").attr("src",subTabMap.imgShare.Images[ContentConstants.Share])},function(){if(a!="imgShare"){$("#imgShare").attr("src",subTabMap.imgIntro.Images[ContentConstants.Share])}else{$("#imgShare").attr("src",subTabMap.imgShare.Images[ContentConstants.Share])}});$("#imgStore").hover(function(){$("#imgStore").attr("src",subTabMap.imgStore.Images[ContentConstants.Store])},function(){if(a!="imgStore"){$("#imgStore").attr("src",subTabMap.imgIntro.Images[ContentConstants.Store])}else{$("#imgStore").attr("src",subTabMap.imgStore.Images[ContentConstants.Store])}});$("#imgSimplify").hover(function(){$("#imgSimplify").attr("src",subTabMap.imgSimplify.Images[ContentConstants.Simplify])},function(){if(a!="imgSimplify"){$("#imgSimplify").attr("src",subTabMap.imgIntro.Images[ContentConstants.Simplify])}else{$("#imgSimplify").attr("src",subTabMap.imgSimplify.Images[ContentConstants.Simplify])}})}function SetHoverAttributesTabs(a){$("#sssTab").hover(function(){$("#sssTab").css("backgroundImage","url('"+hoverImages[0]+"')")},function(){if(a!=0){$("#sssTab").css("backgroundImage","url('"+unselectedImages[0]+"')")}else{$("#sssTab").css("backgroundImage","url('"+selectedImages[0]+"')")}});$("#wtsTab").hover(function(){$("#wtsTab").css("backgroundImage","url('"+hoverImages[1]+"')")},function(){if(a!=1){$("#wtsTab").css("backgroundImage","url('"+unselectedImages[1]+"')")}else{$("#wtsTab").css("backgroundImage","url('"+selectedImages[1]+"')")}});$("#shiwTab").hover(function(){$("#shiwTab").css("backgroundImage","url('"+hoverImages[2]+"')")},function(){if(a!=2){$("#shiwTab").css("backgroundImage","url('"+unselectedImages[2]+"')")}else{$("#shiwTab").css("backgroundImage","url('"+selectedImages[2]+"')")}});$("#gdTab").hover(function(){$("#gdTab").css("backgroundImage","url('"+hoverImages[3]+"')")},function(){if(a!=3){$("#gdTab").css("backgroundImage","url('"+unselectedImages[3]+"')")}else{$("#gdTab").css("backgroundImage","url('"+selectedImages[3]+"')")}})}function InitializeWhatTheyAreSayingTab(){var b={};b.menu="false";b.quality="best";b.allowfullscreen="false";b.allowscriptaccess="always";b.scale="noscale";b.salign="LT";b.wmode="transparent";var a={};a.APPVARS="/scripts/pagespecific/home/xml/setup.xml";swfobject.embedSWF("/scripts/pagespecific/home/swf/People.swf","cntFlash","660","415","9.0.0","scripts/expressInstall.swf",a,b,{id:"cntFlash"})}function InitializeHowTab(){$("ul.thumb li").hover(ImageThumb_OnHoverIn,ImageThumb_OnHoverOut);ImageThumb_OnClick("aCreateJobReports","CompellingReports","Create Compelling Job Reports");ImageThumb_OnClick("aUploadDigitalMedia","QuicklyUploadedDigitalMedia","Quickly Upload Digital Media");ImageThumb_OnClick("aEasyShareReports","EasilyShareReports","Easily Share Reports With Customers");ImageThumb_OnClick("aArchiveSecurely","ArchiveRecords","Archive Records & Media Securely");ImageThumb_OnClick("aManageContactDatabase","QuicklyManageContactDatabase","Simply Manage Contact Database");if(IsFirstTimeHere=="false"){$("#shiwTab").click()}}function ImageThumb_OnHoverIn(){$(this).css({"z-index":"10",cursor:"pointer"});$(this).find("img").addClass("hover").stop().animate({marginTop:"-40px",marginLeft:"-73px",top:"50%",left:"50%",width:"125px",height:"71px",padding:"0px"},200);$(this).children("a").children("div").css("visibility","visible")}function ImageThumb_OnHoverOut(){$(this).css({"z-index":"0"});$(this).find("img").removeClass("hover").stop().animate({marginTop:"0",marginLeft:"0",top:"0",left:"0",width:"90px",height:"51px",padding:"0px"},400);$(this).children("a").children("div").css("visibility","hidden")}function ImageThumb_OnClick(d,c,b){var e="divScreenCast";var a="divScreenCastVideo";$("#"+d).click(function(){$("#"+e).dialog({width:670,height:531,title:b,resizable:false,modal:true,beforeclose:function(f,g){if($("#"+a).is(":visible")){swfobject.removeSWF("divScreenCastVideo")}},close:function(f,g){$("#"+e).dialog("destroy")}});CreateFlashPlayer("divScreenCast",a,c+".flv",false,true)})}function clearText(a){if($("#"+a).val()=="Optional"){$("#"+a).val("");$("#"+a).removeClass("ghtx")}}function resetText(a){if($("#"+a).val()==""){$("#"+a).val("Optional");$("#"+a).addClass("ghtx")}}var IsFirstTimeHere="true";function initializeCookie(){IsFirstTimeHere=getCookie("IsFirstTimeHere");if(IsFirstTimeHere==""){setCookie("IsFirstTimeHere","false",365);IsFirstTimeHere="true"}};