// JavaScript Document
$(document).ready(function(){
						   
	var index = $("#index");
	var apply = $("#apply");
	var example = $("#example");
	var product = $("#product");
	var message = $("#message");
	var contact = $("#contact");
	
	var imgPath = "images/";//存放图片文件的路径
	
	var array = [index,apply,example,product,message,contact];
	
index.hover(
		function(){
			if(index.attr("src") == imgPath + "index_01.png"){
				index.attr("src",imgPath + "index_02.png");
			}
		},
		function(){
			if(index.attr("class") == ""){
				index.attr("src",imgPath + "index_01.png");	
			}
		}
	);
	
	apply.hover(
		function(){
			if(apply.attr("src") == imgPath + "apply_01.png"){
				apply.attr("src",imgPath + "apply_02.png");
			}
		},
		function(){
			if(apply.attr("class") == ""){
				apply.attr("src",imgPath + "apply_01.png");
			}
		}
	);
	
	example.hover(
		function(){
			if(example.attr("src") == imgPath + "example_01.png"){
				example.attr("src",imgPath + "example_02.png");
			}
		},
		function(){
			if(example.attr("class") == ""){
				example.attr("src",imgPath + "example_01.png");
			}
		}
	);
	
	product.hover(
		function(){
			if(product.attr("src") == imgPath + "product_01.png"){
				product.attr("src",imgPath + "product_02.png");
			}
		},
		function(){
			if(product.attr("class") == ""){
				product.attr("src",imgPath + "product_01.png");
			}
		}
	);
	
	message.hover(
		function(){
			if(message.attr("src") == imgPath + "message_01.png"){
				message.attr("src",imgPath + "message_02.png");
			}
		},
		function(){
			if(message.attr("class") == ""){
				message.attr("src",imgPath + "message_01.png");	
			}
		}
	);
	
	contact.hover(
		function(){
			if(contact.attr("src") == imgPath + "contact_01.png"){
				contact.attr("src",imgPath + "contact_02.png");
			}
		},
		function(){
			if(contact.attr("class") == ""){
				contact.attr("src",imgPath + "contact_01.png");
			}
		}
	);


	
});