$(document).ready(function() 
{
	$(".menu").each(function()
	{ 
		$(this).show();
    });
	
	$(".menunojs").each(function()
	{ 
		$(this).hide();
    });

	$(".product-list dt").each(function()
	{ 
		$(this).show();
    });
	
	$(".product-list dd div.section").each(function()
	{ 
		$(this).hide();
    });
	
	$('#productfinder .accordion').bgiframe();
	
	initCountrySelector();
});

function initCountrySelector()
{
	$(".open select.countryselector").change(function ()
	{
		var sDestUrl = $(this).children("option:selected").attr("value");
		var sCountry = $(this).children("option:selected").html();
		var sProduct = $(this).parent().parent().parent().parent().children("h4").html();
		
		if (sDestUrl && sDestUrl.length > 0)
		{ 
			
			
			var gaString = "/de/ELink/External/Products/Product-details.htm/" + sProduct + "/Countrylink/" +  sCountry + "/" + sDestUrl;

			pageTracker._trackPageview(gaString);
			
			window.open(sDestUrl);
		}
	});
}
