﻿window.addEvent('domready',function(){
	var nS3 = new noobSlide({
		box: $('box3'),
		items: [0,1,2,3,4],
		interval: 3000,
		size: 283,
		startItem: 0,
		addButtons: {
			playback: $('playback3'),
			stop: $('stop3'),
			play: $('play3')
		},
		autoPlay: true,
		onWalk: function(currentItem){				
			var currentTitle;
			var currentDescription;
			//if(currentItem==null)currentItem=0;
			switch(currentItem)
            {
            case 1:
                currentTitle = '2. Pair your phone with i-migo';
                currentDescription = '<p>Using your phone’s Bluetooth function, pair your phone and the i-migo device. I-migo will automatically back up your phone data at regular intervals.</p>';
                break;
            case 2:
                currentTitle = '3. Where’s my phone?';
                currentDescription = '<p>As soon as your phone is further than 10m away from your i-migo, i-migo will lock your phone using the Security Lock software, and sound an alert to let you know that you have left your phone unattended.</p>';
                break;
            case 3:
                currentTitle = '4. Phone is Lost';
                currentDescription = '<p>If your phone is permanently lost, you are safe in the knowledge that it has been locked and none of its functions or data can be accessed. I-migo also contains a recent back up of all your phone data, ready for upload to your new handset.</p>';
                break;
            case 4:
                currentTitle = '5. Phone is Found';
                currentDescription = '<p>If your phone is found, as soon as it comes within range of the i-migo device it will automatically be unlocked and ready for use.</p>';
                break;
            default:
                currentTitle = '1. Your i-migo has arrived';
                currentDescription = '<p>Small, stylish and highly portable with its keyring attachment, your i-migo is ready to go with very almost no set-up required.</p>';
            }
            
            /*
            var title = document.createElement("h3");
            var titletext = document.createTextNode(currentTitle);
            title.appendChild(titletext);
            
            var description = document.createElement("p");
            var desctext = document.createTextNode(currentDescription);
            description.appendChild(desctext);\
            */
			
			$('SlideDescription').innerHTML = '<h3>' + currentTitle + '</h3>' + '<p>' + currentDescription + '</p>';
		}
	});
});