function deltextfromsubmit(inp){
	if (inp.title==inp.value)
		inp.value='';
}
function instexttosubmit(inp){
	if (inp.value=='')	
		inp.value=inp.title;
}
$(window).load(function(){
	$(".arrows").mouseover(function(){
		$(this).children("img").attr("src", "/images/arrow-active.gif");
		$(this).children("a").css({"text-decoration": "none", "color": "f00"});
	});
	$(".arrows").mouseout(function(){
		$(this).children("img").attr("src","/images/arrow.gif");
		$(this).children("a").css({"text-decoration": "underline", "color": "7d7d7d"});
	});
		
	if ($(".currentimage img").length){
		$("#navigation img").css({"opacity":"0"});
		$("#navigation").css({"margin-top":"-"+$(".currentimage img:first").height()+"px"});
		$("#navigation a").css({"width":$(".currentimage img:first").width()/2+"px", "height" : $(".currentimage img:first").height()+"px"});
		$("#navigation a:last").css({"margin-left":$(".currentimage img:first").width()/2+"px"});
		$("#navigation a img:last").css({"margin-left":($(".currentimage img:first").width()/2-151)+"px"});
	}
	$("#navigation a").mouseover(function(){
		$(this).children("img").css("opacity", "0.5");
	});		
	$("#navigation a").mouseout(function(){
		$(this).children("img").css("opacity", "0");
	});
	$(".mouseover").mouseover(function(){
		$(this).attr("src",$(this).attr("src").substr(0,$(this).attr("src").length-4)+"-over.jpg");
	});		
	$(".mouseover").mouseout(function(){
		$(this).attr("src",$(this).attr("src").substr(0,$(this).attr("src").length-9)+".jpg");
	});
	$(".showimage").mouseover(function(){
		$("#ShowOnHover-"+$(this).attr("id").substr(7,$(this).attr("id").length)).css("visibility","visible")
	});		
	$(".showimage").mouseout(function(){
		$("#ShowOnHover-"+$(this).attr("id").substr(7,$(this).attr("id").length)).css("visibility","hidden")
	});		
	
});
