<!-- //

function popNewsletter(url)
{
checkWin = window.open( url, 'stonedf', 'left=100,top=15,width=400,height=310,menubar=no,scrolling=no,resizable=no,toolbar=no,location=no,directories=no,status=yes');
checkWin.document.close();
checkWin.focus();
}

 
function popWindow(url)
{
checkWin = window.open( url, 'stonedf', 'left=0,top=0,width=700,height=500,menubar=no,scrolling=no,resizable=no,toolbar=no,location=no,directories=no,status=yes');
checkWin.document.close();
checkWin.focus();
}

 
function popWindowFeedback(url)
{
checkWin = window.open( url, 'stonedfFeedback', 'left=100,top=20,width=600,height=390,menubar=no,scrolling=no,resizable=no,toolbar=no,location=no,directories=no,status=no');
checkWin.document.close();
checkWin.focus();
}


function popSetlist(url)
{
checkWin = window.open( url, 'stonedfSetlist', 'left=100,top=10,width=338,height=400,menubar=no,scrolling=no,resizable=no,toolbar=no,location=no,directories=no,status=yes');
checkWin.document.close();
checkWin.focus();
}

function popLyric(url)
{
checkWin = window.open( url, 'stonedfLyric', 'left=100,top=10,width=338,height=410,menubar=no,scrolling=no,resizable=no,toolbar=no,location=no,directories=no,status=no');
checkWin.document.close();
checkWin.focus();
}

function wallpaper(number,res)
{
checkWin = window.open( '', 'stonedf', 'left=20,top=20,width=670,height=410,menubar=no,scrolling=yes,scrollbars,resizable=yes,toolbar=no,location=no,directories=no,status=no');
checkWin.blur();
checkWin.document.open();
checkWin.document.write( '<html><head><title> Stoned-F.com desktop wallpaper</title>' );
checkWin.document.write( '</head>' );
checkWin.document.write( '<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">' );
checkWin.document.write( '<img src="img/def_leppard_wallpaper_' + number + '_' + res + '.jpg" galleryimg="no" alt"">' );
checkWin.document.write( '</body></html>' );
checkWin.document.close();
checkWin.focus();
}



function newWindow($src,w,h)
{

w2 = w+2;
h2 = h+2;
w4 = w+4;
h4 = h+4;


  checkWin = window.open( '', 'stonedf', 'left=0,top=0,width=700,height=490,menubar=no,scrolling=no,resizable=no,toolbar=no,location=no,directories=no,status=yes');
  checkWin.blur();
  checkWin.document.open();
  checkWin.document.write( '<html><head><title> stoned-f.co.uk </title>' );
  checkWin.document.write( '<script language="JavaScript">' );
  checkWin.document.write( 'if (navigator.appName == "Mozilla")' );
  checkWin.document.write( 'document.addEventListener("keyup",keypress,true); ' );
  checkWin.document.write( 'else if (navigator.appName == "Netscape")  ' );
  checkWin.document.write( 'document.captureEvents(Event.KEYPRESS);' );
  checkWin.document.write( 'if (navigator.appName != "Mozilla")   ' );
  checkWin.document.write( 'document.onkeypress=keypress; ' );
  checkWin.document.write( 'function keypress(e) { ' );
  checkWin.document.write( 'if (navigator.appName == "Microsoft Internet Explorer")' );
  checkWin.document.write( 'tmp = window.event.keyCode;' );
  checkWin.document.write( 'else if (navigator.appName == "Netscape")' );
  checkWin.document.write( 'tmp = e.which;' );
  checkWin.document.write( 'else if (navigator.appName == "Mozilla")' );
  checkWin.document.write( 'tmp = e.keyCode; ' );
  checkWin.document.write( 'if (tmp == 32) {' );
  checkWin.document.write( 'window.close(); ' );
  checkWin.document.write( 'return;' );
  checkWin.document.write( ' }' );
  checkWin.document.write( ' }' );
  checkWin.document.write( '</script>' );
  checkWin.document.write( '</head>' );
  checkWin.document.write( '<body oncontextmenu=\"return false\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">' );
  checkWin.document.write( '<table width="700" height="480" cellspacing="0" cellpadding="0" border="0" background="images/popup_background.jpg"><tr><td><div align="center">' );
  checkWin.document.write( '<table width="' + w4 + '" heigth="' + h4 + '" cellpadding="1" cellspacing="0" border="0" bgcolor="#ffffff"><tr><td width="' + w4 + '">');
  checkWin.document.write( '<table width="' + w2 + '" heigth="' + h2 + '" cellpadding="1" cellspacing="0" border="0" bgcolor="#000000"><tr><td width="' + w2 + '">');
  checkWin.document.write( '<table width="' + w  + '" heigth="' + h  + '" cellpadding="0" cellspacing="0" border="0" background="img/' + $src + '"><tr><td width="' + w + '"><img width="' + w + '" height="' + h + '" src="../img/blank.gif" border="0" alt="" galleryimg="no"></td></tr></table>');
  checkWin.document.write( '</td></tr></table>');
  checkWin.document.write( '</td></tr></table>');
  checkWin.document.write( '</div></td></tr></table>');

  checkWin.document.write( '</body></html>' );

  if (navigator.appName == "Netscape"){
  checkWin.resizeTo(706,526);
  }
  else {
  checkWin.resizeTo(710,529);
  }
  checkWin.document.close();
  checkWin.focus();
}

// START OF COUNTDOWN SCRIPT

function countdown_clock(year, month, day, hour, minute, format)
         {
			 var browser     = '';
			 var version     = '';
			 var entrance    = '';
			 var cond        = '';
			 // BROWSER?
			 if (browser == '')
			 {
				if (navigator.appName.indexOf('Microsoft') != -1)
				{
					browser = 'IE'
				}
				else 
				{	
					browser = ''
				}
			 }
			 //I chose a div as the container for the timer, but
			 //it can be an input tag inside a form, or anything
			 //who's displayed content can be changed through
			 //client-side scripting.
			 if (browser == 'IE')
			 {
				html_code = '<div id="countdown"></div>';
			 
				document.write(html_code);
			 
				countdown(year, month, day, hour, minute, format);
			 }
		 }
         
function countdown(year, month, day, hour, minute, format)
         {
         Today = new Date();
         Todays_Year = Today.getYear() - 2000;
         Todays_Month = Today.getMonth() + 1;                  
         
         //Convert both today's date and the target date into miliseconds.                           
         Todays_Date = (new Date(Todays_Year, Todays_Month, Today.getDate(), 
                                 Today.getHours(), Today.getMinutes(), Today.getSeconds())).getTime();                                 
         Target_Date = (new Date(year, month, day, hour, minute, 00)).getTime();                  
         
         //Find their difference, and convert that into seconds.                  
         Time_Left = Math.round((Target_Date - Todays_Date) / 1000);
         
         if(Time_Left < 0)
            Time_Left = 0;
         
         switch(format)
               {
               case 0:
                    //The simplest way to display the time left.
                    document.all.countdown.innerHTML = Time_Left + ' seconds';
                    break;
               case 1:
                    //More datailed.
                    days = Math.floor(Time_Left / (60 * 60 * 24));
                    Time_Left %= (60 * 60 * 24);
                    hours = Math.floor(Time_Left / (60 * 60));
                    Time_Left %= (60 * 60);
                    minutes = Math.floor(Time_Left / 60);
                    Time_Left %= 60;
                    seconds = Time_Left;
                    
                    dps = 's'; hps = 's'; mps = 's'; sps = 's';
                    //ps is short for plural suffix.
                    if(days == 1) dps ='';
                    if(hours == 1) hps ='';
                    if(minutes == 1) mps ='';
                    if(seconds == 1) sps ='';
                    
                    document.all.countdown.innerHTML = days + ' day' + dps + ' ';
                    document.all.countdown.innerHTML += hours + ' hour' + hps + ' ';
                    document.all.countdown.innerHTML += minutes + ' minute' + mps + ' and ';
                    document.all.countdown.innerHTML += seconds + ' second' + sps + " till our next gig...";
                    break;
               default: 
                    document.all.countdown.innerHTML = Time_Left + ' seconds';
               }
               
         //Recursive call, keeps the clock ticking.
         setTimeout('countdown(' + year + ',' + month + ',' + day + ',' + hour + ',' + minute + ',' + format + ');', 1000);
         }

// END OF COUNTDOWN SCRIPT

function detection()
{
	document.DATA.Javascript.value = javascript.enabled;
	document.DATA.Quicktime.value = quicktime.installed;
	document.DATA.Flash.value = flash.installed;
}

// -->

