// JavaScript Document

<!--
function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->

function blankText(thisID,thisValue) {
	if (document.getElementById(thisID).value == thisValue) {
		document.getElementById(thisID).value = "";
	}
}

function CheckBusType(thisValue) {
	if(thisValue == "Other") {
		show('BusTypeOtherDiv');
		document.getElementById('BusTypeOther').value = "Please specify";
	} else {
		hide('BusTypeOtherDiv');
		document.getElementById('BusTypeOther').value = "";
	}
}

function CheckProvince(thisValue) {
	if(thisValue == "US State" || thisValue == "Other") {
		show('ProvinceOtherDiv');
		document.getElementById('ProvinceOther').value = "Please specify";
		if(thisValue == "US State") {
			document.getElementById('Country').value = "US";
		} else {
			document.getElementById('Country').value = "";
		}
	} else {
		hide('ProvinceOtherDiv');
		document.getElementById('ProvinceOther').value = "";
		document.getElementById('Country').value = "Canada";
	}
}

//Show - Hide Functions
function show(id) { 
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';		
	} else { 
		if (document.layers) {	
			document.id.display = 'block';
		} else {
			document.all.id.style.display = 'block';
		}
	}
}
function hide(id) { 
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';		
	} else { 
		if (document.layers) {	
			document.id.display = 'none';
		} else {
			document.all.id.style.display = 'none';
		}
	}
}

function Show7030Video() {
	show('videoHost');
	show('detailsoverlay');
}
function Hide7030Video() {
	hide('videoHost');
	hide('detailsoverlay');
}
