<!-- Begin POP-UP SIZES AND OPTIONS CODE


// ONLY USE lowercase FOR ALL OPTIONS


// CHANGE ANY OF THESE VARIABLES TO "no" OR "yes" TO TURN AN OPTION OFF OR ON


var small_icon 		= "no"		// SHOW THE SMALL POP UP ICON
var popup_text 		= "no"		// HAVE TEXT IN THE POP-UPS
var btm_text 		= "yes"		// HAVE TEXT IN THE POP-UPS
var picture_only	= "yes"		// "yes" FOR ONLY THE PICTURE TO SHOW IN THE POPUPS
var viewer	 	= "yes"		// yes/FULL SCREEN OR no/POPUP MODE

var close_button 	= "yes"		// CLOSE BUTTON ON/OFF
var slideshow_button 	= "no"		// SLIDESHOW BUTTON ON/OFF
var right_click_on	= "yes"		// RIGHT CLICK PROTECTION ON

var watermark 		= "no"		// WATERMARK ON/OFF
var watermark_horz	= "340"		// WATERMARK POSITION
var watermark_vert	= "200"		// WATERMARK POSITION
var watermark_opacity	= "35"		// WATERMARK OPACITY
var netscape_opacity	= ".35"		// NETSCAPE SET 0 TO 1


// OTHER OPTIONS YOU CAN CHANGE


var text_width		= 170		// WIDTH OF THE TEXT TABLE
var border_color	= "CCCC99"	// PICTURE OUTLINE COLOR
var background_color	= "000000"	// VIEWER BACKGROUND COLOR

var slideshow_width 	= 750		// SLIDESHOW POPUP WINDOW WIDTH
var slideshow_height 	= 525		// SLIDESHOW POPUP WINDOW HEIGHT

var view_width 		= 750		// GALLERY POPUP WIDTH
var view_height 	= 525		// GALLERY POPUP HEIGHT

var music_width		= "200"		// MUSIC POPUP WIDTH
var music_height	= "200"		// MUSIC POPUP HEIGHT

var scrollbarS 		= "1"		// TURN ON POPUP SCROLLBARS "1" FOR ON "0" FOR OFF
var hide_status		= "no"		// HIDE LINK STATUS
var status_text 	= "Welcome"	// TEXT IN THE STATUS BAR
var zoom	 	= "no"		// SHOW POPUP ZOOM LINKS

var right_click_text	= "You may not right mouse click this page"	// TEXT FOR THE RIGHT CLICK PROTECTION




// YOU DO NOT NEED TO EDIT BELOW THIS LINE

// COPYRIGHT 2004 © Allwebco Design Corporation
// Unauthorized use or sale of this script is strictly prohibited by law

// START SLIDESHOW POPUP CODE




function popUpSlideshow(URL) {

day = new Date();
id = day.getTime();

   if (viewer == "no") {
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=' + scrollbarS + ',location=0,statusbar=0,menubar=0,resizable=0,width='+slideshow_width+',height='+slideshow_height+'');");
}
else 
if (viewer == "yes") {
eval("page" + id + " = window.open(URL);");
}
}






// START GALLERY POPUP CODE



function popUp(URL,TITLE,TEXT,HVAL,VVAL) {

if (popup_text == "no") {
	text_width=0;
}

if (HVAL > 0) {
	view_width = HVAL-(60*-1);
}

if (popup_text == "yes") {
	view_width = view_width-(text_width*-1);
}

if (VVAL > 0) {
	view_height = (VVAL-(80*-1));
}

if (btm_text == "yes") {
	view_height = (view_height-(40*-1));
}

   if (viewer == "no") {
var look='toolbar=0,scrollbars=' + scrollbarS + ',location=0,statusbar=0,menubar=0,resizable=0,width='+view_width+',height='+view_height+','
popwin=window.open("","kknpics",look,"TITLE","TEXT")
}
else 
if (viewer == "yes") {
popwin=window.open()
}
popwin.document.open()
popwin.document.write('<html><head><title>Kihei Kai Nani Picture Viewer</title>\n')
popwin.document.write('<link rel=StyleSheet href="coolstyle.css" type="text/css" media="screen">\n')
popwin.document.write('<link href="kkn.css" rel="stylesheet" type="text/css">\n')
   if (right_click_on == "yes") {
popwin.document.write('<META HTTP-EQUIV="imagetoolbar" CONTENT="no">\n')
popwin.document.write('<script language="JavaScript">\n')
popwin.document.write('function noRightClick() {\n')
popwin.document.write('if (event.button==2) {\n')
popwin.document.write('alert(\''+right_click_text+'\')\n')
popwin.document.write('}\n')
popwin.document.write('}\n')
popwin.document.write('document.onmousedown=noRightClick\n')
popwin.document.write('</script>\n')
}
popwin.document.write('</head>\n')
popwin.document.write('<body class="picpopup" bgcolor="#'+background_color+'" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0">\n')
//popwin.document.write('<font color="white">HVAL:'+HVAL+'<br>text width:'+text_width+'<br>view width:'+view_width+'<br>VVAL:'+VVAL+'<br>view height:'+view_height+'</font>\n')
popwin.document.write('<TABLE class="tableslideshow" cellpadding="0" cellspacing="0" border="0" width="100%" height="100%"><tr><td valign="middle" align="center">\n')
   if (picture_only == "no") {
popwin.document.write('</td></tr><tr><td align="center">\n')
popwin.document.write('<TABLE cellpadding="0" cellspacing="10" border="0" width="'+text_width+ '"><tr><td align="left">\n')
	   if (small_icon == "yes") {
	popwin.document.write('<img src="images/icon-popup.gif"><br>\n')
	   }
	   if (popup_text == "yes") {
	popwin.document.write('<span class="poptitle">'+TITLE+ '</span><br>' +TEXT+'<br>\n')
	}
	popwin.document.write('</td></tr></table>\n')
	popwin.document.write('</td><td align="center" valign="middle">\n')
   }
// ZOOM CODE
   if (zoom == "yes") {
browser_version= parseInt(navigator.appVersion);
browser_type = navigator.appName;
if (browser_type == "Microsoft Internet Explorer" && (browser_version >= 4) && (navigator.userAgent.indexOf("Windows") != -1)) {
popwin.document.write("<div id=\"ZOOM\">\n");
popwin.document.write("<a href=\"#\" onMouseOver=\"show.style.zoom='1.5'\" onMouseOut=\"show.style.zoom='1'\"><img src=\"images/zoom-1.gif\" border=\"0\"></a>\n");
popwin.document.write("<a href=\"#\" onMouseOver=\"show.style.zoom='2.0'\" onMouseOut=\"show.style.zoom='1'\"><img src=\"images/zoom-2.gif\" border=\"0\"></a>\n");
popwin.document.write("<a href=\"#\" onMouseOver=\"show.style.zoom='2.5'\" onMouseOut=\"show.style.zoom='1'\"><img src=\"images/zoom-3.gif\" border=\"0\"></a>\n");
popwin.document.write("</div>\n");
}}
popwin.document.write('<TABLE cellpadding="0" cellspacing="0" border="1" bordercolor="#' + border_color + '" style="border-collapse: collapse"><tr><td>\n')

//if ((HVAL > 0) AND (VVAL > 0)) {
if (HVAL > 0) {
	if (VVAL > 0) {
		popwin.document.write('<img src="'+URL+'" name="show" width="'+HVAL+'" height="'+VVAL+'"><br>\n');
	} 
	else {
		popwin.document.write('<img src="'+URL+'" name="show" width="'+HVAL+'"><br>\n');
	}
} 
else {
	popwin.document.write('<img src="'+URL+'" name="show"><br>\n');
}
//popwin.document.write('<img src="'+URL+'" name="show"><br>')

popwin.document.write('</td></tr></table>\n')
if (btm_text == "yes") {
	popwin.document.write('<br><TABLE cellpadding="0" cellspacing="0" border="0">\n')
	popwin.document.write('<tr><td align="center" class="slideshowtitle">'+TITLE+ '</td></tr>\n')
	popwin.document.write('<tr><td align="center" class="slideshowcontent">'+TEXT+ '</td></tr>\n')
	popwin.document.write('</table>\n')
}
popwin.document.write('<br>\n')
popwin.document.write('<TABLE cellpadding="0" cellspacing="0" border="0"><tr><td>\n')
   if (close_button == "yes") {
popwin.document.write('<form style="margin: 0px"><input type="button" value="Close" onmouseover="this.className=\'buttonon-popups\'" onmouseout="this.className=\'button-popups\'" class="button-popups" onClick=\'self.close()\'>&nbsp;</form>\n')
}
   if (slideshow_button == "yes") {
popwin.document.write('</td><td>\n')
popwin.document.write('<form action="maui_pictures.html" style="margin: 0px"><input type="submit" value="Slideshow" onmouseover="this.className=\'buttonon-popups\'" onmouseout="this.className=\'button-popups\'" class="button-popups"></form>\n')
}
popwin.document.write('</td></tr></table>\n')
// START WATERMARK CODE
   if (watermark == "yes") {
popwin.document.write('<div id="watermark" style=" LEFT: ' + watermark_horz + 'px; POSITION: absolute; TOP: ' + watermark_vert + 'px; Filter: Alpha(Opacity=' + watermark_opacity + ');-moz-opacity:'+ netscape_opacity +'">\n')
popwin.document.write('<TABLE cellpadding="0" cellspacing="0" border="0"><tr><td>\n')
popwin.document.write('<img src="images/watermark.gif"><br>\n')
popwin.document.write('</td></tr></table>\n')
popwin.document.write('</div>\n')
}
popwin.document.write('</td></tr></table>\n')
popwin.document.write('</body></html>\n')
popwin.document.close()
}





// MUSIC POPUP CODE



	function PLAYMUSIC() {
	   msg=open('music/music-1.htm','frameWindow','scrollbars=no,toolbar=no,resizable=yes,directories=no,menubar=no,location=no,status=no,left=0,top=250,width=' + music_width + ',height=' + music_height + '');
	 }



// FULL SCREEN MODE

function fullScreen() {
  window.open(location.href,'fullscreen','fullscreen,scrollbars')
}



// MOUSEOVER STATUS

   if (hide_status == "yes") {

function hidestatus(){
window.status=status_text
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus

}





// HOMEPAGE IMAGE FADE


function high(fader2)
{
theobject=fader2;
highlighting=setInterval("highlightit(theobject)",50);
	
}
function low(fader2)
{
clearInterval(highlighting);
fader2.filters.alpha.opacity=50;
}
function highlightit(cur2)
{
if(cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=5
else if(window.highlighting)
clearInterval(highlighting)
}




//  End -->