// JavaScript Document
function winOpen(x,y,urlname, option){
	url = urlname;
	winwidth = x
	winheight = y
	sw = screen.availWidth;
	sh = screen.availHeight;
	wl = (sw - winwidth)/2;
	wt = (sh - winheight)/2;
	var opt = ",,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=";
	if (option){
		opt = option;
	}
	win = window.open(url,"","width=" + winwidth + ",height=" + winheight + opt + wl + ",top=" + wt);
};
function smartRollover() {  
    if(document.getElementsByTagName) {  
        var images = document.getElementsByTagName("img");  
        for(var i=0; i < images.length; i++) {  
            if(images[i].getAttribute("src").match("_off."))  
            {  
                images[i].onmouseover = function() {  
                    this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));  
                }  
                images[i].onmouseout = function() {  
                    this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));  
                }  
            }  
        }  
    }  
}
function inlineLink(names){
	if(document.getElementById) {
		for (var i = 0; i < names.length; i++){
			var a1 = document.getElementById(names[i]).childNodes[0];
			a1.onclick = function(){
				for (var j = 0; j < names.length; j++){
					var b1 = document.getElementById(names[j]).childNodes[0];
					b1.className = '';
				}
				this.className = 'hover';
			};
		}
	}
}
if(window.addEventListener) {  
    window.addEventListener("load", smartRollover, false);  
}  
else if(window.attachEvent) {  
    window.attachEvent("onload", smartRollover);  
}
