/* the quick view function - 2011-05-02 - 2008.12.11 */

function view($pg){
 var $loc = 'http://geoffmclane.com/mona/'+$pg;
 window.location.href=$loc;
}

/* build the array of pages to be shown */
var $mypages = new Array();
$mypages[0] = "Mona Index|index.htm";
$mypages[1] = "Mona|mona.htm";
$mypages[2] = "Mona - A New Star is Born|mona0.htm";
$mypages[3] = "Mona 2|mona2.htm";
$mypages[4] = "Mona at 5 months|mona5.htm";
$mypages[5] = "Mona at 6.5|mona6.htm";
$mypages[6] = "Mona at 7-8 months|mona_7.htm";
$mypages[7] = "Mona - Winter|mona08.htm";
$mypages[8] = "Mona - Winter - Beach|mona09.htm";
$mypages[9] = "Mona - Winter - Beach Ball|mona10.htm";
$mypages[10] = "Mona - April 2005|mona11.htm";
$mypages[11] = "Mona - May 2005|mona12.htm";
$mypages[12] = "Mona - June 2005|mona13.htm";
$mypages[13] = "Mona - September 2005|mona14.htm";
$mypages[14] = "Mona - October 2005|mona15.htm";
$mypages[15] = "Mona - 18 Months|mona16.htm";
$mypages[16] = "Mona - 2nd Winter|mona17.htm";
$mypages[17] = "Mona - 20 Months|mona18.htm";
$mypages[18] = "Mona - 3 Years|mona19.htm";
$mypages[19] = "Mona - 4 Years|mona20.htm";
$mypages[20] = "Mona - Dad's Work|mona21.htm";
$mypages[21] = "Mona - Brother|mona22.htm";
$mypages[22] = "Mona - Visits|mona23.htm";
$mypages[23] = "Image Viewer|imgview.php";
$mypages[24] = "Image View All|imgall.htm";

/* add the quick link dropdown */
function add_qlmona() {
var $dir = location.href.substring(0,location.href.lastIndexOf('/')+1);
var $fn = location.href.substring($dir.length,location.href.length+1);
var $i;
var $len = $mypages.length;
if ($fn.length == 0) { // if NO name, assume -
	$fn = 'index.htm';
}
document.writeln("<table width=\"100%\" summary=\"list of quick links\">");
document.writeln("<tr><td align=\"center\">");
document.writeln("<form method=\"post\" name=\"tops\" action=\"\">");
document.writeln("<select name=\"tops\">");
var $selnx = 0;
for( $i = 0; $i < $len; $i++ ) {
	$sp = $mypages[$i].split('|');
	$opt = "<option value=\"" + $sp[1];
	if( $selnx ) {
		$opt += "\" selected>";
		$selnx = 0;
	} else {
		$opt += "\">";
	}
    $opt += ($sp[0] + " (" + $sp[1] + ")");
    document.writeln($opt);
    document.writeln("</option>");
	if( $sp[1] == $fn ) {
		$selnx = 1;
	}
}
document.writeln("</select>");
document.write("<input type=\"button\" value=\"Go\" onClick=\"view(document.tops.tops[document.tops.tops.selectedIndex].value)\" name=\"button\">");
document.writeln(" Quick Links");
document.writeln("</form>");
document.writeln("</td></tr>");
document.writeln("</table>");

}

/* eof file : qlmona.js - verions 0.0.8 - 2008.07.17 - geoff mclane - mailto : geoffair _at!_ hotmail _dot!_ com */

