// Main
$("a").each(function(e){
	var obj = $(this);
	if(obj.attr("href") == '../video/' || obj.attr("href") == './video/'){
		obj.css("display", "none");
	}
});
/*
$(window).load(function(){
	bounceButton();
//	$(".special").effect('bounce', { direction:'down', times:3 }, 800);
});
function bounceButton(){
	$(".special").effect('bounce', { direction:'down', times:3 }, 800,function(){
		var t=setTimeout("bounceButton()",2000);
	});
}
*/
buttonGlow();
function buttonGlow(){
	$(".special").fadeTo(1000,0.5,function(){
		$(".special").fadeTo(1000,1,function(){
			buttonGlow();
		})
	});
}
$(".special").hover(function(){
	$(".special").fadeTo(0,1);
},function(){
	$(".special").fadeTo(0,0.5);
});
$("#ConsumersVoiceShow").corner("4px");
$("#ConsumersVoice").corner("4px");
$("#ConsumersVoiceShow").fadeTo(0,0.5);
$("#ConsumersVoiceShow").hover(function(){
	$(this).stop().fadeTo(400,1);
},function(){
	$(this).stop().fadeTo(400,0.5);
});
$("#ConsumersVoiceShow").click(function(e){
	e.preventDefault();
	$("#overlay").fadeTo(400,0.8);
//		$("#overlay").css("display","block");
	$("#ConsumersVoice").show(800);
	$(document).bind("keydown.es",function(event){
		if (event.keyCode == 27) {
			$("#ConsumersVoice").hide(800);
			$("#overlay").fadeTo(400,0,function(){
				$("#overlay").css("display","none");
			});
			$(document).unbind("keydown.es");
		}
	});
});
$("#ConsumersVoiceClose").html('<img src="../fancybox/fancy_close.png" alt="Close" width="30" height="30" />');
$("#ConsumersVoiceClose").click(function(e){
	e.preventDefault();
	$("#ConsumersVoice").hide(800);
	$("#overlay").fadeTo(400,0,function(){
		$("#overlay").css("display","none");
	});
	$(document).unbind("keydown.es");
});

