$(document).ready(function() {

	// add the main menu
	$("ul.sf-menu").supersubs({
		extraWidth: 1
	}).superfish();

	// re-layer divs
	$(function() {
		var zIndexNumber = 1000;
		$('div').each(function() {
			$(this).css('zIndex', zIndexNumber);
			zIndexNumber -= 12;
		});
	});

	// add the slideshow
	$('.slideshow').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		timeout: 10000
	}).fadeIn(1000);

	$(".t-vaultedbackup").colorbox({width:"50%", inline:true, href:".m-vaultedbackup"});
	$(".t-disasterrecovery").colorbox({width:"50%", inline:true, href:".m-disasterrecovery"});
	$(".t-diskbased").colorbox({width:"50%", inline:true, href:".m-diskbased"});
	$(".t-optimiseddatatransfer").colorbox({width:"50%", inline:true, href:".m-optimiseddatatransfer"});
	$(".t-supportedoperatingsystems").colorbox({width:"50%", inline:true, href:".m-supportedoperatingsystems"});
	$(".t-flexibleconfiguration").colorbox({width:"50%", inline:true, href:".m-flexibleconfiguration"});
	$(".t-versionhistory").colorbox({width:"50%", inline:true, href:".m-versionhistory"});
	$(".t-agentlessbackup").colorbox({width:"50%", inline:true, href:".m-agentlessbackup"});
	$(".t-applicationsupport").colorbox({width:"50%", inline:true, href:".m-applicationsupport"});
	$(".t-recovery").colorbox({width:"50%", inline:true, href:".m-recovery"});
	$(".t-accesscontrols").colorbox({width:"50%", inline:true, href:".m-accesscontrols"});
	$(".t-security").colorbox({width:"50%", inline:true, href:".m-security"});

});

