function getClientWidth() {
	return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
}

function getClientHeight() {
	return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
}

function showBlind () {
	document.getElementById ('blind').style.display = 'block';
}

function hideBlind () {
	document.getElementById ('blind').style.display = 'none';
}

var initContent;

initContent = function () {
	// Some initiation
}

window.onload = initContent;

function get (mid) {
	return document.getElementById (mid);
}

function showImage (w, h, img) {
	get ('popup_img').src = img;
	get ('popup').style.width = w + 'px';
	get ('popup').style.height = h + 'px';
	get ('popup').style.left = (getClientWidth() / 2) - (w / 2) + 'px';
	get ('popup').style.top = (getClientHeight() / 2) - (h / 2) + 'px';
	get ('blind').style.display = 'block';
	get ('popup').style.display = 'block';
	get ('popup_img_close').style.left = ((getClientWidth() / 2) + (w / 2) + 10) + 'px';
	get ('popup_img_close').style.top = ((getClientHeight() / 2) - (h / 2) - 30) + 'px';
	get ('popup_img_close').style.display = 'block';
}

function closeImage () {
	get ('popup_img').src = 'img/no.jpg';
	get ('blind').style.display = 'none';
	get ('popup').style.display = 'none';
	get ('popup_img_close').style.display = 'none';
}

var a_n_LINK = null;
var a_n_READY = true;
var a_n_CONTROL = '#FFFFFF';

function changeANews () {
	
	setTimeout ('changeANews ();', 1000);
	
	if (!a_n_READY) return null;
	
	if (a_n_CONTROL == '#FFFFFF') {
		
		a_n_CONTROL = '#00FF00';
		
	} else {
		
		a_n_CONTROL = '#FFFFFF';
		
	}
	
	// $('columbia_news').setStyle ('color', a_n_CONTROL);
	
	$('columbia_news').set('morph', { transition: 'cubic:out', duration: 250 } ).morph ( { 'color' : a_n_CONTROL } );
	
}

window.addEvent ('domready', function () {
	
	var a_n_LINK = $('columbia_news');
	
	a_n_LINK.addEvent ('mouseover', function () {
		a_n_READY = false;
		a_n_LINK.set('morph', { transition: 'cubic:out', duration: 250 } ).morph ( { 'color' : '#FF3535' } );
	} );
	
	a_n_LINK.addEvent ('mouseout', function () {
		a_n_READY = true;
		a_n_LINK.set('morph', { transition: 'cubic:out', duration: 250 } ).morph ( { 'color' : '#FFFFFF' } );
	} );
	
	setTimeout ('changeANews ();', 1000);
	
} );