// -----------------------------------------------------------------
// -----------------------------------------------------------------


// rollover function
function rollOver(img1,ref1) {
	if (document.images) {
		document.images[img1].src = eval(ref1 + ".src")
	}
	}
	
// -----------------------------------------------------------------
// -----------------------------------------------------------------	

// rollover images
if (document.images) {

// nav rollovers

gg_nav1 = new Image()
gg_nav1.src = "images/gg_nav1.gif"
gg_nav1_o = new Image()
gg_nav1_o.src = "images/gg_nav1_o.gif"
gg_nav2 = new Image()
gg_nav2.src = "images/gg_nav2.gif"
gg_nav2_o = new Image()
gg_nav2_o.src = "images/gg_nav2_o.gif"
gg_nav3 = new Image()
gg_nav3.src = "images/gg_nav3.gif"
gg_nav3_o = new Image()
gg_nav3_o.src = "images/gg_nav3_o.gif"
gg_nav4 = new Image()
gg_nav4.src = "images/gg_nav4.gif"
gg_nav4_o = new Image()
gg_nav4_o.src = "images/gg_nav4_o.gif"
gg_nav5 = new Image()
gg_nav5.src = "images/gg_nav5.gif"
gg_nav5_o = new Image()
gg_nav5_o.src = "images/gg_nav5_o.gif"
gg_nav6 = new Image()
gg_nav6.src = "images/gg_nav6.gif"
gg_nav6_o = new Image()
gg_nav6_o.src = "images/gg_nav6_o.gif"
gg_nav7 = new Image()
gg_nav7.src = "images/gg_nav7.gif"
gg_nav7_o = new Image()
gg_nav7_o.src = "images/gg_nav7_o.gif"
gg_nav8 = new Image()
gg_nav8.src = "images/gg_nav8.gif"
gg_nav8_o = new Image()
gg_nav8_o.src = "images/gg_nav8_o.gif"

}



// -----------------------------------------------------------------
// -----------------------------------------------------------------

//quickfind - dropdown

function goto_URL(object) {
	var is_http = object.options[object.selectedIndex].value.indexOf('http://');

	if(is_http == -1)
		window.location.href = object.options[object.selectedIndex].value;
	else
		window.open(object.options[object.selectedIndex].value);
}

// -----------------------------------------------------------------
// -----------------------------------------------------------------


	
function hide_collapse(parent_elemt){

	var item = document.getElementById(parent_elemt);
	if (item.style.display == 'none'){
		item.style.display = 'block';
	}else{
		item.style.display = 'none';
	}
}

function expand_it(){

	var lists = document.getElementsByTagName('UL');
	for (var i = 0; i < lists.length; i++) {
		if (lists[i].style.display == 'none'){
			lists[i].style.display = 'block';
		}
	}

}
function collapse_it(){

	var lists = document.getElementsByTagName('UL');
	for (var i = 0; i < lists.length; i++) {
		if (lists[i].style.display == 'block'){
			lists[i].style.display = 'none';
		}
	}

}
	
	
// -----------------------------------------------------------------
// -----------------------------------------------------------------

function popMap(url) {
        window.open(url,"map","width=500,height=572,top=40,left=40,scrollbars=no,resizable=no")
                    }


// -----------------------------------------------------------------
// -----------------------------------------------------------------


function popPres(url) {
        window.open(url,"pres","width=500,height=400,top=40,left=40,scrollbars=no,resizable=no")
                    }


// -----------------------------------------------------------------
// -----------------------------------------------------------------

//flash detection
// looks for version 6 or above

var flashinstalled = 0;
var flashversion = 0;
MSDetect = "false";
if (navigator.plugins && navigator.plugins.length)
{
    x = navigator.plugins["Shockwave Flash"];
    if (x)
    {
        flashinstalled = 2;
        if (x.description)
        {
            y = x.description;
            flashversion = y.charAt(y.indexOf('.')-1);
            if(flashversion < 6)
            { // Set desired flash version here
                flashinstalled = 1;
            }
        }
    }
    else
        flashinstalled = 1;
    if (navigator.plugins["Shockwave Flash 6.0"])
    {
        flashinstalled = 2;
        flashversion = 2;
    }
}
else if (navigator.mimeTypes && navigator.mimeTypes.length)
{
    x = navigator.mimeTypes['application/x-shockwave-flash'];
    if (x && x.enabledPlugin)
        flashinstalled = 2;
    else
        flashinstalled = 1;
}
else
    MSDetect = "true";

// -----------------------------------------------------------------
// -----------------------------------------------------------------

