//Initiating jQuery to work with Prototype;
//var $ = jQuery.noConflict(); located inside jquery-1.4.2.min.js file

$(document).ready(function() { onDocumentLoad(); });
$(window).load(function() { onWindowLoad(); });

//Global Variables

/*
 * Standard page loading functions for prototype / jQuery
 */
function onDocumentLoad(){

	//http://www.malsup.com/jquery/cycle/
	$('#cyclepics').cycle('blindY');

	$('#footerCopyWriteWrap a').click( function() {
		window.open(this.href);
		return false;
	});

	//adds current to any link that cant add it itself in the leftMenu
	$('#mainContentLeft a[href*="'+$(location).attr('pathname').split("/")[2].split("-")[0]+'"]').parent().addClass('current');

}

//Stuff put into this function doesnt run until the entire document is loaded flash and all
function onWindowLoad(){
	
}
