$(document).ready(function(){
	$("a[rel=headlight]").lightBox({
		fixedNavigation:true,
		imageLoading:images.loading,
		imageBtnPrev:images.prev,
		imageBtnNext:images.next,
		imageBtnClose:images.close,
		imageBlank:images.blank
	});
	
	$("a[rel=footlight]").lightBox({
		fixedNavigation:true,
		imageLoading:images.loading,
		imageBtnPrev:images.prev,
		imageBtnNext:images.next,
		imageBtnClose:images.close,
		imageBlank:images.blank
	});
	
	$(".fade").cycle({
	    fx:     'fade', 
	    speed:  'slow', 
	    timeout: 7000
	});
	
	$(".headerup").cycle({
	    fx:     'fade', 
	    speed:  'slow', 
	    timeout: 3000
	});
	
	$(".headerdown").cycle({
	    fx:     'fade', 
	    speed:  'slow', 
	    timeout: 3000,
	    delay:	 1500
	});
	
	key = false;
	$("div.boxContent div.text div.foot ul li.news").mouseover(function(){
		$(this).css("background","#eeeeee");
	}).mouseout(function(){
		$(this).css("background","#cccccc");
	}).click(function(){
		$("div#tohide").hide();
		$("a[rel=news]").attr("rel","");
		$("div#new"+$(this).attr("id")).show();
		$("a.new"+$(this).attr("id")).attr("rel","news");
		//key = "a.new"+$(this).attr("id");
		$("a.new"+$(this).attr("id")).lightBox({
			fixedNavigation:true,
			imageLoading:images.loading,
			imageBtnPrev:images.prev,
			imageBtnNext:images.next,
			imageBtnClose:images.close,
			imageBlank:images.blank
		});
	});
	
	$("a.closeNews").click(function(){
		$("div#tohide").show();	
		$(this).parent().hide();		
	});
	
	/*$("div.imagecontainer img").click(function(){
		$("img.prev").attr("src",$(this).attr("title"));	
	});*/
});

