/*
Author: mg12
Feature: MenuList
Update: 2009/12/13
Tutorial URL: http://www.neoease.com/wordpress-menubar-6/
*/

var mouseover_tid = [];
var mouseout_tid = [];

jQuery(document).ready(function(){
	jQuery('#menus > li').each(function(index){
		jQuery(this).hover(

			function(){
				var _self = this;
				clearTimeout(mouseout_tid[index]);
				mouseover_tid[index] = setTimeout(function() {
					jQuery(_self).find('ul:eq(0)').slideDown(50);
					jQuery(_self).find('a:eq(0)').addClass("hover");
				}, 400);
			},

			function(){
				var _self = this;
				clearTimeout(mouseover_tid[index]);
				mouseout_tid[index] = setTimeout(function() {
					jQuery(_self).find('ul:eq(0)').slideUp(50);
					jQuery(_self).find('a:eq(0)').removeClass("hover");
				}, 400);
			}

		);
	});
	
	
	
	//link
		$(".nav_p").css({cursor:"pointer"})
		$(".nav_p:eq(0)").attr("href","/products1.asp?anclassid=9");
		$(".nav_p:eq(1)").attr("href","/products1.asp?anclassid=24");
		$(".nav_p:eq(2)").attr("href","/products1.asp?anclassid=25");
		$(".nav_p:eq(3)").attr("href","/products1.asp?anclassid=29");
		$(".nav_p:eq(4)").attr("href","/products1.asp?anclassid=30");
		$(".nav_p:eq(5)").attr("href","/products1.asp?anclassid=28");
		$(".nav_p:eq(6)").attr("href","/products1.asp?anclassid=31");
		$(".nav_p:eq(7)").attr("href","/products1.asp?anclassid=32");
		$(".nav_p:eq(8)").attr("href","/products1.asp?anclassid=33");
		$(".nav_p:eq(9)").attr("href","/products1.asp?anclassid=34");
		$(".nav_p:eq(10)").attr("href","/products1.asp?anclassid=35");
		$(".nav_p").click(function(){
											 window.open($(this).attr("href"));
											 })
});

