// JavaScript Document

			
jQuery.noConflict();
jQuery(document).ready(function($){	
	jQuery("#nav_duwei").mouseover(function($){
					//	var left=jQuery(this).position().left;
						//var top=jQuery(this).position().top;
						//var topall=jQuery(this).offset().top;
						// jQuery("#show_duwei").remove;	
					//	jQuery("#show_duwei").css('margin-left',left);
						jQuery("#show_duwei").css('width',115);
						jQuery("#show_duwei").css('overflow','hidden');
						jQuery("#show_duwei").css('background-image','none');
						jQuery("#show_duwei").show();	
						//jQuery.ajax({
						//	//		type:'POST',
							//		url:'nav_get.php?action=get',
							/*	data:"nav=about",
									success:function(msg){
								jQuery("#show_duwei").html(msg);		
										}
									})*/
				
						//alert(jQuery("#nav_duwei").position().left);
								   }).mouseout(function($){
										 jQuery("#show_duwei").hide();	
									})
										
							
    jQuery("#nav_news").mouseover(function($){	   
						var left=jQuery(this).position().left;
						 // jQuery("#show_news").remove;	
						//jQuery("#show_news").css('margin-left',left);
						jQuery("#show_news").css('width',210);
						jQuery("#show_news").show();	   
					/*	jQuery.ajax({
									type:'POST',
									url:'nav_get.php?action=get',
									data:"nav=news",
									success:function(msg){
								jQuery("#show_news").html(msg);		
										}
									})		*/		
								   }).mouseout(function($){   
					jQuery("#show_news").hide();	
									   });	


jQuery("#nav_production").mouseover(function($){
						var left=jQuery(this).position().left;
						  //jQuery("#show_products").remove;	
					//	jQuery("#show_products").css('margin-left',left);
						jQuery("#show_products").css('width',280);
						jQuery("#show_products").show();	
						/*	jQuery.ajax({
									type:'POST',
									url:'nav_get.php?action=get',
									data:"nav=products",
									success:function(msg){
								jQuery("#show_products").html(msg);		
										}
									})*/
								   }).mouseout(function($){   
						jQuery("#show_products").hide();	
									   });	

jQuery("#nav_cooperation").mouseover(function($){
						var left=jQuery(this).position().left
						var es=left-104;
						//  jQuery("#show_cooperation").remove;	
					jQuery("#show_cooperation").css('margin-left',-180);
						jQuery("#show_cooperation").css('width',280);
						jQuery("#show_cooperation").show();		
						/*	jQuery.ajax({
									type:'POST',
									url:'nav_get.php?action=get',
									data:"nav=customer",
									success:function(msg){
								jQuery("#show_cooperation").html(msg);		
										}
									})*/
								   }).mouseout(function($){   
						jQuery("#show_cooperation").hide();	
									   });	
jQuery("#nav_partner").mouseover(function($){
						var left=jQuery(this).position().left
						var es=left-(215-101);
						//jQuery("#show_nav").remove;	
						//jQuery("#show_nav").hide();
						//jQuery("#show_nav").css('margin-left',es);
						//jQuery("#show_nav").show();			   
								   }).mouseout(function($){   
						
									   });	


			//	jQuery(document).mousemove(function(e) {
//var top=jQuery('#header').offset().top
 // if(e.clientY>130||e.clientY<top){
	//  jQuery("#show_nav").hide();	
	//  }
//});

								});


function AddFavorite(sURL, sTitle) {
     try {
         window.external.addFavorite(sURL, sTitle);
     } catch (e) {
         try {
             window.sidebar.addPanel(sTitle, sURL, "");
         } catch (e) {
             alert("加入收藏失败,请手动添加.");
         }
     }
}
<!-- 加入收藏代码 End -->
<!-- 设为首页代码 Start -->
function setHomepage(pageURL) {
     if (document.all) {
         document.body.style.behavior='url(#default#homepage)';
         document.body.setHomePage(pageURL);
     }
     else if (window.sidebar) {
         if(window.netscape) {
             try {
                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
             }
             catch (e) {
                 alert( "该操作被浏览器拒绝，如果想启用该功能，请在地址栏内输入 about:config,然后将项signed.applets.codebase_principal_support 值该为true" );
             }
         }
         var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch);
         prefs.setCharPref('browser.startup.homepage',pageURL);
     }
}
<!-- 设为首页代码 End -->

