$(document).ready(function(){

$("#yahoo_image").click(function()
{
		var current_url = window.location.href;
		$.get(SITEROOT+"/ajax_set_current_url.php", {curl:current_url}, function(data){
	// window.location.href=SITEROOT+'/modules/openid/yahoo_account.php?openid_identifier='+$("#yahoo_openid_identifier").val();
	
	window.location.href=SITEROOT+'/modules/openid/yahoo_account.php?openid_identifier=http://yahoo.com';

});
});

$("#google_image").click(function()
{
	// Set URL in session
	var current_url = window.location.href;
	$.get(SITEROOT+"/ajax_set_current_url.php", {curl:current_url}, function(data){
			window.location.href=SITEROOT+'/modules/openid/google_account.php?openid_identifier=http://google.com';
	});
});

$("#yahoo_img_small").click(function()
{
		var current_url = window.location.href;
		$.get(SITEROOT+"/ajax_set_current_url.php", {curl:current_url}, function(data){
			window.location.href=SITEROOT+'/modules/openid/yahoo_account.php?openid_identifier=http://yahoo.com';
		});
});

$("#google_img_small").click(function()
{
	// Set URL in session
	var current_url = window.location.href;
	$.get(SITEROOT+"/ajax_set_current_url.php", {curl:current_url}, function(data){
			window.location.href=SITEROOT+'/modules/openid/google_account.php?openid_identifier=http://google.com';
	});
});

});