/* Javascript Document - Jon Wm. Ezickson Website - Global Functions
/*
/* version:   1.0
/* date:      7/12/2009
/* author:    Brian Crumley
/* website:   http://www.vailinteractive.com
/*
----------------------------------------------------------*/


/* Correct IE6 background-image Flicker
----------------------------------------------------------*/
try {
	document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}


/* Initialize function calls when document.ready
----------------------------------------------------------*/
function showTab(tabID) {
	/*$("#activity-select").removeClass("compliance");
	$("#activity-select").removeClass("auditing");
	$("#activity-select").removeClass("consulting");
	$("#activity-select").removeClass("planning");*/
	
	document.getElementById("activity-select").className = tabID;
};


/* Service List Functions
----------------------------------------------------------*/
/*function checkProductService(option) {
	killDivs();
			
	if (option == "princeton") {
		$("li#market_li").slideDown("fast");
	} else if (option == "webus" || option == "peg") {
		$("li#market_li").slideUp("fast");
				
		if (option == "webus") {
			$("#webus").fadeIn("normal");
		} else if (option == "peg") {
			$("#peg").fadeIn("normal");
		};
	} else {
		$("li#market_li").slideUp("fast");
	};
};*/

var serviceDivs = new Array("#compliance-content", "#auditing-content", "#planning-content", "#consulting-content");

function checkService(option) {
	//alert(option);
	/*for (i=0; i<serviceDivs.length; i++) {
		$(serviceDivs[i]).hide();
	};*/
	if (option == "compliance") {
		$("#compliance-content").fadeIn("normal");
	} else if (option == "auditing") {
		$("#auditing-content").fadeIn("normal");
	} else if (option == "planning") {
		$("#planning-content").fadeIn("normal");
	} else if (option == "consulting") {
		$("#consulting-content").fadeIn("normal");
	};
};

function killDivs() {
	for (i=0; i<serviceDivs.length; i++) {
		$(serviceDivs[i]).fadeOut("normal");
	};
};
