	// To detect when someone leaves the menu tree entirely, we'll set a timer that gets cancelled whenever a menu item gets a MouseOver event

	function profileMap(URL)  {
    window.open(URL, 'profile_Map', 'top=100,left=20,width=650,height=400,scrollbars=no,resizable=no,location=0,toolbar=no,menubar=no');
  }
    //href="javascript:profileMap('../googlemap.asp?id_Prop=383805&amp;id_Pers=34158')"
	
	
	var Timer = null;
	
	// Detect Browser type
	
	ie4 = (document.all) ? true:false 
	dom = (document.getElementById) ? true:false 
	
        var agt=navigator.userAgent.toLowerCase();
        var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
        var cursortype = '';
        if ( is_ie ) { cursortype = 'hand' } else { cursortype = 'pointer' }

	function showMenu(menu) {
		menustring = 'sub_menu_'+menu;
		document.all[menustring].style.display = 'none';
		//for ( count = 0 ; count < 1 ; count++ ) {
		//	menustring = 'sub_menu_'+count;
		//	if (count != menu){
		//	  if ( dom ) {
		//		if (document.getElementById(menustring) && document.getElementById(menustring).style.display == '' ) document.getElementById	(menustring).style.display = 'none';
		//	  } else if ( ie4 ) {
	//			if (document.all[menustring] && document.all[menustring].style.display == '' ) document.all[menustring].style.display = 'none';
	//		  }
			//}
		//}
	}
	
	/*function hideMenu() {
		Timer = setTimeout("hide()",200);
	}


    function hide() {
		for ( count = 0 ; count < 2 ; count++ ) {
			menustring = 'pop_menu_'+count;
			if ( dom ) {
				document.getElementById	(menustring).style.visibility = 'hidden';
			} 
			else if ( ie4 ) {
				document.all[menustring].style.visibility = 'hidden';
			}
		}
	}*/

function frame_screen(frame_name) {
		main.location = 'frame_name';
	}

// Message for the alert box
var message="Copyright © 2004-2008 Harmony Music Services";
// \nTo obtain ligal "+
//"copy of documents, photos or another materials please contact Harmony Music Services."; 
function click(e) 
{
	if (document.all)
	{
		if (event.button == 2)
		{
			alert(message);
			return false;
		}
	}
	if (document.layers)
	{
		if (e.which == 3)
		{
			alert(message);
			return false;
		}
	}
}

if (document.layers)
{
	document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;



//    -- Pop_up MENU -->
/*document.write('<div id=pop_menu_0 class="menu" style="position: absolute; left: 10px; top: 217px; z-index: 2222"onMouseOver=" if ( Timer != null ) clearTimeout(Timer);">');
  document.write('<TABLE width=128 bgcolor="99CC99" cellSpacing=0 cellPadding=0 border=0>');
   document.write('<TR>');
    document.write('<TD>');
     document.write('<IMG src="icons/blank.gif" width=10 height=40 border=0>');
    document.write('</TD>');
    document.write('<TD>');
	 document.write('<TABLE align=right cellSpacing=1 width=100 border=0>');
      document.write('<TR>');
       document.write('<TD class = menu onClick="main.location =\'frame/prof_sum.html\'" onMouseOver="this.style.cursor=cursortype; this.style.background=\'#003300\'; this.style.color=\'#99CC99\';" onMouseOut="this.style.background=\'#99CC99\'; this.style.color=\'#003300\'">About</TD>');
      document.write('</TR>');
      document.write('<TR>');
	   document.write('<TD class = menu onClick="main.location =\'frame/resume.html\'" onMouseOver="this.style.cursor=cursortype; this.style.background=\'#003300\'; this.style.color=\'#99CC99\'" onMouseOut="this.style.background=\'#99CC99\'; this.style.color=\'#003300\'">Resume</TD>');
      document.write('</TR>');
      document.write('<TR>');
	   document.write('<TD class = menu onClick="main.location =\'frame/references.html\'" onMouseOver="this.style.cursor=cursortype; this.style.background=\'#003300\'; this.style.color=\'#99CC99\'" onMouseOut="this.style.background=\'#99CC99\'; this.style.color=\'#003300\'">References</TD>');
 	  document.write('</TR>');
     document.write('</TABLE>');
    document.write('</TD>');
   document.write('</TR>');
  document.write('</TABLE>');
  document.write('<TABLE width=130 cellSpacing=2 border=0>');
   document.write('<TR>');
    document.write('<TD class = menu onClick="main.location =\'frame/lessons.html\'; hideMenu();" onMouseOver="this.style.cursor=cursortype; this.style.background=\'#003300\'; this.style.color=\'#99CC99\';" onMouseOut="this.style.background=\'#99CC99\'; this.style.color=\'#003300\'">Lessons</TD>');
   document.write('</TR>');
   document.write('<TR>');
    document.write('<TD class = menu onClick="main.location =\'frame/musette.html\'; hideMenu(); showMenu(1);" onMouseOver="this.style.cursor=cursortype; this.style.background=\'#003300\'; this.style.color=\'#99CC99\';" onMouseOut="this.style.background=\'#99CC99\'; this.style.color=\'#003300\'">Musette</TD>');
   document.write('</TR>');
   document.write('<TR>');
    document.write('<TD class = menu onClick="main.location =\'frame/shtetl.html\'; hideMenu();" onMouseOver="this.style.cursor=cursortype; this.style.background=\'#003300\'; this.style.color=\'#99CC99\';" onMouseOut="this.style.background=\'#99CC99\'; this.style.color=\'#003300\'">Shtetl Shpil</TD>');
   document.write('</TR>');
   document.write('<TR>');
	document.write('<TD class = menu onClick="main.location =\'frame/contact.html\'; hideMenu();" onMouseOver="this.style.cursor=cursortype; this.style.background=\'#003300\'; this.style.color=\'#99CC99\';" onMouseOut="this.style.background=\'#99CC99\'; this.style.color=\'#003300\'">Contact us</TD>');
   document.write('</TR>');
  document.write('</TABLE>');
document.write('</div>');
document.write('<div id=pop_menu_1 class="menu" style="position: absolute; left: 10px; top: 261px; z-index: 2222"onMouseOver=" if ( Timer != null ) clearTimeout(Timer);">');
  document.write('<TABLE width=128 bgcolor="99CC99" cellSpacing=0 cellPadding=0 border=0>');
   document.write('<TR>');
    document.write('<TD>');
     document.write('<IMG src="icons/blank.gif" width=25 height=28 border=0>');
    document.write('</TD>');
    document.write('<TD>');
	 document.write('<TABLE align=right cellSpacing=1 width=100 border=0>');
      document.write('<TR>');
	   document.write('<TD class = menu onClick="main.location =\'frame/repertoire.html\'" onMouseOver="this.style.cursor=cursortype; this.style.background=\'#003300\'; this.style.color=\'#99CC99\';" onMouseOut="this.style.background=\'#99CC99\'; this.style.color=\'#003300\'">Repertoire</TD>');
      document.write('</TR>');
      document.write('<TR>');
	   document.write('<TD class = menu onClick="main.location =\'frame/gallery_1.html\'" onMouseOver="this.style.cursor=cursortype; this.style.background=\'#003300\'; this.style.color=\'#99CC99\'" onMouseOut="this.style.background=\'#99CC99\'; this.style.color=\'#003300\'">Gallery</TD>');
   	  document.write('</TR>');
      document.write('<TR>');
	   document.write('<TD class = menu onClick="main.location =\'frame/about_musette.html\'" onMouseOver="this.style.cursor=cursortype; this.style.background=\'#003300\'; this.style.color=\'#99CC99\'" onMouseOut="this.style.background=\'#99CC99\'; this.style.color=\'#003300\'">About</TD>');
      document.write('</TR>');
     document.write('</TABLE>');
    document.write('</TD>');
   document.write('</TR>');
  document.write('</TABLE>');
  document.write('<TABLE width=130>');
   document.write('<TR>');
    document.write('<TD class = menu onClick="main.location =\'frame/shtetl.html\'; hideMenu();" onMouseOver="this.style.cursor=cursortype; this.style.background=\'#003300\'; this.style.color=\'#99CC99\';" onMouseOut="this.style.background=\'#99CC99\'; this.style.color=\'#003300\'">Shtetl Shpil</TD>');
   document.write('</TR>');
   document.write('<TR>');
    document.write('<TD class = menu onClick="main.location =\'frame/contact.html\'; hideMenu();" onMouseOver="this.style.cursor=cursortype; this.style.background=\'#003300\'; this.style.color=\'#99CC99\';" onMouseOut="this.style.background=\'#99CC99\'; this.style.color=\'#003300\'">Contact us</TD>');
   document.write('</TR>');
  document.write('</TABLE>');
document.write('</div>');*/
//   -- END of Pop_up MENU -->
	
//Photos changing ======================================
//var lt[0]='simon';
//var lt[1]='david';

/*var current=0;

function back_to_alb(n) 
{ 
  if (n==1)
  {
	if (this.current/16 <= 1)
		back.href="album_page1.html";
	else if (this.current/16 <= 2)
		back.href="album_page2.html";
	else 
		back.href="album_page3.html";
  }
  else
  {
	if (this.current/16 <= 1)
		back2.href="album_page1.html";
	else if (this.current/16 <= 2)
		back2.href="album_page2.html";
	else 
		back2.href="album_page3.html";
  }
} 

function cange_photo(direction) 
{
	if (direction=='next')
		current++;
		if (current>41)
			current=1;
	else if (direction=='previous')
		current--;
		if (current<1)
			current=41;
	//alert(current); //Checking number of current photo
	//document.foto.alt=lt[0];
	document.foto.src='gallery_pic/'+current+'.JPG';
}

function photo_page(photo) 
{   document.write('<LINK href="../stylesheet.css" rel=stylesheet type=text/css>');
	document.write('<script src="funct.js" type="text/javascript" language="JavaScript"></script>');
	document.write('<BODY>');
	document.write('<TABLE align=center WIDTH=100%>');
	document.write('<TR>');
	document.write('<TD align=right><A HREF="javascript:cange_photo(\'previous\');"><B>Previous photo</B></A></TD>');
	document.write('<TD align=center><A HREF="javascript:void(0);" onClick="javascript:back_to_alb(1);" name="back"><B>Back to Album</B></A></TD>');
	document.write('<TD align=left><A HREF="javascript:cange_photo(\'next\');")><B>Next photo&nbsp;&nbsp;&nbsp;&nbsp;</B></A></TD>');
	document.write('</TR>');
	document.write('<TR align=center>');
	document.write('<TD colspan=3><IMG name="foto" BORDER=0></TD>');
	document.write('</TR>');
	document.write('<TR>');
	document.write('<TD align=right><A HREF="javascript:cange_photo(\'previous\');"><B>Previous photo</B></A></TD>');
	document.write('<TD align=center><A HREF="javascript:void(0);" onClick="javascript:back_to_alb(2);" name="back2"><B>Back to Album</B></A></TD>');
	document.write('<TD align=left><A HREF="javascript:cange_photo(\'next\');"><B>Next photo&nbsp;&nbsp;&nbsp;&nbsp;</B></A></TD>');
	document.write('</TR>');
	document.write('</TABLE>');
	document.write('</BODY>');
/*function photo_page(photo) 
{   
	document.write('<LINK href="stylesheet.css" rel=stylesheet type=text/css>');
	document.write('<script src="funct.js" type="text/javascript" language="JavaScript"></script>');
	document.write('<BODY>');
	document.write('<div style="position: absolute; left: 250px; top: 317px; z-index: 2225">');
	document.write('<TABLE align=center WIDTH=100%>');
	document.write('<TR>');
	document.write('<TD>test</TD>');
	document.write('</TR>');
	document.write('</TABLE>');
	document.write('</div>');
	document.write('</BODY>');

	//document.foto.alt=this.lt[1];
	document.foto.src='gallery_pic/'+photo+'.JPG';
	this.current=photo;
}*/
//End of Photos changing ======================================