
var mx=0;
var my=0;

function bodyload() {
    document.onmousemove = getMouseXY;
    }

function getMouseXY(event) {
    var obj;
    ev = event || window.event;
//    obj = document.getElementById('headerinfo');
//    obj.innerHTML = 'Mouse X:'+ev.pageX + ' Mouse Y:'+ev.pageY;
    mx=ev.pageX; my=ev.pageY;
    }

function popup(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=1024,height=768,left = 0,top = 0');");
}

function togglediv(divid) {
    var arr = document.getElementById(divid)
    if ( arr!= null ) {
	arr.style.display = (arr.style.display == 'none')? 'block':'none';
	}
    }

function confirmation(question,url) {
	var answer = confirm(question)
	if (answer){
	    //$(this).next("em").
	    window.location = url;
	}
}


function atfirst() {
	//none yet
	}

$(document).ready(function() {
//	$("#vicc-popup").css("top",$("#vicc-popup").css("height"));
	$("#vicc-truncate em").hover(function() {
		$("#vicc-popup").stop(true, true);
		$("#vicc-popup").animate({opacity: "show"}, "slow");
		}, function() {
//		$("#vicc-popup").animate({opacity: "hide", bottom: "-70"}, "fast");		
		});
	$("#vicc-popup").click(function() {
		$("#vicc-popup").animate({opacity: "hide"}, "fast");		

		});
	});  


