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."));
}
}
}
}
}

if(window.addEventListener) {
window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
window.attachEvent("onload", smartRollover);
}

function openWindow(url,title,width,height,options) {
 var newWin;
 var agent = navigator.userAgent;
 if(agent.indexOf('Win') >= 0 && navigator.appVersion.indexOf('M')!=-1){
 height = height-19;
 }
 if (!!window && url) {
 if (!title) title = "_blank";
 if (!options) options = "toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,favorites=no";
 var whop = "width="+width+",height="+height+","+options;
 newWin = window.open(url,title,whop);
 newWin.focus();
 newWin.moveTo(0, 0)
 }
}
