// JavaScript Document
var yourCommunitySlideShow={};
yourCommunitySlideShow.items=[
					  	{logo_offset_y:0, logo:"/static/images/logos/Arsenal_logo90.png", scrshot:"/static/images/scrshots/arsenalSCRshot360.png"},
						{logo_offset_y:60, logo:"/static/images/logos/30love_logo90.png", scrshot:"/static/images/scrshots/30LoveSCRshot360.png"},
						{logo_offset_y:70, logo:"/static/images/logos/Hightribe_logo90.png", scrshot:"/static/images/scrshots/hightribeSCRshot360.png"},
						{logo_offset_y:70, logo:"/static/images/logos/Masher_logo90.png", scrshot:"/static/images/scrshots/masherSCRshot360.png"},
						{logo_offset_y:60, logo:"/static/images/logos/TopGear_logo90.png", scrshot:"/static/images/scrshots/iceMyCarSCRshot360.png"},
						{logo_offset_y:10, logo:"/static/images/logos/GlobalIcon_logo90.png", scrshot:"/static/images/scrshots/globalIconSCRshot360.png"}
					  ];
yourCommunitySlideShow.currentItem=-1;
yourCommunitySlideShow.start=function(){
	var d=document.getElementById("slides");
	  if(d){
		  var t=[];
		  t[t.length]='<div class="noscript_slides">';
		  t[t.length]='<img id="scrshot" onclick="window.location.href=\'partners.jsp\'" onload="setTimeout(function(){yourCommunitySlideShow.showNextSlide();},5000);" src="';
		  t[t.length]='" alt="" title="" width="250" />';
		  t[t.length]='<img id="logo" onclick="window.location.href=\'partners.jsp\'" src="';
		  t[t.length]='" alt="" title="" width="63" />';
		  t[t.length]='</div>';
		  d.innerHTML=t.join("");
			yourCommunitySlideShow.showNextSlide();
	  }
};
yourCommunitySlideShow.showNextSlide = function(){
  yourCommunitySlideShow.currentItem++;
  if(yourCommunitySlideShow.currentItem>=yourCommunitySlideShow.items.length){
	  yourCommunitySlideShow.currentItem=0;
  }
	var scrshot=document.getElementById("scrshot");
	if(scrshot){
		  scrshot.setAttribute("src",yourCommunitySlideShow.items[yourCommunitySlideShow.currentItem].scrshot);
	}
	var logo=document.getElementById("logo");
	if(logo){
		  logo.setAttribute("src",yourCommunitySlideShow.items[yourCommunitySlideShow.currentItem].logo);
		  if(logo.style){
		  	logo.style.paddingTop = (((yourCommunitySlideShow.items[yourCommunitySlideShow.currentItem].logo_offset_y/1.44) | 0)+"px");
		  }
	}
};
