function doSidebar() {
	document.write("<form action='/cgi-sys/entropysearch.cgi' target=searchwindow> <input type='text' name='query' value='' maxlength='80' style='width:110px;margin-bottom:2px;'> <input type='hidden' name='user' value='spilly'> <input type='hidden' name='basehref' value='http://bridgewaterraiders.org.au'> <input type='hidden' name='template' value='default'> <input type='submit' style='width:108px;font-size:9pt;padding:1px 0px 1px 0px;backgound:#f0f0f0;border:solid #c2c2c2 2px;border-width:0px 2px 2px 0px;' value='Search site...'> </form> ");
	document.write("<br>");
	document.write("<a class='boxed' href='index.htm'>Home</a>");
	document.write("<br>");
	document.write("<a class='boxed' href='contacts.htm'>Contacts</a>");
	document.write("<br>");
	document.write("<a class='boxed' href='sponsors.htm' title='Visit the sponsors who proudly support our club.'>Our Sponsors</a>");
	document.write("<br>");
	document.write("<a class='boxed' href='mapof.htm' title='A Google Map to help find us.'>FIND US</a>");
	document.write("<br>");
	document.write("<a class='boxed' href='policies.htm'>Club Vision</a>");
	document.write("<br>");
	document.write("<a class='boxed' href='history.htm'>About Us</a>");
	document.write("<br>");
	document.write("<a class='boxed' href='honor.htm' title='Life members, mail medalists, best and fairest, etc.'>Honor Board</a>");
	document.write("<br>");
	document.write("<a class='boxed' href='resources.htm' title='A collection of useful information and required forms.'>Club Resources</a>");
	document.write("<br>");
	document.write("<a class='boxed' href='pdf/2009_HFLProgram.pdf'>2009 HFL Program</a>");
	document.write("<br>");
	document.write("<br>");
	document.write("<div class='sidebar-header'>GALLERY</div>");
	document.write("<br>");
	document.write("<a class='boxed' href='gallery2009.htm' title='A selection of photos for season 2009'>Gallery 2009</a>");
	document.write("<br>");
	document.write("<a class='boxed' href='gallery2008.htm' title='A selection of photos for season 2008'>Gallery 2008</a>");
	document.write("<br>");
	document.write("<a class='boxed' href='gallery2007.htm' title='A selection of photos for season 2007'>Gallery 2007</a>");
	document.write("<br>");
	document.write("<a class='boxed' href='gallery2006.htm' title='A selection of photos for season 2006'>Gallery 2006</a>");
	document.write("<br>");
	document.write("<a class='boxed' href='gallery2005.htm' title='A selection of photos for season 2005'>Gallery 2005</a>");
	document.write("<br>");
	document.write("<br>");
	document.write("<div class='sidebar-header'>USEFUL LINKS</div>");
	document.write("<p> <a href='http://www.350.org' title='Global Future'>");
	document.write("<img style='padding-left: 25px;' width='60' height='40' border='0' src='images/350_logo.png' alt='350'></a> </p>");
	document.write("<p> <a href='http://www.sanfl.com.au' title='SA National Football League'>");
	document.write("<img style='padding-left: 25px;' width='35' height='50' border='0' src='images/SANFL.png' alt='SANFL'></a> </p>");
	document.write("<p> <a href='http://www.hfl.org.au' title='Hills Football League'>");
	document.write("<img style='padding-left: 25px;' width='40' height='40' border='0' src='images/HFL.png' alt='HFL'></a> </p>");
	document.write("<p> <a href='http://www.aflauskick.com.au/index.php?centre_search_type=1&postcode=5155&Find=Find&id=12' title='AFL AusKick Program'>");
//http://www.aflauskick.com.au/index.php?id=24
	document.write("<img style='padding-left: 6px;' width='100' height='50' border='0' src='images/AUSKICK.png' alt='AUSKICK'></a> </p>");
	document.write("<p> <a href='http://www.smasa.asn.au' title='SA Sports and Medical Assosciation'>");
	document.write("<img style='padding-left: 6px;' width='100' height='60' border='0' src='images/SMASA.png' alt='SMASA'></a> </p>");
	document.write("<p> <a class='boxed' href='http://www.countryfooty.com.au' title='SA Country Footy Website'> Country Footy</a></p>");
	document.write("<p> <a href='http://www.mozilla.org/products/firefox/' title='Get Firefox - Take Back the Web'>");
	document.write("<img style='padding-left: 6px;' width='80' height='25' border='0' src='images/firefox.png' alt='Get Firefox'></a> </p>");
	document.write("<p> <a href='http://www.adobe.com/products/acrobat/readstep.html' title='Get Adobe PDF Reader'>");
	document.write("<img style='padding-left: 6px;' width='80' height='25' border='0' src='images/acroread.png' alt='Get Acroread'></a> </p> ");
	document.write("<p> <a class='boxed' href='mailto:spilly55@yahoo.com.au' title='Email website maintainer if you have any issues with this website'>Webmaster</a> </p>");
	document.write("<p> <a class='boxed' href='javascript:bookmark()'>Add to favourites</a> </p>");

}

function bookmark(){
    var title="Bridgewater Raiders"
    var url="http://bridgewaterraiders.org.au"

    if (window.sidebar) window.sidebar.addPanel(title, url,"");

    else if( window.opera && window.print )
    {
    var mbm = document.createElement('a');
    mbm.setAttribute('rel','sidebar');
    mbm.setAttribute('href',url);
    mbm.setAttribute('title',title);
    mbm.click();
    }

    else if( document.all ) window.external.AddFavorite( url, title);

}

function doThumb(image,title,tooltip) {
	document.write("<div class='sgThumbnail'>");
	document.write("<img class='borderTL' src='themes/default/slide-tl.gif' alt='' />");
	document.write("<img class='borderTR' src='themes/default/slide-tr.gif' alt='' />");
	document.write("<div class='sgThumbnailContent'>");
	document.write("<table><tr><td>");
	document.write("<a href='photos/"+image+".jpg'><img src='photos/Thmb"+image+".png'border='0'  width='100' height='75' alt='"+tooltip+"' title='"+tooltip+"' /></a> ");
	document.write("<small>"+title+"</small>");
	document.write("</td></tr></table>");
	document.write("<div class='roundedCornerSpacer'>&nbsp;</div>");
	document.write("</div>");
	document.write("<div class='bottomCorners'>");
	document.write("<img class='borderBL' src='themes/default/slide-bl.gif' alt='' />");
	document.write("<img class='borderBR' src='themes/default/slide-br.gif' alt='' />");
	document.write("</div> </div>");
}

// Flash Version Detector  v1.2.1
// documentation: http://www.dithered.com/javascript/flash_detect/index.html
// license: http://creativecommons.org/licenses/by/1.0/
// code by Chris Nott (chris[at]dithered[dot]com)
// with VBScript code from Alastair Hamilton (now somewhat modified)


function isDefined(property) {
  return (typeof property != 'undefined');
}

var flashVersion = 0;
function getFlashVersion() {
	var latestFlashVersion = 8;
   var agent = navigator.userAgent.toLowerCase(); 
	
   // NS3 needs flashVersion to be a local variable
   if (agent.indexOf("mozilla/3") != -1 && agent.indexOf("msie") == -1) {
      flashVersion = 0;
   }
   
	// NS3+, Opera3+, IE5+ Mac (support plugin array):  check for Flash plugin in plugin array
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		var flashPlugin = navigator.plugins['Shockwave Flash'];
		if (typeof flashPlugin == 'object') { 
			for (var i = latestFlashVersion; i >= 3; i--) {
            if (flashPlugin.description.indexOf(i + '.') != -1) {
               flashVersion = i;
               break;
            }
         }
		}
	}

	// IE4+ Win32:  attempt to create an ActiveX object using VBScript
	else if (agent.indexOf("msie") != -1 && parseInt(navigator.appVersion) >= 4 && agent.indexOf("win")!=-1 && agent.indexOf("16bit")==-1) {
	   var doc = '<scr' + 'ipt language="VBScript"\> \n';
      doc += 'On Error Resume Next \n';
      doc += 'Dim obFlash \n';
      doc += 'For i = ' + latestFlashVersion + ' To 3 Step -1 \n';
      doc += '   Set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash." & i) \n';
      doc += '   If IsObject(obFlash) Then \n';
      doc += '      flashVersion = i \n';
      doc += '      Exit For \n';
      doc += '   End If \n';
      doc += 'Next \n';
      doc += '</scr' + 'ipt\> \n';
      document.write(doc);
   }
		
	// WebTV 2.5 supports flash 3
	else if (agent.indexOf("webtv/2.5") != -1) flashVersion = 3;

	// older WebTV supports flash 2
	else if (agent.indexOf("webtv") != -1) flashVersion = 2;

	// Can't detect in all other cases
	else {
		flashVersion = flashVersion_DONTKNOW;
	}

	return flashVersion;
}

flashVersion_DONTKNOW = -1;
