var cs = 0;
var min = 0;
var timer;
var clock;

function Up() {
	counterUp();
}

function counterUp() {
	if(cs < 10) {
		cs = "0"+cs;
	}
	
	clock = min + ":" + cs;
	document.getElementById('timer').innerHTML = clock;
	if(cs == 60) {
		cs = 0;
		min++;
	}
	cs++;
	timer = setTimeout("counterUp()", 1000);
}
$(document).ready(function() {
	Up();
	$("#supdate").css("display", "none");
	$("#stemplate").css("display", "none");
	$("#smodule").css("display", "none");
	$("a[rel^='sinstall']").attr("href", "javascript:void(0);");
	$("a[rel^='smodule']").attr("href", "javascript:void(0);");
	$("a[rel^='supdate']").attr("href", "javascript:void(0);");
	$("a[rel^='stemplate']").attr("href", "javascript:void(0);");
	$("a[rel^='sinstall']").mouseover(function() {
		$("#smodule").css("display", "none");
		$("#supdate").css("display", "none");
		$("#stemplate").css("display", "none");
		$("#sinstall").css("display", "block");
		$("a[rel^='smodule']").removeClass("currentnew");
		$("a[rel^='supdate']").removeClass("currentnew");
		$("a[rel^='stemplate']").removeClass("currentnew");
		$("a[rel^='sinstall']").addClass("currentnew");
	});
	
	$("a[rel^='smodule']").mouseover(function() {
		$("#sinstall").css("display", "none");
		$("#supdate").css("display", "none");
		$("#stemplate").css("display", "none");
		$("#smodule").css("display", "block");
		$("a[rel^='sinstall']").removeClass("currentnew");
		$("a[rel^='supdate']").removeClass("currentnew");
		$("a[rel^='stemplate']").removeClass("currentnew");
		$("a[rel^='smodule']").addClass("currentnew");
	});
	
	$("a[rel^='supdate']").mouseover(function() {
		$("#sinstall").css("display", "none");
		$("#smodule").css("display", "none");
		$("#stemplate").css("display", "none");
		$("#supdate").css("display", "block");
		$("a[rel^='sinstall']").removeClass("currentnew");
		$("a[rel^='smodule']").removeClass("currentnew");
		$("a[rel^='stemplate']").removeClass("currentnew");
		$("a[rel^='supdate']").addClass("currentnew");
	});
	
	$("a[rel^='stemplate']").mouseover(function() {
		$("#sinstall").css("display", "none");
		$("#smodule").css("display", "none");
		$("#supdate").css("display", "none");
		$("#stemplate").css("display", "block");
		$("a[rel^='sinstall']").removeClass("currentnew");
		$("a[rel^='smodule']").removeClass("currentnew");
		$("a[rel^='supdate']").removeClass("currentnew");
		$("a[rel^='stemplate']").addClass("currentnew");
	});
});

