function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadimages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadimages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function PopIt(theImage) {
	  var h = screen.height - 100;
        var newWindow = null;
        newWindow = window.open("","","width=560,height=" + h + ",scrollbars=no,resizeable=yes")
        if (newWindow !=null) {
                newWindow.focus()
                var newimage = "<HTML><HEAD><TITLE>Enlarged Photo</TITLE></HEAD>"
                newimage += "<BODY BGCOLOR='#CCCC9A'><DIV align=\"center\"><IMG SRC='images/" +theImage+ ".jpg' border='1'><BR>"
                newimage += "<FORM><INPUT TYPE='button' VALUE='Close' onClick='javascript:window.close()'></FORM></DIV>"
                newimage += "</BODY></HTML>"
                newWindow.document.write(newimage)
                newWindow.document.close()
        }
}

function PopItWithPrint(theImage, imageWidth, imageHeight, sText) {
	  var h = imageHeight + 100;
      var w = imageWidth + 20;
        var newWindow = null;
        newWindow = window.open("","","width=" + w +",height=" + h + ",scrollbars=no,resizeable=yes")
        if (newWindow !=null) {
                newWindow.focus()
                var newimage = "<HTML><HEAD><TITLE>"+ sText +"</TITLE></HEAD>"
                newimage += "<BODY BGCOLOR='#CCCC9A'><DIV align=\"center\"><IMG SRC='images/" +theImage+ ".jpg' border='1'><BR>"
                newimage += "<FORM><INPUT TYPE='button' VALUE='Close' onClick='javascript:window.close()'><INPUT TYPE='button' VALUE='Print' onClick='javascript:window.print()'></FORM></DIV>"
                newimage += "</BODY></HTML>"
                newWindow.document.write(newimage)
                newWindow.document.close()
        }
}

function PopMe(theImage) {
	  var h = screen.height - 100;
        var newWindow = null;
        newWindow = window.open("","","width=580,height=" + h + ",scrollbars=yes,resizeable=yes")
        if (newWindow !=null) {
                newWindow.focus()
                var newimage = "<HTML><HEAD><TITLE>Enlarged Photo</TITLE></HEAD>"
                newimage += "<FONT FACE=''Verdana, Arial, Helvetica, sans-serif' size='-1' color='#000000'>"
                newimage += "<BODY BGCOLOR='#CCCC9A'><DIV align=\"center\"><IMG SRC='images/" +theImage+ ".gif' border='1'><BR>"
                newimage += "<FORM><INPUT TYPE='button' VALUE='Close' onClick='javascript:window.close()'><INPUT TYPE='button' VALUE='Print' onClick='javascript:window.print()'></FORM></DIV>"
                newimage += "</FONT></BODY></HTML>"
                newWindow.document.write(newimage)
                newWindow.document.close()
        }
}


 	function popout(navIndex) {
		var text, posHeight, popIndex;
		var posX = 144;
		var posY = 227;
		var posWidth = 180;
		
		var popdata_index = new Array();
		var popdata_text = new Array();
		var popdata_posHeight = new Array();
		
		popdata_index[0] = "a";
		popdata_text[0] = "Home";
		popdata_posHeight[0] = "20";
		
		popdata_index[1] = "b";
		popdata_text[1] = "The Carpentaria Seafaris Fleet";
		popdata_posHeight[1] = "20";
		
		popdata_index[2] = "c";
		popdata_text[2] = "Packaged tropical holidays";
		popdata_posHeight[2] = "20";
		
		popdata_index[3] = "d";
		popdata_text[3] = "Additional Information";
		popdata_posHeight[3] = "20";
		
		popdata_index[4] = "e";
		popdata_text[4] = "Incredible variety";
		popdata_posHeight[4] = "20";
		
		popdata_index[5] = "f";
		popdata_text[5] = "The best!";
		popdata_posHeight[5] = "21";
		
		popdata_index[6] = "g";
		popdata_text[6] = "Frequently Asked Questions";
		popdata_posHeight[6] = "20";
		
		popdata_index[7] = "h";
		popdata_text[7] = "Extremely affordable";
		popdata_posHeight[7] = "19";
		
		popdata_index[8] = "i";
		popdata_text[8] = "Articles, Technical Advice and Current News";
		popdata_posHeight[8] = "21";
		
		popdata_index[9] = "j";
		popdata_text[9] = "From the Bridge by Capt Greg Bethune";
		popdata_posHeight[9] = "20";
		
		popdata_index[10] = "k";
		popdata_text[10] = "Anglers comments";
		popdata_posHeight[10] = "20";
		
		popdata_index[11] = "l";
		popdata_text[11] = "Links";
		popdata_posHeight[11] = "20";
		
		
		popdata_index[12] = "n";
		popdata_text[12] = "Way Cool, Get this first!";
		popdata_posHeight[12] = "19";
		
      popdata_index[13] = "m";
		popdata_text[13] = "Jobs with Seafaris";
		popdata_posHeight[13] = "19";
		
	
		
		var i;
		
		for (i = 0; i < popdata_index.length; i++) {
			if (popdata_index[i] == navIndex) {
				popIndex = i;
			}
		}
		
		for (i = 0; i < popIndex; i++) {
			posY += parseInt(popdata_posHeight[i]);
		}
		
		posHeight = popdata_posHeight[popIndex];
//		posHeight = "20";
		text = popdata_text[popIndex];
				
		text = "<TABLE cellspacing=\"0\" cellpadding=\"0\" border=\"0\" height=\"100%\"><TR><TD valign=\"middle\"><FONT color=\"#FFFFCC\" face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"1\">&nbsp;" + text + "</FONT></TD></TR></TABLE>";
		if (navigator.appName == "Netscape") {
			posX -= 0;
			posY -= 1;
		}

		posWidth = (popdata_text[popIndex].length * 5.5) + 30;	// Adjusts the width according to text length

		return overlib(text, TEXTCOLOR, '#CCCC9A', FGCOLOR, '#7A7A48', BGCOLOR, '#666634', WIDTH, posWidth, HEIGHT, posHeight, FIXX, posX, FIXY, posY);
	}



function PopItNew(theImage, h, w) {
	  var h = screen.height - 100;
        var newWindow = null;
        newWindow = window.open("","","width=" + w + ",height=" + h + ",scrollbars=no,resizeable=yes")
        if (newWindow !=null) {
                newWindow.focus()
                var newimage = "<HTML><HEAD><TITLE>Enlarged Photo</TITLE></HEAD>"
                newimage += "<BODY BGCOLOR='#CCCC9A'><DIV align=\"center\"><IMG SRC='images/" +theImage+ ".jpg' border='1'><BR>"
                newimage += "<FORM><INPUT TYPE='button' VALUE='Close' onClick='javascript:window.close()'></FORM></DIV>"
                newimage += "</BODY></HTML>"
                newWindow.document.write(newimage)
                newWindow.document.close()
        }
}