function show_home(){if (preloadFlag == true){
if (document.images)
changeImg('Schubert_14', home_over); return true;
}}
function hide_home(){if (preloadFlag == true){
if (document.images)
changeImg('Schubert_14', home_sticky); return true;
}}

function show_services(){if (preloadFlag == true){
if (document.images)
changeImg('Schubert_16', services_over); return true;
}}
function hide_services(){if (preloadFlag == true){
if (document.images)
changeImg('Schubert_16', services_sticky); return true;
}}

function show_contact(){if (preloadFlag == true){
if (document.images)
changeImg('Schubert_18', contact_over); return true;
}}
function hide_contact(){if (preloadFlag == true){
if (document.images)
changeImg('Schubert_18', contact_sticky); return true;
}}

function show_tour(){if (preloadFlag == true){
if (document.images)
changeImg('Schubert_20', tour_over); return true;
}}
function hide_tour(){if (preloadFlag == true){
if (document.images)
changeImg('Schubert_20', tour_sticky); return true;
}}

function show_faq(){if (preloadFlag == true){
if (document.images)
changeImg('Schubert_22', faq_over); return true;
}}
function hide_faq(){if (preloadFlag == true){
if (document.images)
changeImg('Schubert_22', faq_sticky); return true;
}}

function show_drschubert(){if (preloadFlag == true){
if (document.images)
changeImg('Schubert_24', drschubert_over); return true;
}}
function hide_drschubert(){if (preloadFlag == true){
if (document.images)
changeImg('Schubert_24', drschubert_sticky); return true;
}}



function newImg(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImg() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImg.arguments.length; i+=2) {
			document[changeImg.arguments[i]].src = changeImg.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImg() {
	if (document.images) {
		Schubert_14_over 	= newImg("graphics_slices/Schubert_14-over.jpg");
		Schubert_14_sticky 	= newImg("graphics_slices/Schubert_14-sticky.jpg");
		Schubert_16_over 	= newImg("graphics_slices/Schubert_16-over.jpg");
		Schubert_16_sticky 	= newImg("graphics_slices/Schubert_16-sticky.jpg");
		Schubert_18_over 	= newImg("graphics_slices/Schubert_18-over.jpg");
		Schubert_18_sticky 	= newImg("graphics_slices/Schubert_18-sticky.jpg");
		Schubert_20_over 	= newImg("graphics_slices/Schubert_20-over.jpg");
		Schubert_20_sticky 	= newImg("graphics_slices/Schubert_20-sticky.jpg");
		Schubert_22_over 	= newImg("graphics_slices/Schubert_22-over.jpg");
		Schubert_22_sticky 	= newImg("graphics_slices/Schubert_22-sticky.jpg");
		Schubert_24_over 	= newImg("graphics_slices/Schubert_24-over.jpg");
		Schubert_24_sticky 	= newImg("graphics_slices/Schubert_24-sticky.jpg");
		
		if (sticky[0] == "true"){
		home_sticky 		= '/graphics_slices/Schubert_14-sticky.jpg';
		home_over			= '/graphics_slices/Schubert_14-sticky.jpg'
		}
		else {
		home_sticky 		= '/graphics_slices/Schubert_14.jpg';
		home_over			= '/graphics_slices/Schubert_14-over.jpg'
		};
		
		if (sticky[1] == "true"){
		services_sticky 	= '/graphics_slices/Schubert_16-sticky.jpg';
		services_over		= '/graphics_slices/Schubert_16-sticky.jpg'
		}
		else {
		services_sticky 	= '/graphics_slices/Schubert_16.jpg';
		services_over		= '/graphics_slices/Schubert_16-over.jpg'
		};
		
		if (sticky[2] == "true"){
		contact_sticky 		= '/graphics_slices/Schubert_18-sticky.jpg';
		contact_over		= '/graphics_slices/Schubert_18-sticky.jpg'
		}
		else {
		contact_sticky 		= '/graphics_slices/Schubert_18.jpg';
		contact_over		= '/graphics_slices/Schubert_18-over.jpg'
		};
		
		if (sticky[3] == "true"){
		tour_sticky 		= '/graphics_slices/Schubert_20-sticky.jpg';
		tour_over			= '/graphics_slices/Schubert_20-sticky.jpg'
		}
		else {
		tour_sticky 		= '/graphics_slices/Schubert_20.jpg';
		tour_over			= '/graphics_slices/Schubert_20-over.jpg'
		};
		
		if (sticky[4] == "true"){
		faq_sticky 			= '/graphics_slices/Schubert_22-sticky.jpg';
		faq_over			= '/graphics_slices/Schubert_22-sticky.jpg'
		}
		else {
		faq_sticky 			= '/graphics_slices/Schubert_22.jpg';
		faq_over			= '/graphics_slices/Schubert_22-over.jpg'
		};
		
		if (sticky[5] == "true"){
		drschubert_sticky 	= '/graphics_slices/Schubert_24-sticky.jpg';
		drschubert_over		= '/graphics_slices/Schubert_24-sticky.jpg'
		}
		else {
		drschubert_sticky 	= '/graphics_slices/Schubert_24.jpg';
		drschubert_over		= '/graphics_slices/Schubert_24-over.jpg'
		};

		preloadFlag = true;
		setTabs();
	}
}


function setTabs() {if (preloadFlag == true){
		changeImg('Schubert_14', home_sticky);
		changeImg('Schubert_16', services_sticky);
		changeImg('Schubert_18', contact_sticky);
		changeImg('Schubert_20', tour_sticky);
		changeImg('Schubert_22', faq_sticky);
		changeImg('Schubert_24', drschubert_sticky);
}}


/***********************************************
* Required field(s) validation v1.10- By NavSurf
* Visit Nav Surf at http://navsurf.com
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

function formCheck(formobj){

	// dialog message
	var alertMsg = "Please complete the following fields:\n";
	
	var l_Msg = alertMsg.length;
	
	for (var i = 0; i < fieldRequired.length; i++){
		var obj = formobj.elements[fieldRequired[i]];
		if (obj){
			switch(obj.type){
			case "select-one":
				if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "select-multiple":
				if (obj.selectedIndex == -1){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "text":
			case "textarea":
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			default:
			}
			if (obj.type == undefined){
				var blnchecked = false;
				for (var j = 0; j < obj.length; j++){
					if (obj[j].checked){
						blnchecked = true;
					}
				}
				if (!blnchecked){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
			}
		}
	}

	if (alertMsg.length == l_Msg){
		return true;
	}else{
		alert(alertMsg);
		return false;
	}
}


// Cookie Reader

//Get cookie routine by Shelley Powers 
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
	if (document.cookie.length > 0) {
	offset = document.cookie.indexOf(search)
	// if cookie exists
		if (offset != -1) { 
			offset += search.length
			// set index of beginning of value
			end = document.cookie.indexOf(";", offset);
			// set index of end of cookie value
			if (end == -1) end = document.cookie.length;
			returnvalue=unescape(document.cookie.substring(offset, end))
		}
	}
	return returnvalue;
}

function expand(thistag) {
if (document.images){
   styleObj=document.getElementById(thistag).style;
   styleObj.display='';
   return true;
}}

function collapse(thistag) {
if (document.images){
   styleObj=document.getElementById(thistag).style;
   styleObj.display='none';
   return true;
}}