// INITIALIZE SCRIPTS AND EFFECTS ON PAGE
function Initialize(options){

			var speed = 200;
			// NAVI MENU ROLLOVER
			$('.innerItem:not(.selected)').css( {backgroundPosition: "0 7px", opacity: '0'} );
			$('.section:not(.selected)').css( {backgroundPosition: "0 7px"} );

			$('.section:not(.selected)')
				.mouseover(function(){
					$(this).stop().animate({backgroundPosition:"(0 2px)"}, speed)
					$(this).find('.innerItem').stop().animate({backgroundPosition:"(0 2px)", opacity: '1'}, speed)
					})
				.mouseout(function(){
					$(this).stop().animate({backgroundPosition:"(0 7px)"}, speed)
					$(this).find('.innerItem').stop().animate({backgroundPosition:"(0 7px)", opacity: '0'}, speed)
					});

			// LEFT NAVIGATION ROLLOVER
			$('.leftButtonFader').css({opacity: '0'});
			var orgColor = $('.leftMenuLink').css('color');
			var overColor = $('.highlightcolor').css('color');
			
			$('.leftButton')
				.mouseover(function(){
						if(!$(this).find('a').hasClass('leftMenuLinkSelected')){
							$(this).find('a.leftMenuLink').css({color: overColor});
							$(this).next().stop().animate({opacity: '0.8'});
						}
					})
				.mouseout(function(){
						if(!$(this).find('a').hasClass('leftMenuLinkSelected')){
							$(this).find('a.leftMenuLink').css({color : orgColor});
							$(this).next().stop().animate({opacity: '0'});
						}
					})
				.click(function(){
					window.location = $(this).find('.leftMenuLink').attr('href');
				});
			
			// LEFT NAVIGATION SUBTEXT ROLLOVER
			var subOrgColor = $('.leftSubMenuLink').css('color');
			$('.leftSubMenuLink')
				.mouseover(function(){$(this).css({color: overColor});})
				.mouseout(function(){$(this).css({color : subOrgColor});});

			// NEWS BUTTON
			$('#newsClose').css({opacity: '0'});
			$('#newsClose').click(function(){
					// Toggle news thingie
					if($('#news').css('width') == '40px'){
						$('#news').animate({width: '250px'}, 500);
						setTimeout("$('.newsItem').animate({width: 'toggle'}, 500);", 100);
					}else{
						$('.newsItem').animate({width: 'toggle'}, 500);
						setTimeout("$('#news').animate({width: '40px'}, 500);", 140);
					}
				});
			
			// autoclose
			if(options.autoOpen){
				setTimeout(function(){ $('#newsClose').trigger('click'); }, 1000);
				setTimeout(function(){ if($('#news').css('width') != '40px'){ $('#newsClose').trigger('click'); } }, 5000);
			}
		
			// FANCYBOX
			$('.image').fancybox().css({display: 'none'});
	
}

function showImage(ID){
	$('#image'+ID).trigger('click');
}