$(document).ready(function(){
	$.ifixpng('i/blank.gif');
	$('.iePNG').ifixpng();
	$("#voting").click(function(){
		$(".voting").each(function(){
			if($(this).is(":checked"))
			{
				$.get("poll/vote/"+$(this).val());
				$("#vote_block").text(lang.thanks_for_voting);
			}
		});
	});
	
	$("#doregister").click(function(){
		if($("input#acception").is(":checked"))
		{
			return true;
		}
		else
		{
			alert(lang.should_accept_agreement);
			return false;
		}

	});
	setTimeout("chat_users()",500);	
});
$(document).ready(function() {
	$('#main_desk').toggle(function() {
		$('#main_desk_menu').show('fast');
	}, function() {
		$('#main_desk_menu').hide('fast');
	});

	$('.open_chat').click(function(){
		if (username)
		var url = 'http://chat.money4intellect.com/flashchat.php?username=' + username ;
		else
		var url = 'http://chat.money4intellect.com/flashchat.php' ;

		$(this).attr("href",url);
	});

});

function chat_users()
{
	$.get(base_url+"/n.php",function(data){
		$(".chat_users").text(data);
	});
}
$(document).ready(function()
{
/*	
	function rf(){ return false }
	if(document.layers || (window.captureEvents && !(document.all))){
		document.captureEvents(Event.MOUSEDOWN);
		document.onmousedown=rf;
		self.blur()      
	}
	else if (window.captureEvents){
//		document.write("<input type='text' style='visibility:hidden;position:absolute;z-index:0' id='ht' onblur='this.focus()'>");
		document.getElementById('ht').focus(); 
	}
	else if(document.all){
	document.onselectstart=rf;
	document.oncontextmenu=rf;
	}
*/
});