// JavaScript Document


function ShowSubMenu(obj) {
var SubMenus = obj.getElementsByTagName("div"); 
	for (var i = 0; i < SubMenus.length; i++) { 
	SubMenus[i].style.display = 'block';
	}
}



function HideSubMenu() {
var menuContainer = document.getElementById("leftnav_cell");
var Menus = menuContainer.getElementsByTagName("div");
	for (var j = 0; j < Menus.length; j++) { 
		var SubMenus = Menus[j].getElementsByTagName("div"); 
		for (var i = 0; i < SubMenus.length; i++) { 
		SubMenus[i].style.display = 'none';
		}
	}
}

function PopWin1(obj)
{
	var PosX;
	var PosY;
	var TheObject;
	PosX = window.event.clientX;
	PosY = window.event.clientY;
    TheObject = document.getElementById(obj);
	TheObject.style.position = "absolute";
	TheObject.style.top = PosX;
	TheObject.style.left = PosY;
	TheObject.style.display = 'block';

}



function newWindow(wind,scr){
theWindow = window.open(wind,'galleryimage','width=800,height=600,toolbar=0,resizable=0,scrollbars=' + scr);
return false;
}

function newImageWindow(wind){
theWindow = window.open(wind,'galleryimage','width=640,height=450,toolbar=0,resizable=0,scrollbars=no');
return false;
}

function StartTheMovie (obj)
   {
	   ThePlayer = document.getElementById(obj);     
	   ThePlayer.Play();
   }

   function StopTheMovie (obj)
   {
	   ThePlayer = document.getElementById(obj);     
	   ThePlayer.Stop();
   }

function LinkWindow(URL,w,h){
	theWindow=window.open(URL,'Idaho Internation Choral Festifal','width=' + w + ',height=' + h + ',toolbar=0,resizable=0,scrollbars=yes');
	theWindow.moveTo(0,0);

}

function image_view(the_image,the_gallery,the_width,the_height){
NewWindow = window.open('imageviewer.php?image=' + the_image +'&gallery='+ the_gallery ,'galleryimage',
						'left=0,top=0,width=' + the_width +',height=' + the_height +',toolbar=0,resizable=0,scrollbars=0')
}
