//
// 13/03/09	Removed all index.htm s, as hosting now only reqrs sub-folder name
// 03/08/09	Updated plus.net price
//

// Should be able to ref this file with /_script/, no need for ../../ ??

function Dummy( ) 
{ 
   ;
} 

function DoSound( SoundNo ) 
{ 
   if ( SoundNo == 1 )   { document.all.sound.src = "/_style/click.wav";  };
   if ( SoundNo == 2 )   { document.all.sound.src = "/_style/belch.wav";  };
} 

function Header ()
{
   document.write(
   '<META NAME="ROBOTS"    CONTENT="index,follow,noarchive">',
   '<META NAME="googlebot" CONTENT="index,follow,noarchive">',
   '<title>www.Seens.org &copy;</title>',

   // Top panel
   '<table valign="middle" border="0" width="100%" cellpadding="0" cellspacing="0" >',
   '  <tr>',
   '    <td width="15%" align="center" bgcolor="#b4b4b4">',
   '      <img style="float:right" border="0" src="/_style/tongue.gif">',
   '    </td>',
   '    <td width="15%" align="center" bgcolor="#d0d0d0">',
   '      <h4><i>Bye.<br>Thanks<br>For<br>Coming.</i></h5>',
   '    </td>',
   '    <td width="40%" align="center" bgcolor="#e0e0e0">',
   '      <a target="_self" href="http://www.seens.org">www.Seens.Org</a><br>',
   '      <h1><i>Seens`s Scenes</i></h1>',
   '      <h5>A.K.A. &quot;Uncle Shabby&quot; (don`t ask)</h5>',
   '    </td>',
   '    <td width="15%" align="center" bgcolor="#e8e8e8">',
   '    </td>',
   '    <td width="15%" align="center" bgcolor="#f0f0f0">',
   '      <a target="_blank"', 
   '         href="http://portal.plus.net/my/mydiscount_info/landing_page.html?WRKUh%2Fz%2FuZ5dXmEjImm%2BINCHjlXqyyeS7DQqWR0k1Bw%3D">',
   '         <img src="http://portal.plus.net/images/banners/banner_9.gif" border="0" ',
   '            alt="Seens recommends ... broadband £6/m for 8Mb/s 10GB/m">',
   '      </a>',
   '    </td>',
   '  </tr>',
   '</table>',

   // Pre-load sounds
//error?   '<embed src="/_style/click.wav" autostart="false" hidden="true">',  // was start.wav
//error?   '<embed src="/_style/belch.wav" autostart="false" hidden="true">',
   '<bgsound id="sound">',

   // Nav menu buttons (to match Footer links)
   '<center>',
   '<table align="center" border="0" cellspacing="5" height ="35" >',  // bgcolor="#aaaaaa" bordercolor="#ffffff" width="" height =""
   '   <tr>',
   '      <span class="class_nav1">',
             // use abs href; for use at all levels
   '         <td bgcolor="#aaaaaa" align="center"><a target="_self" onMouseover="DoSound( 1 )" href="http://www.seens.org">Home</p>Page</a></td>',
   '         <td bgcolor="#aaaaaa" align="center"><a target="_self" onMouseover="DoSound( 1 )" href=       "../">&nbsp;<font face="wingdings">&#233;</font>&nbsp;</p>&nbsp;Up&nbsp;</a></td>', // up folder (arrow)
   '         <td bgcolor="#aaaaaa" align="center"><a target="_self" onMouseover="DoSound( 2 )" href=     "/stag">Stag</p>Events</a></td>',
   '         <td bgcolor="#aaaaaa" align="center"><a target="_self" onMouseover="DoSound( 2 )" href=   "/gallon">Friargate</p>Gallon</a></td>',
   '         <td bgcolor="#aaaaaa" align="center"><a target="_self" onMouseover="DoSound( 1 )" href=     "/snow">Ski &</p>Board</a></td>',
   '         <td bgcolor="#aaaaaa" align="center"><a target="_self" onMouseover="DoSound( 1 )" href=      "/dos">Trips</p>+`Do`s</a></td>',
   '         <td bgcolor="#aaaaaa" align="center"><a target="_self" onMouseover="DoSound( 1 )" href=    "/bikes">Bikes</p>+Cars</a></td>',
   '         <td bgcolor="#aaaaaa" align="center"><a target="_self" onMouseover="DoSound( 1 )" href= "/mountain">Moun-</p>tains</a></td>',
   '         <td bgcolor="#aaaaaa" align="center"><a target="_self" onMouseover="DoSound( 1 )" href= "/old_days">Old</p>Days</a></td>',
   '         <td bgcolor="#aaaaaa" align="center"><a target="_self" onMouseover="DoSound( 1 )" href="/car_toons">Car-</p>toons</a></td>',
   '         <td bgcolor="#aaaaaa" align="center"><a target="_self" onMouseover="DoSound( 1 )" href=   "/comedy">Comedy</a></td>',
   '         <td bgcolor="#aaaaaa" align="center"><a target="_self" onMouseover="DoSound( 1 )" href=    "/links">Links</a></td>',
   '         <td bgcolor="#aaaaaa" align="center"><a target="_self" onMouseover="DoSound( 1 )" href= "/download">Down-</p>loads</a></td>',
   '         <td bgcolor="#aaaaaa" align="center"><a target="_self" onMouseover="DoSound( 1 )" href=  "/tickbox">Tick-</p>box</a></td>',
   '         <td bgcolor="#aaaaaa" align="center"><a target="_self" onMouseover="DoSound( 1 )" href=     "/misc">Misc</a></td>',
   '         <td bgcolor="#aaaaaa" align="center"><a target="_self" onMouseover="DoSound( 1 )" href=  "/contact">Contact</p>Me</a></td>',
   '         <td bgcolor="#aaaaaa" align="center"><a target="_self" onMouseover="DoSound( 1 )" href=  "/wedding">Wedding</a></td>',
   '      </span>', 
   '   </tr> ',
   '</table> ',
   '</center>',
   '<hr>',
   '');
   return;
};

function Footer ()
{
   document.write(
   '<hr>',
   // Nav menu links
   '<center> | ',
   '<span class="class_nav2">',
   '   <a target="_self" href="http://www.seens.org">Home</a> | ',
   '   <a target="_self" href=       "../"><font face="wingdings">&#233;</font>&nbsp;Up</a> | ',
   '   <a target="_self" href=     "/stag">Stag</a> | ',
   '   <a target="_self" href=   "/gallon">Friargate Gallon</a> | ',
   '   <a target="_self" href=     "/snow">Ski+Board</a> | ',
   '   <a target="_self" href=      "/dos">Trips+`Do`s</a> | ',
   '   <a target="_self" href=    "/bikes">Bikes+Cars</a> | ',
   '   <a target="_self" href= "/mountain">Mountains</a> | ',
   '   <a target="_self" href= "/old_days">Old Days</a> | ',
   '   <a target="_self" href="/car_toons">Car-toons</a> | ',
   '   <a target="_self" href=   "/comedy">Comedy</a> | ',
   '   <a target="_self" href=    "/links">Links</a> | ',
   '   <a target="_self" href= "/download">Downloads</a> | ',
   '   <a target="_self" href=     "/misc">Misc</a> | ',
   '   <a target="_self" href=  "/tickbox">Tick Box</a> | ',
   '   <a target="_self" href=  "/contact">Contact Me</a> | ',
   '   <a target="_self" href=  "/wedding">Wedding</a> | ',
   '</span>', 
   '<br>&copy; Andrew Senior  M M I X',
   '');
   return;
};


function GoUp ( NoLevels )
// Don't think this gets called anywhere
{
   document.write(
   '<br><center>',
   '<table align="center" border="1" cellspacing="0" height ="20" bgcolor="#aaaaaa" bordercolor="#ffffff">', //width="" height =""
   '   <tr>',
   '      <span class="class_nav1">',
   '         <td align="center">',
   '');
   if ( NoLevels == 1 )
   {
      document.write('<a target="_self" href="../">');
   } 
   else
   {
      document.write('<a target="_self" href="index.htm">');
   }
   document.write(
   '         &nbsp;<font face="wingdings">&#233;</font>&nbsp;Up&nbsp;</a></td>', // up arrow, end link
   '      </span>', 
   '   </tr> ',
   '</table> ',
   '</center>',
   '<br>',
// '<hr>',
   '');
   return;
};


function DoSnow ()
{
// doesn't work prop from here, must embed in body
var no = 5; // snow number
var speed = 10; // smaller number moves the snow faster
var snowflake = "snow.gif";
var ns4up = (document.layers) ? 1 : 0;  // browser sniffer
var ie4up = (document.all) ? 1 : 0;
var dx, xp, yp;    // coordinate and position variables
var am, stx, sty;  // amplitude and step variables
var i, doc_width = 800, doc_height = 600;
if (ns4up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
for (i = 0; i < no; ++ i) {  
dx[i] = 0;                        // set coordinate variables
xp[i] = Math.random()*(doc_width-50);  // set position variables
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20;         // set amplitude variables
stx[i] = 0.02 + Math.random()/10; // set step variables
sty[i] = 0.7 + Math.random();     // set step variables
if (ns4up) {                      // set layers
if (i == 0) {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
} else {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
   }
} else if (ie4up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
      }
   }
}
function snowNS() {  // Netscape main animation function
for (i = 0; i < no; ++ i) {  // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
dx[i] += stx[i];
document.layers["dot"+i].top = yp[i];
document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowNS()", speed);
}
function snowIE() {  // IE main animation function
for (i = 0; i < no; ++ i) {  // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx[i] += stx[i];
document.all["dot"+i].style.pixelTop = yp[i];
document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowIE()", speed);
}
if (ns4up) {
snowNS();
} else if (ie4up) {
snowIE();
};
return;
};



