$(document).ready(function(){

	var serverPath = "http://www.osait.com/theme/default/";
						   
	/*nav hover*/
	$(".son_nav").hide();
	$(".gra_son_nav").hide();
	$(".father_nav > li").hover(
		function(){/*father on*/
			$(this).children(".son_nav").show();
			$(this).children("a").addClass("nav_on_bg");
			
			$(".son_nav > ul > li").hover(
				function(){/*son on*/
					$(this).children(".gra_son_nav").show();		
				},
				function(){/*son out*/
					$(this).children(".gra_son_nav").hide();
				}
			)
		},
		function(){/*father out*/
			$(this).children(".son_nav").hide();
			$(this).children("a").removeClass("nav_on_bg");
		}							
	);
	

	
	$("#nav").find("a").hover(
		function(){
			$(this).addClass("son_nav_bg_on");
		},
		function(){
			$(this).removeClass("son_nav_bg_on");
		}
	);	
	



	/*center_nav hover*/
	$("#c_nav_1").hover(
		function(){
			$(this).attr("src",serverPath+"images/web_on.gif"); 	
		},
		function(){
			$(this).attr("src",serverPath+"images/web_off.gif");
		}						
	);
	$("#c_nav_2").hover(
		function(){
			$(this).attr("src",serverPath+"images/ui_on.gif"); 	
		},
		function(){
			$(this).attr("src",serverPath+"images/ui_off.gif");
		}						
	);
	$("#c_nav_3").hover(
		function(){
			$(this).attr("src",serverPath+"images/seo_on.gif"); 	
		},
		function(){
			$(this).attr("src",serverPath+"images/seo_off.gif");
		}						
	);
	$("#c_nav_4").hover(
		function(){
			$(this).attr("src",serverPath+"images/qa_on.gif"); 	
		},
		function(){
			$(this).attr("src",serverPath+"images/qa_off.gif");
		}						
	);	
	
	/*no_index center_nav hover*/
	$("#cn_nav_1").hover(
		function(){
			$(this).attr("src",serverPath+"images/web_n_on.gif"); 	
		},
		function(){
			$(this).attr("src",serverPath+"images/web_n.gif");
		}						
	);
	$("#cn_nav_2").hover(
		function(){
			$(this).attr("src",serverPath+"images/ui_n_on.gif"); 	
		},
		function(){
			$(this).attr("src",serverPath+"images/ui_n.gif");
		}						
	);
	$("#cn_nav_3").hover(
		function(){
			$(this).attr("src",serverPath+"images/seo_n_on.gif"); 	
		},
		function(){
			$(this).attr("src",serverPath+"images/seo_n.gif");
		}						
	);
	$("#cn_nav_4").hover(
		function(){
			$(this).attr("src",serverPath+"images/qa_n_on.gif"); 	
		},
		function(){
			$(this).attr("src",serverPath+"images/qa_n.gif");
		}						
	);	
	
	/*index down_tab*/
	$("#tab_1").mouseover(
		function(){
			$("#in_tab_1").show(1,
				function(){
					$("#tab_1").attr("class","h_choose");
					$("#tab_2").attr("class","h_no_choose");
					$("#tab_1 > h1").attr("class","h1");
					$("#tab_2 > h1").attr("class","h1_no_chosse");
				}
			);
			$("#in_tab_2").hide();
		}
	);
	$("#tab_2").mouseover(
		function(){
			$("#in_tab_2").show(1,
				function(){
					$("#tab_2").attr("class","h_choose");
					$("#tab_1").attr("class","h_no_choose");
					$("#tab_2 > h1").attr("class","h1");
					$("#tab_1 > h1").attr("class","h1_no_chosse");
				}
			);
			$("#in_tab_1").hide();
		}
	);
	

		
})


