
	$(function(){
			$("a").focus(function(){
				$(this).blur();
			});
	});
	$(function() {
		$('#SLIDE').cycle({
			fx:     'scrollDown',
			speed:    300,
			timeout: 5000,
			pager:  '#SLIDE_NAV',
			slideExpr: 'img'
		});
		
	});

	$(function(){
		var showTab = 0;
		$("ul.TAB_SHORT li a").eq(showTab).addClass("THISTAB");
		$("div.TAB_CONTENT_SHORT").hide().eq(showTab).show();	
		$("ul.TAB_SHORT li a").click(function(){
			var $this=$(this);
            var clickTab = $this.attr("rel");
                
			if (clickTab != $this) {
				$this.addClass("THISTAB").parents().siblings().find("a").removeClass("THISTAB");
				$("#"+clickTab).stop(false).show().siblings().hide();
			} 	
			return false;
		}).focus(function(){
			$(this).blur();
		});		
		
	});
	
	$(function(){
		var showTab = 0;
		$("ul.TAB_LONG li a").eq(showTab).addClass("THISTHIS");
		$("div.TAB_CONTENT").hide().eq(showTab).show();
		
	/* Edited by Tony Wei 2011/6/9
		$("ul.TAB_LONG li a").click(function(){
			var $this=$(this);
            var clickTab = $this.attr("rel");
                
			if (clickTab != $this) {
				$this.addClass("THISTHIS").parents().siblings().find("a").removeClass("THISTHIS");
				$("#"+clickTab).stop(false).show().siblings().hide();
			} 

			return false;
		}).focus(function(){
			$(this).blur();
		});
	*/
	});
	
/*fancybox³]©w*/
$(function(){
			
			$(".STREET").fancybox({
				'width'				: 700,
				'height'			    : 430,
				'autoScale'			: false,
			    'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			$(".MAP").fancybox({
				'width'				: 700,
				'height'			    : 430,
				'autoScale'			: false,
		     	'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			
			
			$(".PLAYER").fancybox({
				'width'				: 525,
				'height'			    : 525,
				'autoScale'			: false,
		     	'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			
			$(".SHARE_IMG").fancybox({
				'width'				: 560,
				'height'			    : 476,
				'autoScale'			: false,
		     	'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			
			$(".SHARE_LINK").fancybox({
				'width'				: 560,
				'height'			    : 400,
				'autoScale'			: false,
		     	'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			
			$(".SHARE_VIDEO").fancybox({
				'width'				: 560,
				'height'			    : 496,
				'autoScale'			: false,
		     	'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});

			$(".POST").fancybox({
				'width'				: 560,
				'height'			    : 280,
				'autoScale'			: false,
		     	'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			$(".REPLY").fancybox({
				'width'				: 560,
				'height'			    : 250,
				'autoScale'			: false,
		     	'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			$(".LOGIN").fancybox({
				'width'				: 570,
				'height'			    : 165,
				'autoScale'			: false,
		     	'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			
});

	
