Fx.FadeHoverLink = Fx.Style.extend({
    initialize: function(el, options) {
		options.wait = false;
        this.parent(el, 'opacity', options);
        this.set(0.01);
        this.element.addEvent('mouseover', function() { this.custom(0.01,1); }.bind(this) );
        this.element.addEvent('mouseout', function() { this.custom(1,0.01); }.bind(this) );
    }
});

window.addEvent('domready', function() {
	//-- for IE6 but not IE7, Moz, Safari, Opera...
	if (typeof document.body.style.maxHeight == "undefined") {
		try {
		  document.execCommand('BackgroundImageCache', false, true);
		} catch(e) { /* unless it's not IE6... */ }
	} // if

	$$('.bvFadeLink').each(
		function(el) {
			el.fl = new Fx.FadeHoverLink(el,{duration:500});
		}
	);
}); // addEvent..onload

// Universal Rollover Script
function imghighlight(whichimg) {
	var imgsrc = new String(whichimg.src);
	imgsrc = imgsrc.replace(new RegExp('_off\.','g'),'_on\.');
	whichimg.src = imgsrc;
}

function imgnohighlight(whichimg) {
	var imgsrc = new String(whichimg.src);
	imgsrc = imgsrc.replace(new RegExp('_on\.','g'),'_off\.');
	whichimg.src = imgsrc;
}


//SHOW/HIDE DIV
function hidediv(pass) {
	var divs = document.getElementsByTagName('div');
	for(i=0;i<divs.length;i++){
		if(divs[i].id.match(pass)){//if they are 'see' divs
			if (document.getElementById) // DOM3 = IE5, NS6
				divs[i].style.display="none";// show/hide
			else
			if (document.layers) // Netscape 4
				document.layers[divs[i]].display = 'none';
			else // IE 4
				document.all.hideshow.divs[i].display = 'none';
			}
	}
}

function showdiv(pass) {
	var divs = document.getElementsByTagName('div');
		for(i=0;i<divs.length;i++){
			if(divs[i].id.match(pass)){
				if (document.getElementById)
					divs[i].style.display="block";
				else
				if (document.layers) // Netscape 4
					document.layers[divs[i]].display = 'block';
				else // IE 4
					document.all.hideshow.divs[i].display = 'block';
			}
	}
}

//Pop-up Functions
function popwin(loc,winname,w,h,scroll,resize) {
	eval('var newwin = window.open("' + loc + '","' + winname + '","width=' + w + ',height=' + h + ',top=100,left=200,location=no,scrollbars=' + scroll + ',menubar=no,toolbar=no,resizable=' + resize + '")');
}


function pulldownGoTo(thePulldown)
{

var theUrl = thePulldown.options[thePulldown.selectedIndex].value;

	if(theUrl != '@')
	{
		window.location = theUrl;
	}
	else
	{
	
	}
}

