function loadInfoPanels() {
	loadInfoPanelsDiv('info-articles');
	loadInfoPanelsDiv('info-news');
}
function loadInfoPanelsDiv(id) {
	var divArticles = document.getElementById(id);
	var articleDivs = divArticles.getElementsByTagName('DIV');
	var i = 0;
	for ( i=0; i < articleDivs.length; i++ ) {
		if ( articleDivs[i].className == 'infopanel' ) {
			articleDivs[i].onmouseover = function() {
				this.className = 'infopanel-hov';
				window.status = this.getElementsByTagName('A')[0].href;
			}
			articleDivs[i].onmouseout = function() {
				this.className = 'infopanel';
				window.status = '';
			}
			articleDivs[i].onclick = function() {
				//alert(this.getElementsByTagName('A')[0].href);
				location.href = this.getElementsByTagName('A')[0].href;
			}
		}
	}
}
function UniWin() {
	this.width = window.innerWidth != undefined ? window.innerWidth : document.body.offsetWidth;
	this.height = window.innerHeight != undefined ? window.innerHeight : document.body.offsetHeight;
}
function adjustScreen() {
	if ( !document.getElementById ) {return false}
	if ( !document.getElementById('col-right') ) {return false}
	
	var uniwin = new UniWin();
	var colRight = document.getElementById('col-right');
	
	if ( uniwin.width < 1012 ) {
		colRight.className = 'col-hide';
	} else {
		colRight.className = 'col';
	}
	
}
addEvent(window,'load',loadInfoPanels);
addEvent(window,'load',adjustScreen);
addEvent(window,'resize',adjustScreen);