$(document).ready(function() {		/* Change country or language */	$(".change_link").not("locked").mouseenter(function() {		$(this).parent().parent().parent().parent().addClass("hovered");		$(this).siblings().stop().slideDown(300);	});		$(".change_link").click(function() {		if ($(this).hasClass("locked")) {			$(this).removeClass("locked");			$(this).siblings().slideUp(400, function() {				$(this).parents(".virtual_dropdown").removeClass("hovered");				$(this).css({'height' : 'auto'});			});		} else {			$(this).addClass("locked");			if (!$(this).parents(".virtual_dropdown").hasClass("hovered")) {				$(this).parents(".virtual_dropdown").addClass("hovered");				$(this).siblings().stop().slideDown(300);			};		};			});		$(".virtual_dropdown").mouseleave(function() {		if (!$(this).find(".change_link").hasClass("locked")) {			$(this).find("ul").slideUp(400, function() {				$(this).parents(".virtual_dropdown").removeClass("hovered");				$(this).css({'height' : 'auto'});			});		};	});		var pairsArrayPanel = {};	$(".select_panel ul li a").each(function(n) {		var thisSplit = $(this).text().split("|");		pairsArrayPanel[thisSplit[0]] = thisSplit[1];		$(this).html(thisSplit[0]);	});	var pairsArrayResearch = {};	$(".select_research ul li a").each(function(n) {		var thisSplit = $(this).text().split("|");		pairsArrayResearch[thisSplit[0]] = thisSplit[1];		$(this).html(thisSplit[0]);	});	$(".virtual_dropdown ul li a").click(function(e) {		e.preventDefault();		var thisValue = $(this).text();		var thisLink = $(this).attr("href");		$(this).parents(".virtual_dropdown").siblings().text(thisValue);		if ($(this).parents(".select_panel").length > 0) {			$(".go_panel a").attr("href", thisLink);			$(".go_panel a").html("");			$(".go_panel a").html(pairsArrayPanel[thisValue] + "<span>" + pairsArrayPanel[thisValue] + "</span>");		} else {			$(".go_research a").attr("href", thisLink);			$(".go_research a").html("");			$(".go_research a").html(pairsArrayResearch[thisValue] + "<span>" + pairsArrayResearch[thisValue] + "</span>");			$(".go_research a").children().hide();		};		$(this).parents().parents().siblings().removeClass("locked");		$(this).parents("ul").find("li a").removeClass("selected");		$(this).addClass("selected");		$(this).parents(".virtual_dropdown").removeClass("hovered");		$(this).parents("ul").hide().css({'height' : 'auto'});	});		/* Main Links */	$(".fading_link").each(function() {		$(this).append("<span>" + $(this).text() + "</span");		$(this).children().hide();	});		$(".fading_link").mouseenter(function() {		$(this).children().stop().fadeTo(150, 1);	}).mouseleave(function() {		$(this).children().stop().fadeTo(300, 0);	});		$(".select_panel ul li a").eq(0).click();	$(".select_research ul li a").eq(0).click();	});
