function navover(theid){  
	document.getElementById(theid).style.display="block";
}
		
function navout(theid){  
	document.getElementById(theid).style.display="none";
}
	
function callVideo(video, trackingVideoName, trackingMediaName){
	var theSwf = document.getElementById("videoplayerswf");
	theSwf.playVideo(video, trackingVideoName, trackingMediaName);
}

/*
Swap image and add onmouseover and onmouseout event
*/

function addMenuEvent(id){
	var mainmenu = document.getElementById(id);
	var li = mainmenu.getElementsByTagName('li');
	for(var i=0; i<li.length; i++){
		if(li[i].className.indexOf('selected') == -1){
			li[i].onmouseover = function(){
				this.className +=  ' over';
			}

			li[i].onmouseout = function(){
				this.className = this.className.replace("over", "");
			}
		}
	}
}

function img_hover_swap(imgobj, new_img){
	var temp = new Image();
	var image = new Image();
	image.src = new_img;
	temp.src = imgobj.src;

	imgobj.src = image.src;

	imgobj.onmouseout = function (){
		imgobj.src = temp.src;
	}
}



function swapImg(img_to_swap,img_loc){
	var img = new Image();
	img.src = img_loc;
	img_to_swap.src = img.src;
}

