/**************************************************************************
 *                                                                        *
 *  JAVASCRIPT MENU HIGHLIGHTER v.1.5 (080929)                            *
 * --------------------------------------------                           *
 * ©2005 Media Division (www.MediaDivision.com)                           *
 *                                                                        *
 * Written by Marius Smarandoiu & Armand Niculescu                        *
 *                                                                        *
 * You are free to use, modify and distribute this file, but please keep  *
 * this header and credits                                                *
 *                                                                        *
 * Usage:                                                                 *
 * - the script will apply the .current class to the <a> and its parent   *
 *   <li> that is contained in the element with id="primarynav" and points*
 *   to the current URL                                                   *
 * - works in IE6, Firefox and Opera                                      *
 **************************************************************************/
function extractPageName(hrefString)
{
	var arr = hrefString.split('/');
	return  (arr.length<2) ? hrefString : arr[arr.length-2].toLowerCase() + arr[arr.length-1].toLowerCase();               
}

function setActiveMenu(arr, crtPage)
{
	for (var i=0; i<arr.length; i++)
	{
		if(extractPageName(arr[i].href) == crtPage)
		{
			if (arr[i].parentNode.tagName != "DIV")
			{
				arr[i].className = "current";
				arr[i].parentNode.className = "current";
			}
		}
	}
}

function setPage()
{
	hrefString = document.location.href ? document.location.href : document.location;

	if (document.getElementById("nav")!=null)
		setActiveMenu(document.getElementById("nav").getElementsByTagName("a"), extractPageName(hrefString));
}

function cabec(){
    document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='742' height='205'>");
   document.write("<param name='movie' value='banner_monciel3.swf'>");
   document.write("<param name='quality' value='high'>");
      document.write("<param name='wmode' value='transparent'>");
   document.write("<embed src='banner_monciel3.swf' quality='high' wmode='transparent'  pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='742' height='205'></embed>");
   document.write("</object>");}
   
   function botoes(){
    document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='70' height='10'>");
   document.write("<param name='movie' value='botoes.swf'>");
   document.write("<param name='quality' value='high'>");
      document.write("<param name='wmode' value='transparent'>");
   document.write("<embed src='botoes.swf' quality='high' wmode='transparent'   pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='70' height='10'></embed>");
   document.write("</object>");}
   
   
   function parceiros(){
    document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='203' height='190'>");
   document.write("<param name='movie' value='parceiros.swf'>");
   document.write("<param name='quality' value='high'>");
      document.write("<param name='wmode' value='transparent'>");
   document.write("<embed src='parceiros.swf' quality='high' wmode='transparent'   pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='203' height='190'></embed>");
   document.write("</object>");}
   
   
   
   
   
  
   

