function gebi(id) { return document.getElementById(id); }

function input_fcs(obj,chk,cls) {
	if (obj != undefined) {
		//obj.className = cls;
		if (obj.value == chk) obj.value = '';
	}
}

function input_blr(obj,chk,cls) {
	if (obj != undefined) {
		if (obj.value == '') {
			obj.value = chk;
			//obj.className = cls;
		}
	}
}

function pov(obj,cls) {
	if (cls == undefined) cls = 'pnt';
	if (obj != undefined) {
		obj.className = cls+' over';
		var num = parseInt(obj.id);
		gebi(num+'_img').src = gebi(num+'_on').src;
	}
}

function pou(obj,cls) {
	if (cls == undefined) cls = 'pnt';
	if (obj != undefined) {
		obj.className = cls;
		var num = parseInt(obj.id);
		gebi(num+'_img').src = gebi(num+'_off').src;
	}
}

function docloc(loc) {
	if (loc == undefined) return;
	document.location = loc;
}

var counttime = 1000;
var counthandler = null;
function CountDown()
{
	var target = new Date( "2009/10/21 21:00:00" );
	var today = new Date();
	var count = new Date( target - today  );

	var str = "До старта проекта осталось: <br /><br />" + count.getUTCHours() + " ч " + count.getUTCMinutes() + " м " + count.getUTCSeconds() + " c ";

	$( ".heroes" ).html( str );

	counthandler = setTimeout( CountDown, counttime );
}