// JavaScript Document

var IE = document.all?true:false;
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;

var coord = new Array();
coord['x'] = 0;
coord['y'] = 0;

function getMouseXY(e) {
	if (IE) {
		coord['x'] = event.clientX + document.body.scrollLeft;
		coord['y'] = event.clientY + document.body.scrollTop;
	}
	else {
		coord['x'] = e.pageX;
		coord['y'] = e.pageY;
	}
	return true;
}

function showQuickInfo(mesaj){
	$('quick_info_cont').style.top = coord['y']+20+"px";
	$('quick_info_cont').style.left = coord['x']+10+"px";
	$('quick_info_cont').innerHTML = mesaj;
	$('quick_info_cont').style.display = 'block';
	
}

function show_hide (id) {
	if ( document.getElementById(id).style.display == 'none' ) {
		document.getElementById(id).style.display = '';
		document.getElementById('link_'+id).style.display = 'none';
	}
	else {
		document.getElementById(id).style.display = 'none';
		document.getElementById('link_'+id).style.display = '';
	}
}



function switch_id ( id1, id2 ) {
	if ( div1 = document.getElementById(id1)) {
		div1.id = id2;
	}
	else {
		document.getElementById(id2).id = id1;
	}
}




function over(style) {
	style.cursor='pointer';
}

function out(style) {
	style.cursor='default';
}