// JavaScript Document
function WWP()
{
	$(function(){
		$("#WWP .photo").each(function(index){
			$(this).click(function(){
				$("#WWP .photo > div:eq("+index+")").show();
			}); 
		}); 
	});	
}
function WWP2()
{
	$(function(){
		$("#WWP .photo > div").each(function(index){
			$(this).hover(function(){
				$(this).hide();
			}); 
		}); 
	});	
}

function header2(index_)
{
	$(function(){
		$("#header #nav2 > h5").each(function(index){
			$("#header #nav2 > h5:eq("+index_+")").attr("class","Background");
				$(this).hover(function(){
					if (index_!=index){ $(this).attr("class","Background");}	
					$("#header #nav2 > h5 > div:eq("+index+")").show();
				},
				function(){
					if (index_!=index){ $(this).attr("class","");}
					$("#header #nav2 > h5 > div:eq("+index+")").hide();
				});
		});
	});	
}
function beands()
{
	$(function(){
		$(".tdTR .tdLB").each(function(index){
				$(this).hover(function(){
					$(this).attr("id","tdLB_BJ");
					$(".tdTR .tdLB span:eq("+index+")").show();
					$(".tdTR .tdLB img:eq("+index+")").hide();
				},
				function(){
					$(this).attr("id","");
					$(".tdTR .tdLB span:eq("+index+")").hide();
					$(".tdTR .tdLB img:eq("+index+")").show();
				});
		});
	});	
}
function WebStretch(id)
{
	  var display_=$("#"+id).css("display");
	  if (display_=='none'){
		  $("#"+id).slideDown(300);
	  }else{
		  $("#"+id).slideUp(300);
	  }
}
function addtocarbtn(id)
{
	//alert(id)
	$("#"+id+" > .addtocarbtn").hide();
	$("#"+id+" > .addtocarbtn2").show();
}
WWP2();
