// JavaScript Document
$(document).ready(function (){
$('a,img').bind("focus",function (){
 if(this.blur){this.blur();}
});
$(".content a img").parent().addClass('pic').attr("title","点击放大");
$(".content a img,.photo img,.wallpaper a img").parent().click(function (){
	var img='<img src="'+$(this).attr('href')+'" title="点击关闭" class="blockIMG"/>';
	$.blockUI({message:img, 
		css: { 
        top:  '30px', 
        left: '0px',
		height: '100%',
        width: '100%',
		"text-align": "center",
		border:'none',
		cursor:'pointer',
		backgroundColor:''
        } 
	});
	lighbox();
   $('.blockUI').click($.unblockUI);    
   return false;
});
$('.redirect a').click(function () {
  $(this).attr("target","_blank");
  return confirm('你将前往以下地址: ' + this.href);
});

 $("#slide-btn li").hover(function (){var x=$(this).attr('id').slice(2);$("#slide-box .slide-item").css("display","none");$("#"+x).fadeIn(500)},function (){});

});
function clrjs(html){
  return html.match(/<AJAX>([\w\W]*)<\/AJAX>/)[1]; 
}