var mousepos = new Array();

function getWindowSize()
{
	if( typeof( window.innerWidth ) == 'number' && window.innerWidth > 0) {
		innerWidth = window.innerWidth;
		innerHeight = window.innerHeight;
	}
	else{
		if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			innerWidth = document.documentElement.clientWidth;
			innerHeight = document.documentElement.clientHeight;
		}
		else{
			if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
				innerWidth = document.body.clientWidth;
				innerHeight = document.body.clientHeight;
			}
		}
	}
}

function chg(obj, img)
{
	obj.src=img;

}

function idShow(id){
    document.getElementById(id).style.visibility='visible';

}

function idHide(id){
    document.getElementById(id).style.visibility='hidden';
}

function showBubble(x,y,title,obj)
{
// dynamic tooltips; simply name one object 'bubble' and call this function with mouseover
if( document.all || ! document.getElementById('bubble').firstChild ){
    // msie < 5.5 doesn't know the Node object
    // msie 6.0 gives wrong mouse coordinates (positioned element seems to be interpreted as window when calling window.event :-()
    obj.title = title;
    return true;
}
	div_y = y - 125
	div_x = x - 360 ;

	document.getElementById('bubble').style.top  = div_y + 'px';
	document.getElementById('bubble').style.left = div_x + 'px';
	
	document.getElementById('bubble').firstChild.nodeValue = title;
	document.getElementById('bubble').style.visibility='visible';
//alert(document.getElementById('bubble').style.top +','+ document.getElementById('bubble').style.left);
}

function hideBubble()
{
	document.getElementById('bubble').style.visibility='hidden';
}

function printing_view()
{

	target        = location.href.replace(/#.*$/g, "");
	location.href = target + "/print";

//	alert(location.href);
}


