function gif_over(src) {
	src.children.tags('IMG')[0].src=src.children.tags('IMG')[0].src.replace('.gif','r.gif');
} 
function gif_out(src) {
	src.children.tags('IMG')[0].src=src.children.tags('IMG')[0].src.replace('r.gif','.gif');
}

function bg_main_over(td) {
	td.style.color='003B79';
	td.style.backgroundImage="url('../../img/menu/dop1r.gif')";
}

function bg_main_out(td) {
	td.style.color='7D7D7D';
	td.style.backgroundImage="url('../../img/menu/dop1.gif')";
}

function bg_main_over2(td) {
	td.style.color='003B79';
	td.style.backgroundImage="url('../../img/menu/dopr.gif')";
}

function bg_main_out2(td) {
	td.style.color='7D7D7D';
	td.style.backgroundImage="url('../../img/menu/dop.gif')";
}

function change_pic() {
	n = Math.round(Math.random()*3);
	document.all.top_pic.style.backgroundImage='url("'+imgpath+'top_pics/pic'+n+'.jpg")';
}

function change_picc() {
	n = Math.round(Math.random()*3);
	document.all.top_pic.style.backgroundImage='url("'+imgpath+'top_picss/pic'+n+'.jpg")';
}

function getCookie(name) {
        var prefix = name + "="
        var cookieStartIndex = document.cookie.indexOf(prefix)
        if (cookieStartIndex == -1)
                return null
        var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length)
        if (cookieEndIndex == -1)
                cookieEndIndex = document.cookie.length
        return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex))
}