function showHPV(){
//    document.write('<br><div align="center"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="4">As seen on YouTube...</font></b><br><br>')
    document.write('<br><div align="center"><br>')
    showMAINs();
    document.write('</div><br>')
}

function showVideos(){
    document.write("<h1>Ocarina Videos</h1><h2>Karl's Ocarinas in Action</h2>")
    showMAIN();
    showTitle("Hardwood G Ocarina");
    showHWG();
    showTitle("Aluminum G Ocarina");
    showALG();
    showTitle("Aluminum C Ocarina");
    showALC();
    showTitle("Polycarbonate G Ocarina");
    showPG();
    showTitle("Polycarbonate C Ocarina");
    showPC();
}

function showVideos2(){
    document.write("<h2>Karl's Ocarinas in Action</h2>")
    showMAIN();
    showTitle("Hardwood G Ocarina");
    showHWG();
    showTitle("Aluminum G Ocarina");
    showALG();
    showTitle("Aluminum C Ocarina");
    showALC();
    showTitle("Polycarbonate G Ocarina");
    showPG();
    showTitle("Polycarbonate C Ocarina");
    showPC();
}

function showTitle(title){
    document.write("<br><br><h2>" + title + "</h2>")
}

function showMAINs(){

document.write('<object width="320" height="240"><param name="movie"  value="http://www.youtube.com/v/hzR5Ns_eom8"></param><embed  src="http://www.youtube.com/v/hzR5Ns_eom8" type="application/x-shockwave-flash" width="320" height="240"></embed></object>' );

document.write('<br><br>')

document.write('<object width="320" height="240"><param name="movie"  value="http://www.youtube.com/v/dOEvnE4pdfc"></param><embed  src="http://www.youtube.com/v/dOEvnE4pdfc" type="application/x-shockwave-flash" width="320" height="240"></embed></object>' );

}



function showMAIN(){
document.write('<object width="425" height="350"><param name="movie"  value="http://www.youtube.com/v/hzR5Ns_eom8"></param><embed  src="http://www.youtube.com/v/hzR5Ns_eom8" type="application/x-shockwave-flash" width="425" height="350"></embed></object>' );
}

function showHWG(){
document.write('<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/cWEgk8nUUIc"></param><embed src="http://www.youtube.com/v/cWEgk8nUUIc" type="application/x-shockwave-flash" width="425" height="350"></embed></object>' );
}

function showALG(){
document.write('<object width="425" height="350"><param name="movie"  value="http://www.youtube.com/v/Njf8OSrUwbc"></param><embed  src="http://www.youtube.com/v/Njf8OSrUwbc" type="application/x-shockwave-flash" width="425" height="350"></embed></object>' );
}

function showALC(){
document.write('<object width="425" height="350"><param name="movie"  value="http://www.youtube.com/v/JuHwD3UUIVI"></param><embed  src="http://www.youtube.com/v/JuHwD3UUIVI" type="application/x-shockwave-flash" width="425" height="350"></embed></object>' );
}

function showPG(){
document.write('<object width="425" height="350"><param name="movie"  value="http://www.youtube.com/v/Ag6DfL9tDhU"></param><embed  src="http://www.youtube.com/v/Ag6DfL9tDhU" type="application/x-shockwave-flash" width="425" height="350"></embed></object>' );
}

function showPC(){
document.write('<object width="425" height="350"><param name="movie"  value="http://www.youtube.com/v/krspntkmeGg"></param><embed  src="http://www.youtube.com/v/krspntkmeGg" type="application/x-shockwave-flash" width="425" height="350"></embed></object>' );
}

function toggleDiv(whichDiv){
    if (document.getElementById) {
        // this is the way the standards work
        var style2 = document.getElementById(whichDiv).style;
        style2.display = style2.display? "":"block";
    } else if (document.all) {
        // this is the way old msie versions work
        var style2 = document.all[whichDiv].style;
        style2.display = style2.display? "":"block";
    } else if (document.layers) {
        // this is the way nn4 works
        var style2 = document.layers[whichDiv].style;
        style2.display = style2.display? "":"block";
    }
}

function GetXmlHttpObject()
{
  var xmlHttp=null;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    }
  return xmlHttp;
}
function stateChanged() { 
    if (xmlHttp.readyState==4){
        var res=xmlHttp.responseText;
        document.getElementById("ocarina_music").innerHTML=res;
        //toggleDiv("classicversion")
    }
}
function sc(){
    xmlHttp=GetXmlHttpObject()
    if (xmlHttp==null)
      {
      // no ajax
      return;
      } 
    var url="index2.html";
    xmlHttp.onreadystatechange=stateChanged;
    xmlHttp.open("GET",url,true);
    xmlHttp.send(null);
}


