﻿$(document).ready(function(){featureSwitch()});function featureSwitch(){$.ajaxSetup({cache:false});$.getJSON("/includes/SplashResource.htm",function(f){var e=f.panels.length;var c=$(".SplashFeature").innerWidth();var d=(c)/e;var h=(d/2)-11;var g=$(".SplashFeature").parent();g.append("<div></div>").find("div");for(var b=0;b<e;b++){g.append("<div id='SplashNavigate"+b+"' class='SplashFeatureNav' style='margin-left:"+h+"px; margin-right:"+h+"px;' onMouseOver='featureDisplay("+b+")'>&nbsp;</div>")}var a=Math.floor(Math.random()*e);featureDisplay(a)})}function featureDisplay(a){$.ajaxSetup({cache:false});$(".SplashFeatureNavActive").addClass("SplashFeatureNav").removeClass("SplashFeatureNavActive");$("#SplashNavigate"+a).removeClass("SplashFeatureNav").addClass("SplashFeatureNavActive");$.getJSON("/includes/SplashResource.htm",function(b){$(".SplashFeature").css("backgroundImage","url(http://www.sibcy.com/image/"+b.panels[a].featureImage+")");$(".SplashFeature").click(function(){location.href=""+b.panels[a].featureUrl+"?sender=HomepageFeature"})})};
