// Sign In Blind Toggle

jQuery.fn.blindToggle = function(speed, easing, callback) {
	var h = this.height() + parseInt(this.css('paddingTop')) + parseInt(this.css('paddingBottom'));
	return this.animate({opacity: 'toggle', marginTop: parseInt(this.css('marginTop')) < 0 ? 0 : -h}, speed, easing, callback); 
};

//$(document).ready(function(){var $box=$('#map_box_inner').wrap('<div id="map_box_outer"></div>');$(document).ready(function(){$box.blindToggle(0);})});

//$(document).ready(function(){var $box=$('#map_box_inner').wrap('<div id="map_box_outer"></div>');$('#map_blind_toggle').click(function(){$box.blindToggle(1000);});});



$(document).ready(function() {
	var $box = $('#map_box_inner')
	.wrap('<div id="map_box_outer"></div>');

	$('#map_blind_toggle').click(function() {
		$box.blindToggle(1000); 
	});   
});




// Africa Tooltip

$(document).ready(function() { $("#m_map_africa").tooltip({ relative: true, lazy: false, effect: 'slide', slideOutSpeed: 0, offset: [280, 10]});});


function africa_map_info(){
$(".africa_tooltip").appendTo("#map_container");
$("#map_africa").attr("src", "http://www.wonderfulalmonds.com/map/images/map_africa_green.png");


$("#map_asia").attr("src", "http://www.wonderfulalmonds.com/map/images/map_just_asia_white.png");
$("#map_austrialia").attr("src", "http://www.wonderfulalmonds.com/map/images/map_austrialia_white.png");
$("#map_europe").attr("src", "http://www.wonderfulalmonds.com/map/images/map_euro_russia_white.png");
$("#map_north_america").attr("src", "http://www.wonderfulalmonds.com/map/images/map_north_america_white.png");
$("#map_south_america").attr("src", "http://www.wonderfulalmonds.com/map/images/map_south_america_white.png");
$("#map_middle_east").attr("src", "http://www.wonderfulalmonds.com/map/images/map_mid_east_white.png");

};




// Asia Tooltip

$(document).ready(function() { $("#m_map_asia").tooltip({ relative: true, lazy: false, effect: 'slide', slideOutSpeed: 0, offset: [280, 10]});});


function asia_map_info(){
$(".asia_tooltip").appendTo("#map_container");
$("#map_asia").attr("src", "http://www.wonderfulalmonds.com/map/images/map_just_asia_green.png");


$("#map_africa").attr("src", "http://www.wonderfulalmonds.com/map/images/map_africa_white.png");
$("#map_austrialia").attr("src", "http://www.wonderfulalmonds.com/map/images/map_austrialia_white.png");
$("#map_europe").attr("src", "http://www.wonderfulalmonds.com/map/images/map_euro_russia_white.png");
$("#map_north_america").attr("src", "http://www.wonderfulalmonds.com/map/images/map_north_america_white.png");
$("#map_south_america").attr("src", "http://www.wonderfulalmonds.com/map/images/map_south_america_white.png");
$("#map_middle_east").attr("src", "http://www.wonderfulalmonds.com/map/images/map_mid_east_white.png");

};




// Austrialia Tooltip

$(document).ready(function() { $("#m_map_austrialia").tooltip({ relative: true, lazy: false, effect: 'slide', slideOutSpeed: 0, offset: [280, 10]});});


function austrialia_map_info(){
$(".austrialia_tooltip").appendTo("#map_container");
$("#map_austrialia").attr("src", "http://www.wonderfulalmonds.com/map/images/map_austrialia_green.png");


$("#map_africa").attr("src", "http://www.wonderfulalmonds.com/map/images/map_africa_white.png");
$("#map_asia").attr("src", "http://www.wonderfulalmonds.com/map/images/map_just_asia_white.png");
$("#map_europe").attr("src", "http://www.wonderfulalmonds.com/map/images/map_euro_russia_white.png");
$("#map_north_america").attr("src", "http://www.wonderfulalmonds.com/map/images/map_north_america_white.png");
$("#map_south_america").attr("src", "http://www.wonderfulalmonds.com/map/images/map_south_america_white.png");
$("#map_middle_east").attr("src", "http://www.wonderfulalmonds.com/map/images/map_mid_east_white.png");

};




// Europe Tooltip

$(document).ready(function() { $("#m_map_europe").tooltip({ relative: true, lazy: false, effect: 'slide', slideOutSpeed: 0, offset: [280, 10]});});


function europe_map_info(){
$(".europe_tooltip").appendTo("#map_container");
$("#map_europe").attr("src", "http://www.wonderfulalmonds.com/map/images/map_euro_russia_green.png");


$("#map_africa").attr("src", "http://www.wonderfulalmonds.com/map/images/map_africa_white.png");
$("#map_asia").attr("src", "http://www.wonderfulalmonds.com/map/images/map_just_asia_white.png");
$("#map_austrialia").attr("src", "http://www.wonderfulalmonds.com/map/images/map_austrialia_white.png");
$("#map_north_america").attr("src", "http://www.wonderfulalmonds.com/map/images/map_north_america_white.png");
$("#map_south_america").attr("src", "http://www.wonderfulalmonds.com/map/images/map_south_america_white.png");
$("#map_middle_east").attr("src", "http://www.wonderfulalmonds.com/map/images/map_mid_east_white.png");

};




// North America Tooltip

$(document).ready(function() { $("#m_map_north_america").tooltip({ relative: true, lazy: false, effect: 'slide', slideOutSpeed: 0, offset: [280, 10]});});


function north_america_map_info(){
$(".north_america_tooltip").appendTo("#map_container");
$("#map_north_america").attr("src", "http://www.wonderfulalmonds.com/map/images/map_north_america_green.png");


$("#map_africa").attr("src", "http://www.wonderfulalmonds.com/map/images/map_africa_white.png");
$("#map_asia").attr("src", "http://www.wonderfulalmonds.com/map/images/map_just_asia_white.png");
$("#map_austrialia").attr("src", "http://www.wonderfulalmonds.com/map/images/map_austrialia_white.png");
$("#map_europe").attr("src", "http://www.wonderfulalmonds.com/map/images/map_euro_russia_white.png");
$("#map_south_america").attr("src", "http://www.wonderfulalmonds.com/map/images/map_south_america_white.png");
$("#map_middle_east").attr("src", "http://www.wonderfulalmonds.com/map/images/map_mid_east_white.png");

};



// South America Tooltip

$(document).ready(function() { $("#m_map_south_america").tooltip({ relative: true, lazy: false, effect: 'slide', slideOutSpeed: 0, offset: [280, 10]});});


function south_america_map_info(){
$(".south_america_tooltip").appendTo("#map_container");
$("#map_south_america").attr("src", "http://www.wonderfulalmonds.com/map/images/map_south_america_green.png");


$("#map_africa").attr("src", "http://www.wonderfulalmonds.com/map/images/map_africa_white.png");
$("#map_asia").attr("src", "http://www.wonderfulalmonds.com/map/images/map_just_asia_white.png");
$("#map_austrialia").attr("src", "http://www.wonderfulalmonds.com/map/images/map_austrialia_white.png");
$("#map_europe").attr("src", "http://www.wonderfulalmonds.com/map/images/map_euro_russia_white.png");
$("#map_north_america").attr("src", "http://www.wonderfulalmonds.com/map/images/map_north_america_white.png");
$("#map_middle_east").attr("src", "http://www.wonderfulalmonds.com/map/images/map_mid_east_white.png");

};


// Middle East Tooltip

$(document).ready(function() { $("#m_map_middle_east").tooltip({ relative: true, lazy: false, effect: 'slide', slideOutSpeed: 0, offset: [280, 10]});});


function middle_east_map_info(){
$(".middle_east_tooltip").appendTo("#map_container");
$("#map_middle_east").attr("src", "http://www.wonderfulalmonds.com/map/images/map_mid_east_green.png");


$("#map_africa").attr("src", "http://www.wonderfulalmonds.com/map/images/map_africa_white.png");
$("#map_asia").attr("src", "http://www.wonderfulalmonds.com/map/images/map_just_asia_white.png");
$("#map_austrialia").attr("src", "http://www.wonderfulalmonds.com/map/images/map_austrialia_white.png");
$("#map_europe").attr("src", "http://www.wonderfulalmonds.com/map/images/map_euro_russia_white.png");
$("#map_north_america").attr("src", "http://www.wonderfulalmonds.com/map/images/map_north_america_white.png");
$("#map_south_america").attr("src", "http://www.wonderfulalmonds.com/map/images/map_south_america_white.png");

};



// Map Hide Tooltip

function map_hide(){
$("#map_africa").attr("src", "http://www.wonderfulalmonds.com/map/images/map_africa_white.png");
$("#map_asia").attr("src", "http://www.wonderfulalmonds.com/map/images/map_just_asia_white.png");
$("#map_austrialia").attr("src", "http://www.wonderfulalmonds.com/map/images/map_austrialia_white.png");
$("#map_europe").attr("src", "http://www.wonderfulalmonds.com/map/images/map_euro_russia_white.png");
$("#map_north_america").attr("src", "http://www.wonderfulalmonds.com/map/images/map_north_america_white.png");
$("#map_south_america").attr("src", "http://www.wonderfulalmonds.com/map/images/map_south_america_white.png");
$("#map_middle_east").attr("src", "http://www.wonderfulalmonds.com/map/images/map_mid_east_white.png");
};



//JQuery Fade Toggle

jQuery.fn.fadeToggle=function(speed,easing,callback){return this.animate({opacity:'toggle'},speed,easing,callback)};

$(document).ready(function(){$('#asia_link').click(function(){$('#asia_pop_up').fadeToggle('50')})});
$(document).ready(function(){$('#asia_link').hover(function(){$('#europe_pop_up').hide()})});
$(document).ready(function(){$('#asia_link').hover(function(){$('#north_america_pop_up').hide()})});
$(document).ready(function(){$('#asia_link').hover(function(){$('#middle_east_pop_up').hide()})});
$(document).ready(function(){$('#asia_link').hover(function(){$('#south_america_pop_up').hide()})});
$(document).ready(function(){$('#m_map_north_america').hover(function(){$('#asia_pop_up').hide()})});
$(document).ready(function(){$('#m_map_europe').hover(function(){$('#asia_pop_up').hide()})});
$(document).ready(function(){$('#m_map_asia').hover(function(){$('#asia_pop_up').hide()})});
$(document).ready(function(){$('#m_map_south_america').hover(function(){$('#asia_pop_up').hide()})});
$(document).ready(function(){$('#m_map_middle_east').hover(function(){$('#asia_pop_up').hide()})});


$(document).ready(function(){$('#europe_link').click(function(){$('#europe_pop_up').fadeToggle('50')})});
$(document).ready(function(){$('#europe_link').hover(function(){$('#asia_pop_up').hide()})});
$(document).ready(function(){$('#europe_link').hover(function(){$('#north_america_pop_up').hide()})});
$(document).ready(function(){$('#europe_link').hover(function(){$('#south_america_pop_up').hide()})});
$(document).ready(function(){$('#europe_link').hover(function(){$('#middle_east_pop_up').hide()})});
$(document).ready(function(){$('#m_map_north_america').hover(function(){$('#europe_pop_up').hide()})});
$(document).ready(function(){$('#m_map_europe').hover(function(){$('#europe_pop_up').hide()})});
$(document).ready(function(){$('#m_map_asia').hover(function(){$('#europe_pop_up').hide()})});
$(document).ready(function(){$('#m_map_south_america').hover(function(){$('#europe_pop_up').hide()})});
$(document).ready(function(){$('#m_map_south_middle_east').hover(function(){$('#europe_pop_up').hide()})});


$(document).ready(function(){$('#north_america_link').click(function(){$('#north_america_pop_up').fadeToggle('50')})});
$(document).ready(function(){$('#north_america_link').hover(function(){$('#asia_pop_up').hide()})});
$(document).ready(function(){$('#north_america_link').hover(function(){$('#europe_pop_up').hide()})});
$(document).ready(function(){$('#north_america_link').hover(function(){$('#south_america_pop_up').hide()})});
$(document).ready(function(){$('#north_america_link').hover(function(){$('#middle_east_pop_up').hide()})});
$(document).ready(function(){$('#m_map_north_america').hover(function(){$('#north_america_pop_up').hide()})});
$(document).ready(function(){$('#m_map_europe').hover(function(){$('#north_america_pop_up').hide()})});
$(document).ready(function(){$('#m_map_asia').hover(function(){$('#north_america_pop_up').hide()})});
$(document).ready(function(){$('#m_map_middle_east').hover(function(){$('#north_america_pop_up').hide()})});
$(document).ready(function(){$('#m_map_south_america').hover(function(){$('#north_america_pop_up').hide()})});


$(document).ready(function(){$('#south_america_link').click(function(){$('#south_america_pop_up').fadeToggle('50')})});
$(document).ready(function(){$('#south_america_link').hover(function(){$('#asia_pop_up').hide()})});
$(document).ready(function(){$('#south_america_link').hover(function(){$('#europe_pop_up').hide()})});
$(document).ready(function(){$('#south_america_link').hover(function(){$('#north_america_pop_up').hide()})});
$(document).ready(function(){$('#south_america_link').hover(function(){$('#middle_east_pop_up').hide()})});
$(document).ready(function(){$('#m_map_south_america').hover(function(){$('#south_america_pop_up').hide()})});
$(document).ready(function(){$('#m_map_europe').hover(function(){$('#south_america_pop_up').hide()})});
$(document).ready(function(){$('#m_map_asia').hover(function(){$('#south_america_pop_up').hide()})});
$(document).ready(function(){$('#m_map_noth_america').hover(function(){$('#south_america_pop_up').hide()})});
$(document).ready(function(){$('#m_map_middle_east').hover(function(){$('#middle_east_pop_up').hide()})});


$(document).ready(function(){$('#middle_east_link').click(function(){$('#middle_east_pop_up').fadeToggle('50')})});
$(document).ready(function(){$('#middle_east_link').hover(function(){$('#asia_pop_up').hide()})});
$(document).ready(function(){$('#middle_east_link').hover(function(){$('#europe_pop_up').hide()})});
$(document).ready(function(){$('#middle_east_link').hover(function(){$('#north_america_pop_up').hide()})});
$(document).ready(function(){$('#middle_east_link').hover(function(){$('#middle_east_pop_up').hide()})});
$(document).ready(function(){$('#m_map_middle_east').hover(function(){$('#middle_east_pop_up').hide()})});
$(document).ready(function(){$('#m_map_europe').hover(function(){$('#middle_east_pop_up').hide()})});
$(document).ready(function(){$('#m_map_asia').hover(function(){$('#middle_east_pop_up').hide()})});
$(document).ready(function(){$('#m_map_noth_america').hover(function(){$('#middle_east_pop_up').hide()})});
$(document).ready(function(){$('#m_map_middle_east').hover(function(){$('#middle_east_pop_up').hide()})});
