function goPage(url) {
	window.location.href = url;
}

function doTopNav() {
	var XHTML = '<table border="0" cellpadding="0" cellspacing="0" width="" id="topnav">';
	XHTML += '<tr>';
	XHTML += '<td style="background:url(\'images/button1.gif\') no-repeat 50% 50%; width:106px; height:19px;"><a href="index.htm">HOME</a></td>';
	XHTML += '<td style="background:url(\'images/button2.gif\') no-repeat 50% 50%; width:91px; height:19px;"><a href="gallery.htm">GALLERY</a></td>';
	XHTML += '<td style="background:url(\'images/button3.gif\') no-repeat 50% 50%; width:98px; height:18px;"><a href="diary.htm">DIARY</a></td>';
	XHTML += '<td style="background:url(\'images/button4.gif\') no-repeat 50% 50%; width:96px; height:18px;"><a href="contact.htm">CONTACT</a></td>';
	XHTML += '<td style="background:url(\'images/button5.gif\') no-repeat 50% 50%; width:96px; height:18px"><a href="links.htm">LINKS</a></td>';
	XHTML += '</tr>';
	XHTML += '</table>';
	return XHTML;
}

function doAdminTopNav() {
	var XHTML = '<table border="0" cellpadding="0" cellspacing="0" width="" id="topnav">';
	XHTML += '<tr>';
	XHTML += '<td style="background:url(\'images/button1.gif\') no-repeat 50% 50%; width:106px; height:19px;"><a href="http://www.wildfiresolutions.net/clients/fiddleradam/admin/login.php">LOGIN</a></td>';
	XHTML += '<td style="background:url(\'images/button2.gif\') no-repeat 50% 50%; width:91px; height:19px;"><a href="http://www.wildfiresolutions.net/clients/fiddleradam/admin/update_gallery.php">GALLERY</a></td>';
	XHTML += '<td style="background:url(\'images/button3.gif\') no-repeat 50% 50%; width:98px; height:18px;"><a href="http://www.wildfiresolutions.net/clients/fiddleradam/admin/update_diary.php">DIARY</a></td>';
	XHTML += '<td style="background:url(\'images/button4.gif\') no-repeat 50% 50%; width:96px; height:18px;"><a href="about:blank">blank</a></td>';
	XHTML += '<td style="background:url(\'images/button5.gif\') no-repeat 50% 50%; width:96px; height:18px"><a href="index.htm">HOME</a></td>';
	XHTML += '</tr>';
	XHTML += '</table>';
	return XHTML;
}

function doSideNav() {
	var XHTML = '<table border="0" cellpadding="0" cellspacing="0" width="" id="sidenav" align="center" style="margin-top:40px;">';
	XHTML += '<tr>';
	XHTML += '<td><a href="cdsale.htm"><img src="images/cdtn2.jpg" width="110" height="55" border="0" /></a></td>';
	XHTML += '</tr><tr>';
	XHTML += '<td style="line-height:10px;">&nbsp;</td></tr><tr>';
	XHTML += '</tr><tr>';
	XHTML += '<td style="background:url(\'images/squarebutton.jpg\') no-repeat 50% 50%; width:110px; height:30px"><a href="cdsale.htm">CD Sales</a></td>';
	XHTML += '</tr><tr>';
	XHTML += '<td><a href="faq.htm"><img src="images/questionmark.jpg" width="86" height="68" border="0" /></a></td>';
	XHTML += '</tr><tr>';
	XHTML += '<td style="background:url(\'images/squarebutton.jpg\') no-repeat 50% 50%; width:110px; height:30px"><a href="faq.htm">F.A.Q.s</a></td>';
	XHTML += '</tr><tr>';
	XHTML += '<td style="line-height:30px;">&nbsp;</td></tr><tr>';
	XHTML += '</tr><tr>';
	XHTML += '<td><a href="http://wildfiresolutions.net" target="_blank" style="color:#000000;">&copy; website design by</a></td>';
	XHTML += '</tr><tr>';
	XHTML += '<td><a href="http://wildfiresolutions.net" target="_blank" style="color:#FF0000;">Wildfire Solutions . net</a></td>';
	XHTML += '</tr>';
	XHTML += '</table>';
	return XHTML;
}

function playVideo(num) {
	var videoWin = window.open("http://www.fiddleradam.co.uk/mediaplayer.htm?fiddleradam" + num + "", "videoWindow");
	videoWin.focus();
}

var streams = new Array();
streams[0] = new makeStream("http://www.fiddleradam.co.uk/videos/fiddleradam01.wmv", "Getting off to a Good Start");
streams[1] = new makeStream("http://www.fiddleradam.co.uk/videos/fiddleradam02.wmv", "All Join In");
streams[2] = new makeStream("http://www.fiddleradam.co.uk/videos/fiddleradam03.wmv", "High Kicking Fun");
streams[3] = new makeStream("http://www.fiddleradam.co.uk/videos/fiddleradam04.wmv", "Ceili Dance Capers");

function makeStream(url, name) {
	this.url = url;
	this.name = name;
}

function handleControlsOnOffClick() {
  if (document.mediaPlayer.showControls == true) {
    document.mediaPlayer.showControls = false;
	  document.playerCtrl.controls.value = "  Show Controls ";
  }
  else {
    document.mediaPlayer.showControls = true;
	  document.playerCtrl.controls.value = "  Hide Controls "
  }
}

function handlePlayOrPauseClick(){
  var state;
  playerStatus = document.mediaPlayer.playState;
  if (playerStatus == 6) {
    document.mediaPlayer.play();
    document.playerCtrl.playOrPause.value = " Pause ";
  } 
  else if (playerStatus == 1) {
    document.mediaPlayer.play();
    document.playerCtrl.playOrPause.value = " Pause ";
  } 
  else if (playerStatus == 2) {
    document.mediaPlayer.pause();
    document.playerCtrl.playOrPause.value = " Play  ";
  }
} 

function changeSize(newSize) {
  document.mediaPlayer.displaySize = newSize;
}

function change() {
  var list = document.playerCtrl.streams;
  var streamURL = list.options[list.selectedIndex].value;
  document.mediaPlayer.stop();
  document.mediaPlayer.fileName = streamURL;
}