	(function ($) {
		if (!$) return;
		$.fn.extend({
			fixPNG: function(sizingMethod, forceBG) {
					if (!($.browser.msie)) return this;
					var emptyimg = "images/blank.gif"; //Path to empty 1x1px GIF goes here
					sizingMethod = sizingMethod || "scale"; //sizingMethod, defaults to scale (matches image dimensions)
					this.each(function() {
							var isImg = (forceBG) ? false : jQuery.nodeName(this, "img"),
									imgname = (isImg) ? this.src : this.currentStyle.backgroundImage,
									src = (isImg) ? imgname : imgname.substring(5,imgname.length-2);
							this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='" + sizingMethod + "')";
							if (isImg) this.src = emptyimg;
							else this.style.backgroundImage = "url(" + emptyimg + ")";
					});
					return this;
			}
		});
	})(jQuery);

	var len ;
	var cur;
	var t ;
	(function() {
		this.slider = function (){
			var next = (cur >= len -1 )?0 :cur+1 ; 
			$($('.home-tblock-content')[cur]).fadeOut('slow',function(){							
				$('.home-tblock-content').hide();
				cur = next;
				$($('.home-tblock-content')[next]).fadeIn('slow',function(){
					t = setTimeout('slider()', 3000);
				});	
			});	
			
		}
	})();	
	$(function(){
		var fx_width = $('.fixed-lg').width();
		$('.resize').click(function(){ 
			if( $('.fixed-lg').width() == $('body').width()) {
				$('.fixed-lg').css('width',fx_width+'px');
			}else{
				$('.fixed-lg').css('width','100%');
			}
		});
		len = $('.home-tblock-content').length;
		cur = 0;
		t = setTimeout('slider()', 3000);
		//$('.com-image').fixPNG();
		$('.logo ,.on-time').fixPNG();
	});
