// JavaScript Document
//Search
$(function () {
    var s = "Enter Email";
    var a = "Please Enter product name...";
    var d = "Please Enter keywords"
    $("#home-search").val(s).click(function () {
        var ss = $(this).val(); if (ss == s) $(this).val("")
    })
    $("#industry-sear").val(a).click(function () {
        var aa = $(this).val(); if (aa == a) $(this).val("")
    })
    $("#vs-search").val(d).click(function () {
        var dd = $(this).val(); if (dd == d) $(this).val("")
    })

    $("input").each(function (index) {
        $(this).click(
				  function () {
				      $("#home-search").addClass("color01");
				  })
    })
})
//行业专区导航
//function setbar(n) {
//    var dom = document.getElementById("in-leftbar").getElementsByTagName("dd");
//    for (i = 0; i <= dom.length - 1; i++) {
//        dom[i].style.display = i == n ? "block" : "none";
//    }

//}
//$(function () {
//    $(".in-sidebar dt").each(function (index) {
//        $(this).click(
//	   	  function () {
//	   	      $(".in-sidebar dt.a1").removeClass("a2");
//	   	      $(this).addClass("a2");

//	   	  })
//    })
//})
//行业专区列表

//$(document).ready(function(){
$(function () {
    $("#pro-sit a.switch_thumb").live("toggle",function () {
        $(this).addClass("swap");
        $("#pro-list").fadeOut("fast", function () {
            $(this).fadeIn("fast").addClass("thumb_view");
        });
    }, function () {
        $(this).removeClass("swap");
        $("#pro-list").fadeOut("fast", function () {
            $(this).fadeIn("fast").removeClass("thumb_view");
        });
    });
});




//底部列表导航 橙色
$(function () {
    $("#listid li").each
(
    function (index) {
        if (index != 0 && index !== ($("#listid li").length - 1)) {
            $(this).click
           (
	   	      function () {

	   	          ///  alert(index);
	   	          $("#listid li.n1").removeClass("n1");
	   	          $("#listid li.n1").removeClass("n1");
	   	          $(this).addClass("n1");

	   	      }
	       )
        }
    }
)
    $("#list-bottom li").each
(
    function (index) {
        if (index != 0 && index !== ($("#list-bottom li").length - 1)) {
            $(this).click
           (
	   	      function () {

	   	          ///  alert(index);
	   	          $("#list-bottom li.n1").removeClass("n1");
	   	          $("#list-bottom li.n1").removeClass("n1");
	   	          $(this).addClass("n1");

	   	      }
	       )
        }
    }
)
})
//
$(function () {
    $("#in-titlelist li a").each(function (index) {
        $(this).click(
				  function () {
				      $("#in-titlelist li a.t1").removeClass("t1");
				      $(this).addClass("t1");
				  })
    })
    $("#pr-me a").each(function (index) {
        $(this).click(
				  function () {
				      $("#pr-me a.s1").removeClass("s1");
				      $(this).addClass("s1");
				  })
    })

    $("#pr-cc a").each(function (index) {
        $(this).click(
				  function () {
				      $("#pr-cc a.cc1").removeClass("cc1");
				      $(this).addClass("cc1");
				  })
    })
    //

})
function show() {
    $("#sea-div").toggle();
    $("#contact-div").toggle();
}
//
function doZoom(size) {
    document.getElementById('zoom').style.fontSize = size + 'px'
}
