

<!--

/**
 * resize.js 0.3 970811
 * by gary smith
 * js component for "reloading page onResize"
 */

/* -------------------- This is to reload the page on resize if NN ------------------*/


/*
var NS4 = false
function handleResize() { window.location.reload(); }
function initNS4() { setTimeout("window.onresize=handleResize",1000); }
if (navigator.appName != "Microsoft Internet Explorer"&&parseInt(navigator.appVersion)>=4)  {
        NS4 = true
}
*/

function handleResize() { window.location.reload(); }
setTimeout("window.onresize=handleResize",1000); 

// HIDE AND SHOW

var active = '';
var ns4 = (document.layers)? true:false
var ie4 = (document.all)? true:false
var ns6 = (document.getElementById)? true:false

// Show/Hide functions for non-pointer layer/objects
function show(id) {

        if (ns4) document.layers[id].visibility = "show"
        else if (ie4) document.all[id].style.visibility = "visible"
        else if (ns6) document.getElementById(id).style.visibility = "visible"
		
}

function hide(id) {

        if (ns4) document.layers[id].visibility = "hide"
        else if (ie4) document.all[id].style.visibility = "hidden"
		else if (ns6) document.getElementById(id).style.visibility = "hidden"

		
}


// MOUSE MOVE

var ns = (document.layers)? true:false
var ie = (document.all)? true:false

function init() {
    mylayer = new DynLayer("main");
   

 	if (ns) { 
       	mylayer.elm.captureEvents( Event.MOUSEMOVE )
	} 

    mylayer.elm.onmousemove = mouseMove
    
	show('mymenubar');
    

}




function mouseMove(e) {
	
        hideall()	
        var x = (ns)? e.pageX : event.x+document.body.scrollLeft
        var y = (ns)? e.pageY : event.y+document.body.scrollTop
        status = "x:"+x+" y:"+y
  		hideimg()
        return true
}

function hideimg(){
	changeImage('mymenubar', 'button1', 'top_1a');
	changeImage('mymenubar', 'button2', 'top_2a');
	changeImage('mymenubar', 'button3', 'top_3a');
	changeImage('mymenubar', 'button4', 'top_4a');
	changeImage('mymenubar', 'button5', 'top_5a');
}

function hideall(){
	if(active != '') hide(active)
	hideimg()
	
}



// ROLLOVER
function preload(imgObj,imgSrc) {
        if (document.images) {
                eval(imgObj+' = new Image()')
                eval(imgObj+'.src = "'+imgSrc+'"')
        }
}
function changeImage(layer,imgName,imgObj) {
        if (document.images) {
                if (document.layers && layer!=null) eval('document.'+layer+'.document.images["'+imgName+'"].src = '+imgObj+'.src')
                else document.images[imgName].src = eval(imgObj+".src")
        }
}



// TOP MENUBAR 
preload('top_1a','images/nav_1_0.gif')
preload('top_1b','images/nav_1_1.gif')

preload('top_2a','images/nav_2_0.gif')
preload('top_2b','images/nav_2_1.gif')

preload('top_3a','images/nav_3_1.gif')
preload('top_3b','images/nav_3_1.gif')

preload('top_4a','images/nav_4_0.gif')
preload('top_4b','images/nav_4_1.gif')

preload('top_5a','images/nav_5_0.gif')
preload('top_5b','images/nav_5_1.gif')







//-->


