// JavaScript Document

$(document).ready(function(){
$(".room_vote .radio").click(function(){
    $(".room_vote .radio").removeClass("hp");
    $(this).addClass("hp").siblings("input").attr("checked","checked");
	});
	

if($("#age_check").attr("checked")) $("#captcha_box .radio").addClass("hp_age");

$("#captcha_box .radio").click(function(){
    $(this).toggleClass("hp_age");
	var el =  $("#age_check")
	if(el.attr("checked")) el.removeAttr("checked"); 
	else el.attr("checked","checked");
	});
$("a.out").click(function(){
	this.target = "_blank";
	});	
$('a[rel*=facebox]').facebox();

if ($.fn.ifixpng){
	$("#container h1").ifixpng();
	$(".room_vote").ifixpng();
	$(".room_winner_big").ifixpng();
	$(".room_winner_small").ifixpng();
	$(".judges_room").ifixpng();
	$(".judges_room a").ifixpng();
	$(".judges_item .top ").ifixpng();
	$(".judges_item .bottom").ifixpng();
	$(".content .box").ifixpng();
	$("#facebox .popup .body .content .image").ifixpng();
	$("#captcha_box").ifixpng();
	$("#tabs li#tab_finalists").ifixpng();
	$("#tabs li#tab_contest").ifixpng();
	$("#tabs li#tab_judges").ifixpng();
	$("#tabs li#tab_rules").ifixpng();
	$("#bullet li span").ifixpng();
}
});