//IFrame Height Calculator

function calcHeight1()
{
  //find the height of the internal page
  var the_height=document.getElementById('the_iframe1').contentWindow.document.body.scrollHeight;

  //change the height of the iframe
  document.getElementById('the_iframe1').height=the_height;
  
}

//Button Rollover Effects

function changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
    }
  }
}

// Chane DIV content

function guestList(x) {
	value = x;
	switch(value) {
		case "800":
			newInnerHTML = "<hr noshade size='1px' align='left' color='#c4c2c1'/><table border='0'><tr><td width='350'><p class='news4'>I would like to add the following number of guests:</p></td><td width='250' class='news4'><select name='os1'><option value='1'>1</option><option value='2'>2</option><option value='3'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option></select></td></tr><tr><td width='600' colspan='2'><p class='news4'>Name of guests (separate with commas):</p><textarea name='os2' rows='5' cols='45' onFocus=\"if (this.value == this.defaultValue) { this.value = ''; }\">Enter Guest Names</textarea></td></tr></table>";
			break;
		default:
			newInnerHTML = "";
	}
	document.getElementById('myguests').innerHTML = newInnerHTML;
}
