// JavaScript Document

$(document).ready(function(){
	//$('body').pngFix();
	$(".baserk0a ul li a img").hover(function(){
		$(this).animate({opacity: "0"}, "slow");
	},function(){
		$(this).animate({opacity: "1"}, "slow");
	});
	$(".baserk0b a img").hover(function(){
		$(this).animate({opacity: "0"}, "slow");
	},function(){
		$(this).animate({opacity: "1"}, "slow");
	});
	$(".baserk0d3a img").hover(function(){
		$(this).animate({opacity: "0"}, "slow");
	},function(){
		$(this).animate({opacity: "1"}, "slow");
	});
	$(".baserk2a2b img").hover(function(){
		$(this).animate({opacity: "0"}, "slow");
	},function(){
		$(this).animate({opacity: "1"}, "slow");
	});
	/*$('.baserk0d3c').flash({ 
		src: 'baserk.swf',
		width: 35,
		height: 45,
		wmode: 'transparent'
	},
	{
		version: 8
	});*/
	/*$('.baserk0aMp3').flash({ 
		src: 'mp3Player.swf',
		width: 322,
		height: 70,
		wmode: 'transparent'
	},
	{
		version: 8
	});*/
	$('.baserk1a22a').flash({ 
		src: 'baserk_img/baserk016.swf',
		width: 314,
		height: 290,
		wmode: 'window'
	},
	{
		version: 8
	});
	$('.baserk1a11a2').flash({ 
		//src: 'baserk_vod/a_285x181.swf',
		//src: 'baserk_vod/vod.swf',
		src: 'http://player.youku.com/player.php/sid/XMzM3MDQ1MDQw/v.swf',
		//src: 'http://union.bokecc.com/flash/player.swf?vid=5923859&siteid=192366&autoStart=true',
		width: 478,
		//height: 290,
		height: 330,
		wmode: 'window'
	},
	{
		version: 8
	});
	$(".baserk0d3a").click(function() 
		{
			$("html,body").animate({scrollTop: $(".baserk0a").offset().top}, 1200);
		}
	);
    $(".baserk1a21a").smarquee({
        isEqual: false,
        distance: 313,
        time: 3,
        direction: 'left'
    });
    $(".baserk1a31a").smarquee({
        isEqual: false,
        distance: 24,
        time: 2,
        direction: 'up'
    });
    $(".baserk1a32a").smarquee({
        isEqual: false,
        distance: 314,
        time: 4,
        direction: 'left'
    });
    $(".baserk2a2a").smarquee({
        isEqual: false,
        distance: 304,
        time: 2,
        direction: 'left'
    });
    $(".baserk1a11a1").smarquee({
        isEqual: false,
        distance: 72,
        time: 2,
        direction: 'up'
    });
	$(".baserk1a22a").click(function(){window.open($(this).parent(".baserk1a22").children("h2").children("a").attr('href'), "_blank")});
	/*$(".baserk1a21a").click(function(){window.open($(this).children("ul").children("li").children("h3").children("a").attr('href'), "_blank")});*/
	$(".baserk1a21a ul li textarea").click(function(){window.open($(this).parent().children("h3").children("a").attr('href'), "_blank")});
	$(".baserk2a1aClass01 ul li textarea").click(function(){window.open($(this).parent().children("h3").children("a").attr('href'), "_blank")});
	$(".baserk0c1").click(function(){window.open($(this).children("a").attr('href'), "_blank")});
	$(".baserk1a11a1 ul li").click(function(){
		var flv_string=$(this).attr("id");
		//alert($(".baserk1a11a2").html());
		//$(this).parent().parent().parent().children(".baserk1a11a2").flash({
		$('.baserk1a11a2').empty();
		$('.baserk1a11a2').flash({ 
			//src: 'baserk_vod/a_285x181.swf',
			src: 'http://player.youku.com/player.php/sid/'+flv_string+'/v.swf',
			//src: 'http://union.bokecc.com/flash/player.swf?vid=5923859&siteid=192366&autoStart=true',
			width: 478,
			height: 330,
			wmode: 'window'
		},
		{
			version: 8
		});
	});
	$(".baserk2a2d").hover(function(){
		$(this).children(".baserk2a2d1").css({"background":"#0FA1B8","color":"#fff"});
		$(this).children(".baserk2a2d2").css({"color":"#0FA1B8"});
	},function(){
		$(this).children(".baserk2a2d1").css({"background":"#eee","color":"#888"});
		$(this).children(".baserk2a2d2").css({"color":"#7F7F7F"});
	});
	$(".baserk1a21a ul li").hover(function(){
		$(this).animate({opacity: "0.8"}, "fast");
		$(this).children("h3").children("a").css({"color":"#FE6309"});
	},function(){
		$(this).animate({opacity: "1"}, "slow");
		$(this).children("h3").children("a").css({"color":"#333"});
	});
	$(".baserk2a1aClass01 ul li").hover(function(){
		$(this).animate({opacity: "0.7"}, "fast");
		$(this).children("h3").children("a").css({"color":"#FE6309"});
	},function(){
		$(this).animate({opacity: "1"}, "slow");
		$(this).children("h3").children("a").css({"color":"#333"});
	});
	$("h5 img").hover(function(){
		$(this).animate({opacity: "0.7"}, "fast");
	},function(){
		$(this).animate({opacity: "1"}, "slow");
	});
	$(".baserk1a12a img").hover(function(){
		$(this).animate({opacity: "0.7"}, "fast");
	},function(){
		$(this).animate({opacity: "1"}, "slow");
	});
	$(".baserk1a32a ul li img").hover(function(){
		$(this).animate({opacity: "0.7"}, "fast");
	},function(){
		$(this).animate({opacity: "1"}, "slow");
	});
	$(".baserk2a2a ul li img").hover(function(){
		$(this).animate({opacity: "0.7"}, "fast");
	},function(){
		$(this).animate({opacity: "1"}, "slow");
	});
	$("#baserk2a2c2id").hover(function() {
		if (this.value=="论坛登录名") {this.value="";}
	},function() {
		if (this.value=="") {this.value="论坛登录名";}
	});
	$("#baserk2a2c2psw").hover(function() {
		if (this.value=="********") {this.value="";}
	},function() {
		if (this.value=="") {this.value="********";}
	});
});

