/* High Slide Stuff */
hs.graphicsDir = '/images/highslide/';
hs.showCredits = false; 

// JavaScript Document
Global = {
	FixPng: function( img ){
		if(document.all){
			img.parentNode.style.width = img.offsetWidth;
			img.parentNode.style.height = img.offsetHeight;
			img.parentNode.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale src='"+ img.src +"')"
		} else {
			img.style.visibility = "visible"
		}
	}
}

function checkPhone($obj, $length, $next){
	if($obj.value.length == $length){
		document.getElementById($next).focus();	
	}
}

function getURL($url){
	document.location = $url;	
}

function toggleOpen($id, $img, $path){
	var bottom = document.getElementById($id);
	var img = document.getElementById($img);
	
	
	if(bottom.style.display == "none"){
		bottom.style.display = "";
		img.src = $path + "images/minus.gif";
	} else {
		bottom.style.display = "none";
		img.src = $path + "images/plus.gif";
	}
	
}

var curEventItem;

function changeEventNav($id){
	if(curEventItem) curEventItem.className = "";
	
	var row = document.getElementById($id);
	row.className = "event_nav_item_on"
	curEventItem = row;
}
