function rollOver(obj, name,lang,line) {
	obj.src = "/$files/img/nav/"+lang+"/"+name+"_a.gif"; 
	//var line1 = document.getElementById("line"+(line-1));
	//line1.className = "orangeLine"
	
	//var line2 = document.getElementById("line"+line);
	//line2.className = "orangeLine"
}

function rollOut(obj, name,lang,line) {
	obj.src = "/$files/img/nav/"+lang+"/"+name+".gif";
	//var line1 = document.getElementById("line"+(line-1));
	//line1.className = "whiteLine"
	
	//var line2 = document.getElementById("line"+line);
	//line2.className = "whiteLine"
}

function chengeYear(year, obj) {
	if (year != selectedYear) {
	toClose = document.getElementById("month_"+selectedYear);
	toClose.style.display = "none"
	toOpen = document.getElementById("month_"+year);
	toOpen.style.display = ""
	obj.src = "/$files/img/dig_archive_years/"+year+"_s.gif"
	toDeselect = document.getElementById("year_"+selectedYear);
	toDeselect.src = "/$files/img/dig_archive_years/"+selectedYear+".gif"
	selectedYear = year
	}
}

function overMonth(obj,num,lang){
	obj.src = "/$files/img/month/"+lang+"/"+num+"_a.gif"
}
function outMonth(obj,num,lang){
	obj.src = "/$files/img/month/"+lang+"/"+num+".gif"
}

function overYear(obj,num){
	if (num != selectedYear) {
		obj.src = "/$files/img/dig_archive_years/"+num+"_a.gif"
	}
}
function outYear(obj,num){
	if (num != selectedYear) {
		obj.src = "/$files/img/dig_archive_years/"+num+".gif"
	}
}


function changeScreen(obj, location, alt,isBig,w,h) {
	obj.src = "/$files/img/kvg.gif";
	sc = document.getElementById("screenSource");
	sc.innerHTML = "<img src='"+location+"/screen.jpg' alt='"+alt+"' border='0'>"
	bigDiv = document.getElementById("toBig");
	if (isBig){
		bigDiv.innerHTML = "<img onmouseover=\"this.style.cursor='pointer'\" onclick=\"wop('"+location+"',"+w+","+h+")\" src=\"/$files/img/big.gif\" border=\"0\">"
	}else{
		bigDiv.innerHTML = '<img src="/__i/1.gif" width="15" height="13">';
	}
}

function wop(url, width, height){
	 var xpos = screen.width
     var ypos = screen.height
	var w = window.open(url, '', 'toolbar=no,scrollbars=no,directories=no,status=no,menubar=no,location=no,width=' + width +', height=' + height + ',top='+(ypos/2-height/2)+',left='+(xpos/2-width/2)+',screenX='+(xpos/2-width/2)+',screenY='+(ypos/2-height/2)+',status=no,menubar=no,resizable=no,scrollbars=no');
	w.focus();
}

function wop2(url, width, height){
	 var xpos = screen.width+20
     var ypos = screen.height+20
	var w = window.open(url, '', 'toolbar=no,scrollbars=no,directories=no,status=no,menubar=no,location=no,width=' + (width+20) +', height=' + (height+20) + ',top='+(ypos/2-height/2)+',left='+(xpos/2-width/2)+',screenX='+(xpos/2-width/2)+',screenY='+(ypos/2-height/2)+',status=no,menubar=no,resizable=no,scrollbars=no');
	w.focus();
}


function workOver(id){
	var line = document.getElementById("border"+id);
	line.className = "orangeBorder"
}

function workOut(id){
	var line = document.getElementById("border"+id);
	line.className = "whiteBorder"
}