// Indigo Technologies				> Slider Script
// Developed by Kevin Mitchell	> Internet Strategies > Sept 2010
$(document).ready(function(){function b(){$runSlider=setInterval("mySlider("+$arl+","+$fadeSpeed+")",$slideDelay)}$type=1;$slideDelay=5E3;$fadeSpeed=800;$arl=$("#sliderLaptop > div").length;for(var a=1,c="";$arl>a-1;)c+='<div class="sliderIdent" id="sliderIdent'+a+'">'+a+"</div>",a++;document.getElementById("sliderIdents").innerHTML=c;$currentSlide=1;$("#sliderLaptop").children("div").hide();$("#slider_txt").children("div").hide();$("#sliderLaptop").children("div").eq(0).fadeIn($fadeSpeed);$("#slider_txt").children("div").eq(0).fadeIn($fadeSpeed);
$("#sliderIdents").children("div").eq(0).addClass("idOn");b();$(".sliderIdent").mouseenter(function(){clearInterval($runSlider);$("#sliderIdents").children("div").removeClass("idOn");$(this).addClass("idOn");var a=$(this).attr("id"),a=a.split("Ident",2),a=a[1];$("#sliderLaptop").children("div").hide();$("#slider_txt").children("div").hide();$("#sliderLaptop div:nth-child("+a+")").show();$("#slider_txt div:nth-child("+a+")").show();$(this).addClass("idOn")});$(".sliderIdent").mouseleave(function(){b()})});
function mySlider(b,a){$("#sliderLaptop").children("div").eq($currentSlide-1).fadeOut(a);$("#slider_txt").children("div").eq($currentSlide-1).fadeOut(a);$("#sliderIdents").children("div").eq($currentSlide-1).removeClass("idOn");$("#sliderLaptop").children("div").eq($currentSlide).fadeIn(a);$("#slider_txt").children("div").eq($currentSlide).fadeIn(a);$("#sliderIdents").children("div").eq($currentSlide).addClass("idOn");$currentSlide++;$currentSlide==b&&($currentSlide=0)};
