		$(document).ready(function() {
			if ($.browser.msie) {
				$('#logoBottomContainer').css('left', '7px');
			}
			$('.menuItem:not(.currentPage)').live('mouseover', function()
			{
				$(this).prepend('<div style="background-image: url(\'gfx/menu_marker_raster_02.png\'); background-repeat: repeat-x; background-position: top; overflow: hidden; height: 20px; text-align: center; position: absolute; z-index: 200; top: 0; width: ' + parseInt($(this).width() + 28) + 'px; margin-left: -14px;"><img src="gfx/menu_marker_arrow_02.png" border="0" style="margin-top: 8px;" /></div>');
			});
			$('.menuItem:not(.currentPage)').live('mouseout', function()
			{
				$(this).children('div').remove();
			});
			$('.currentPage').prepend('<div style="background-image: url(\'gfx/menu_marker_raster.png\'); background-repeat: repeat-x; background-position: top; overflow: hidden; height: 20px; text-align: center; position: absolute; z-index: 200; top: 0; width: ' + parseInt($('.currentPage').width() + 28) + 'px; margin-left: -14px;"><img src="gfx/menu_marker_arrow.png" border="0" style="margin-top: 8px;" /></div>');
			$('input:submit').hover(function() { $(this).css('cursor', 'pointer'); }, function() { $(this).css('cursor', 'default'); });
			$('#slider').nivoSlider({
				controlNav: false,
				keyboardNav: false,
				directionNav: false,
				effect: 'fade',
				pauseTime: 5000
			});
			$('#newsletterEmail').focus(function() {
				if($(this).val() == $(this).attr('title'))
				{
					$(this).val('');	
				}
			});
			$('#newsletterEmail').blur(function() {
				if($(this).val() == '')
				{
					$(this).val($(this).attr('title'));	
				}
			});
			$('#newsletterForm').submit(function() {
				var masterError = false;
				var regExpPattern = /^\s*[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*(\.[a-zA-Z]{2,3})+$/;
				if(!regExpPattern.test($('#newsletterEmail').val()) || $('#newsletterEmail').val() == $('#newsletterEmail').attr('title'))
				{
					masterError = true;
				}
				if(!masterError)
				{
					$.ajaxSetup({
						'xhr': function(){ return window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); }
					});
					$.post('newsletter.php', { newsletterEmail: $('#newsletterEmail').val() }, function(data) {
						$('#newsletterEmail').val($('#newsletterEmail').attr('title'));
					});
				}
				return false;
			});
		});
