// New XML Mouseover Script - by WES 2006

window.onload = init;

function init()
{
    attachMouseEvents('oversone');
}

function attachMouseEvents(parentElm)
{
    var parentElm = typeof parentElm == 'string'
                  ? document.getElementById(parentElm)
                  : parentElm;
    var imgs = parentElm.getElementsByTagName('img');
    var img, i=0, overImg;
    var regOver =  /\.[^.]+$/; // all after last dot
    var overSuffix = '_omo';

    while(img=imgs[i++])
    {
        img.onmouseover =
        img.onmouseout  = rollToggle;
        overImg  = new Image();
        overImg.src =
        img.overSrc = img.src.replace(regOver,overSuffix+'$&');
        img.outSrc  = img.src;
    }
}

function rollToggle()
{
    this.src = this.src == this.overSrc
             ? this.outSrc : this.overSrc;
}



// End of :: New XML Mouseover Script - by WES 2006

<!-- Lithium Solutions New Window Loader Begin

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

//  Lithium Solutions New Window Loader End -->

<!-- Lithium Solutions centered pop-up window opener 2

var win=null; 
function NewWindow2(mypage,myname,w,h,scroll,pos){ 
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;} 
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;} 
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20} 
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=0,directories=0,status=0,menubar=0,toolbar=0,resizable=1'; 
win=window.open(mypage,myname,settings);} 

//-->

<!-- Lithium Solutions centered pop-up window opener 3

var win=null; 
function NewWindow3(mypage,myname,w,h,scroll,pos){ 
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;} 
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;} 
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20} 
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=1,directories=0,status=1,menubar=1,toolbar=1,resizable=1'; 
win=window.open(mypage,myname,settings);} 

//-->

<!-- Lithium Solutions Clickable Closable Hover Box

function getposOffset(overlay, offsettype){
var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;
var parentEl=overlay.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function overlay(curobj, subobj){
if (document.getElementById){
var subobj=document.getElementById(subobj)
//curobj.setAttribute("originalhtml", curobj.innerHTML) //cache original HTML
subobj.style.left=getposOffset(curobj, "left")+"px"
subobj.style.top=getposOffset(curobj, "top")+"px"
subobj.style.display="block"
return false
}
else
return true
}

function overlayclose(subobj){
document.getElementById(subobj).style.display="none"
}

-->