function _pop(scroll, url, width, height, name) {
	if (typeof(width) == "undefined") { width=screen.width; }
	if (typeof(height) == "undefined") { height=screen.height; }
	if (name!=true) { var rnd = (Math.round((Math.random()*999)+1)); }
	else { var rnd="x"; }
	var top=Math.floor((screen.availHeight-height)/2)-(screen.height-screen.availHeight);
	var left=Math.floor((screen.availWidth-width)/2)-(screen.width-screen.availWidth);
	window.open(url, "w"+rnd, "top="+top+", left="+left+", width="+width+", height="+height+", buttons=no, scrollbars="+(scroll?"yes":"no")+", location=no, menubar=no, resizable="+(scroll?"yes":"no")+", status=no, directories=no, toolbar=no");
}

function _popup(url, width, height,name) {
	_pop(false, url, width, height, name);
    void(0);
}

function _popupR(url, width, height,name) {
	_pop(true, url, width, height, name);
    void(0);
}

function bindEvent(object, event, func) {
    if(object.attachEvent) {
		object.attachEvent('on'+event, func);
	} else {
		if(object.addEventListener) {
			object.addEventListener(event, func, false);
		} else {
		}
	}
}

function unBindEvent(object, event, func) {
    if(object.attachEvent) {
		object.dettachEvent('on'+event, func);
    } else {
		if(object.addEventListener) {
			object.removeEventListener(event, func, false);
		} else {
		}
	}
}

/*function resolution() {
	var theWidth, theHeight, minHeight;
	
	minHeight= document.documentElement.clientHeight - 448;
			
	document.getElementById('content').style.min-height = minHeight+"px";
	
}*/

function getElementHeight() {
	var a;
	a = document.getElementById('container').clientHeight;
	document.getElementById('footer-container').style.top = a+"px";
} 

function ShowPopup(hoveritem,id)
	{	
		
		var curleft = curtop = 0;
		if (hoveritem.offsetParent) {
			curleft = hoveritem.offsetLeft
			curtop = hoveritem.offsetTop
			while (hoveritem = hoveritem.offsetParent) {
				curleft += hoveritem.offsetLeft
				curtop += hoveritem.offsetTop
			}
		}

		hp = document.getElementById(id);
		
		// Set position of hover-over popup
		
			
			hp.style.top = curtop + 60+"px";
		
			hp.style.left = curleft + 90+"px";

			
			
		// Set popup to visible
		hp.style.visibility = "visible";
		
	}
	
	function HidePopup(id)
	{
		hp = document.getElementById(id);
		hp.style.visibility = "hidden";
	}


// No rightclick script v.2.5
// (c) 1998 barts1000
// barts1000@aol.com
// Don't delete this header!

var message=""; // Message for the alert box

// Don't edit below!




onload=function(){
if (document.getElementsByClassName == undefined) {
	document.getElementsByClassName = function(className)
	{
		var hasClassName = new RegExp("(?:^|\\s)" + className + "(?:$|\\s)");
		var allElements = document.getElementsByTagName("*");
		var results = [];

		var element;
		for (var i = 0; (element = allElements[i]) != null; i++) {
			var elementClass = element.className;
			if (elementClass && elementClass.indexOf(className) != -1 && hasClassName.test(elementClass))
				results.push(element);
		}

		return results;
	}
}
}

	
