$(document).ready(function(){$(".splash-container").each(function(){$("#nav div",this).click(function(){SwitchSplash($(this).index())});SwitchSplash(this,0)});SplashSwitchRotationEnabled=true;AutoSwitchSplash();$(".splash-container").each(function(){var a=$("#splash-content",this);a.click(function(){if(a.attr("url")!=undefined){if(a.attr("url")=="http://www.calibrationsearch.com"){window.open(a.attr("url"))}else{location.href=a.attr("url")}}})})});function AutoSwitchSplash(){setTimeout(function(){if(SplashSwitchRotationEnabled==false){return}$(".splash-container").each(function(){var a=$("#nav .item-selected",this).index();a++;if(a==$("#nav div",this).length){a=0}SwitchSplash(this,a)});AutoSwitchSplash()},6500)}function SwitchSplash(c,b){var a=$("#nav div:eq("+b+")",c);$("#splash",c).css("background-image","url("+a.attr("image")+")");$("#nav div",c).attr("class","item");$("#splash-content",c).attr("url",a.attr("url"));a.attr("class","item-selected")};