﻿$(document).ready(function() {

var sponsorsIcons = ["/_layouts/images/home_ked/Content/Images/HomePage/sponsors/altigen_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/sponsors/assistsoftware_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/sponsors/audiocodes_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/sponsors/autotask_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/sponsors/ca_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/sponsors/citrix_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/sponsors/competentum_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/sponsors/connectwise_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/sponsors/datacore_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/sponsors/esri_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/sponsors/fujitsu_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/sponsors/hp_homepages.png", "/_layouts/images/home_ked/Content/Images/HomePage/sponsors/microfocus_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/sponsors/nortel_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/sponsors/nortel_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/sponsors/sitecore_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/sponsors/symantec_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/sponsors/zenith_hpage.png"];

	var productIcons = ["/_layouts/images/home_ked/Content/Images/HomePage/products/exchange2010_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/products/office2010_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/products/win7_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/products/winmobile_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/products/exchange2010_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/products/office2010_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/products/win7_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/products/winmobile_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/products/exchange2010_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/products/office2010_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/products/win7_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/products/winmobile_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/products/exchange2010_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/products/office2010_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/products/win7_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/products/winmobile_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/products/exchange2010_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/products/office2010_hpage.png"];

	var exhibitorsIcons = ["/_layouts/images/home_ked/Content/Images/HomePage/exhibitors/msft_dynamics.png", "/_layouts/images/home_ked/Content/Images/HomePage/exhibitors/msft_online_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/exhibitors/msoft_students_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/exhibitors/msft_dynamics.png", "/_layouts/images/home_ked/Content/Images/HomePage/exhibitors/msft_online_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/exhibitors/msoft_students_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/exhibitors/msft_dynamics.png", "/_layouts/images/home_ked/Content/Images/HomePage/exhibitors/msft_online_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/exhibitors/msoft_students_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/exhibitors/msft_dynamics.png", "/_layouts/images/home_ked/Content/Images/HomePage/exhibitors/msft_online_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/exhibitors/msoft_students_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/exhibitors/msft_dynamics.png", "/_layouts/images/home_ked/Content/Images/HomePage/exhibitors/msft_online_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/exhibitors/msoft_students_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/exhibitors/msft_dynamics.png", "/_layouts/images/home_ked/Content/Images/HomePage/exhibitors/msft_online_hpage.png", "/_layouts/images/home_ked/Content/Images/HomePage/exhibitors/msoft_students_hpage.png"];

	var contestText = ["OVER 50<br/>PRIZES/DAY!", "THE BIG<br/>EASY WIN", "OVER 50<br/>PRIZES/DAY!", "THE BIG<br/>EASY WIN", "OVER 50<br/>PRIZES/DAY!", "THE BIG<br/>EASY WIN", "OVER 50<br/>PRIZES/DAY!", "THE BIG<br/>EASY WIN", "OVER 50<br/>PRIZES/DAY!", "THE BIG<br/>EASY WIN", "OVER 50<br/>PRIZES/DAY!", "THE BIG<br/>EASY WIN", "OVER 50<br/>PRIZES/DAY!", "THE BIG<br/>EASY WIN", "OVER 50<br/>PRIZES/DAY!", "THE BIG<br/>EASY WIN", "OVER 50<br/>PRIZES/DAY!", "THE BIG<br/>EASY WIN"];

	var currentNum = 0;
	function rotateFooterContent() {
		currentNum++
		if (currentNum == sponsorsIcons.length) currentNum = 0;
		$("#Sponsors img").attr("src", sponsorsIcons[currentNum]);
		$("#Exhibitors img").attr("src", exhibitorsIcons[currentNum]);
		$("#ProductSpotlight img").attr("src", productIcons[currentNum]);
		$("#Contest h5").html(contestText[currentNum]);
	}
	function cycleImgs(delay) {
		var executeCycle = setInterval(rotateFooterContent, delay);
	}
	cycleImgs(7000);
});