<!--

function show_archive(targ,selObj,restore){ //v3.0
  eval("document.location='"+selObj.options[selObj.selectedIndex].value+"'");
  //alert(selObj);
}

function writeSWF(objSWF, intSWFWidth, intSWFHeight,align,param) {
  document.writeln('<object'); 
  document.writeln('classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"');
  document.writeln('width="' + intSWFWidth + '"');
  document.writeln('height="' + intSWFHeight + '">');
  document.writeln('<param name="movie" value="' + objSWF + '">');
  document.writeln('<param name="menu" value="false"> <param name="allowScriptAccess" value="sameDomain" /> <param name="wmode" value="opaque" />');
  document.writeln('<param name="quality" value="best"><PARAM name="BASE" value=".">');
  document.writeln('<param name="scale" value="noscale">');
  document.writeln('<PARAM name="align" value="' +  align  + '">');
  document.writeln('<embed');
  document.writeln('pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"'); 
  document.writeln('width="' + intSWFWidth + '"');
  document.writeln('height="' + intSWFHeight + '"');
  document.writeln('src="' + objSWF + '"');
  document.writeln('menu="false"');
  document.writeln('quality="best" allowScriptAccess="sameDomain" ');
  document.writeln('align="' + align + '"');
  document.writeln('scale="noscale" BASE=".">');
  document.writeln('</embed>');
  document.writeln('</object>');
}


function writeSWFTrans(objSWF, intSWFWidth, intSWFHeight,align,param) {
  document.writeln('<object'); 
  document.writeln('classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"');
  document.writeln('width="' + intSWFWidth + '"');
  document.writeln('height="' + intSWFHeight + '">');
  document.writeln('<param name="movie" value="' + objSWF + '">');
  document.writeln('<param name="menu" value="false"> <param name="allowScriptAccess" value="sameDomain" /> <param name="wmode" value="transparent" />');
  document.writeln('<param name="quality" value="best"><PARAM name="BASE" value=".">');
  document.writeln('<param name="scale" value="noborder">');
  document.writeln('<PARAM name="align" value="' +  align  + '">');
  document.writeln('<embed');
  document.writeln('pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"'); 
  document.writeln('width="' + intSWFWidth + '"');
  document.writeln('height="' + intSWFHeight + '"');
  document.writeln('src="' + objSWF + '"');
  document.writeln('menu="false"');
  document.writeln('quality="best" wmode="transparent" allowScriptAccess="sameDomain" ');
  document.writeln('align="' + align + '"');
  document.writeln('scale="noborder" BASE=".">');
  document.writeln('</embed>');
  document.writeln('</object>');
}


function writeRate(objSWF, intSWFWidth, intSWFHeight,fv) {

  	var flashv =  "refNum=" + fv;

  document.writeln('<object'); 
  document.writeln('classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"');
  document.writeln('width="' + intSWFWidth + '"');
  document.writeln('height="' + intSWFHeight + '">');
  document.writeln('<param name="movie" value="' + objSWF + '">');
  document.writeln('<param name="menu" value="false">');
  document.writeln('<PARAM NAME=bgcolor VALUE="#FFFFFF">');
  document.writeln('<param name="quality" value="best">');
  //document.writeln('<PARAM name="BASE" value=".">');
  document.writeln('<param name="scale" value="noborder">');
  document.writeln('<PARAM name="FlashVars" value="' +  flashv  + '">');
  document.writeln('<embed');
  document.writeln('pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"'); 
  document.writeln('width="' + intSWFWidth + '"');
  document.writeln('height="' + intSWFHeight + '"');
  
  document.writeln('src="' + objSWF + '"');
  document.writeln('FlashVars="' +  flashv  +'"');
  document.writeln('menu="false"');
  document.writeln('quality="best" bgcolor="#FFFFFF"');
  //document.writeln('quality="best" bgcolor="#000000" BASE="."');
  document.writeln('scale="noborder">');
  document.writeln('</embed>');
  document.writeln('</object>');
}
// This is the implementation of SimpleSwap
// by Jehiah Czebotar
// Version 1.1 - June 10, 2005
// Distributed under Creative Commons
//
// Include this script on your page
// then make image rollovers simple like:
// <img src="/images/ss_img.gif" oversrc="/images/ss_img_over.gif">
//
// http://jehiah.com/archive/simple-swap
// 


function SimpleSwap(el,which){
  el.src=el.getAttribute(which || "origsrc");
}

function SimpleSwapSetup(){
  var x = document.getElementsByTagName("img");
  for (var i=0;i<x.length;i++){
    var oversrc = x[i].getAttribute("oversrc");
    if (!oversrc) continue;
      
    // preload image
    // comment the next two lines to disable image pre-loading
    x[i].oversrc_img = new Image();
    x[i].oversrc_img.src=oversrc;
    // set event handlers
    x[i].onmouseover = new Function("SimpleSwap(this,'oversrc');");
    x[i].onmouseout = new Function("SimpleSwap(this);");
    // save original src
    x[i].setAttribute("origsrc",x[i].src);
  }
}

var PreSimpleSwapOnload =(window.onload)? window.onload : function(){};
window.onload = function(){PreSimpleSwapOnload(); SimpleSwapSetup();}


function getEntryData(str){
	//alert(str);
	for(var i = 0;i < thisEntryLink.length;i++){
		if(thisEntryLinkA[i].indexOf(str) > 0){
		return '<a href="'+thisEntryLinkA[i] +'">' + thisEntryA[i] +'</a>';
		}
	};
}


function showmetheJumble (e) {
	alert("nearly finsished tweaking this")
//var c1 = 'http://www.bannerblog.com.au/admin';
//var c2 = 'mt-justthefacts.cgi?entry_id=' + e;
//var c = c1 + c2;
   // window.open(c,'jumble','width=510,height=490,scrollbars=yes,status=yes');
}

function getAddy(e,u){
location.href = 'mailto:' + e + '@' + u;
}

//this is the generic MT JS which handles all the cookie data for comments

// Copyright (c) 1996-1997 Athenia Associates.
// http://www.webreference.com/js/
// License is granted if and only if this entire
// copyright notice is included. By Tomer Shiran.

function setCookie (name, value, expires, path, domain, secure) {
    var curCookie = name + "=" + escape(value) + (expires ? "; expires=" + expires : "") +
        (path ? "; path=" + path : "") + (domain ? "; domain=" + domain : "") + (secure ? "secure" : "");
    document.cookie = curCookie;
}

function getCookie (name) {
    var prefix = name + '=';
    var c = document.cookie;
    var nullstring = '';
    var cookieStartIndex = c.indexOf(prefix);
    if (cookieStartIndex == -1)
        return nullstring;
    var cookieEndIndex = c.indexOf(";", cookieStartIndex + prefix.length);
    if (cookieEndIndex == -1)
        cookieEndIndex = c.length;
    return unescape(c.substring(cookieStartIndex + prefix.length, cookieEndIndex));
}

function deleteCookie (name, path, domain) {
    if (getCookie(name))
        document.cookie = name + "=" + ((path) ? "; path=" + path : "") +
            ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
}

function fixDate (date) {
    var base = new Date(0);
    var skew = base.getTime();
    if (skew > 0)
        date.setTime(date.getTime() - skew);
}

function rememberMe (f) {
    var now = new Date();
    fixDate(now);
    now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000);
    now = now.toGMTString();
    if (f.author != undefined)
       setCookie('mtcmtauth', f.author.value, now, '/', '', '');
    if (f.email != undefined)
       setCookie('mtcmtmail', f.email.value, now, '/', '', '');
    if (f.url != undefined)
       setCookie('mtcmthome', f.url.value, now, '/', '', '');
}

function forgetMe (f) {
    deleteCookie('mtcmtmail', '/', '');
    deleteCookie('mtcmthome', '/', '');
    deleteCookie('mtcmtauth', '/', '');
    f.email.value = '';
    f.author.value = '';
    f.url.value = '';
}

function hideDocumentElement(id) {
    var el = document.getElementById(id);
    if (el) el.style.display = 'none';
}

function showDocumentElement(id) {
    var el = document.getElementById(id);
    if (el) el.style.display = 'block';
}

var commenter_name;

function individualArchivesOnLoad(commenter_name) {




    if (document.comments_form) {
        if (document.comments_form.email != undefined &&
            (mtcmtmail = getCookie("mtcmtmail")))
            document.comments_form.email.value = mtcmtmail;
        if (document.comments_form.author != undefined &&
            (mtcmtauth = getCookie("mtcmtauth")))
            document.comments_form.author.value = mtcmtauth;
        if (document.comments_form.url != undefined && 
            (mtcmthome = getCookie("mtcmthome")))
            document.comments_form.url.value = mtcmthome;
        if (mtcmtauth || mtcmthome) {
            document.comments_form.bakecookie.checked = true;
        } else {
            document.comments_form.bakecookie.checked = false;
        }
    }
}





//-->