function runSupportForm() {
	$.get('/wp-content/themes/twentyten/ajax/contact.php',$("#suppport_form").serialize(),function(data){
		if(data=="1") {
			$("#support_form_container").html("Thanks!<br />A staff member will review your message and get back to you as soon as possible<br /><br />Regards,<br />The 24Poker.com team<br />");	
		} else {
			alert(data);
			return false;		
		}
	});
	return false;
}


$(document).ready(function(){
	$(".teaser_image").hover(
	function(){
		var img_name = $(this).attr("src");
		
		small_img_name = img_name.replace('.png','_hover.png');
		big_img_name = img_name.replace('button','banner');
		$(this).attr("src",small_img_name);
		$("#main_banner_img_element").attr("src",big_img_name);
		var fff = $(this).attr("id")+"_link";
		var new_link = $("#"+fff).val();
		$("#main_image_link").attr("href",new_link);
	},
	function(){
		var img_name = $(this).attr("src");
		small_img_name = img_name.replace('_hover.png','.png');
		$(this).attr("src",small_img_name);
	});
	// read the incoming link and create a cookie
	// name of parameter that hold aff id

});
