var cssmenuids=["cssmenu1"] //Enter id(s) of CSS Horizontal UL menus, separated by commas
var csssubmenuoffset=-1 //Offset of submenus from main menu. Default is 0 pixels.

function createcssmenu2(){
for (var i=0; i<cssmenuids.length; i++){
  var ultags=document.getElementById(cssmenuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
			ultags[t].style.top=ultags[t].parentNode.offsetHeight+csssubmenuoffset+"px"
    	var spanref=document.createElement("span")
			spanref.className="arrowdiv"
			spanref.innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;"
			ultags[t].parentNode.getElementsByTagName("a")[0].appendChild(spanref)
    	ultags[t].parentNode.onmouseover=function(){
					this.style.zIndex=100
    	this.getElementsByTagName("ul")[0].style.visibility="visible"
					this.getElementsByTagName("ul")[0].style.zIndex=0
    	}
    	ultags[t].parentNode.onmouseout=function(){
					this.style.zIndex=0
					this.getElementsByTagName("ul")[0].style.visibility="hidden"
					this.getElementsByTagName("ul")[0].style.zIndex=100
    	}
    }
  }
}

if (window.addEventListener)
window.addEventListener("load", createcssmenu2, false)
else if (window.attachEvent)
window.attachEvent("onload", createcssmenu2)

<!-- Video player code starts here//-->

function changeVideo(videoURL,flashid)
{      
        
      var flashv = flashid;
      var movie = videoURL;
      if(movie.length > 0)
      {
            var player = document.getElementById('player');
            var kids = player.childNodes;
            for(var i=0; i<kids.length; i++)
            {
                  if(kids[i].nodeType ==1)
                  {
                        player.removeChild(kids[i]);
                  }
            }
            var newPlayer = buildEmbed(movie,flashv);
            player.appendChild(newPlayer);
      }
}
function buildEmbed(movie,flashv)
{
      var embd = document.createElement('embed');
      embd.src = movie;
      embd.type = "application/x-shockwave-flash";
      var flashvid = flashv;
      if(flashvid.length > 0)
      {
             embd.flashvars=flashvid;
      }else{
             embd.flashvars="playerVars=showStats=yes|autoPlay=yes|related=no";
      }
      embd.style.width = "115%";
      embd.style.height = "370px";
	  return embd;
}