$(document).ready(function(){
	$('#navigation li a').bind('mouseover',function()
		{
			if ($(this).find(' > img').attr("src").indexOf('_lo') > -1)
			{
				$(this).find(' > img').attr("src",$(this).find(' > img').attr("src").replace("_lo","_ro"));
				//$(this).find(' > div').css("display",'block');
			}
		});
	$('#navigation li a').bind('mouseout',function()
		{
			if ($(this).find(' > img').attr("src").indexOf('_ro') > -1)
			{
				$(this).find(' > img').attr("src",$(this).find(' > img').attr("src").replace("_ro","_lo"));
				//$(this).find(' > div').css("display",'none');
			}
		});
	$('#navigation > ul >li > ul > li > ul > li > a').bind('mouseover',function()
		{
			if ($(this).find(' > div').attr('class') == 'dynamic')
			{
				$(this).find(' > div').css("display",'block');
			}
		});
	$('#navigation > ul >li > ul > li > ul > li > a').bind('mouseout',function()
		{
			if ($(this).find(' > div').attr('class') == 'dynamic')
			{
				$(this).find(' > div').css("display",'none');
			}
		});
});


function openExternalLink(externalLink)
{
	externalWindow = window.open(externalLink);

	//alert(externalLink);
}


function closePicLayer(layerid4action)
{
	
	document.getElementById(layerid4action).style.visibility = 'hidden';
}
      
      

function openPicLayer(layerid4action)
{
	
	document.getElementById(layerid4action).style.visibility = 'visible';
}

