	$(function(){
			   
	//==== Initialize JQ Drop Down ====//
	$('.ddmenu').singleDropMenu({parentMO: 'ddmenu-hover', childMO: 'ddchildhover', timer: 6000});
	
	//==== Initialize NewsTicker Colorbox ====//
			//$(".news").colorbox({width:"80%", height:"80%", iframe:true});
			$(".PopUp900").colorbox({width:"900px", height:"750px", iframe:true, opacity:0.35});
			$(".PopUp700").colorbox({width:"700px", height:"550px", iframe:true, opacity:0.35});
			$(".PopUp500").colorbox({width:"560px", height:"550px", iframe:true, opacity:0.35});
			$(".PopUp300").colorbox({width:"360px", height:"350px", iframe:true, opacity:0.35});
			$(".PopUp300B").colorbox({width:"500px", height:"200px", iframe:true, opacity:0.35, scrolling:false});
			$(".PopUpNW").colorbox({width:"580px", height:"690px", iframe:true, opacity:0.35, scrolling:false});
			$(".PasswordLU").colorbox({width:"700px", height:"200px", iframe:true, opacity:0.35, scrolling:false});			
			$(".Photobox").colorbox({scalePhotos:true, width:"500px", height:"500px", opacity:0.35, scrolling:false});			
			$("a[rel='PU300']").colorbox({width:"580px", height:"700px", iframe:true, opacity:0.35, scrolling:true});
			$(".UploadWindow").colorbox({width:"500px", height:"200px", iframe:true, opacity:0.35, scrolling:false,onClosed:function(){window.location.reload();}});

			
		//==== START: SPECIAL IE FUNCTIONS ====//
			if($.browser.msie && $.browser.version < 8){
				$('#footer_hr').css({'display':'block','margin':'-7px 0'}); //fix rendering bug with <hr>
			}
			if($.browser.msie && $.browser.version == 6){
				$(document).pngFix(); //apply pngfix
				//-- Dock Position --//
				var viewportH = $(window).height();
				$('#dockbuffer').css({'top':(viewportH-24)+'px'});
				var topPos = $('#dockbuffer').offset().top;
				$(window).scroll(function() {
					$("#dockbuffer").css("top", $(window).scrollTop() + topPos + "px");
				});
			}
		//==== END: SPECIAL IE FUNCTIONS ====//
		
		
		//==== START: Initialize Marquee Carousel + Build Marquee Navigation ====//
			/*-- build dynamic marquee navigation --*/
			var navArray = new Array(); 
			$('#marquee ul').each(function(i){ 
				var carouselNavDiv = $('#marquee_nav ul');
				$(this).children().each(function(j){
					var linkNum = j+1;
					var currDesc = $(this).find('img').attr('longdesc');
					$(carouselNavDiv[i]).append('<li class="item"><a class="'+linkNum+'" href="#"><span>'+currDesc+'</span></a><li>');
					navArray[j] = "."+linkNum;
				});
				$(carouselNavDiv[i]).append('<div class="clear"></div>');
			});
			$('#marquee_nav ul li:first').addClass('first'); //add left border to first line-item
			$('#marquee_nav ul .1').attr('class','1 on'); //default first nav item to the "on" state
			
			//remove unwanted empty <li> tags (causes rendering issues in IE < v.8
			$('#marquee_nav ul li').each(function() {
				if($(this).html() == '') {
					$(this).remove();
				}
			});
			
			/*-- initialize marquee carousel --*/
			$("#marquee").jCarouselLite({
				btnGo: navArray,
				visible: 1,
				auto: true,
				/*
				vertical: true, //vertical scrolling
				scroll: -1,	//scroll direction (1 = slide up ... -1 = slide down)
				*/
				timeout: 5000, //milliseconds between transitions
				speed: 0, //milliseconds of the transition (slide) effect 
				beforeStart: function(a) { //actions to execute before transition takes place
					var currImg = a.find('img:first'); //reference to the current image
					var nextImg = a.next().find('img:first'); //reference to the next image in queue
					var targObj = currImg.attr('id'); //get the ID of the first image in queue
					
					/*-- fade effects --*/
					$(currImg).fadeOut(10);
					$(nextImg).fadeOut(10);
					
					/*-- remove carousel nav highlight --*/
					targObj = targObj.substring(4);
					$('#marquee_nav ul .'+targObj).removeClass('on');					
				},
				afterEnd: function(a) { //actions to execute after transition takes place
					var currImg = a.find('img:first'); //reference to the current image
					var targObj = currImg.attr('id'); //get the ID of the first image in queue
					
					/*-- fade effects --*/
					$(currImg).fadeIn(1000);
					
					/*-- add carousel nav highlight --*/
					targObj = targObj.substring(4);
					$('#marquee_nav ul .'+targObj).attr('class', targObj+' on');
					
				}
			});
			
			/*-- initialize href's on marquees --*/
			$('#marquee ul li img').click(function() { //capture marquee image click
				var targURL = $(this).attr('rel'); 
				if(targURL == undefined || targURL == '') { //if "rel" attribute is undefined or an empty string
					return false; //do nothing
				}
				else {
					if($(this).attr('class') == 'newwin') { //if "class" attribute is equal to "newwin"
						window.open(targURL); //open link in new window
					} else { location.href = targURL; } //open link in current window
				}
			});
			
		//==== END: Initialize Marquee Carousel ====//
		
		
		//==== START: Header Form behaviors ====//
			//clear default label onFocus
			$('.forms input').focus(function(){ 
				$(this).siblings('label').hide();
			});
			$('.forms label').click(function(){ 
				$(this).siblings('input').focus();
			});
			
			//restore default label if field is left empty
			$('.forms input').blur(function(){ 
				if($(this).val() == '') {
					$(this).parent().css({'background-position':'0 0'});
					$(this).siblings('label').show();
				}	
			});
			
			//handle "login" submit click + validate
			$('#form_login input[type=image]').click(function(){
				var user = $('input[name=user]');
				var pass = $('input[name=pass]');
				if(user.val() == "") {
					alert('Please enter a valid Username.');
					user.parent().css({'background-position':'0 -22px'});
					user.focus();
					return false;
				}
				if(pass.val() == "") {
					alert('Please enter a valid Password.');
					pass.parent().css({'background-position':'0 -22px'});
					pass.focus();
					return false;
				}
			});
			
			//handle "search" submit click + validate
			$('#form_search input[type=image]').click(function(){
				var search = $('input[name=search]');
				if(search.val() == "") {
					alert('Please enter a valid search term.');
					search.parent().css({'background-position':'0 -22px'});
					search.focus();
					return false;
				}
			});
		//==== END: Header Form behaviors ====//
				
	})

