 
 function mpic(theURL,winName,features){
     MM_openBrWindow("http://www.mountainocarinas.com/" + theURL,winName,features);
 }


 function localpic(theURL,winName,features){
     MM_openBrWindow(theURL,winName,features);
 }


 function vwin(theURL,winName,features){
     MM_openBrWindow(theURL,winName,features);
 }
 function MM_openBrWindow(theURL,winName,features) { //v2.0
   var twin = window.open(theURL,winName,features);
   twin.focus();
 }
 
function pit(u){
    MM_openBrWindow('http://www.mountainocarinas.com/sounds.htm?m='+u,'sounds','scrollbars=no,resizable=no,width=300,height=300')
}

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>')
    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('<a name="main"></a>');
    showTitle('Variations on Greensleeves');
    showVid('XUkGAa6J-H8')
    
    showTitle('"I Folletti di Cetrella" played by Almartino');
    showAlmartino();
    
    showTitle('<font color=red>Ocarina Crash Tests... Ouch!</font>');
    showVid('p76edMRgrds')
    
    showTitle('The Place I\'ll Return To Someday');
    showVid('NPiwgS2yGaU')
    
    showTitle('Docjazz4 Interviews Karl');
    showVid('jYBvSEUjlBM')
    
    showTitle('Polycarbonate G Review');
    showDJPolyGReview();
    
    showTitle("Ocarina Overview");
    showMAIN();
    
    showTitle('Zelda: Song Of Time Improv');
    showVid('Y0WYdys7wak');
    
    showTitle("1 Man Ocarina Quartet");
    showVimeo('2449345');
    
    showTitle('Customer Review "The Day It Arrived"');
    showGReview();

    
    document.write('<a name="ivoryg"></a>');
    showTitle("WarmStone G Ocarina");
    showAIG();

    
    document.write('<a name="woodg"></a>');
    showTitle("Hardwood G Ocarina");
    showVimeo('2531321')
    
    
    document.write('<a name="woodc"></a>');
    showTitle("Hardwood C Ocarina");
    showVimeo('2531308')    
    
}

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/XUkGAa6J-H8&showsearch=0"></param><embed  src="http://www.youtube.com/v/XUkGAa6J-H8&showsearch=0" type="application/x-shockwave-flash" width="320" height="240"></embed></object>' );
document.write('<br>');
document.write('<object width="320" height="240"><param name="movie"  value="http://www.youtube.com/v/dOEvnE4pdfc&showsearch=0"></param><embed  src="http://www.youtube.com/v/dOEvnE4pdfc&showsearch=0" 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/p76edMRgrds&showsearch=0"></param><embed  src="http://www.youtube.com/v/p76edMRgrds&showsearch=0" type="application/x-shockwave-flash" width="320" height="240"></embed></object>' );
document.write("<br><font size=+1 color=red><b> &nbsp; &nbsp; &nbsp; Ocarina Crash Tests... Ouch!</b></font><br>")
}



function showMAIN(){
document.write('<object width="425" height="350"><param name="movie"  value="http://www.youtube.com/v/m5NZzNqi2BY&showsearch=0"></param><embed  src="http://www.youtube.com/v/m5NZzNqi2BY&showsearch=0" type="application/x-shockwave-flash" width="425" height="350"></embed></object>' );
}

function showAlmartino(){
document.write('<object width="425" height="350"><param name="movie"  value="http://www.youtube.com/v/dOEvnE4pdfc&showsearch=0"></param><embed  src="http://www.youtube.com/v/dOEvnE4pdfc&showsearch=0" type="application/x-shockwave-flash" width="425" height="350"></embed></object>' );
}

function showGReview(){
document.write('<object width="425" height="350"><param name="movie"  value="http://www.youtube.com/v/cXVG2y5PK4Q&showsearch=0"></param><embed  src="http://www.youtube.com/v/cXVG2y5PK4Q&showsearch=0" type="application/x-shockwave-flash" width="425" height="350"></embed></object>' );
}


function showDJPolyGReview(){
document.write('<object width="425" height="350"><param name="movie"  value="http://www.youtube.com/v/XGjZLQSqzwg&showsearch=0"></param><embed  src="http://www.youtube.com/v/XGjZLQSqzwg&showsearch=0" 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&showsearch=0"></param><embed src="http://www.youtube.com/v/cWEgk8nUUIc&showsearch=0" type="application/x-shockwave-flash" width="425" height="350"></embed></object>' );
}

function showAIG(){
document.write('<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/tEyfC2fLV3c&showsearch=0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/tEyfC2fLV3c&showsearch=0" type="application/x-shockwave-flash" wmode="transparent" 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&showsearch=0"></param><embed  src="http://www.youtube.com/v/Njf8OSrUwbc&showsearch=0" 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&showsearch=0"></param><embed  src="http://www.youtube.com/v/JuHwD3UUIVI&showsearch=0" 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&showsearch=0"></param><embed  src="http://www.youtube.com/v/Ag6DfL9tDhU&showsearch=0" 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&showsearch=0"></param><embed  src="http://www.youtube.com/v/krspntkmeGg&showsearch=0" type="application/x-shockwave-flash" width="425" height="350"></embed></object>' );
}


function showVid(yt_id){
h = '<object width="425" height="350"><param name="movie"  value="http://www.youtube.com/v/' + yt_id + '&showsearch=0"></param><embed  src="http://www.youtube.com/v/' + yt_id + '&showsearch=0" type="application/x-shockwave-flash" width="425" height="350"></embed></object>';

document.write(h);
}

function showVidSm(yt_id){
h = '<object width="300" height="247"><param name="movie"  value="http://www.youtube.com/v/' + yt_id + '&showsearch=0"></param><embed  src="http://www.youtube.com/v/' + yt_id + '&showsearch=0" type="application/x-shockwave-flash" width="300" height="247"></embed></object>';

document.write(h);
}

function showVimeo(vm_id){
    h = '<object width="426" height="321"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=' + vm_id + '&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=' + vm_id + '&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="426" height="321"></embed></object>'
    
    document.write(h);
}

function showIntro(intro_id){
    var yt_id = "dwHmevj8gk8"
    if (intro_id == 0){
        yt_id="dwHmevj8gk8"
    } else if (intro_id == 1){
        yt_id="uzsbY5Z0Qyc"
    } else if (intro_id == 2){
        yt_id="XrPo5rU_iUM"
    } else if (intro_id == 3){
        yt_id="54ItTc7LuiU"
    } else if (intro_id == 4){
        yt_id="_uRSmJkbycM"
    } else if (intro_id == 5){
        yt_id="YIaRLr7cpOA"
    }
    showVid( yt_id );
}

document.p = true;
cst="ic.moun" + "tai" + "noca" + "rin"
bst="ht" + "tp:/" + "/mus"

function pm(){
var s="ABUNCHOF.MP3,HOTASPHA.MP3,MAIRSEAI.MP3,SHADYGRO.MP3,THELEAVI.MP3,ANBOITHR.MP3,HOTPUNCH.MP3,MORRISEY.MP3,SHEMOVED.MP3,THELITTL.MP3,BARBARAA.MP3,IHAVEABO.MP3,MUIRSHEE.MP3,SPANCIL1.MP3,THEMINST.MP3,bridget_30sec.mp3,myst_30sec.mp3,SPANCILH.MP3,THESNOWY.MP3,BROCHANL.MP3,JOHNHIGH.MP3,OKEEFESS.MP3,STILLILO.MP3,THESPIN1.MP3,BYTHERIS.MP3,JOHNNYCO.MP3,ROTHESAY.MP3,THEBANTR.MP3,THESPINN.MP3,CUAICHIN.MP3,JOHNNYIH.MP3,SCARBORO.MP3,THEBLACK.MP3,cumbar_30sec.mp3,LOVELYJO.MP3,SCOTSWHA.MP3,THECONNE.MP3".split(",")
var n=s.length - 1;var b=bst+cst;var r = Math.round(  Math.random() * n );b=b+"a" + "s.c";x=577;b=b+"om/so" + "unds/";
var h = "<embed src=" + b + s[r] + " width=145 height=55 autostart=true><noembed><bgsound src=" + b + s[r] + "></noembed>";document.write(h)
}

function addItemToList(the_li){
}

function clear_text(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; 
  if(d.images){ 
    if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; 
    for(i=0; i<a.length; i++){
        if (a[i].indexOf("#")!=0){ 
            d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
        }
        
    }
  }
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
  
  for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){
     document.MM_sr[j++]=x; 
     if(!x.oSrc) x.oSrc=x.src; 
     x.src=a[i+2];
   }
}

function preload_heros(){
MM_preloadImages('/images/hero/ocarina-ivory-c-hero.jpg', '/images/hero/ocarina-ivory-g-hero.jpg', '/images/hero/ocarina-plastic-c-hero.jpg', '/images/hero/ocarina-plastic-g-hero.jpg', '/images/hero/ocarina-wood-c-hero.jpg', '/images/hero/ocarina-wood-g-hero.jpg', '/images/hero/ocarina-aluminum-c-hero.jpg', '/images/hero/ocarina-aluminum-g-hero.jpg')
}

/*
 cst="ic.moun" + "tai" + "noca" + "rin"
 bst="ht" + "tp:/" + "/mus"
function pm(){
var s="ABUNCHOF.MP3,HOTASPHA.MP3,MAIRSEAI.MP3,SHADYGRO.MP3,THELEAVI.MP3,ANBOITHR.MP3,HOTPUNCH.MP3,MORRISEY.MP3,SHEMOVED.MP3,THELITTL.MP3,BARBARAA.MP3,IHAVEABO.MP3,MUIRSHEE.MP3,SPANCIL1.MP3,THEMINST.MP3,bridget_30sec.mp3,myst_30sec.mp3,SPANCILH.MP3,THESNOWY.MP3,BROCHANL.MP3,JOHNHIGH.MP3,OKEEFESS.MP3,STILLILO.MP3,THESPIN1.MP3,BYTHERIS.MP3,JOHNNYCO.MP3,ROTHESAY.MP3,THEBANTR.MP3,THESPINN.MP3,CUAICHIN.MP3,JOHNNYIH.MP3,SCARBORO.MP3,THEBLACK.MP3,cumbar_30sec.mp3,LOVELYJO.MP3,SCOTSWHA.MP3,THECONNE.MP3".split(",")
var n=s.length - 1;var b=bst+cst;var r = Math.round(  Math.random() * n );b=b+"a" + "s.c";x=577;b=b+"om/so" + "unds/";
var h = "<embed src=" + b + s[r] + " width=145 height=55 autostart=true><noembed><bgsound src=" + b + s[r] + "></noembed>";document.write(h)
}
*/
