var BASE_COLOR_H = "#246EC6";
var INV_COLOR_H = "white";
var BASE_COLOR_V = "#727B1C";
var INV_COLOR_V = "#FFFF00";
var width = 4;
var height = 2;

function overH (item) {
	if (location.href.charAt (location.href.indexOf ("page") + 6) != item) {		
		document.getElementById ("hItem" + item).style.backgroundColor = INV_COLOR_H;
		document.getElementById ("hItem" + item).style.color = BASE_COLOR_H;		
	}	
}

function outH (item) {
	if (location.href.charAt (location.href.indexOf ("page") + 6) != item) {
		document.getElementById ("hItem" + item).style.backgroundColor = BASE_COLOR_H; 
		document.getElementById ("hItem" + item).style.color = INV_COLOR_H; 
	}	
}

function overV (item) {
	if (location.href.charAt (location.href.indexOf ("inner") + 7) != item) {		
		document.getElementById ("vItem" + item).style.color = INV_COLOR_V; 		
	}
}

function outV (item) {
	if (location.href.charAt (location.href.indexOf ("inner") + 7) != item) {
		document.getElementById ("vItem" + item).style.color = BASE_COLOR_V; 
	}
}
function move () {
    if (location.href.charAt (location.href.indexOf ("page") + 6) == 1) {
        var elm = document.getElementById ("imgAbout");
        if (width >= 452) return;         
        width += 4;
        height = Math.round (width * 0.5975);
        elm.style.width = width + "px";    
        elm.style.height = height + "px";    
        setTimeout ("move ()", 50);
    }    
}
function cas () {
    var datum = new Date ();
    var seconds = datum.getSeconds ();
    var minutes = datum.getMinutes ();
    var hours = datum.getHours ();
    if (seconds < 10) seconds = "0" + seconds;
    if (minutes < 10) minutes = "0" + minutes;
    if (hours < 10) hours = "0" + hours;
    var cas = datum.getDate () + "." + (datum.getMonth () + 1) + "." + datum.getFullYear () + " " + hours + ":" + minutes + ":" + seconds;
    document.getElementById ("cas").innerHTML = cas;
    setTimeout ("cas ()", 1000);
}

