var paopaokaifou=0;
jQuery(function($) {	
$(".l_s_a").click(function() {
	if (paopaokaifou==1){qipaos()}
if ($(this).attr("id")!="1"){
$(".l_x").css({ "display": "none" });
$(".l_s_a").attr("id","0")
$(".l_s_a").css({"background-image": "url(../images/xy/details_open.png)" });
$(this).css({"background-image": "url(../images/xy/details_close.png)" });
$(this).parent().nextUntil(".l_s").css({ "display": "block" });
$(this).attr("id","1")
}else{
	$(this).css({"background-image": "url(../images/xy/details_open.png)" });
$(this).parent().nextUntil(".l_s").css({ "display": "none" });
$(this).attr("id","0")
	}
	})
	if (getCookie("qipaos")!="1"){
$(".l_s_a").each(function(i){
	var x = $(this).offset().top; 
	var y = $(this).offset().left; 
	var hhtttmmmll="<div id='qipaos'  style='background-image: url(../images/duihuakuang.gif);background-repeat: no-repeat;width: 220px;padding-top: 10px;padding-right: 10px;padding-left: 10px;height: 50px;position: absolute;left: "+(x-50)+"px;top: "+(y-33)+"px;'>点击<img src='/html/images/xy/details_open.png'/>可以展开查看内容简介</div>";
	$("body").append(hhtttmmmll);
	paopaokaifou = 1;
	setTimeout(qipaos,5000);
   //alert(x+""+y);
   return false;
 });}
})
function qipaos(){
	$("#qipaos").fadeOut("slow");
	setCookie('qipaos','1',new Date('2110/10/10'),'/');
	paopaokaifou =0;
	}
function getCookie(check_name) {
var a_all_cookies = document.cookie.split( ';' );
var a_temp_cookie = '';
var cookie_name = '';
var cookie_value = '';
var b_cookie_found = false; 
for ( i = 0; i < a_all_cookies.length; i++ )
{
   a_temp_cookie = a_all_cookies[i].split( '=' );
   cookie_name = a_temp_cookie[0].replace(/^\s+|\s+$/g, '');
   if ( cookie_name == check_name )
   {
    b_cookie_found = true;
    if ( a_temp_cookie.length > 1 )
     cookie_value = unescape( a_temp_cookie[1].replace(/^\s+|\s+$/g, '') );
    return cookie_value;
   }
   a_temp_cookie = null;
   cookie_name = '';
}
if ( !b_cookie_found )
   return null;
}
function setCookie(sName, sValue, oExpires, sPath, sDomain, bSecure) {
try
{ 
   var sCookie = sName + "=" + encodeURIComponent(sValue);  
   if (oExpires)
    sCookie += "; expires=" + oExpires.toGMTString();    
   if (sPath)
    sCookie += "; path=" + sPath;   
   if (sDomain)
    sCookie += "; domain=" + sDomain;     
   if (bSecure) 
    sCookie += "; secure";     
   document.cookie = sCookie;
}
catch(e){}
}
