/*
Toggle Layer Visibility
© Eddie Traversa (nirvana.media3.net)
To add more shock to your site, visit www.DHTMLShock.com
*/
function toggleVisibility(id,NNtype,IEtype,WC3type,displayType) {
	if (document.getElementById) {
		eval("document.getElementById(id).style.visibility = \"" + WC3type + "\"");
		eval("document.getElementById(id).style.display = \"" + displayType + "\"");
	} else {
		if (document.layers) {
  		document.layers[id].visibility=NNtype;
  		document.layers[id].display=displayType;
		} else {
  		if (document.all) {
    		eval("document.all." + id + ".style.visibility = \"" + IEtype + "\"");
    		eval("document.all." + id + ".style.display = \"" + displayType + "\"");
		  }
	  }
  }
//end function
}

//display appropriate copy
function setLayer(actionType) {
  document.getElementById("lessonCopy").innerHTML=returnLessonCopy(actionType);
  //document.getElementById("lessonCopy").innerHTML="damon";
  //document.all.lessonCopy.innerHTML=returnLessonCopy(actionType);
//end function
}

//lesson copy
function returnLessonCopy(actionType) {
  if (actionType == 'schedule') {
    return "<b>Fall '06 Spanish Class Schedule</b><p><b><u>Thursday Night</u></b><p>::10/05, 10/19, 10/26 & 11/02::<br>Beginner 1: 7:30 – 8:45<p>::11/09, 11/16, 11/30 & 12/07::<br>Beginner 1: 6:00 – 7:15<br>Beginner 2: 7:30 – 8:45<p><p><b><u>Saturday Morning</u></b><p>::10/07, 10/21, 10/28 & 11/04::<br>Beginner 1: 9:00 – 10:15 <p>::11/11, 11/18, 12/02 & 12/09::<br>Beginner 1: 10:30 – 11:45 <br>Beginner 2: 9:00 – 10:15";
  } else if (actionType == 'corporate') {
    return "<b>Corporate Classes</b> (Spanish)<br><br>Specific goals of the company are addressed. Business professionals are taught language skills and vocabulary relevant to their professional environment. Our services include classes for:<br><br><ul><li style='color:black'>Medical field</li><li style='color:black'>Law enforcement</li><li style='color:black'>Social work</li><li style='color:black'>Business</li><li style='color:black'>Marketing</li><li style='color:black'><b>and many more.</b></li></ul>";
  } else if (actionType == 'group') {
    return "<b>Group Classes</b> (English, French, Spanish, German and Japanese)<br><br>Our goal is to supply the students in group classes with general language skills enabling them to communicate effectively. Group classes are conducted at an enjoyable pace, spending time not only on language skills, but also cultural understanding and awareness.<br>Ideal for:<br><br><ul><li style='color:black'>Valuable job skills</li><li style='color:black'>Improved communication</li><li style='color:black'>Upcoming Tour Groups</li><li style='color:black'>Volunteer Groups</li></ul>";
  } else if (actionType == 'private') {
    //return "<b>Private Lessons</b> (English, French, Spanish, German and Japanese)<br><br><b>Louisville Translation Inc.</b> works directly with you to develop a syllabus for your private lessons that ensures that your specific language goals are met. If you want to learn at an accelerated pace, or benefit more from one-on-one instruction, private lessons are for you.";
    return "<b>Private Spanish Lessons</b><p>Let us design a course tailored to meet your Spanish language needs</p><p><b>Pricing:</b></p><p>Individual classes - $40<br>Set of 4 classes - $140</p><p>First ½ hour class and evaluation FREE of charge!</p><p><a href='iframe_contact.html' target='cont' style='color:#19497F'><b>Contact us</b></a> today to schedule your first class</p>";
  }
//end function
}

//popup window
function popupWindow(URL,popupName,popupWidth,popupHeight) {
  //popup configs
  var screenWidth=0;
  var screenHeight=0;
  //centered screen width
  if (screen.width <= popupWidth) {
    //reset width
    popupWidth=screen.width;
  } else {
    screenWidth=(screen.width-popupWidth)/2;
  }
  //centered screen height
  if (screen.height <= popupHeight) {
    //reset height
    popupHeight=screen.height;
  } else {
    screenHeight=100;
    //screenHeight=((screen.height-popupHeight)/2); 
  }
  //open popup window
  eval("popup" + " = window.open(URL, '" + popupName + "', 'toolbar=0,scrollbars=1,location=0,status=1,directories=0,menubar=0,resizable=1,width=" + popupWidth + ",height=" + popupHeight + ",left=" + screenWidth + ",top=" + screenHeight + "');");
  window.popup.focus();
//end function
}

//toggle quote layers
function toggleQuoteLayer(theForm,actionType) {
  if (actionType == 'translate') {
    if (theForm.translateInfo.checked == false) {
      document.getElementById("translationSection").style.display="none";
    } else {
      document.getElementById("translationSection").style.display="inline";
    }
    theForm.interpretInfo.checked=false;
    document.getElementById("interpretationSection").style.display="none";
  } else if (actionType == 'interpret') {
    if (theForm.interpretInfo.checked == false) {
      document.getElementById("interpretationSection").style.display="none";
    } else {
      document.getElementById("interpretationSection").style.display="inline";
    }
    theForm.translateInfo.checked=false;
    document.getElementById("translationSection").style.display="none";
  }
//end function
}
