
// -----------------------------------------------------------------------------
// GLOBAL JAVASCRIPT 




// -----------------------------------------------------------------------------
// Flash Placement:

// Global configuration for use with Adobe's AC_RunActiveContent script

// Globals
// Major version of Flash required
var requiredMajorVersion = 6;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Revision of Flash required
var requiredRevision = 79;




// -----------------------------------------------------------------------------
// Suckerfish Dropdown Menus:

/* The "startList()" function helps IE browsers with the dropdown menus
/* For more info: http://www.alistapart.com/articles/dropdowns/ */

function initMenus() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
				this.className+=" over";
			}
			node.onmouseout=function() {
			this.className=this.className.replace(" over", "");
   		}
   	}
  }
 	}
}




// -----------------------------------------------------------------------------
// Contact Info Overlay Box:

/* This drives the display of the floating "contact info" box in the "Services" section. (requires jquery) 
/* NOTE: Non-IE Browsers get a nice fade-on. In IE the overlays just turn on/off. (there were problems with how IE was fading on the transparent PNG background) */ 

function initSocialMediaLabels() {
	// RSS Button
	$("#rssLink").hover(function () {
		if ($.browser.msie ) { $("#rssLabel").show(); }	// IE
		else { $("#rssLabel").fadeIn("fast"); }			// Non-IE Browsers
	});
	$("#rssLink").mouseleave(function () {
    	$("#rssLabel").hide();
	});
	
	// Facebook Button
	$("#facebookLink").hover(function () {
		if ($.browser.msie ) { $("#facebookLabel").show(); }	// IE
		else { $("#facebookLabel").fadeIn("fast"); }			// Non-IE Browsers
	});
	$("#facebookLink").mouseleave(function () {
    	$("#facebookLabel").hide();
	});
	
	// Twitter Button
	$("#twitterLink").hover(function () {
			if ($.browser.msie ) { $("#twitterLabel").show(); }	// IE
			else { $("#twitterLabel").fadeIn("fast"); }			// Non-IE Browsers
	});
	$("#twitterLink").mouseleave(function () {
    	$("#twitterLabel").hide();
	});
	
	// YouTube Button
	$("#youtubeLink").hover(function () {
			if ($.browser.msie ) { $("#youtubeLabel").show(); }	// IE
			else { $("#youtubeLabel").fadeIn("fast"); }			// Non-IE Browsers
	});
	$("#youtubeLink").mouseleave(function () {
    	$("#youtubeLabel").fadeOut("fast");
	});
	// Email Button
	$("#emailLink").hover(function () {
			if ($.browser.msie ) { $("#emailLabel").show(); }	// IE
			else { $("#emailLabel").fadeIn("fast"); }			// Non-IE Browsers
	});
	$("#emailLink").mouseleave(function () {
    	$("#emailLabel").hide();
	});
}