﻿
$(document).ready(function () {
    $("#menu>dd>dl>dd").hide();
    $("#menu>dd>dl>dd:eq(0)").show();
    $("#menu>dd>dl>dt:eq(6)>a").css({ "color": "#FF0000" });
    $("#menu>dd>dl>dt:eq(7)>a").css({ "color": "#FF0000" });
    $("#menu>dd>dl>dt:eq(8)>a").css({ "color": "#FF0000" });
    $.each($("#menu>dd>dl>dt"), function () {
        $(this).click(function () {
            $("#menu>dd>dl>dd ").not($(this).next()).slideUp();
            $(this).next().slideToggle(100);
        });
    });
    //冒泡div
    $("#maopao").css({ "z-index": "1000", "width": "211px", "height": "75px", 
        "background-image": "url(/images/maopao.gif)", "position": "relative", "left": "80px", "top": "-700px",
        "background-repeat": "no-repeat"
    });
	//结束冒泡
	var tempv=PromptDiv();
	$('body').append(tempv);
	$('#systemts').fadeIn(500);;
      //img 事件
   $('#systemts img').bind("click",function(){
											$('#systemts').fadeOut(500);
											});
var _width=$(document).width();
$('#samon_line').css({"width":_width+"px"});
 

});
var CloseDiv = function () {

     $("#maopao").fadeOut(500);
}
setTimeout('CloseDiv( )', 3000);
function PromptDiv(_content)
{
	var _content="昆山希盟自动化科技有限公司为满足客户快速选择产品，特开通产品电子阅读，请点击<br /><br />&nbsp; &nbsp;<a href=\"/book.html\" target=\"_blank\">希盟点胶机产品电子阅读</a><br /><br /><br />希盟点胶机全国热线：0512-50391969";
	var tempvaule="<div id=\"systemts\" style=\"position:absolute;right:0px;bottom:0px;z-index:9999;width:300px;height:195px;background-color:#F8F8FF;border:2px solid #0091E2;display:none\"><div style=\"margin:2px;background-color:#fff;width:296px;height:191px\"><div id=\"tit\" style=\"width:100%;height:30px;line-height:30px;background-color:#0082BE;color:#FFFFFF;font-weight:bold;font-size:13px;\"><div id=\"tit_name\" style=\"float:left;padding-left:10px;\">提示信息</div><div id=\"tit_img\" style=\"float:right;background-color:#66CCEE;padding:2px;margin-top:6px;margin-right:10px;_margin-right:5px;cursor:pointer;\"><img src=\"/images/ico_closetip.gif\" alt=\"关闭窗口\" /></div></div><div id=\"tit_content\" style=\"padding:20px 10px 10px 10px;height:75px;font-size:13px;\">"+_content+"</div></div></div>";
	return tempvaule;
}




