


		jQuery(document).ready(function() {
		    jQuery('#mycarousel').jcarousel({
		    });
		    size: 8
		    document.getElementById('image_title').innerHTML = images_title[0];
		    document.getElementById('image_text').innerHTML = images_text[0];
		});
	
		
		//title for the box, for each image
		var images_title = new Array(
			'Taskwise Online Taskmanager',
			'Taskwise Online Filemanager',
			'Taskwise Online Contacts',
			'Taskwise Desktop Client',
			'Task Management Features',
			'List Management Features',
			'Contact Manager & Chat',
			'SmartSync in action'
		);
		
		//text for the box, for each image
		var images_text = new Array	(
		  'Taskwise Online gives you access to your tasks and lists anywhere, any time! It delivers all the features and funcationlaity of Taskwise over the internet in a smooth, interactive online experience. Increase your productivity, work online and offline, build networks, share tasks, back your data up and keep it in sync on all your devices!.',
		  'Takwise Online includes powerful reporting so you can track upcoming and completed tasks. It comes with up to 4GB of online storage for shared files and real time backups to make sure your data is safe and secure! And with our SmartSync technology you can keep your data in sync on all your devices!', 
		  'Taskwise Online also allows you to build secure networks allowing you to share your tasks & lists. It has powerful access controls let you decide who you want to share your data with, keeping you in control of your information, and when used with our desktop client it delivers secure chat and group conferencing. ',
		  'The Taskwise Desktop client was built to be easy to use, it keeps you organized so you can focus on getting the job done. As you start to use it you can rapidly take advantage of advanced features such as alerts and alarms and task sharing to ensure that you meet your targets and stay one step ahead.',
		  'Taskwise includes powerful tools that allow you manage large lists with hundreds of items. Alerts, alarms and notes will help you to stay on top of whats important so you can deliver on time and our contact management and communication tools give you direct access to the people you need to get the job done.',
		  'Taskwise includes powerful tools that allow you manage large lists with hundreds of items. Alerts, alarms and notes will help you to stay on top of whats important so you can deliver on time and our contact management and communication tools give you direct access to the people you need to get the job done.',
		  'Taskwise includes powerful tools that allow you manage large lists with hundreds of items. Alerts, alarms and notes will help you to stay on top of whats important so you can deliver on time and our contact management and communication tools give you direct access to the people you need to get the job done.',
		  'Taskwise SmartSync lets you sync you data beteen multiple devices with ease. Use Taskwise Online and sync your data to our powerful desktop and mobile applications, smooothly maintaing the power of working as a group.'
		);
		
		//don't touch the path
		var path = "templates/images/gallery/larges/";
		
		//If you add more images you need to modify this
		var num_images = 8;
		
		function showNext(large){
		  var actual = (large.src.split('/').pop().split('.')[0]);
		  var parent = large.parentNode;
		  var id = large.id;
		  var array_ind = actual;
		  actual = (parseInt(actual) + 1)+"."+(large.src.split('/').pop().split('.')[1]);
		  
		  if((parseInt(actual)) <= num_images) {
		  	parent.removeChild(large);
			var img = document.createElement('img');
			img.id = id;
			img.src = path+actual;
			parent.appendChild(img);
			
		    document.getElementById('image_title').innerHTML = images_title[array_ind];
		    document.getElementById('image_text').innerHTML = images_text[array_ind];
		  }
		}
		function showPrevious(large){
		  var actual = (large.src.split('/').pop().split('.')[0]);
		  var parent = large.parentNode;
		  var id = large.id;
		  var array_ind = actual;
		  actual = (parseInt(actual) - 1)+"."+(large.src.split('/').pop().split('.')[1]);
		  
		  if((parseInt(actual)) > 0) {
		  	parent.removeChild(large);
			var img = document.createElement('img');
			img.id = id;
			img.src = path+actual;
			parent.appendChild(img);
			
		    document.getElementById('image_title').innerHTML = images_title[array_ind-2];
		    document.getElementById('image_text').innerHTML = images_text[array_ind-2];
		  }
		}
		
		function showLarge(thumb){
			var large_image = document.getElementById('large_image');
			var image_name = thumb.src.split('/').pop();
			var parent = large_image.parentNode;
		  	var id = large_image.id;
			
			parent.removeChild(large_image);
			var img = document.createElement('img');
			img.id = id;
			img.src = path+image_name;
			parent.appendChild(img);
			
			//Get the new of the thumb
			document.getElementById('image_title').innerHTML = images_title[(thumb.src.split('/').pop().split('.')[0])-1];
			document.getElementById('image_text').innerHTML = images_text[(thumb.src.split('/').pop().split('.')[0])-1];
		}
		
		function showLargeNum(num){
			var large_image = document.getElementById('large_image');
			var parent = large_image.parentNode;
		  	var id = large_image.id;
			
			parent.removeChild(large_image);
			var img = document.createElement('img');
			img.id = id;
			img.src = path+num+".jpg";
			parent.appendChild(img);
			
		    document.getElementById('image_title').innerHTML = images_title[(num-1)];
		    document.getElementById('image_text').innerHTML = images_text[(num-1)];
		}
		