/* Scripts for Website */
/* Dependencies: jQuery 1.4.x */




/* **************************** */
/* Pre-document.ready functions */
/* **************************** */
	// Functions that must run BEFORE document.ready functions



/* ************************ */
/* Document.Ready functions */
/* ************************ */
//do stuff when DOM is ready
$(document).ready(function() {

	/* *********************** */
	/* Hacks for IE6 and below */
	/* *********************** */
	if ($.browser.msie && $.browser.version < 7 )  { 
		//attach a class to the BODY
		$('body').addClass('ieOld');
	} else {
		if ($.browser.msie && $.browser.version < 8 )  {
			//attach a class to the BODY
			$('body').addClass('ie7');
		} else {
			if ($.browser.msie) {
				//attach a class to the BODY
				$('body').addClass('ie');
			}
		}
	}


	/* ****************** */
	/* INIT for all pages */
	/* ****************** */

	// Any INIT functions for all pages
	
	

	/* ******************* */
	/* INIT for HOME pages */
	/* ******************* */
	if ($("body#home").length) {
		// Any home-page specific INIT functions

		// initialize the SEO Toggle
		$('#seoToggle').click(function () {
			$("#seoTextWrap").toggle();
			document.getElementById('seoTextWrap').scrollIntoView();
			return false;
		});
	}

	
	

	/* *********************** */
	/* INIT for INTERIOR pages */
	/* *********************** */
	if ($("body#int").length) {
		// Any home-page specific INIT functions
		
	}
	
	
	
	
	
	/* ****************************** */
	/* Add'l document.ready functions */
	/* ****************************** */
	
		// add'l document.ready functions

});

/* *************** */
/* Add'l Functions */
/* *************** */


function popVid(URL,w,h) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+w+",height="+h+"');");
}









/* ***************** */
/* Utility Functions */
/* ***************** */


/* Console Logging for debugging help
 * ==================================
 * 	USE:  
 * 		jQuery.log('my message') or $.log('my message') 
 */
;jQuery.log = function(message) {
  try {
     console.debug(message);
  } catch(e) {
	  try {
		console.log(message);
	  } catch(e) {
		alert(message);
	  }
  }
};





/* ******************* */
/* 3rd Party Functions */
/*      (plug-ins)     */
/* ******************* */










