// JavaScript Document
var applicationsSlideShow={};
applicationsSlideShow.items=[
					  	{icon:"/static/images/applicationIcons/applicationIcon_chat.png", title:"Chat", description:"Add engaging discussion or allow customers to ask live questions to your administrator or sales team" },
						{icon:"/static/images/applicationIcons/applicationIcon_comments.png", title:"Commenting", description:"Let users leave short messages on any page of your site with the 10Duke commenting app"},
						{icon:"/static/images/applicationIcons/applicationIcon_friends.png", title:"Friends", description:"Let profiles connect and open up interaction features with the friends application"},
						{icon:"/static/images/applicationIcons/applicationIcon_liveTV.png", title:"Live TV Streaming", description:"Stream live TV from your site and keep users engaged for hours"},
						{icon:"/static/images/applicationIcons/applicationIcon_music.png", title:"Music player", description:"Give your site visitors something to listen to with a music player and playlist"},
						{icon:"/static/images/applicationIcons/applicationIcon_photos.png", title:"Photo gallery", description:"Display photo thumbnails in a gallery and let users view the ones they want in detail"},
						{icon:"/static/images/applicationIcons/applicationIcon_presentations.png", title:"Presentations", description:"Add slide shows for your users scroll through at their leisure"},
						{icon:"/static/images/applicationIcons/applicationIcon_video.png", title:"Video gallery", description:"Users can easily browse and view videos with a 10Duke video gallery for your site"}
					  ];


/*
	<icon icon="/static/images/applicationIcons/applicationIcon_chat.png" content="&lt;h2&gt;Chat&lt;/h2&gt;&lt;p&gt;Add engaging discussion or allow customers to ask live questions to your administrator or sales team&lt;/p&gt;" />
	<icon icon="/static/images/applicationIcons/applicationIcon_comments.png" content="&lt;h2&gt;Commenting&lt;/h2&gt;&lt;p&gt;Let users leave short messages on any page of your site with the 10Duke commenting app&lt;/p&gt;" />
	<icon icon="/static/images/applicationIcons/applicationIcon_friends.png" content="&lt;h2&gt;Friends&lt;/h2&gt;&lt;p&gt;Let profiles connect and open up interaction features with the friends application&lt;/p&gt;" />
	<icon icon="/static/images/applicationIcons/applicationIcon_liveTV.png" content="&lt;h2&gt;Live TV Streaming&lt;/h2&gt;&lt;p&gt;Stream live TV from your site and keep users engaged for hours&lt;/p&gt;" />
	<icon icon="/static/images/applicationIcons/applicationIcon_music.png" content="&lt;h2&gt;Music player&lt;/h2&gt;&lt;p&gt;Give your site visitors something to listen to with a music player and playlist&lt;/p&gt;" />
	<icon icon="/static/images/applicationIcons/applicationIcon_photos.png" content="&lt;h2&gt;Photo gallery&lt;/h2&gt;&lt;p&gt;Display photo thumbnails in a gallery and let users view the ones they want in detail&lt;/p&gt;" />
	<icon icon="/static/images/applicationIcons/applicationIcon_presentations.png" content="&lt;h2&gt;Presentations&lt;/h2&gt;&lt;p&gt;Add slide shows for your users scroll through at their leisure&lt;/p&gt;" />
	<icon icon="/static/images/applicationIcons/applicationIcon_video.png" content="&lt;h2&gt;Video gallery&lt;/h2&gt;&lt;p&gt;Users can easily browse and view videos with a 10Duke video gallery for your site&lt;/p&gt;" />
	

*/
applicationsSlideShow.currentItem=-1;
applicationsSlideShow.start=function(){
	var d=document.getElementById("applications");
	  if(d){
		  var t=[];
		  t[t.length]='<div class="noscript_slides">';
		  t[t.length]='<img id="icon" onload="setTimeout(function(){applicationsSlideShow.showNextSlide();},7000);" src="';
		  t[t.length]='" alt="" title="" width="230" />';
		  t[t.length]='<h2 id="title"></h2>';
		  t[t.length]='<p id="description"></p>';
		  t[t.length]='</div>';
		  d.innerHTML=t.join("");
			applicationsSlideShow.showNextSlide();
	  }
};
applicationsSlideShow.showNextSlide = function(){
  applicationsSlideShow.currentItem++;
  if(applicationsSlideShow.currentItem>=applicationsSlideShow.items.length){
	  applicationsSlideShow.currentItem=0;
  }
	var icon=document.getElementById("icon");
	if(icon){
		  icon.setAttribute("src",applicationsSlideShow.items[applicationsSlideShow.currentItem].icon);
	}
	var title=document.getElementById("title");
	if(title){
		  title.innerHTML=applicationsSlideShow.items[applicationsSlideShow.currentItem].title;
	}
	var description=document.getElementById("description");
	if(description){
		  description.innerHTML=applicationsSlideShow.items[applicationsSlideShow.currentItem].description;
	}
};
