var slidenum=0;
var slidemax=7;

function changeslide(){
	slidenum = (slidenum+1)%slidemax ;
	loadslide ();
}

function loadslide(){
	switch (slidenum){
		case 0:
			$("#slidenote").html("<span class='slidenumber'>#" + (slidenum+1) +"</span>We live in a fast moving world. There are times when you need to leave your workplace for a short while. Your workplace maybe a store, maybe an office cubicle, it might be your notebook or your research lab.	Who looks after your workplace in your absence ? <a href='javascript:changeslide();'>next</a><br/>&nbsp;");
		break;
		case 1:
			$("#slidenote").html("<span class='slidenumber'>#" + (slidenum+1) +"</span>In your absence intruders can enter your workplace. It could be the guy next door, it could be your co-worker, it could be anyone! You never know when an intrusion would take place... You never know who might be the real culprit... <a href='javascript:changeslide();'>next</a><br/>&nbsp;");
		break;
		case 2:
			$("#slidenote").html("<span class='slidenumber'>#" + (slidenum+1) +"</span>Of course we have state of the art IP cams and video surveillance technologies. You just need to plug them into your workplace and your work is done! Saves time... right ? <a href='javascript:changeslide();'>next</a><br/>&nbsp;");
		break;
		case 3:
			$("#slidenote").html("<span class='slidenumber'>#" + (slidenum+1) +"</span>There is a great need of surveillance today, but are such state of the art technologies affordable ? We talk of IP camera, well how many of store owners around us are willing to spend Rs. 8000+ for an IP camera? <br/> Picture this, you wish to catch a spy in your office, are you going to install an IP camera just for your cubicle, do you actually need to spend so much for small area security ?<b> Isn't there a better solution </b> <a href='javascript:changeslide();'>next</a><br/>&nbsp;");
		break;
		case 4:
			$("#slidenote").html("<span class='slidenumber'>#" + (slidenum+1) +"</span>Think about it - Many of us use Web Cams for chatting, there are many old computers in our offices that gets disposed as e-waste, most of today's workplaces have good internet connectivity, the Web has been constantly making our life easier by becoming more interactive day by day and providing data across the world at click of a mouse. Cell phones have revolutionized the way we communicate and exchange information. When such great milestones have been already achieved, why do we re-invent the wheel ? Why not take these together and put them into a great surveillance system which is really affordable and more accessible ?  <a href='javascript:changeslide();'>next</a><br/>&nbsp;");
		break;
		case 5:
			$("#slidenote").html("<span class='slidenumber'>#" + (slidenum+1) +"</span>That's where <em>SpaceLock</em> comes into picture. It uses your existing infrastructure to help you maximize security. Instead of spending so much on an expensive system, you would get better results with what you already have! Besides, with <em>SpaceLock</em>'s modularity, you can always plug-in a better camera or updated software as we develop it further. <a href='javascript:changeslide();'>next</a><br/>&nbsp;");
		break;
		case 6:
			$("#slidenote").html("<span class='slidenumber'>#" + (slidenum+1) +"</span>What do you get? Well, many benefits packaged into one product. You can use your webcam for a really great purpose. You dedicate an old PC for surveillance monitoring. You can access and control the Camera over LAN and internet as well. <em>SpaceLock</em> is intelligent, it records suspicious activities automatically. You get SMS alerts on event of an intrusion, you can even control <em>SpaceLock</em> through SMS. <br>Basically you get more out of what you already have :) <a href='javascript:changeslide();'>again</a><br/>&nbsp;");
		break;
	}

	$("#slide").fadeTo(300, 0.01,function(){
		$("#slide").html("<a href='javascript:changeslide();'><div id='s" + slidenum + "'>loading ... </div></a>");
		$("#slide").fadeTo("slow",1);
	});
	
}

$(document).ready(function(){
	$.preloadImages();
	//setTimeout ("loadslide()",1000);
});
