$(document).ready(function(){$('#login-button').toggle(function(){$('#login #login-hidden').show();},function(){$('#login #login-hidden').hide();});$('#login #login-hidden').hide();});

function fadeEngine(x) {

var total_divs=3; //set your own number of divs

		var y=x;

		if(x==total_divs) y=1; else y++;

		$("#fade"+x).css("display","none");

		$("#fade"+y).fadeIn("slow");

		setTimeout('fadeEngine('+y+')',12000); //modify 3000 to set the time in milliseconds for a div to be shown

	}

	fadeEngine(0); //initialisation of the script

$(document).ready(function(){
       $("#download").hide("fast");
	$("#homepage").hide("fast");
 
	$("input:radio[@name=terms_conditions]").change(function(){
		
	// If checked show download link, hide homepage link
	if ($("#terms_conditions1")[0].checked) 
		{
			$("#download").show("fast");
			$("#homepage").hide("fast");

		}
	else
		{	   
			//otherwise, hide download link, show homepage link 
			$("#homepage").show("fast");
			$("#download").hide("fast");

		}
	  })
});


$(document).ready(function(){
	$("#upload_module").hide();
	$("#confirmation").hide();
	$("#continue_upload").click(function(){
		$("#general_information").hide();
		$("#upload_module").show();
	});
	$("#continue_confirmation").click(function(){
		$("#upload_module").hide();
		$("#confirmation").show();
	});
	$("#back_upload").click(function(){
		$("#upload_module").show();
		$("#confirmation").hide();
	});
	$("#back_general_information").click(function(){
		$("#upload_module").hide();
		$("#general_information").show();
	});

});



















