/*
	Name: Community School for Music and Arts Main CSS
 	Created 2007.10.23
 	Author: Jeremy Anderson [ Object Adjective ]
	Author URI: www.objectadjective.com
*/

// Sponsor Logo Image Folder Name
var dir = 'url(img/affiliates/';


// Start Edits Here =========================================================================


// Edit Sponsor Logos on the homepage
var Pic = new Array()
Pic[1] = dir +"appliedmaterials.jpg)"
Pic[2] = dir +"svcf.jpg)"
Pic[3] = dir +"morganfamily.jpg)"
Pic[4] = dir +"packard.jpg)"
Pic[5] = dir +"yahoo.jpg)"
Pic[6] = dir +"microsoft.jpg)"
Pic[7] = dir +"hewlett.jpg)"

// Edit Course Catalog Information Popups

var suzuki = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><h3 class="clear">The Suzuki Method</h3><p>The Suzuki Method emphasizes creating a positive, nurturing environment with lots of praise &amp; fun. Parent/caregiver &amp; child practice &amp; listen to music together at home to foster love of music, self-esteem, concentration &amp; focus. Modeled on how children acquire language, instrument playing is taught in very small steps with much repetition. Students initially learn by ear (note reading comes later) so that they can focus on posture, beautiful tone &amp; musical playing.</p><p class="alt">Parent/caregiver attendance required.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\"></a></p>'

// use for SUMMER MUSIC WORKSHOPS
var workshop = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><h3 class="clear">Summer Music Workshops</h3><p><strong>Take your playing to a whole new level!</strong> In these intensive workshops led by outstanding international teams of CSMA &amp; guest faculty, every student receives individual &amp; group instruction in solo, small &amp; large ensemble repertoire. Workshops include: master classes, digital music instruction in composition &amp; recording, theory session, special lectures &amp; demonstrations, individual practice, working with accompanists &amp; faculty, plus student &amp; faculty performances in our fine performance venue, Tateuchi Hall.</p><p><strong>Prereq:</strong> Minimum of 2 yrs of private lessons on instrument; secure knowledge of music reading at student\'s level; faculty approval or audition.</p><p><strong>Register online or by mail. With email confirming your registration, students will be asked to provide following info:</strong> instrument(s); name of private lesson teacher(s); list of 5 pieces of music learned in previous 6 months; number of years of private lessons &amp; number of years of ensemble experience. Registered students will be advised how/what to prepare for the workshop.</p><p><strong>Info:</strong> Christine McClintock, Workshop Coordinator, cmcclintock@arts4all.org</p><h4>Early Bird Desicounts</h4><p><strong>CSMA Spring Private Lesson Students:</strong> $75 discount with registration by April 25; $35 discount with registration from April 26 on.</p><p><strong>All Other Students:</strong> $50 discount with registration by April 25.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\"></a></p>'

// use for PREVIEW SESSIONS
var artworkshop = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><h3 class="clear"><strong>FREE Preview Sessions for Intro Music Classes </strong></h4><p>Classes with available FREE Preview Sessions are denoted with an asterisk (*).</p><p>&nbsp;&nbsp;&#8226;&nbsp;Meet your child&rsquo;s teacher.<br />&nbsp;&nbsp;&#8226;&nbsp;Learn about curriculum.<br />&nbsp;&nbsp;&#8226;&nbsp;Experience brief music activity.<br />&nbsp;&nbsp;&#8226;&nbsp;Participate in Q&amp;A time.</p><p>Interested parents &amp; students, whether registered or not, are welcome to attend free of charge any preview session on a space-available basis. No advance reservations; attendees admitted (first-come, first-serve) on day of preview session. <strong>Preview Sessions are held one week prior to class start date unless otherwise noted. </strong></p>p><p><em><strong>Special Enrollment &amp; Reimbursement Policy: </strong></em>Students may enroll in Intro Classes, subject to space availability, either before or after preview session. Full tuition reimbursement -- less $10 nonrefundable registration fee &amp; $10 processing fee -- available to registered students in intro classes for 3 days following preview session.</p><p><strong>Note:</strong> Attendance at preview session is not required to be eligible for this special reimbursement policy.</p>'

// use for PRESCHOOL program
var mediasampler = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><h2 class="alt clear">Preschool Music &amp; Art Classes</h2><h3>Fall Semester 2010</h3><p class="indent">Tues, Sept 7-Mon, Nov 22 (10 wks)<br /><h3>Class Info:</h3><ul><li><strong>Parent/caregiver &amp; child must attend all classes together, unless otherwise indicated</strong>.</li><li><strong>TUITION:</strong> includes $10 (per class) non-refundable registration fee.</li><li><strong>DISCOUNT:</strong> Save $25 with same semester enrollment of same child or siblings in any two or more preschool music classes (applies to #40--- only) &amp;/or art classes (applies to #41--- only).</li><li><strong>Max:</strong> 10 children per class (unless otherwise indicated)</li><li><strong>NOTE:</strong> In consideration of all enrollees, no unregistered siblings over the age of 6 months are permitted to attend.</li><li>For convenience &amp; to maximize your child&rsquo;s experience, most art &amp; music classes are scheduled back-to-back to allow for same day enrollment.</li><li>School policies, financial aid info, etc. can be found on our website or in our catalog.</li></ul><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\"></a></p>'

// use for THEORY LEVEL 3 notice
var newmedia = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><h2 class="alt clear">About Enrollment in Theory Level 3 &amp; Above</h2><p class="indent">Due to the amount of material covered, students in Theory Level 3 &amp; above often take the same class for two semesters. End-of-semester quizzes will appropriately gauge student readiness for next level.</p>'

var visualarts = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><h2 class="alt clear">Art Classes</h2><h3>Fall Semester 2010</h2><p class="indent"><span>Mon, Sept 13-Sun, Nov 21 (10 wks)<br /></p><h3>Art Class Info</h3><ul><li><strong>Tuition:</strong> includes $10 (per class) non-refundable registration fee.</li><li><strong>Materials:</strong> list provided at first class; materials supplied for Children &amp; Youth Classes.</li><li><strong>Max:</strong> 16 students per class, unless otherwise indicated.</li><li>School policies, financial aid info, etc. can be found on our website or in our catalog.</li></ul><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\"></a></p>'

var musicprogram = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><h2 class="alt clear">Music Classes</h2><h3>Fall Semester 2010<br /><span>Tue, Sept 7, 2010 - Sun, Jan 23, 2011 (16 wks)</span></h3><ul><li>Tuition: Includes $10 (per class) non-refundable registration fee.</li><li>Ages: We tailor our classes to meet precise age-appropriate skills &amp; abilities. Therefore, close attention should be paid to the mandated age requirements when registering.</li><li>Attendance: Class success depends upon regular student attendance, participation &amp; practice.</li><li>Music classes do NOT meet: Sat-Mon, Sept 4-6; Tues-Sun, Nov 2-7 (Workshop Week); Thu-Sun, Nov 25-28; Mon, Dec20-Sun, Jan 2; Mon-Wed, Jan 17-19</li><li>School policies, financial aid info, etc. can be found on our website or in our catalog.</li></ul><h3>Core Curriculum Music &amp; New Media Classes<span class="cc">cc</span></h3><p>One 16-wk class (or two 8-k classes) per semester provided FREE to private music lesson students. Open to all enrollees at tuition prices listed.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\"></a></p>'

var campsprogram = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><h2 class="alt clear">Camp Program</h2><p>Camps taught by our professional faculty offer 2½ hrs of daily instruction &amp; meet either in the morning (9:30 am-noon) OR afternoon (1-3:30 pm). Wer clothing appropriate for art.</p><p><strong><a href="../find/profiles/mross.htm">Mira Ross</a>, Camp Coordinator</strong></p><h3>Fall Semester 2010</h3><p class="indent">Mon-Thu, Dec 20-23</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\"></a></p>'

var vacationcamps = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><h2 class="alt clear">December Vacation Camps</h2><h3>Tuition</h3><p class="indent"> $115 per camp (4-day camps)<br /><em>Includes $10 (per camp) non-refundable registration fee.</em> <strong>Discount:</strong> $220(Save $10 when same child registers for 2 camps during same week.)</p><h3>Extended Day Supervision Fees</h3><p class="indent">Supervision sessions have course numbers, which appear below. Be sure to include the applicable supervision enrollment number & fee on your registration form. <strong>Important:</strong> If you enroll your child in both a morning and afternoon camp in the same session, you must enroll in Lunch Supervision.</p><table class="stripe"><tr><th></th><th>Max</th><th>Fee</th><th>Dec</th></tr><tr><td>8:30-9:30am</td><td>25</td><td>$20/4 days</td><td>50200</td></tr><tr><td>12-1pm / Bring lunch (nut-free, please)</td><td>35</td><td>$16/4 days</td><td>50201</td></tr><tr><td>3:30-5:30pm</td><td>25</td><td>$36/4 days</td><td>50202</td></tr></table>'

var summercamps = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><h2 class="alt clear">Summer Camps</h2><p><strong>Mon, June 14-Fri, Aug 20 (10 Weeks)</strong></p><h3>Tuition</h3><p>Tuition includes $10 non-refundable registration fee per camp.</p><h3> <strong>$265 per camp</strong> (2wks/10 days)</h3><h3>Family Discount</h3><p>10% off tuition for all enrolled summer camps of youngest child only.</p><h3>Extended Day Supervision Fees</h3><p>Supervision sessions have course numbers (ex. 50110), which appear below, and are printed in the downloadable catalog. Be sure to include the applicable supervision enrollment number & fee on your registration form. <strong>Important:</strong> If you enroll your child in both a morning and afternoon camp in the same session, you must enroll in Lunch Supervision.</p><p><strong>Morning: 8:30-9:30am (Max: 25)</strong><br />$50/2 wks </p><p><strong>Lunch/Noon-1 pm (Max: 35)</strong><br />$40/2 wks </p><p><strong>Afternoon/3:30-5:30 pm (Max: 25)</strong><br />$90/2 </p><h3>Waitlists</h3><p>If your child has been wait listed, we will call you if a space becomes available.</p><h3><a href="../register/policies.htm#refund">Refund Policy</a></h3><h3>Session 1 - <em>14 - 25 </em></h3><p><strong>Supervision:</strong><br />50110 Morning / 8:30-9:30am<br />50111 Lunch / Noon-1pm<br />50112 Afternoon / 3:30-5:30pm</p><h3>Session 2 - <em>June 29 – July 10 </em></h3><p><strong>Supervision:</strong><br />50120 Morning / 8:30-9:30am<br />50121 Lunch / Noon-1pm<br />50122	Afternoon / 3:30-5:30pm</p><h3>Session 3 - <em>July 13 - 24 </em></h3><p><strong>Supervision:</strong><br />50130 Morning / 8:30-9:30am<br />50131 Lunch / Noon-1pm<br />50132	Afternoon / 3:30-5:30pm</p><h3>Session 4 - <em>July 27 – August 7 </em></h3><p><strong>Supervision:</strong><br />50140 Morning / 8:30-9:30am<br />50141 Lunch / Noon-1pm<br />50142	Afternoon / 3:30-5:30pm</p><h3>Session 5 - <em>August 10 – 21</em></h3><p><strong>Supervision:</strong><br />50150 Morning / 8:30-9:30am<br />50151 Lunch / Noon-1pm<br />50152	Afternoon / 3:30-5:30pm</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\"></a></p>'



// End Edits Here ==========================================================================


function initNav(){ 
        if ( document.getElementById ){ 
                var nav = document.getElementById('nav'); 
                var navlis = nav.getElementsByTagName('li'); 
        		
                for ( var i=0; i<navlis.length; i++ ){            
                        if ( navlis.item(i).getElementsByTagName('ul')[0] ){ 
                                addAnEvent(navlis.item(i),'keyup',visible); 
                				addAnEvent(navlis.item(i),'mouseover',visible); 
                                addAnEvent(navlis.item(i),'mouseout',hidden); 
                                addAnEvent(navlis.item(i),'blur',hidden); 
                                addAnEvent(navlis.item(i),'focus',visible);
                        } 
                } 
        }
initPop(); initPopup(); initSubNav(); initFocus(); stripe(); changeContent(); initNav2();
if (document.all) sfTarget();
if(document.getElementById('bodyhome')) {initS1(); embedFlash();}
if(!document.getElementById('bodyhome')) initImage();
if(!document.getElementById('bodyhome')) getHeight();
if (document.getElementById('filterby') || document.getElementById('img') || document.getElementById('maillist') || document.getElementById('profile') || document.getElementById('workshopweek') || document.getElementById('website')) {createRequestObject(); initCat();};
if(document.getElementById('img')) findImg();
}


function initNav2(){ 
        if ( document.getElementById ){ 
                var nav = document.getElementById('nav2'); 
                var navlis = nav.getElementsByTagName('li'); 
        		
                for ( var i=0; i<navlis.length; i++ ){            
                        if ( navlis.item(i).getElementsByTagName('ul')[0] ){ 
                                addAnEvent(navlis.item(i),'keyup',visible2); 
                				addAnEvent(navlis.item(i),'mouseover',visible2); 
                                addAnEvent(navlis.item(i),'mouseout',hidden2); 
                                addAnEvent(navlis.item(i),'blur',hidden2); 
                                addAnEvent(navlis.item(i),'focus',visible2);
                        } 
                } 
        }
} 

function addAnEvent(target, eventName, functionName){ 
        eval('target.on'+eventName+'=functionName'); 
} 

function hidden(){ 
        this.getElementsByTagName('ul')[0].className = "";
		this.getElementsByTagName('a')[0].className = "";
		showSelect();
		revPos();
} 

function visible(){ 
        this.getElementsByTagName('ul')[0].className = "block";
		this.getElementsByTagName('a')[0].className = "ie";
		if(this.className == "study" || this.className == "find" || this.className == "give"){
		hideSelect();
		}
		fixPos();
}

function hidden2(){ 
        this.getElementsByTagName('ul')[0].className = "";
		this.getElementsByTagName('a')[0].className = "";
		showSelect();
} 

function visible2(){ 
        this.getElementsByTagName('ul')[0].className = "block";
		this.getElementsByTagName('a')[0].className = "ie";
		if(this.className == "study"){
		hideSelect();
		}
}

function hideSelect(){
var links=document.getElementsByTagName("select");
	var linkp;
	for(var i=0;i<links.length;i++){
		linkp = links[i];
		linkp.className = "hidden";
		}
	}
	
function showSelect(){
var links=document.getElementsByTagName("select");
	var linkp;
	for(var i=0;i<links.length;i++){
		linkp = links[i];
		linkp.className = "";
		}
	}
	
function fixPos(){
	var nav2 = document.getElementById('nav2');
var links=nav2.getElementsByTagName("li");
	var linkp;
	for(var i=0;i<links.length;i++){
		linkp = links[i];
		linkp.style.position = "static";
		}
	}
	
function revPos(){
	var nav2 = document.getElementById('nav2');
var links=nav2.getElementsByTagName("li");
	var linkp;
	for(var i=0;i<links.length;i++){
		linkp = links[i];
		linkp.style.position = "relative";
		}
	}



  function initImage() {
  imageId = 'mid';
  image = document.getElementById(imageId);
  image.className = "";
  setOpacity(image, 0);
  image.style.visibility = 'visible';
  fadeIn(imageId,0);
}


function setOpacity(obj, opacity) {
  opacity = (opacity == 100)?99.999:opacity;
  
  // IE/Win
  obj.style.filter = "alpha(opacity:"+opacity+")";
  
  // Safari<1.2, Konqueror
  obj.style.KHTMLOpacity = opacity/100;
  
  // Older Mozilla and Firefox
  obj.style.MozOpacity = opacity/100;
  
  // Safari 1.2, newer Firefox and Mozilla, CSS3
  obj.style.opacity = opacity/100;
}

function fadeIn(objId,opacity) {
  if (document.getElementById) {
    obj = document.getElementById(objId);
    if (opacity <= 100) {
      setOpacity(obj, opacity);
      opacity += 2;
      window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 10);
    }
  }
}

function initSubNav(){
	if (document.getElementById){
	//turns current subnav item on except on homepage
		if (document.getElementById('subnav')){
			var subnav = document.getElementById('subnav');  	//finds subnav element
			var subnavas = subnav.getElementsByTagName('a'); 	//finds all anchors within subnav
			for (var a=0; a<subnavas.length; a++){		//cycles through each link
				var currenthref=String(subnavas[a].href);	//assigns current link href to a string
				var currentloc=String(document.location);	//assigns current document url to a string
			
				//if the current link href matches the document url the anchor is given a class
				if (unescape(currenthref)==unescape(currentloc)){
					subnavas[a].className +=" hi";
				}
			}
	  	}
	}	
}

function initPopup(){
	var links=document.getElementsByTagName("a");
	var linkp;
	for(var i=0;i<links.length;i++){
		linkp = links[i];
		if(linkp.className == "popup"){
			linkp.title = "This document will open in a new window.";
			addAnEvent(linkp,'mousedown',targetBlank);
		}
	}
}

function initPop(){
	var links=document.getElementsByTagName("a");
	var linkp;
	for(var i=0;i<links.length;i++){
		linkp = links[i];
		if(linkp.className == "pop"){
			addAnEvent(linkp,'mousedown',targetBlank);
		}
		if(linkp.className == "justgive"){
			addAnEvent(linkp,'mousedown',targetBlank);
		}
		if(linkp.className == "map"){
			addAnEvent(linkp,'mousedown',popMap);
		}
		if(linkp.className == "parking"){
			addAnEvent(linkp,'mousedown',popPark);
		}
		if(linkp.className == "pickup"){
			addAnEvent(linkp,'mousedown',popPickup);
		}
		if(linkp.className == "popform"){
			addAnEvent(linkp,'mousedown',popForm);
		}
		if(linkp.className == "audio"){
			addAnEvent(linkp,'mousedown',showMedia);
		}
		if(linkp.className == "video"){
			addAnEvent(linkp,'mousedown',showMedia);
		}
		if(linkp.className == "floorplan"){
			addAnEvent(linkp,'mousedown',popFloor);
		}
		if(linkp.className == "popprofileform"){
			addAnEvent(linkp,'mousedown',popProfileform);
		}
		if(linkp.className == "suzuki"){
			addAnEvent(linkp,'mousedown',popSuzuki);
		}
		if(linkp.className == "wrkshop"){
			addAnEvent(linkp,'mousedown',popWorkshop);
		}
		if(linkp.className == "artwrkshop"){
			addAnEvent(linkp,'mousedown',popArtworkshop);
		}
		if(linkp.className == "mediasampler"){
			addAnEvent(linkp,'mousedown',popMediasampler);
		}
		if(linkp.className == "digitalprogram"){
			addAnEvent(linkp,'mousedown',popDigitalprogram);
		}
		if(linkp.className == "artsprogram"){
			addAnEvent(linkp,'mousedown',popArtsprogram);
		}
		if(linkp.className == "musicprogram"){
			addAnEvent(linkp,'mousedown',popMusicprogram);
		}
		if(linkp.className == "campsprogram"){
			addAnEvent(linkp,'mousedown',popCampsprogram);
		}
		if(linkp.className == "vacationcamps"){
			addAnEvent(linkp,'mousedown',popVacationcamps);
		}
		if(linkp.className == "summercamps"){
			addAnEvent(linkp,'mousedown',popSummercamps);
		}
		if(linkp.className == "pdf"){
			addAnEvent(linkp,'mousedown',targetBlank);
		}
		if(linkp.className == "doc"){
			addAnEvent(linkp,'mousedown',targetBlank);
		}
		if(linkp.className == "xls"){
			addAnEvent(linkp,'mousedown',targetBlank);
		}
		if(linkp.className == "plink"){
			addAnEvent(linkp,'click',Popup);
		}
	}
}

function targetBlank(){
	this.target = "_blank";
}

function Popup(){
 		appWindow = window.open (this.href + "?cat=no-chrome","appWindow","width=544,height=600,toolbar=0,scrollbars=1,resizable=1");
		appWindow.focus ();
		return false;
}

function popAudio(){
 		appWindow = window.open (this.href,"appWindow","width=400,height=100,toolbar=0,scrollbars=0,resizable=0");
		appWindow.focus ();
		return false;        
}

function initFocus(){
	var links=document.getElementsByTagName("input");
	var linkp;
	for(var i=0;i<links.length;i++){
		linkp = links[i];
		if(linkp.className == 'search'){
			addAnEvent(linkp,'mousedown',searchfocus)
		}
	}
}

function searchfocus(){
	onSwitch();
	this.className += " focus";
	this.value = '';
}


function onSwitch(){
	var links=document.getElementsByTagName("input");
	var linkp;
	for(var i=0;i<links.length;i++){
		linkp = links[i];
		if(linkp.className == "focus"){
			linkp.className = "";
		}
		if(linkp.className == "search focus"){
			linkp.className = "search";
			linkp.value = "Search";
		}
	}
}


// Flash Object On Homepage

function embedFlash(){
var flashvars = {};
flashvars.height = "310";
flashvars.width = "800";
flashvars.file = "flash/CSMA-home-random.swf";
flashvars.image = "img/home-mid-violin.jpg";
flashvars.autostart = "true";
flashvars.type = "swf";
var params = {};
params.play = "true";
params.loop = "true";
params.menu = "true";
params.quality = "best";
params.bgcolor = "#ffffff";
params.wmode = "opaque";
var attributes = {};
attributes.id = "mid";
swfobject.embedSWF("flash/CSMA-home-random.swf", "flash", "800", "310", "7.0.0", "flash/expressInstall.swf", flashvars, params, attributes);
}
 


// Form Actions Validations

function closePOPWindow(){
	document.getElementById('alert').className = "";
	document.getElementById('dim').className = "";
	showSelect();
	return false;
}

function closeMediaWindow(){
	document.getElementById('media').className = "";
	document.getElementById('dim').className = "";
	return false;
}

function submit_policy() {
	appWindow = window.open (this.href,"appWindow","width=800,height=600,toolbar=1,scrollbars=1,resizable=1");
	appWindow.focus ();
	appWindow.location = "https://arts4all.org/online_registration/";
	window.location = "index.htm";
}

function validate_policy()
{
    valid = true;
	var browserName = navigator.appName;
	
	if ( document.policies.accept.checked == false )
    {
        var alert = (document.getElementById('alert'));
		var dim = (document.getElementById('dim'));
		alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><p class="clear">Please indicate that you have <strong>read</strong> and <strong>accept</strong> all terms and conditions of CSMA\'s <strong>registration policies</strong>.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+50+'px';
	}
	else {
	alert.style.top = window.pageYOffset+50+'px';
	}
		alert.className = "block";
		dim.className = "block";
		valid = false;
    }

    return valid;
}

function validate_volunteer()
{
    valid = true;
	var error = (document.getElementById('error'));
	
	if ( document.icpsignup.fields_lname.value == "" )
    {
		error.innerHTML = '<p>Please enter your <strong>Last Name</strong>.</p>';
		error.className = "block";
		document.icpsignup.fields_lname.focus();
		valid = false;
    }
	if ( document.icpsignup.fields_fname.value == "" )
    {
		error.innerHTML = '<p>Please enter your <strong>First Name</strong>.</p>';
		error.className = "block";
		document.icpsignup.fields_fname.focus();
		valid = false;
    }
	
	if ( document.icpsignup.fields_email.value == "" )
    {
		error.innerHTML = '<p>Please enter your <strong>E-mail</strong> address.</p>';
		error.className = "block";
		document.icpsignup.fields_email.focus();
		valid = false;
    }
	

    return valid;
}

function validate_website()
{
    valid = true;
	var error = (document.getElementById('error'));
	
	if ( document.website.comments.value == "" )
    {
		error.innerHTML = '<p>Please enter your <strong>Comments or Inquiries</strong>.</p>';
		error.className = "block";
		document.website.comments.focus();
		valid = false;
    }
	if ( document.website.email.value == "" )
    {
		error.innerHTML = '<p>Please enter your <strong>Email</strong> address.</p>';
		error.className = "block";
		document.website.email.focus();
		valid = false;
    }
	
	if ( document.website.name.value == "" )
    {
		error.innerHTML = '<p>Please enter your <strong>Name</strong>.</p>';
		error.className = "block";
		document.website.name.focus();
		valid = false;
    }
	

    return valid;
}

function validate_login()
{
    valid = true;
	var alert = (document.getElementById('alert'));
		var dim = (document.getElementById('dim'));
		
	if ( document.login.password.value == "" )
    {
		alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><p class="clear">Please enter your <strong>Password</strong>.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		alert.className = "formerror";
		dim.className = "block";
		valid = false;
    }
	
	if ( document.login.username.value == "" )
    {
		alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><p class="clear">Please enter your <strong>User Name</strong>.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		alert.className = "formerror";
		dim.className = "block";
		valid = false;
    }
	
	

    return valid;
}

function validate_subscribe()
{
    valid = true;
	var alert = (document.getElementById('alert'));
	var dim = (document.getElementById('dim'));
	var browserName = navigator.appName;

	if (
      !document.icpsignup["listid:10854"].checked &&
      !document.icpsignup["listid:9874646"].checked &&
      !document.icpsignup["listid:4143"].checked &&
      !document.icpsignup["listid:4592"].checked &&
      !document.icpsignup["listid:9866035"].checked &&
      !document.icpsignup["listid:8676"].checked &&
      true)  {
    	alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><p class="clear">Please indicate which <strong>Mailing Lists</strong> you would like to subscribe to.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+50+'px';
	}
	else {
	alert.style.top = window.pageYOffset+50+'px';
	}
		alert.className = "formerror";
		dim.className = "block";
		valid = false;
  } 
  
  if ( document.icpsignup.fields_lname.value == "" )
    {
		alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><p class="clear">Please enter your <strong>Last Name</strong>.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+50+'px';
	}
	else {
	alert.style.top = window.pageYOffset+50+'px';
	}
		alert.className = "formerror";
		dim.className = "block";
		document.icpsignup.fields_lname.focus();
		valid = false;
    }
	
	if ( document.icpsignup.fields_fname.value == "" )
    {
		alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><p class="close">Please enter your <strong>First Name</strong>.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+50+'px';
	}
	else {
	alert.style.top = window.pageYOffset+50+'px';
	}
		alert.className = "formerror";
		dim.className = "block";
		document.icpsignup.fields_fname.focus();
		valid = false;
    }
	
	if ( document.icpsignup.fields_email.value == "")
    {
		alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><p class="clear">Please enter your <strong>Email Address</strong>.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+50+'px';
	}
	else {
	alert.style.top = window.pageYOffset+50+'px';
	}
		alert.className = "formerror";
		dim.className = "block";
		document.icpsignup.fields_email.focus();
		valid = false;
    }
	
    return valid;
}

function validate_workshop()
{
    valid = true;
	var alert = (document.getElementById('alert'));
	var dim = (document.getElementById('dim'));
	var browserName = navigator.appName;
	
	if ( document.workshopsignup.workshop1.value == "")
    {
		alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><p class="clear">Please select a <strong>Workshop</strong>.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+50+'px';
	}
	else {
	alert.style.top = window.pageYOffset+50+'px';
	}
		alert.className = "formerror";
		dim.className = "block";
		document.workshopsignup.workshop1.focus();
		valid = false;
    }
	if ( document.workshopsignup.student_instrument.value == "")
    {
		alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><p class="clear">Please enter <strong>Student\'s Instrument</strong>.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+50+'px';
	}
	else {
	alert.style.top = window.pageYOffset+50+'px';
	}
		alert.className = "formerror";
		dim.className = "block";
		document.workshopsignup.student_instrument.focus();
		valid = false;
    }
	if ( document.workshopsignup.student_teacher.value == "")
    {
		alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><p class="clear">Please enter <strong>Student\'s Teacher</strong>.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+50+'px';
	}
	else {
	alert.style.top = window.pageYOffset+50+'px';
	}
		alert.className = "formerror";
		dim.className = "block";
		document.workshopsignup.student_teacher.focus();
		valid = false;
    }
	if ( document.workshopsignup.student_age.value == "")
    {
		alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><p class="clear">Please enter <strong>Student\'s Age</strong>.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+50+'px';
	}
	else {
	alert.style.top = window.pageYOffset+50+'px';
	}
		alert.className = "formerror";
		dim.className = "block";
		document.workshopsignup.student_age.focus();
		valid = false;
    }
	if ( document.workshopsignup.email.value == "" )
    {
		alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><p class="clear">Please enter your <strong>Email Address</strong>.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+50+'px';
	}
	else {
	alert.style.top = window.pageYOffset+50+'px';
	}
		alert.className = "formerror";
		dim.className = "block";
		document.workshopsignup.email.focus();
		valid = false;
    }
  if ( document.workshopsignup.student_name.value == "" )
    {
		alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><p class="clear">Please enter <strong>Student\'s Name</strong>.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+50+'px';
	}
	else {
	alert.style.top = window.pageYOffset+50+'px';
	}
		alert.className = "formerror";
		dim.className = "block";
		document.workshopsignup.student_name.focus();
		valid = false;
    }
	
    return valid;
}

function thanks_subscribe()
{
	var alert = (document.getElementById('alert'));
	var dim = (document.getElementById('dim'));
	var browserName = navigator.appName;
	alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><h3 class="clear">Thank you for your new subscription!</h3><p>You will receive an email confirming your subscription. Please keep the email for future reference. Included is a link that will allow you to update your subscription profile.</p><p class="note">In compliance with anti-spam policies, every email we send to you will include an option to unsubscribe from our email lists.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+50+'px';
	}
	else {
	alert.style.top = window.pageYOffset+50+'px';
	}
		alert.className = "formerror";
		dim.className = "block";
		return false;
}

function thanks_website()
{
	var alert = (document.getElementById('alert'));
	var dim = (document.getElementById('dim'));
	var browserName = navigator.appName;
	alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><h3 class="clear">Thank You for Contacting us About our Website.</h3><p>We appreciate your feedback and take all inquiries seriously, in the hopes of providing the best possible service.</p><p>If you are having difficulty registering online or have questions about registration, please contact our registration office at <strong>650.917.6800</strong>.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+100+'px';
	}
	else {
	alert.style.top = window.pageYOffset+100+'px';
	}
		alert.className = "formpop";
		dim.className = "block";
		return false;
}

function thanks_workshop()
{
	var alert = (document.getElementById('alert'));
	var dim = (document.getElementById('dim'));
	var browserName = navigator.appName;
	alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><h3 class="clear">Thank you for registering for Workshop Week</h3><p>We will be in touch if there are any issues regarding your registration.</p><p>A confirmation has been sent to the email address you specified. If you do not receive this email, please contact us.</p><p class="note">(REMINDER: Please be on time for all workshops. We are unable to guarantee your participation unless you arrive on time.)</p><p>If for any reason you cannot attend a workshop, please reply to this email indicating which workshop you are unable to attend.</p><p>Sincerely,</p><p>Carrie Campbell<br />Special Programs Coordinator<br /><a href="mailto"workshops@arts4all.org">workshops@arts4all.org</a></p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+100+'px';
	}
	else {
	alert.style.top = window.pageYOffset+100+'px';
	}
		alert.className = "formpop";
		dim.className = "block";
		return false;
}

function nogo()
{
	var alert = (document.getElementById('alert'));
	var dim = (document.getElementById('dim'));
	var browserName = navigator.appName;
	alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><h3 class="clear">Sorry, no luck!</h3><p>Your request could not be sent at this time. Please try again later.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+100+'px';
	}
	else {
	alert.style.top = window.pageYOffset+100+'px';
	}
		alert.className = "formerror";
		dim.className = "block";
		return false;
}

function validate_profile()
{
    valid = true;
	var alert = (document.getElementById('alert'));
	var dim = (document.getElementById('dim'));
		
	if ( document.submitprofile.csma.value == "" )
    {
		alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><p class="clear">Please tell us what you have done <strong>At CSMA</strong>.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		alert.className = "formerror";
		dim.className = "block";
		valid = false;
    }
	
	if ( document.profile.philosophy.value == "" )
    {
		alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><p class="clear">Please tell us about your <strong>Teaching Philosophy</strong>.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		alert.className = "formerror";
		dim.className = "block";
		valid = false;
    }
	
	if ( document.profile.texperience.value == "" )
    {
		alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><p class="clear">Please tell us about your <strong>Teaching Experience</strong>.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		alert.className = "formerror";
		dim.className = "block";
		valid = false;
    }
	
	if ( document.profile.pexperience.value == "" )
    {
		alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><p class="clear">Please tell us about your <strong>Professional Experience</strong>.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		alert.className = "formerror";
		dim.className = "block";
		valid = false;
    }
	
	if ( document.profile.education.value == "" )
    {
		alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><p class="clear">Please tell us about your <strong>Education</strong>.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		alert.className = "formerror";
		dim.className = "block";
		valid = false;
    }
	
	if ( document.profile.hometown.value == "" )
    {
		alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><p class="clear">Please indicate your <strong>Hometown</strong>.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		alert.className = "formerror";
		dim.className = "block";
		valid = false;
    }
	
	if ( document.profile.focus.value == "" )
    {
		alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><p class="clear">Please indicate your <strong>Instrument(s) / Art Form(s)</strong>.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		alert.className = "formerror";
		dim.className = "block";
		valid = false;
    }
	
	if ( document.profile.name.value == "" )
    {
		alert.innerHTML = '<a class="close" href="#" onmousedown=\"closePOPWindow(); return false\">[Close Message]</a><p class="clear">Please enter your <strong>Name</strong>.</p><p class="buttons"><a class="close center" href="#" onmousedown=\"closePOPWindow(); return false\">Close</a></p><div class="clear"></div>';
		alert.className = "formerror";
		dim.className = "block";
		valid = false;
    }
	
	

    return valid;
}



function popForm() {
		var div = (document.getElementById('alert'));
		var dim = (document.getElementById('dim'));
		var browserName = navigator.appName;
		if(browserName == "Microsoft Internet Explorer"){
	div.style.top = document.documentElement.scrollTop+50+'px';
	}
	else {
	div.style.top = window.pageYOffset+50+'px';
	}
		div.className = "formpop";
		dim.className = "block";
		this.href = 'javascript:void(null);';
		return false;
}



function popMap() {
		var alert = (document.getElementById('alert'));
		var dim = (document.getElementById('dim'));
		var browserName = navigator.appName;
		if(browserName == "Microsoft Internet Explorer"){
			alert.style.top = document.documentElement.scrollTop+50+'px';
		}
		else {
			alert.style.top = window.pageYOffset+50+'px';
		}
		alert.innerHTML = '<a href="#" onmousedown=\"closePOPWindow(); return false\"></a>';
		alert.className = "directions";
		dim.className = "block";
}

function popPark() {
		var alert = (document.getElementById('alert'));
		var dim = (document.getElementById('dim'));
		var browserName = navigator.appName;
		if(browserName == "Microsoft Internet Explorer"){
			alert.style.top = document.documentElement.scrollTop+50+'px';
		}
		else {
			alert.style.top = window.pageYOffset+50+'px';
		}
		alert.innerHTML = '<a href="#" onmousedown=\"closePOPWindow(); return false\"></a>';
		alert.className = "parking-map";
		dim.className = "block";
}

function popPickup() {
		var alert = (document.getElementById('alert'));
		var dim = (document.getElementById('dim'));
		var browserName = navigator.appName;
		if(browserName == "Microsoft Internet Explorer"){
			alert.style.top = document.documentElement.scrollTop+50+'px';
		}
		else {
			alert.style.top = window.pageYOffset+50+'px';
		}
		alert.innerHTML = '<a href="#" onmousedown=\"closePOPWindow(); return false\"></a>';
		alert.className = "pickup-map";
		dim.className = "block";
}

function popFloor() {
		var alert = (document.getElementById('alert'));
		var dim = (document.getElementById('dim'));
		var browserName = navigator.appName;
		if(browserName == "Microsoft Internet Explorer"){
			alert.style.top = document.documentElement.scrollTop+50+'px';
		}
		else {
			alert.style.top = window.pageYOffset+50+'px';
		}
		alert.innerHTML = '<a href="#" onmousedown=\"closePOPWindow(); return false\"></a>';
		alert.className = "floor";
		dim.className = "block";
}



function showMedia(){
		var href = this.getAttribute('name');
		var desc = this.title;
		var alert = (document.getElementById('media'));
		var dim = (document.getElementById('dim'));
		var browserName = navigator.appName;
		if(browserName == "Microsoft Internet Explorer"){
			alert.style.top = document.documentElement.scrollTop+50+'px';
		}
		else {
			alert.style.top = window.pageYOffset+50+'px';
		}
		alert.innerHTML = '<a href="#" id="close" onClick="closeMediaWindow(); hideMedia(); return false">Close</a><object height="260" width="320"><param id="osrc" name="src" value="'+href+'"><param name="autoplay" value="true"><param name="type" value="" height="260" width="320"><embed id="esrc" src="'+href+'" height="260" width="320" autoplay="true" type=""></embed></object><p id="mtitle">'+desc+'</p>';
		alert.className = "canvas";
		dim.className = "block";
		this.href = 'javascript:void(null);';
		return false;
}

function hideMedia(){
	var alert = (document.getElementById('media'));
	alert.innerHTML = '';
}
	

function popSuzuki() {
		var alert = (document.getElementById('alert'));
		var dim = (document.getElementById('dim'));
		var browserName = navigator.appName;
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+50+'px';
	}
	else {
	alert.style.top = window.pageYOffset+50+'px';
	}
		alert.innerHTML = suzuki;
		alert.className = "programnote";
		dim.className = "block";
		hideSelect();
		return false;
}

function popWorkshop() {
		var alert = (document.getElementById('alert'));
		var dim = (document.getElementById('dim'));
		var browserName = navigator.appName;
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+50+'px';
	}
	else {
	alert.style.top = window.pageYOffset+50+'px';
	}
		alert.innerHTML = workshop;
		alert.className = "programnote";
		dim.className = "block";
		hideSelect();
		return false;
}

function popArtworkshop() {
		var alert = (document.getElementById('alert'));
		var dim = (document.getElementById('dim'));
		var browserName = navigator.appName;
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+50+'px';
	}
	else {
	alert.style.top = window.pageYOffset+50+'px';
	}
		alert.innerHTML = artworkshop;
		alert.className = "programnote";
		dim.className = "block";
		hideSelect();
		return false;
}

function popMediasampler() {
		var alert = (document.getElementById('alert'));
		var dim = (document.getElementById('dim'));
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+50+'px';
	}
	else {
	alert.style.top = window.pageYOffset+50+'px';
	}
		alert.innerHTML = mediasampler;
		alert.className = "programnote";
		dim.className = "block";
		hideSelect();
		return false;
}

function popDigitalprogram() {
		var alert = (document.getElementById('alert'));
		var dim = (document.getElementById('dim'));
		var browserName = navigator.appName;
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+50+'px';
	}
	else {
	alert.style.top = window.pageYOffset+50+'px';
	}
		alert.innerHTML = newmedia;
		alert.className = "programnote";
		dim.className = "block";
		hideSelect();
		return false;
}

function popArtsprogram() {
		var alert = (document.getElementById('alert'));
		var dim = (document.getElementById('dim'));
		var browserName = navigator.appName;
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+50+'px';
	}
	else {
	alert.style.top = window.pageYOffset+50+'px';
	}
		alert.innerHTML = visualarts;
		alert.className = "programnote";
		dim.className = "block";
		hideSelect();
		return false;
}

function popMusicprogram() {
		var alert = (document.getElementById('alert'));
		var dim = (document.getElementById('dim'));
		var browserName = navigator.appName;
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+50+'px';
	}
	else {
	alert.style.top = window.pageYOffset+50+'px';
	}
		alert.innerHTML = musicprogram;
		alert.className = "programnote";
		dim.className = "block";
		hideSelect();
		return false;
}

function popCampsprogram() {
		var alert = (document.getElementById('alert'));
		var dim = (document.getElementById('dim'));
		var browserName = navigator.appName;
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+50+'px';
	}
	else {
	alert.style.top = window.pageYOffset+50+'px';
	}
		alert.innerHTML = campsprogram;
		alert.className = "programnote";
		dim.className = "block";
		hideSelect();
		return false;
}

function popVacationcamps() {
		var alert = (document.getElementById('alert'));
		var dim = (document.getElementById('dim'));
		var browserName = navigator.appName;
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+50+'px';
	}
	else {
	alert.style.top = window.pageYOffset+50+'px';
	}
		alert.innerHTML = vacationcamps;
		alert.className = "programnote";
		dim.className = "block";
		stripe();
		hideSelect();
		return false;
}

function popSummercamps() {
		var alert = (document.getElementById('alert'));
		var dim = (document.getElementById('dim'));
		var browserName = navigator.appName;
		if(browserName == "Microsoft Internet Explorer"){
	alert.style.top = document.documentElement.scrollTop+50+'px';
	}
	else {
	alert.style.top = window.pageYOffset+50+'px';
	}
		alert.innerHTML = summercamps;
		getHeight();
		alert.className = "programnote";
		dim.className = "block";
		hideSelect();
		return false;
}


// Dim Layer for POPUP DIVS


function getHeight(){
	if (parseInt(navigator.appVersion)>3) {
 if (navigator.appName=="Netscape") {
  wind = window.innerWidth;
  wind = window.innerHeight;
 }
 if (navigator.appName.indexOf("Microsoft")!=-1) {
  wind = document.body.offsetWidth;
  wind = document.body.offsetHeight;
 }
}
	var divh = document.getElementById('wrapper').offsetHeight;
	var lock = document.getElementById('dim');
	if (divh >= wind){
	lock.style.height = divh +20+"px";
	}
	else {lock.style.height =wind +80+"px";}
	addAnEvent(lock,'mousedown',closePOPWindow);
}

//================= Table Striping ==========================



// this function is needed to work around 
// a bug in IE related to element attributes
function hasClass(obj) {
	var result = false;
	if (obj.getAttributeNode("class") != null) {
		result = obj.getAttributeNode("class").value;
	}
	return result;
}   

function stripe(id) {
	// obtain a reference to the desired table
	// if no such table exists, abort
	var inc = 0;
	var tables = new Array();
	var alltags = document.getElementsByTagName("table")
	for (i=0; i<alltags.length; i++){
		var classname = alltags[i].className
		var classname = classname.split(" ");
		for (var j=0; j < classname.length; j++)
		if (classname[j]=="stripe")
			tables[inc++]=alltags[i];
	}
	

    for (var g = 0; g < tables.length; g++){
	    // by definition, tables can have more than one tbody
		// element, so we'll have to get the list of child
		// &lt;tbody&gt;s 
	    var tbodies = tables[g].getElementsByTagName("tbody");

		// and iterate through them...
	    for (var h = 0; h < tbodies.length; h++) {
    		// find all the tr elements... 
			var trs = tbodies[h].getElementsByTagName("tr");
			// ... and iterate through them
			for (var i = 0; i < trs.length; i++) {
				// avoid rows that have a class attribute
				// or backgroundColor style
				if (! hasClass(trs[i]) && ! trs[i].style.backgroundColor) {
					var isEven = (i % 2) ? "even" : "odd"
					trs[i].className = isEven;
				}
			}
		}
	}
}


// Target Linking Highlights

function sfTarget () {
	var sfEls=document.getElementsByTagName("div");
	var aEls = document.getElementsByTagName("a");
	document.lastTarget = null;
	for (var i=0; i<sfEls.length; i++) {
		if (sfEls[i].id) {
			if (location.hash==("#" + sfEls[i].id)) {
				sfEls[i].className+=" sftarget";
				document.lastTarget=sfEls[i];
			}
			for (var j=0; j<aEls.length; j++) {
				if (aEls[j].hash==("#" + sfEls[i].id)) aEls[j].targetEl = sfEls[i]; aEls[j].onFocus = function() {
					if (document.lastTarget) document.lastTarget.className = document.lastTarget.className.replace(new RegExp(" sftarget\\b"), "");
					if (this.targetEl) this.targetEl.className+=" sftarget"; document.lastTarget=this.targetEl;
					return true;
				}
			}
		}
	}
}

//===========================================

function createRequestObject() {
  FORM_DATA = new Object();
    // The Object ("Array") where our data will be stored.
  separator = ',';
    // The token used to separate data from multi-select inputs
  query = '' + this.location;
  qu = query
    // Get the current URL so we can parse out the data.
    // Adding a null-string '' forces an implicit type cast
    // from property to string, for NS2 compatibility.
  query = query.substring((query.indexOf('?')) + 1);
    // Keep everything after the question mark '?'.
  if (query.length < 1) { return false; }  // Perhaps we got some bad data?
  keypairs = new Object();
  numKP = 1;
    // Local vars used to store and keep track of name/value pairs
    // as we parse them back into a usable form.
  while (query.indexOf('&') > -1) {
    keypairs[numKP] = query.substring(0,query.indexOf('&'));
    query = query.substring((query.indexOf('&')) + 1);
    numKP++;
      // Split the query string at each '&', storing the left-hand side
      // of the split in a new keypairs[] holder, and chopping the query
      // so that it gets the value of the right-hand string.
  }
  keypairs[numKP] = query;
    // Store what's left in the query string as the final keypairs[] data.<
  for (i in keypairs) {
    keyName = keypairs[i].substring(0,keypairs[i].indexOf('='));
      // Left of '=' is name.
    keyValue = keypairs[i].substring((keypairs[i].indexOf('=')) + 1);
      // Right of '=' is value.
    while (keyValue.indexOf('+') > -1) {
      keyValue = keyValue.substring(0,keyValue.indexOf('+')) + ' ' + keyValue.substring(keyValue.indexOf('+') + 1);
        // Replace each '+' in data string with a space.
    }
    keyValue = unescape(keyValue);
      // Unescape non-alphanumerics
    if (FORM_DATA[keyName]) {
      FORM_DATA[keyName] = FORM_DATA[keyName] + separator + keyValue;
        // Object already exists, it is probably a multi-select input,
        // and we need to generate a separator-delimited string
        // by appending to what we already have stored.
    } else {
      FORM_DATA[keyName] = keyValue;
        // Normal case: name gets value.
    }
  }
  return FORM_DATA;
}
FORM_DATA = createRequestObject();
  // This is the array/object containing the GET data.
  // Retrieve information with 'FORM_DATA [ key ] = value'.


//===========================================

// Form Data URL Query Strings

function initCat(){
  var thiscat = FORM_DATA['cat'];
  var thisage = FORM_DATA['age'];
  var thismonth = FORM_DATA['month'];
  var digital = document.getElementById('digital');
  var music = document.getElementById('music');
  var art = document.getElementById('art');
  var artclub = document.getElementById('artclub');
  var preschool = document.getElementById('preschool');
  var dpt = document.getElementById('department');
  var mid = document.getElementById('mid');
  var wrapper = document.getElementById('wrapper');
  var header = document.getElementById('header');
  var nav2 = document.getElementById('nav2');
  var content = document.getElementById('content');
  var subnav = document.getElementById('subnav');
  var footer = document.getElementById('footer');

	if (thiscat == "no-chrome"){
		wrapper.style.width = "auto";
		header.style.display = "none";
		nav2.style.display = "none";
		mid.style.display = "none";
		content.className = "no-chrome";
		subnav.style.display = "none";
		footer.style.display = "none";
		}
	if (thiscat == "digital"){
		htmlData('../inc/staff.php', 'ch='+'digital');
		dpt.focus();
		digital.selected = true;
		}
	if (thiscat == "music"){
		htmlData('../inc/staff.php', 'ch='+'music');
		dpt.focus();
		music.selected = true;
		}
	if (thiscat == "art"){
		htmlData('../inc/staff.php', 'ch='+'visual arts');
		dpt.focus();
		art.selected = true;
		}
	if (thiscat == "artclub"){
		htmlData('../inc/staff.php', 'ch='+'arts in action art club');
		dpt.focus();
		artclub.selected = true;
		}
	if (thiscat == "preschool"){
		htmlData('../inc/staff.php', 'ch='+'preschool');
		dpt.focus();
		preschool.selected = true;
		}
	if (thiscat == "staff"){
		initStaff();
		}
	if (thiscat == "artgallery"){
		showArt();
		}
	if (thiscat == "musicstudio"){
		showMusic();
		}
	if (thiscat == "digitalgallery"){
		showDigital();
		}
	if (thiscat == "thanks"){
		thanks_subscribe();
		}
	if (thiscat == "thankyou"){
		thanks_website();
		}
	if (thiscat == "thank_you"){
		thanks_workshop();
		}
	if (thiscat == "nogo"){
		nogo();
		}
	if (thiscat == "received"){
		thanks_profile();
		}
	if (thiscat == "all"){
		attendAll();
		}
	if (thiscat == "performances"){
		attendPerformances();
		}
	if (thiscat == "exhibitions"){
		attendExhibitions();
		}
	if (thiscat == "special"){
		attendSpecial();
		}
	if (thiscat == "rental"){
		attendRental();
		}
	if (thismonth == "m2"){
		showM2();
		}
	if (thismonth == "m3"){
		showM3();
		}
	if (thismonth == "m4"){
		showM4();
		}
	if (thismonth == "m5"){
		showM5();
		}
	if (thismonth == "m6"){
		showM6();
		}
// Start Course Catalog Loops
	if (thiscat == "music-program"){
		var prog = document.getElementById('program');
		prog.value = "music program";
		filterPrograms();
		initMusic();
		}
	if (thiscat == "art-program"){
		var prog = document.getElementById('program');
		prog.value = "art program";
		filterPrograms();
		}
	if (thiscat == "digital-program"){
		var prog = document.getElementById('program');
		prog.value = "new media program";
		filterPrograms();
		}
	if (thiscat == "camps"){
		var prog = document.getElementById('program');
		prog.value = "camps";
		filterPrograms();
		}
	if (thisage == "preschool"){
		var age = document.getElementById('age');
		age.value = "preschool";
		filterAge();
		}
	if (thisage == "children"){
		var age = document.getElementById('age');
		age.value = "children";
		filterAge();
		}
	if (thisage == "teen"){
		var age = document.getElementById('age');
		age.value = "teen / adult";
		filterAge();
		}
	if (thisage == "adult"){
		var age = document.getElementById('age');
		age.value = "adult";
		filterAge();
		}
	if (thisage == "allages"){
		var age = document.getElementById('age');
		age.value = "all ages";
		filterAge();
		}
	getHeight();
  	}
	

	
// Start Course Catalog Functions
	
function filterPrograms(){
	var program = document.filterprogram.program.value
	var music = document.getElementById('music');
	var art = document.getElementById('art');
	var digital = document.getElementById('digital');
	var camps = document.getElementById('camps');
	if(program == 'music program'){
		switchContent();
		music.className = "block";
		initMusic();
			}
	if(program == 'art program'){
		switchContent();
		art.className = "block";
		initArt();
			}
	if(program == 'new media program'){
		switchContent();
		digital.className = "block";
		initDigital();
			}
	if(program == 'camps'){
		switchContent();
		camps.className = "block";
		initFinn();
			}
	getHeight();
}

function filterAge() {
	var divs = document.getElementsByTagName("div");
	var divp;
	for(var i=0;i<divs.length;i++){
		divp = divs[i];
		if(document.filterage.age.value == 'preschool'){
			if(divp.className == "preschool"){
			divp.style.display = "block";
			}
			if(divp.className == "children"){
			divp.style.display = "none";
			}
			if(divp.className == "teen"){
			divp.style.display = "none";
			}
			if(divp.className == "adult"){
			divp.style.display = "none";
			}
		}
		if(document.filterage.age.value == 'children'){
			if(divp.className == "preschool"){
			divp.style.display = "none";
			}
			if(divp.className == "children"){
			divp.style.display = "block";
			}
			if(divp.className == "teen"){
			divp.style.display = "none";
			}
			if(divp.className == "adult"){
			divp.style.display = "none";
			}
		}
		if(document.filterage.age.value == 'teen / adult'){
			if(divp.className == "preschool"){
			divp.style.display = "none";
			}
			if(divp.className == "children"){
			divp.style.display = "none";
			}
			if(divp.className == "teen"){
			divp.style.display = "block";
			}
			if(divp.className == "adult"){
			divp.style.display = "none";
			}
		}
		if(document.filterage.age.value == 'adult'){
			if(divp.className == "preschool"){
			divp.style.display = "none";
			}
			if(divp.className == "children"){
			divp.style.display = "none";
			}
			if(divp.className == "teen"){
			divp.style.display = "block";
			}
			if(divp.className == "adult"){
			divp.style.display = "none";
			}
		}
		if(document.filterage.age.value == '--- Select Age Range ---' || document.filterage.age.value == 'all ages'){
			if(divp.className == "preschool"){
			divp.style.display = "block";
			}
			if(divp.className == "children"){
			divp.style.display = "block";
			}
			if(divp.className == "teen"){
			divp.style.display = "block";
			}
			if(divp.className == "adult"){
			divp.style.display = "block";
			}
		}
	}
	getHeight();
}

function initMusic() {
  var age = document.getElementById('filterage');
  age.innerHTML = '<select id="age" name="age" onchange="filterAge();"><option selected disabled>--- Select Age Range ---</option><option id="preschool-age" value="preschool">Preschool</option><option id="children-age" value="children">Children / Youth</option><option id="teenadult-age" value="teen / adult">Teen / Adult</option><option id="adult-age" value="adult">Adult</option></select>';
  imageId = 'mid';
  image = document.getElementById(imageId);
  image.className = "music";
  setOpacity(image, 0);
  image.style.visibility = 'visible';
  fadeIn(imageId,0);
  filterAge();
}

function initArt() {
  var age = document.getElementById('filterage');
  age.innerHTML = '<select id="age" name="age" onchange="filterAge();"><option selected disabled>--- Select Age Range ---</option><option id="preschool-age" value="preschool">Preschool</option><option id="children-age" value="children">Children / Youth</option><option id="teenadult-age" value="teen / adult">Teen / Adult</option><option id="adult-age" value="adult">Adult</option></select>';
  imageId = 'mid';
  image = document.getElementById(imageId);
  image.className = "art";
  setOpacity(image, 0);
  image.style.visibility = 'visible';
  fadeIn(imageId,0);
  filterAge();
}

function initDigital() {
  var age = document.getElementById('filterage');
  age.innerHTML = '<select id="age" name="age" onchange="filterAge();"><option id="all-age" value="all ages">All Ages</option></select>';
  imageId = 'mid';
  image = document.getElementById(imageId);
  image.className = "digital";
  setOpacity(image, 0);
  image.style.visibility = 'visible';
  fadeIn(imageId,0);
  filterAge();
}

function initFinn() {
    var age = document.getElementById('filterage');
  age.innerHTML = '<select id="age" name="age" onchange="filterAge();"><option id="children-age" value="children">Children / Youth</option></select>';
  imageId = 'mid';
  image = document.getElementById(imageId);
  image.className = "";
  setOpacity(image, 0);
  image.style.visibility = 'visible';
  fadeIn(imageId,0);
  filterAge();
}
	

	
function attendAll(){
	document.getElementById('all').selected = true;
	filterEvents();
}

function attendPerformances(){
	document.getElementById('performances').selected = true;
	filterEvents();
}

function attendExhibitions(){
	document.getElementById('exhibitions').selected = true;
	filterEvents();
}

function attendSpecial(){
	document.getElementById('special').selected = true;
	filterEvents();
}

function attendRental(){
	document.getElementById('rental').selected = true;
	filterEvents();
}
	
function filterEvents() {
	var showm = document.getElementById('rentalevent');
	var hidem = document.getElementById('smallrentalevent');
	var hidem2 = document.getElementById('norental');
	var divs=document.getElementsByTagName("div");
	var divp;
	for(var i=0;i<divs.length;i++){
		divp = divs[i];
		if(document.filterevents.events.value == 'exhibitions'){
			showm.style.display = "none";
			hidem.style.display = "block";
			hidem2.style.display = "block";
			if(divp.className == "exhibition"){
			divp.style.display = "block";
			}
			if(divp.className == "performance"){
			divp.style.display = "none";
			}
			if(divp.className == "special"){
			divp.style.display = "none";
			}
			if(divp.className == "rental"){
			divp.style.display = "none";
			}
			if(divp.className == "noevents"){
			divp.style.display = "block";
			}
			if(divp.className == "special-exhibition"){
			divp.style.display = "block";
			}
			if(divp.className == "special-performance"){
			divp.style.display = "none";
			}
			if(divp.className == "special-performance-exhibition"){
			divp.style.display = "block";
			}
		}
		if(document.filterevents.events.value == 'performances'){
			showm.style.display = "none";
			hidem.style.display = "block";
			hidem2.style.display = "block";
			if(divp.className == "exhibition"){
			divp.style.display = "none";
			}
			if(divp.className == "performance"){
			divp.style.display = "block";
			}
			if(divp.className == "special"){
			divp.style.display = "none";
			}
			if(divp.className == "rental"){
			divp.style.display = "none";
			}
			if(divp.className == "noevents"){
			divp.style.display = "block";
			}
			if(divp.className == "special-exhibition"){
			divp.style.display = "none";
			}
			if(divp.className == "special-performance"){
			divp.style.display = "block";
			}
			if(divp.className == "special-performance-exhibition"){
			divp.style.display = "block";
			}
		}
		if(document.filterevents.events.value == 'special'){
			showm.style.display = "none";
			hidem.style.display = "block";
			hidem2.style.display = "block";
			if(divp.className == "exhibition"){
			divp.style.display = "none";
			}
			if(divp.className == "performance"){
			divp.style.display = "none";
			}
			if(divp.className == "special"){
			divp.style.display = "block";
			}
			if(divp.className == "rental"){
			divp.style.display = "none";
			}
			if(divp.className == "noevents"){
			divp.style.display = "block";
			}
			if(divp.className == "special-exhibition"){
			divp.style.display = "block";
			}
			if(divp.className == "special-performance"){
			divp.style.display = "block";
			}
			if(divp.className == "special-performance-exhibition"){
			divp.style.display = "block";
			}
		}
		if(document.filterevents.events.value == 'rental'){
			showm.style.display = "block";
			hidem.style.display = "none";
			hidem2.style.display = "none";
			if(divp.className == "exhibition"){
			divp.style.display = "none";
			}
			if(divp.className == "performance"){
			divp.style.display = "none";
			}
			if(divp.className == "special"){
			divp.style.display = "none";
			}
			if(divp.className == "rental"){
			divp.style.display = "block";
			}
			if(divp.className == "noevents"){
			divp.style.display = "block";
			}
			if(divp.className == "special-exhibition"){
			divp.style.display = "none";
			}
			if(divp.className == "special-performance"){
			divp.style.display = "none";
			}
			if(divp.className == "special-performance-exhibition"){
			divp.style.display = "none";
			}
		}
		if(document.filterevents.events.value == 'all'){
			showm.style.display = "none";
			hidem.style.display = "block";
			hidem2.style.display = "block";
			if(divp.className == "exhibition"){
			divp.style.display = "block";
			}
			if(divp.className == "performance"){
			divp.style.display = "block";
			}
			if(divp.className == "special"){
			divp.style.display = "block";
			}
			if(divp.className == "rental"){
			divp.style.display = "block";
			}
			if(divp.className == "noevents"){
			divp.style.display = "none";
			}
			if(divp.className == "special-exhibition"){
			divp.style.display = "block";
			}
			if(divp.className == "special-performance"){
			divp.style.display = "block";
			}
			if(divp.className == "special-performance-exhibition"){
			divp.style.display = "block";
			}
		}
	}
	
	
}


	

// Change Content [ Content TABS ]

function changeContent(){
		var ftab = document.getElementById("faculty-tab");
		var stab = document.getElementById("staff-tab");
		var btab = document.getElementById("board-tab");
		var mohrtab = document.getElementById("mohr-tab");
		var arttab = document.getElementById("art-tab");
		var musictab = document.getElementById("music-tab");
		var digitaltab = document.getElementById("digital-tab");
		var m1 = document.getElementById("m1-tab");
		var m2 = document.getElementById("m2-tab");
		var m3 = document.getElementById("m3-tab");
		var m4 = document.getElementById("m4-tab");
		var m5 = document.getElementById("m5-tab");
		var m6 = document.getElementById("m6-tab");
	if(document.getElementById("faculty-tab")){
		addAnEvent(ftab,'mousedown',initFaculty);
		addAnEvent(stab,'mousedown',initStaff);
		addAnEvent(btab,'mousedown',initBoard);
	}
	if(document.getElementById("mohr-tab")){
		addAnEvent(mohrtab,'mousedown', showMohr);
		addAnEvent(arttab,'mousedown', showArt);
		addAnEvent(musictab,'mousedown', showMusic);
		addAnEvent(digitaltab,'mousedown', showDigital);
		}
	if(document.getElementById("m1-tab")){
		addAnEvent(m1,'mousedown', showM1);
		addAnEvent(m2,'mousedown', showM2);
		addAnEvent(m3,'mousedown', showM3);
		addAnEvent(m4,'mousedown', showM4);
		addAnEvent(m5,'mousedown', showM5);
		addAnEvent(m6,'mousedown', showM6);
		}
}

function initFaculty(){
	var ftab = document.getElementById("faculty-tab");
	var faculty = document.getElementById("faculty");
	var opt = document.getElementById('select');
	opt.selected = true;
	htmlData('../inc/staff.php', 'ch='+'');
	switchContent();
	ftab.className = "on";
	faculty.className = "block";
	this.href = 'javascript:void(null);';
	return false;
}

function initStaff(){
	var stab = document.getElementById("staff-tab");
	var staff = document.getElementById("staff");
	htmlData('../inc/staff.php', 'ch='+'staff');
	switchContent();
	stab.className = "on";
	staff.className = "block";
	this.href = 'javascript:void(null);';
	return false;
}

function initBoard(){
	var btab = document.getElementById("board-tab");
	var board = document.getElementById("board");
	htmlData('../inc/staff.php', 'ch='+'board');
	switchContent();
	btab.className = "on";
	board.className = "block";
	this.href = 'javascript:void(null);';
	return false;
}

function showArt(){
	switchContent();
	var artg = document.getElementById('gallery-art');
	var atab = document.getElementById('art-tab');
	artg.className = "block";
	atab.className="on";
	getHeight();
	this.href = 'javascript:void(null);';
	return false;
}

function showMohr(){
	switchContent();
	var mohrg = document.getElementById('gallery-mohr');
	mohrg.className = "block";
	this.className="on";
	getHeight();
	this.href = 'javascript:void(null);';
	return false;
}

function showMusic(){
	switchContent();
	var musicg = document.getElementById('gallery-music');
	var mtab = document.getElementById('music-tab');
	musicg.className = "block";
	mtab.className="on";
	getHeight();
	this.href = 'javascript:void(null);';
	return false;
}

function showDigital(){
	switchContent();
	var digitalg = document.getElementById('gallery-digital');
	var dtab = document.getElementById('digital-tab');
	digitalg.className = "block";
	dtab.className="on";
	getHeight();
	this.href = 'javascript:void(null);';
	return false;
}

function showM1(){
	switchContent();
	var m1 = document.getElementById('m1');
	var m1tab = document.getElementById('m1-tab');
	m1.className = "block";
	m1tab.className="on";
	this.href = 'javascript:void(null);';
	return false;
}

function showM2(){
	switchContent();
	var m2 = document.getElementById('m2');
	var m2tab = document.getElementById('m2-tab');
	m2.className = "block";
	m2tab.className="on";
	this.href = 'javascript:void(null);';
	return false;
}

function showM3(){
	switchContent();
	var m3 = document.getElementById('m3');
	var m3tab = document.getElementById('m3-tab');
	m3.className = "block";
	m3tab.className="on";
	this.href = 'javascript:void(null);';
	return false;
}

function showM4(){
	switchContent();
	var m4 = document.getElementById('m4');
	var m4tab = document.getElementById('m4-tab');
	m4.className += "block";
	m4tab.className="on";
	this.href = 'javascript:void(null);';
	return false;
}

function showM5(){
	switchContent();
	var m5 = document.getElementById('m5');
	var m5tab = document.getElementById('m5-tab');
	m5.className = "block";
	m5tab.className="on";
	this.href = 'javascript:void(null);';
	return false;
}

function showM6(){
	switchContent();
	var m6 = document.getElementById('m6');
	var m6tab = document.getElementById('m6-tab');
	m6.className = "block";
	m6tab.className="on";
	this.href = 'javascript:void(null);';
	return false;
}

function switchContent(){
	var links=document.getElementsByTagName("a");
	var linkp;
	var contents=document.getElementsByTagName("div");
	var contentp;
	var imgs=document.getElementsByTagName("img");
	var imgp;
	for(var i=0;i<contents.length;i++){
		contentp = contents[i];
		if(contentp.className == "block"){
			contentp.className = "";
		}
	}
	for(var i=0;i<links.length;i++){
		linkp = links[i];
		if(linkp.className == "on"){
			linkp.className = "";
		}
	}
	for(var i=0;i<imgs.length;i++){
		imgp = imgs[i];
		if(imgp.className == "imghover"){
			imgp.className = "";
		}
	}
}



function toggleLayer( whichLayer )
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
  getHeight();
}

// These Control the Sponsor Logos on the homepage
//===========================================================================================

//Portfolio viewer
document.write("<style type='text/css'>\n" +  "#viewer {visibility:hidden;}\n" + "</style>");



function initS1() {
var imageId = 'viewer';
var image = document.getElementById('viewer');
  document.getElementById('viewer').style.backgroundImage =Pic[1];
  image.style.visibility = 'visible';
  setOpacity(image, 0);
  fadeIn(imageId,0);
  setS2();
  return false;
}

function setS2()
{
  setTimeout("initS2()", 13000);
 }
 
function initS2() {
var imageId = 'viewer';
var image = document.getElementById('viewer');
  document.getElementById('viewer').style.backgroundImage =Pic[2];
  image.style.visibility = 'visible';
  setOpacity(image, 0);
  fadeIn(imageId,0);
  setS3();
  return false;
}

function setS3()
{
  setTimeout("initS3()", 13000);
 }
 
 function initS3() {
var imageId = 'viewer';
var image = document.getElementById('viewer');
  document.getElementById('viewer').style.backgroundImage =Pic[3];
  image.style.visibility = 'visible';
  setOpacity(image, 0);
  fadeIn(imageId,0);
  setS4();
  return false;
}

function setS4()
{
  setTimeout("initS4()", 13000);
 }
 
 function initS4() {
var imageId = 'viewer';
var image = document.getElementById('viewer');
  document.getElementById('viewer').style.backgroundImage =Pic[4];
  image.style.visibility = 'visible';
  setOpacity(image, 0);
  fadeIn(imageId,0);
  setS5();
  return false;
}

function setS5()
{
  setTimeout("initS5()", 13000);
 }
 
 function initS5() {
var imageId = 'viewer';
var image = document.getElementById('viewer');
  document.getElementById('viewer').style.backgroundImage =Pic[5];
  image.style.visibility = 'visible';
  setOpacity(image, 0);
  fadeIn(imageId,0);
  setS6();
  return false;
}

function setS6()
{
  setTimeout("initS6()", 13000);
 }

 function initS6() {
var imageId = 'viewer';
var image = document.getElementById('viewer');
  document.getElementById('viewer').style.backgroundImage =Pic[6];
  image.style.visibility = 'visible';
  setOpacity(image, 0);
  fadeIn(imageId,0);
  setS7();
  return false;
}

function setS7()
{
  setTimeout("initS7()", 13000);
 }

 function initS7() {
var imageId = 'viewer';
var image = document.getElementById('viewer');
  document.getElementById('viewer').style.backgroundImage =Pic[7];
  image.style.visibility = 'visible';
  setOpacity(image, 0);
  fadeIn(imageId,0);
  setS1();
  return false;
}



function setS1()
{
  setTimeout("initS1()", 13000);
 }


window.onload = initNav;