function setNavigation()
{
	var el = $('li.has-sub');

	if ( el != null )
	{
		el.hover( 
			function()
				{ 
					var current = $(this).contents("ul");
					current.toggle();
				},
			function()
				{ 
					var current = $(this).contents("ul");
					current.toggle();
				} 
				)
	}

}

//function externalLinks()
//{
//	var el = $('a.external');

//	if ( el != null )
//	{
//		el.attr({ target: "_blank" });
//	}
//}

//function embedSwf()
//{
//	if ($("page-header") != null) { swfobject.embedSWF("assets/project/flash/home-anim.swf", "page-header", "936", "174", "8.0"); }
//	if ($("page-header-simple") != null) { swfobject.embedSWF("assets/project/flash/home-anim-simple.swf", "page-header-simple", "936", "174", "8.0"); }

//}

function initPage()
{
//	embedSwf();
	setNavigation();
//	externalLinks();
}

$(document).ready(function(){
  initPage();
 });