$(document).ready(function(){
	$(".facebox").click(function(){
		$("#box").slideToggle("fast");
		$(this).toggleClass("animate"); return false;
	});
});


$(document).ready(function(){
	$(".facebox2").click(function(){
		$("div.loadhead").slideToggle("fast");
		$(this).toggleClass("animate"); return false;
	});
});

$(document).ready(function(){
	$(".csdown").live("click",function(){
		$("div.downbox").slideToggle("fast");
		$(this).toggleClass("animate"); return false;
	});	
	
	$(".csdown2").live("click",function(){
		$("div.downbox").slideToggle("fast");
		$(this).toggleClass("animate"); 
		
		if(document.getElementById("myPlayer")!=null){		
			document.getElementById("myPlayer").stop();
		}
		return false;		
	});	
});

$(document).ready(function(){
	$(".new").click(function(){
		$("div.news").slideToggle("fast");
		$(this).toggleClass("animate"); return false;
	});
});

$(document).ready(function(){
	$(".xq").click(function(){
		$("ul.xqx").slideToggle("fast");
		$(this).toggleClass("animate"); return false;
	});
});

(function($) {
    $.fn.decorateIframe = function(options) {
        if ($.browser.msie && $.browser.version < 7) {
            var opts = $.extend({}, $.fn.decorateIframe.defaults, options);
            $(this).each(function() {
                var $myThis = $(this);
                //´´½¨Ò»¸öIFRAME
                var divIframe = $("<iframe />");
                divIframe.attr("id", opts.iframeId);
                divIframe.css("position", "absolute");
                divIframe.css("display", "none");
                divIframe.css("display", "block");
                divIframe.css("z-index", opts.iframeZIndex);
                divIframe.css("border");
                divIframe.css("top", "0");
                divIframe.css("left", "0");
                if (opts.width == 0) {
                    divIframe.css("width", $myThis.width() + parseInt($myThis.css("padding")) * 2 + "px");
                }
                if (opts.height == 0) {
                    divIframe.css("height", $myThis.height() + parseInt($myThis.css("padding")) * 2 + "px");
                }
                divIframe.css("filter", "mask(color=#fff)");
                $myThis.append(divIframe);
            });
        }
    }
    $.fn.decorateIframe.defaults = {
        iframeId:"decorateIframe1",
        iframeZIndex:-1,
        width:0,
        height:0
    }
})(jQuery);