function imenus_data0(){
	this.menu_showhide_delay = 0
	this.show_subs_onclick = false
	this.hide_focus_box = false
	this.subs_ie_transition_show = ""
}

function createMenu() {
var beginMenu = '<div class="imrcmain0 imgl" style="width:679px;z-index:999999;position:relative;">\n' + 
'<div class="imcm imde" id="imouter0">\n' + 
'<ul id="imenus0">\n';

var aboutUs = '<li class="imatm" style="width:97px;"><a class="" href="index.html">About Us</a>\n' +
'	<div class="imsc">\n' +
'	<div class="imsubc" style="width:97px;top:0px;left:0px;">\n' +
'	<ul style="">\n' +
'	<li class="dvs"><a href="director.html">Director</a></li>\n' +
'	<li class="dvs"><a href="staff.html">Staff</a></li>\n' +
'	<li class="dvs"><a href="philosophy.html">Philosophy</a></li>\n' +
'	<li class="dvs"><a href="location.html">Location</a></li>\n' +
'	<li class="dvs"><a href="office_hours.html">Office Hours</a></li>\n' +
'	<li class="dvs"><a href="press_release.html">Press Release</a></li>\n' +
'	</ul>\n' +
'	</div>\n' +
'	</div>\n' +
'</li>\n' ;

var theAcademy = '<li class="imatm"  style="width:97px;"><a href="#">The Academy</a>\n' +
'	<div class="imsc">\n' +
'	<div class="imsubc" style="width:105px;top:0px;left:0px;">\n' +
'	<ul style="">\n' +
'	<li><a href="class_desc.html">Class Description</a></li>\n' +
'	<li><a href="class_schd.html">Class Schedule</a></li>\n' +
'	<li><a style="cursor:pointer;"><span class="imea imeas"><span></span></span>Summer Schedule</a>\n' +
'		   <div class="imsc"><div class="imsubc" style="width:135px;top:-20px;left:105px;"><div class="imunder"></div><div></div><ul style="">\n' +
'		   <li><a href="summer_sched.html">Class Schedule</a></li>\n' +
'		   <li><a href="summer_intensive.html">Intensive Schedule</a></li>\n' +
'		   <li><a href="summer_camp.html">Camps</a></li>\n' +
'		   </ul></div></div></li>\n' +
'	<li><a href="studio_cal.html">Studio Calendar</a></li>\n' +
'	<li><a href="studioGuidelines.html">Studio Guidelines</a></li>\n' +
'	<li><a style="cursor:pointer;"><span class="imea imeas"><span></span></span>Special Events</a>\n' +
'		   <div class="imsc"><div class="imsubc" style="width:135px;top:-20px;left:105px;"><div class="imunder"></div><div></div><ul style="">\n' +
'		   <li><a href="holiday_party.html">Studio Holiday Party</a></li>\n' +
'		   <li><a href="docs/City_Place.doc" target="_new">City Place Performance</a></li>\n' +
'		   </ul></div></div></li>\n' +
'	<li><a href="bday_parties.html">Birthday Parties</a></li>\n' +
'	</ul>\n' +
'	</div>\n' +
'	</div>\n' +
'</li>\n' ;

var facilities = '<li class="imatm"  style="width:97px;"><a href="facilities.html">Facilities</a></li>\n'

var studioForms = '<li class="imatm"  style="width:97px;"><a href="#">Studio Forms</a>\n' +
'	<div class="imsc">\n' +
'	<div class="imsubc" style="width:110px;top:0px;left:0px;">\n' +
'	<ul style="">\n'+
'	<li><a href="docs/studio_agreement.doc" target="_new">Studio Agreement</a></li>\n' +	
'	<li><a href="docs/reg_form.doc">Registration Form</a></li>\n' +
'	<li><a href="docs/direct_deposit.doc" target="_new">Direct Deposit Form</a></li>\n' +
'	<li><a href="newsletter.html">Newsletter</a></li>\n'+
'	</ul>\n' +
'	</div>\n'+
'	</div>\n' +
'</li>\n' ;
 
var photoGallery = '<li class="imatm"  style="width:97px;"><a href="#">Photo Gallery</a>\n' +
'	<div class="imsc">\n' +
'	<div class="imsubc" style="width:97px;top:0px;left:0px;">\n' +
'	<ul style="">\n'+
'	<li><a style="cursor:pointer;"><span class="imea imeas"><span></span></span>City Place</a>\n'+
'		   <div class="imsc"><div class="imsubc" style="width:35px;top:-20px;left:97px;"><ul style="">\n' +
'		   <li><a href="city_place_07.html">2007</a></li>\n' +
'		   <li><a href="city_place_09.html">2009</a></li>\n' +
'		   </ul></div></div></li>\n' +
'	<li><a style="cursor:pointer;"><span class="imea imeas"><span></span></span>Recital</a>\n'+
'		   <div class="imsc"><div class="imsubc" style="width:35px;top:-20px;left:97px;"><ul style="">\n' +
'		   <li><a href="recital_07.html">2007</a></li>\n' +
'		   <li><a href="recital_08.html">2008</a></li>\n' +
'		   <li><a href="recital_09.html">2009</a></li>\n' +
'		   </ul></div></div></li>\n' +
'	</ul>\n' +
'	</div>\n' +
'	</div>\n' +
'</li>\n' ;

var theCompany = '<li class="imatm"  style="width:97px;"><a href="#">The Company</a>\n' +
'	<div class="imsc">\n' +
'	<div class="imsubc" style="width:52px;top:0px;left:0px;">\n' +
'	<ul style="">\n' +
//'	<li><a href="#">The Company</a></li>\n' +
'	<li><a href="company_list.html">Members</a></li>\n' +
'	<li><a href="company_auditions.html">Auditions</a></li>\n' +	
'	<li><a href="company_schd.html">Schedule</a></li>\n' +	
'	<li><a href="company_results.html">Results</a></li>\n' +
'	<li><a href="newsletter/company_contract.doc" target="_new">Contract</a></li>\n' +
'	</ul>\n' +
'	</div>\n' +
'	</div>\n'+
'</li>\n' ;
 
var contactUs = '<li class="imatm"  style="width:97px;"><a href="contact_us.html">Contact Us</a></li>\n'

var endMenu = '</ul>\n' +
'<div class="imclear">&nbsp;</div>\n' +
'</div>\n' +
'</div>\n' ;

document.getElementById('mainTableMenu').innerHTML = beginMenu + aboutUs + theAcademy + facilities + studioForms + photoGallery + theCompany + contactUs + endMenu ; 
}

var sliderIntervalId = 0;
var sliderHeight = 232;
var sliderWidth = 0;
var sliding = false;
var slideSpeed = 20;
var strID = "";

function Slide()
{
   if(sliding)
      return;
   sliding = true;
   if(sliderHeight == 232)
      sliderIntervalId = setInterval('SlideUpRun()', 30);
   else
      sliderIntervalId = setInterval('SlideDownRun()', 30);
}
function SlideUpRun()
{
   slider = document.getElementById('testDiv');

   if(sliderHeight <= 0)
   {
      sliding = false;
      sliderHeight = 0;
      slider.style.height = '0px';
      clearInterval(sliderIntervalId);
   }
   else
   {
      sliderHeight -= slideSpeed;
      if(sliderHeight <0)
         sliderHeight = 0;
      slider.style.height = sliderHeight + 'px';
   }
}

function SlideDownRun()
{
   slider = document.getElementById('testDiv');
   if(sliderHeight>= 232)
   {
      sliding = false;
      sliderHeight = 232;
      slider.style.height = '232px';
      clearInterval(sliderIntervalId);
   }
   else
   {
      sliderHeight += slideSpeed;
      if(sliderHeight> 232)
         sliderHeight = 232;
      slider.style.height = sliderHeight + 'px';
   }
}

function SlideRight( strDiv )
{
   strID = strDiv
   if(sliding)
      return;
   sliding = true;
   if(sliderWidth == 400) {
      sliderIntervalId = setInterval('SlideLeftRun()', 30);
   }
   else
   { 
      sliderIntervalId = setInterval('SlideRightRun()', 30) ;
   }
}

function SlideLeft( strDiv )
{
   strID = strDiv
   if(sliding)
      return;
   sliding = true;
   if(sliderWidth == 0) {
      sliderIntervalId = setInterval('SlideLeftRun()', 30);
   }
   else
   { 
     sliderIntervalId = setInterval('SlideRightRun()', 30) ;
   }
}

function SlideLeftRun()
{
   slider = document.getElementById( strID );

   if(sliderWidth <= 0)
   {
      sliding = false;
      sliderWidth = 0;
      slider.style.width = '0px';
      clearInterval(sliderIntervalId);
	  slider.style.display = "none" ;
	  //slider.style.border = "none" ;
   }
   else
   {
      sliderWidth -= slideSpeed;
      if(sliderWidth < 0)
         sliderWidth = 0;
      slider.style.width = sliderWidth + 'px';
   }
}

function SlideRightRun()
{
   slider = document.getElementById( strID );
   slider.style.display = "block" ;
   if(sliderWidth>= 400)
   {
      sliding = false;
      sliderWidth = 400;
      slider.style.width = '400px';
      clearInterval(sliderIntervalId);
   }
   else
   {
      sliderWidth += slideSpeed;
      if(sliderWidth > 400)
         sliderWidth = 400;
      slider.style.width = sliderWidth + 'px';
   }
}

var agt=navigator.userAgent.toLowerCase();
var appVer = navigator.appVersion.toLowerCase();
var is_minor = parseFloat(appVer);
var is_major = parseInt(is_minor);
var iePos = appVer.indexOf('msie');
if (iePos !=-1) {
is_minor = parseFloat(appVer.substring(iePos+5,appVer.indexOf(';',iePos)))
is_major = parseInt(is_minor);
}
var is_getElementById = (document.getElementById) ? "true" : "false"; 
var is_getElementsByTagName = (document.getElementsByTagName) ? "true" : "false";
var is_documentElement = (document.documentElement) ? "true" : "false"; 
var is_ie = ((iePos!=-1));
var is_ie3 = (is_ie && (is_major < 4));
var is_ie4 = (is_ie && is_major == 4);
var is_ie4up = (is_ie && is_minor >= 4);
var is_ie5 = (is_ie && is_major == 5);
var is_ie5up = (is_ie && is_minor >= 5);
var is_ie5_5 = (is_ie && (agt.indexOf("msie 5.5") !=-1)); 
var is_ie5_5up =(is_ie && is_minor >= 5.5); 
var is_ie6 = (is_ie && is_major == 6);
var is_ie6up = (is_ie && is_minor >= 6);

function ShowBioPanel( strBioID , panelW , panelH )
{
    var bio_panel = document.getElementById( strBioID );
	var bio_more_panel = document.getElementById( strBioID + "More" );
    
    // w is a width of the Bio panel
    w = panelW;
    // h is a height of the Bio panel
    h = panelH;

	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
        //Non-IE
    	myWidth = window.innerWidth;
    	myHeight = window.innerHeight;
  	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
        //IE 6+ in 'standards compliant mode'
      	myWidth = document.documentElement.clientWidth;
    	myHeight = document.documentElement.clientHeight;
  	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
      	//IE 4 compatible
    	myWidth = document.body.clientWidth;
    	myHeight = document.body.clientHeight;
	}
    
    //xc = Math.round((document.body.clientWidth/2)-(w/2))
	//yc = Math.round((document.body.clientHeight/2)-(h/2))
	
	xc = Math.round( (myWidth/2) -(w/2))
	//yc = Math.round( (myHeight/2) -(h/2));
	yc = findPosY(bio_more_panel)
	
	if ( top.frames['staffScroller'] ) {
	   top.frames['staffScroller'].stop();
	}
	
	//hideAllBios();
	DarkenPage();
    
    // show the newsletter panel
    bio_panel.style.left = xc + "px";
    bio_panel.style.top  = yc + "px";
    bio_panel.style.display = 'block';
	
	//ScrollToElement( bio_panel )
	//window.scroll(0 , findPos( bio_panel ) )
	window.scrollTo( 0 , (yc + bio_panel.offsetHeight ) - myHeight )	

}

function ScrollToElement(theElement){

  var selectedPosX = 0;
  var selectedPosY = 0;
              
  while(theElement != null){
    selectedPosX += theElement.offsetLeft;
    selectedPosY += theElement.offsetTop;
    theElement = theElement.offsetParent;
  }
                        		      
 window.scrollTo( 0 , selectedPosY);

}

function findPos(obj) {
	var curtop = 0;
	if (obj.offsetParent) {
		do {
			curtop += obj.offsetTop;
		} while (obj = obj.offsetParent);
	return [curtop];
	}
}


function closeBioPanel( strBioID )
{
    var bio_panel = document.getElementById( strBioID );
    bio_panel.style.display = 'none';
	
	if ( top.frames['staffScroller'] ) {
		top.frames['staffScroller'].go();
	}
    LightenPage();
}

// this function puts the dark screen over the entire page
function DarkenPage()
{
    var page_screen = document.getElementById('page_screen');
    page_screen.style.height = document.body.parentNode.scrollHeight + 'px';
    page_screen.style.width = document.body.parentNode.scrollWidth + 'px';
    page_screen.style.display = 'block';
}

// this function removes the dark screen and the page is light again
function LightenPage()
{
    var page_screen = document.getElementById('page_screen');
    page_screen.style.display = 'none';
}


function findPosX(obj)
  {
    var curleft = 0;
    if(obj.offsetParent)
        while(1) 
        {
          curleft += obj.offsetLeft;
          if(!obj.offsetParent)
            break;
          obj = obj.offsetParent;
        }
    else if(obj.x)
        curleft += obj.x;
    return curleft;
  }

  function findPosY(obj)
  {
    var curtop = 0;
    if(obj.offsetParent)
        while(1)
        {
          curtop += obj.offsetTop;
          if(!obj.offsetParent)
            break;
          obj = obj.offsetParent;
        }
    else if(obj.y)
        curtop += obj.y;
    return curtop;
  }

// Will find any HTML elements that have a name attribute, including those
// that IE normally doesn't support...
function g_getObjectsByName(tag, name) {
    var tags = document.getElementsByTagName(tag);
    var obj = new Array();
    if (tags != null) {
        for (var i = 0, n = tags.length; i < n; i++) {
            if (tags[i].getAttribute("name") == name) {
                obj.push(tags[i]);
            }
        }
    }
    
    return obj;
}

function hideAllBios() {
    var expandMoreElems = g_getObjectsByName("div", "bio");
    for (var i = 0, n = expandMoreElems.length; i < n; i++) {
        //g_hideObj(expandMoreElems[i]);
        //expandMoreElems[i].style.zIndex = -100;
        //toggleDropDowns(expandMoreElems[i], false);
		expandMoreElems[i].style.display = 'none';
    }
}

function openAnnoucement(w,h) {

	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
        //Non-IE
    	myWidth = window.innerWidth;
    	myHeight = window.innerHeight;
  	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
        //IE 6+ in 'standards compliant mode'
      	myWidth = document.documentElement.clientWidth;
    	myHeight = document.documentElement.clientHeight;
  	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
      	//IE 4 compatible
    	myWidth = document.body.clientWidth;
    	myHeight = document.body.clientHeight;
	}
    
	xc = Math.round( (myWidth/2) -(w/2))
	yc = Math.round( (myHeight/2) -(h/2));
	
	var args = "top=" + yc + ",left=" + xc + ",width=" + w + ",height=" + h + ",location=0,staus=0,statusbar=0,menubar=0"
	
	window.open('aListVote.html','AListVote',args)
}