
function setDiv(){
  if (result==true){
	document.write('<div id="enterButtonDiv" style="border:solid 0px white;width:56px;height:22px;position:absolute;margin-left:-55px;margin-top:375px">\n');
  }else{
	document.write('<div id="enterButtonDiv" style="border:solid 0px white;width:56px;height:22px;position:absolute;margin-left:665px;margin-top:9px">\n');
  }
document.write('<a href="news.html">\n');
document.write('<img id="enterButton" src="images/enter.gif" alt="enter site" style="border:none;outline:none" onmouseover="document.getElementById(\'enterButton\').src = \'images/enter-active.gif\';" onmouseout="document.getElementById(\'enterButton\').src = \'images/enter.gif\';" onclick="document.getElementById(\'enterButton\').src = \'images/enter.gif\';" />\n');
document.write('</a>\n');
document.write('</div>\n');
}

function setCaption(){
  if (result==true){
	document.write('<div id="captionDiv" style="border:solid 0px white;width:630px;height:18px;position:absolute;margin-left:-692px;margin-top:380px;text-align:left">\n');
  }else{
	document.write('<div id="captionDiv" style="border:solid 0px white;width:630px;height:18px;position:absolute;margin-left:25px;margin-top:11px;text-align:left">\n');
  }
document.write('<a style="font-size:10px;font-family:\'georgia\';text-decoration:none;text-transform:uppercase;line-height:9px;letter-spacing:0px" href="http://www.theviolinshop.com/fiddleMasters.php" target="_blank">Hanneke Cassel with Natalie Haas and Christopher Lewis: Fiddle Masters Concert Series, Nashville, TN</a>');
document.write('</div>\n');
}

function createPage(){
//detect IE to set the 'result' variable
sniffIE();
//Create doctype, html tag, head tag, including style rules
document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n');
document.write('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n');
document.write('<head><title>Hanneke Cassel</title><style type="text/css">a{color:rgb(45,55,68)}a:hover{color:rgb(122,147,180)}</style></head>\n');
//Create body tag
document.write('<body background="images/background-welcome2.jpg" style="background-repeat:no-repeat;background-attachment:fixed;background-position:top center;background-color:rgb(45,55,68)">\n');
//Create movie object and containg div
if (result==true){
  document.write('<div id="welcomeMovie" align="center" style="position:relative;margin-left:auto;margin-right:auto;margin-top:80px;width:721px;height:367px;border:solid 1px gray">\n');
  }else{
  document.write('<div id="welcomeMovie" align="center" style="position:relative;margin-left:auto;margin-right:auto;margin-top:94px;width:721px;height:530px;border:solid 0px gray">\n');
  }
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="720" height="367" id="HannekeReel" align="middle">\n');
document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
document.write('<param name="allowFullScreen" value="false" />\n');
document.write('<param name="movie" value="movies/HannekeReel.swf" />\n');
document.write('<param name="quality" value="best" />\n');
document.write('<param name="bgcolor" value="#000000" />\n');
document.write('<embed src="movies/HannekeReel.swf" quality="best" bgcolor="#000000" width="720" height="367" name="HannekeReel" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
document.write('</object>\n');
//Call function to create enter button div and caption
setDiv();
setCaption();
//Close containing div
document.write('</div>\n');
//Close body and html
document.write('</body></html>');
}
