$(function(){
		   //display current copyright year date for <span id='#cpyrt'></span> found in CS/ST Main Template(s)
		   var date = new Date(); 
		   var mm = date.getMonth();
		   var dd = date.getDate();
		   var yy = date.getYear();
		   var year = (yy < 1000) ? yy + 1900 : yy;
		   var months = new Array('January','February','March', 'April','May','June','July','August','September', 'October','November','December');
		   var this_month = months[mm];
		   var str_full_date = this_month + " " + dd + ", " + year;		   
		   $('#cpyrt').text(year);
		   $('.today_date').text(str_full_date);
		   });

$(function(){
		  //About Us > Locations Toggling Display of Maps & Directions
		  //ST & CS
		   $('#toggleUKMapButton').click(function(){
										  $('#EuropeInfo').toggle(); 
										  $('#EuropeMap').toggle();
										  });
		   //ST & CS
		  $('#toggleUSMapButton').click(function(){
										  $('#NorthAmericaInfo').toggle(); 
										  $('#NorthAmericaMap').toggle();
										  });
		   //ST 
		   $('#Asia0').click(function(){
								$('#EuropeInfo').hide(); 
								$('#EuropeMap').hide(); 
								$('#NorthAmericaInfo').hide(); 
								$('#NorthAmericaMap').hide();
								});
		   //CS 
		   $('#Asia2').click(function(){
								$('#EuropeInfo').hide(); 
								$('#EuropeMap').hide(); 
								$('#NorthAmericaInfo').hide(); 
								$('#NorthAmericaMap').hide();
								});
		   //ST & CS
		   $('#Europe1').click(function(){
								  $('#EuropeInfo').hide(); 
								  $('#EuropeMap').hide(); 
								  $('#NorthAmericaInfo').hide(); 
								  $('#NorthAmericaMap').hide();
								  });
		    //ST 
		   $('#NorthAmerica2').click(function(){
									   $('#EuropeInfo').hide(); 
									   $('#EuropeMap').hide(); 
									   $('#NorthAmericaInfo').hide(); 
									   $('#NorthAmericaMap').hide();
									   });
		   //CS
		   $('#NorthAmerica0').click(function(){
									   $('#EuropeInfo').hide(); 
									   $('#EuropeMap').hide(); 
									   $('#NorthAmericaInfo').hide(); 
									   $('#NorthAmericaMap').hide();
									   });
		   //ST
		   $('#SouthAmerica3').click(function(){
									   $('#EuropeInfo').hide();
									   $('#EuropeMap').hide(); 
									   $('#NorthAmericaInfo').hide(); 
									   $('#NorthAmericaMap').hide();
									   });
		   //ST
		   $('#OtherOffices4').click(function(){
									   $('#EuropeInfo').hide(); 
									   $('#EuropeMap').hide(); 
									   $('#NorthAmericaInfo').hide(); 
									   $('#NorthAmericaMap').hide();
									   });
		   //CS
		   $('#OtherOffices3').click(function(){
									   $('#EuropeInfo').hide(); 
									   $('#EuropeMap').hide(); 
									   $('#NorthAmericaInfo').hide(); 
									   $('#NorthAmericaMap').hide();
									   });
	   
		   });

//REMOVE DOTTED LINE FROM LAST CHILD ON LISTING PAGES
$(function(){
		 //CS HOME > Product Display Section 1
		 $('#automach .teaseDiv:last-child').css({borderBottom:"0px"})
		 //CS HOME > Product Display Section 2
		 $('#manmach .teaseDiv:last-child').css({borderBottom:"0px"})
		 });
//RIGHT NAV ROTATING IMAGE
$(document).ready(function() {
    $('.slideshow').before('<div id="nav">').cycle({
		fx: 'fade',  pager: '#nav', 
		after:	function() {$('#caption').html(this.alt);}

	});
    $('#pauseButton').click(function() { $('.slideshow').cycle('pause');});
    $('#resumeButton').click(function() { $('.slideshow').cycle('resume', true); });
});

//IF RIGHT NAV ROTATING IMAGE HAS TEXT IN IT.
$(document).ready(function(){
					  if($('.slideshow:contains("<br/>")')){
						  $('#rotImg').hide(); 
					  }});



//Split Spanish Lang Btm Nav into two lines because it is too wide.
$(document).ready(function(){
		$("#esLangBtmNav ul li:nth-child(3)").append("</ul><ul class='CMSListMenuUL'>"); 
});

$(document).ready(function(){
			$(".BlogPDateWhole b:contains('Enercon Web Administrator')").html("Ryan Schuelke");						});


$(document).ready(function(){
			$(document).ready(function(){
			$(".registerBtn").hover(function(){$(this).children(".time").css("textDecoration","underline");}, function(){$(this).children(".time").css("textDecoration","none");});
});
});





