//-- Menulist --------------------------------------------------------------------------------------------------------------------------------

function menulist( )
{
document.write("<ul class=\"line\">");
document.write("<li>&nbsp;| <a href=\"index.htm\" title=\"Main Home Page\">Home</a> | </li>");
document.write("<li><a href=\"aboutus.htm\" title=\"About Sidewinder\" onClick=\"return sitepopup(this, \'site\')\">About Us</a> | </li>");
document.write("<li><a href=\"contacts.htm\" title=\"Contact details\">Contact Us</a> | </li>");
document.write("<li><a href=\"swcd/cdb006.htm\" title=\"Listen online to Sidewinder tracks from &quot;Snake-eyed Blues&quot;(opens in a new window)\" onClick=\"return cdpopup(this, \'notes\')\">CD Snake-Eyed Blues</a> | </li>");
document.write("<li><a href=\"cdb007listen.htm\" title=\"Listen online to tracks from the CD sampler &quot;Torpenhow&quot; (opens in a new window)\" onClick=\"return cdpopup(this, \'notes\')\">CD - Torpenhow</a> | </li>");
document.write("<li><a href=\"giglist.htm\" title=\"Gigs including photos, reviews, and audio\">Gigs</a> | </li>");
document.write("<li><a href=\"photos.htm\" title=\"Photos\">Photos</a> | </li>");
document.write("<li><a href=\"posters.htm\" title=\"Download a generic Sidewinder poster (opens in a new window)\" onClick=\"return pstpopup(this, \'posters\')\">Poster</a> | </li>");
document.write("<li><a href=\"stage.htm\" title=\"Stage Layout - includes a link to technical info\">Stage Layout</a> | </li>");
document.write("<li><a href=\"technical.htm\" title=\"Technical Info\">Technical</a> | </li>");
document.write("<li><a href=\"javascript:history.go(-1);\" title=\"Back to previous page\">Back</a> |&nbsp;</li>");
document.write("</ul>");
}

//-- old Menu --------------------------------------------------------------------------------------------------------------------------------

function old_menulist( )
{
document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"dbcss.htm\">");
document.write("<table border=0 cellpadding=0 cellspacing=0>");
document.write("<colgroup class=menu span=11></colgroup>");
document.write("<tr>");
document.write("<td width=50><a href=\"index.htm\" title=\"Main Home Page\">Home</a></td>");
document.write("<td width=70><a href=\"aboutus.htm\" title=\"About Sidewinder\">About Us</a></td>");
document.write("<td width=90><a href=\"contacts.htm\" title=\"Contact details\">Contact Us</a></td>");
document.write("<td width=80><a href=\"cds003.htm\" title=\"Listen online to some Sidewinder sample tracks from &quot;Snake-eyed Blues&quot;(opens in a new window)\" onClick=\"return cdpopup(this, \'notes\')\">CD Snake-Eyed Blues</a></td>");
document.write("<td width=80><a href=\"cdb007listen.htm\" title=\"Listen online to tracks from the CD sampler &quot;Torpenhow&quot; (opens in a new window)\" onClick=\"return cdpopup(this, \'notes\')\">CD - Torpenhow</a></td>");
document.write("<td width=40><a href=\"giglist.htm\" title=\"Gigs including photos, reviews, and audio\">Gigs</a></td>");
document.write("<td width=50><a href=\"photos.htm\" title=\"Photos\">Photos</a></td>");
document.write("<td width=60><a href=\"posters.htm\" title=\"Download a generic Sidewinder poster (opens in a new window)\" onClick=\"return pstpopup(this, \'posters\')\">Poster</a></td>");
document.write("<td width=100><a href=\"stage.htm\" title=\"Stage Layouts - includes a link to technical info\">Stage Layouts</a></td>");
document.write("<td width=80><a href=\"technical.htm\" title=\"Technical Info\">Technical</a></td>");
document.write("<td width=40><a href=\"javascript:history.go(-1);\" title=\"Back to previous page\">Back</a></td>");
document.write("</tr>");
document.write("</table>");
}


//-- auto-center window popup ----------------------------------------------------------------------------------------------------

/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

var win = null;
function NewWindow(mypage,myname,w,h,scroll)
{
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}


//-- PDF popup portrait ---------------------------------------------------------------------------------------------------------------

function pdfpopup(pdflink, pdfwindow)
{
if (! window.focus)return true;
var href;
if (typeof(pdflink) == 'string')
   href=pdflink;
else
   href=pdflink.href;
window.open(href, pdfwindow, 'top=25,left=200,width=500,height=700,resizable=yes,scrollbars=yes');
return false;
}

//-- PDF popup landscape ------------------------------------------------------------------------------------------------------------

function pdfpopupland(pdfland, pdfwin)
{
if (! window.focus)return true;
var href;
if (typeof(pdfland) == 'string')
   href=pdfland;
else
   href=pdfland.href;
window.open(href, pdfwin, 'top=25,left=50,width=700,height=500,resizable=yes,scrollbars=yes');
return false;
}

//-- Listen popup ----------------------------------------------------------------------------------------------------------------------

function cdpopup(mylink, cdwindow)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, cdwindow, 'top=25,left=50,width=720,height=720,resizable=yes,scrollbars=yes');
return false;
}

//-- Jpeg popup ----------------------------------------------------------------------------------------------------------------------

function jpgpopup(jpglink, jpgwindow)
{
if (! window.focus)return true;
var href;
if (typeof(jpglink) == 'string')
   href=jpglink;
else
   href=jpglink.href;
window.open(href, jpgwindow, 'top=10,left=20,width=850,height=450,location=no,resizable=yes,scrollbars=yes');
return false;
}

//-- Photo popup ----------------------------------------------------------------------------------------------------------------------

function picpopup(mylink, picwindow)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, picwindow, 'top=10,left=10,width=850,height=650,location=no,titlebar=no,resizable=yes,scrollbars=yes');
return false;
}

//-- Poster popup ----------------------------------------------------------------------------------------------------------------------

function pstpopup(posterlink, posterwindow)
{
if (! window.focus)return true;
var href;
if (typeof(posterlink) == 'string')
   href=posterlink;
else
   href=posterlink.href;
window.open(href, posterwindow, 'top=25,left=50,width=600,height=550,scrollbars=no');
return false;
}

//-- Word popup ----------------------------------------------------------------------------------------------------------------------

function wordpopup(wordlink, wordwindow)
{
if (! window.focus)return true;
var href;
if (typeof(wordlink) == 'string')
   href=wordlink;
else
   href=wordlink.href;
window.open(href, wordwindow, 'top=45,left=200,width=500,height=650,menubar=yes,resizable=yes,scrollbars=yes');
return false;
}

//--SPL calc ----------------------------------------------------------------------------------------------------------------------

function compute (obj) {

with (Math) {

Dist=eval(obj.Dist.value);
S=eval(obj.Sens.value);
Lv=eval(obj.Lspl.value);
hr=eval(obj.Ahrm.value);
p=eval(obj.p.value);
Amp=eval(obj.Amp.value);

r=20*(0.43429*log(Dist));
m=S+(10*(0.43429*log(Amp)));
n=m-r;

x=Lv-S+(20*(Math.LOG10E*log(Dist)));
d=x + hr;

y=d / 10;
q=10;
p=Math.pow(q, y);

a=p*1;

obj.p.value=Math.round(a);
obj.h.value=Math.round(r);
obj.j.value=Math.round(m);
obj.k.value=Math.round(n);
 }	
}

//-- Slideshow ----------------------------------------------------------------------------------------------------------------------

var pause = 4000
var n = 0;
var imgs = new Array ( "slideshow/p8290365.jpg", "slideshow/dsc_0018.jpg", "slideshow/mg_2948.jpg", "slideshow/mg_2955.jpg","slideshow/mg_3769.jpg", "slideshow/mg_3784.jpg", "slideshow/mg_3791.jpg","slideshow/mg_3812.jpg","slideshow/mg_3847.jpg", "slideshow/mg_3750.jpg", "slideshow/mg_3884.jpg", "slideshow/mg_2989.jpg", "slideshow/mg_3029.jpg", "slideshow/mg_4233.jpg", "slideshow/p8300635.jpg");

var preload = new Array();
for ( var i = 1; i , imgs,length; i++ ) 
{
preload[i] = new Image();
preload[i].src = imgs[i];
}

function rotate()
{
document.images.pic.src = imgs[n];
( n == (imgs.length - 1 )) ? n = 0 : n++;
setTimeout( "rotate()", pause );
}

window.onload = rotate;

//-- Audio Player ----------------------------------------------------------------------------------------------------------------------

function changeaudio(name)
{
document.getElementById('player').innerHTML="<object id='Player1' classid='clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6' align='middle' height='65' width='250'><param id='audiourl' name='URL' value='audio/"+name+".mp3'><param name='playCount' value='1'><param name='autoStart' value='1'></object>";
}

//------------------------------------------------------------------------------------------------------------------------