<!--
/////////////////////////////////////////////////////////
// Online Photo Album 2.3
// Copyright (C) 1999 Victor Vogelpoel
// victorv@ergens.com
/////////////////////////////////////////////////////////

//**Start Encode**



function bindToolTips()
{
	//alert(document.all.SLIDESHOWBTN);
	if (document.all.STARTBTN)
	{
		// OK, the control panel should be present
		document.all.STARTBTN.title=sStartBtnTitle;
		document.all.THUMBPAGEBTN.title=sThumbBtnTitle;
		document.all.SLIDESHOWBTN.title=sSlideShowBtnTitle;
		document.all.ABOUTBTN.title=sAboutBtnTitle;
	}
//	  else
//		  alert("NO document.all.STARTBTN");

	if (document.all.PREVPIC)
		document.all.PREVPIC.title=sPrevPicTitle;
	if (document.all.NEXTPIC)
		document.all.NEXTPIC.title=sNextPicTitle;
	if (document.all.PREVPICPAGE)
		document.all.PREVPICPAGE.title=sPrevPageTitle;
	if (document.all.PREVPICPAGE)
		document.all.NEXTPICPAGE.title=sNextPageTitle;


}






 



//////////////////////////////////////////////////////////////////////////////////////
// Parameter  API
// Copyright 1998, Just4Fun Productions
// Available at :  http://people.zeelandnet.nl/rpb	- in the Javascript section
// Last Updated Sep. 3, 1999 by VV.
// In order to use this code you must keep this disclaimer
//
// Sept 99:
// Extended by Victor Vogelpoel (victor.vogelpoel@wxs.nl)
// in order to use the '#' as parameter passing option as well.
// This will enable parameter passing in HTMLHelp based systems.
 
 URLparameters = "";
 Myparams = -1;

 function getParameter(checkOn)
 {
	for (cnt=0; cnt<Myparams;)
	{
		pos 	=-2;
		tempw = "";
		text	 =URLparameters;
	
		for (i=0; i<=cnt;)
		{
			pos2= pos+2;
			pos= text.indexOf('&',pos2);
			tempw=text.substring(pos,pos2-1);
			i++;
		}
		text=tempw;
		pos=text.indexOf('=',0);
		if (pos!=-1)
		{
			tempw=text.substring(pos,0);
		}
		tempw=tempw.toLowerCase();
		if (tempw==checkOn.toLowerCase())
		{
			pos = -2;
			tempv = "";
			text = URLparameters;
			for (i=0; i<=cnt;)
			{
				pos2=pos+2;
				pos=text.indexOf('&',pos2);
				tempv=text.substring(pos,pos2-1);
				i++;
			}
			text=tempv;
			pos2=text.indexOf('=',0)+1;
			if (pos2!=-1)
			{
				tempv=text.substring(pos2);
				tempv=tempv.toLowerCase();
			} 
			else
			{ 
				tempv='' 
			}
			pos=-2;
			text=tempv; 
			if (text.indexOf('%20')>0)
			{
				pos=text.indexOf('%20',0);
				tmp=text.substring(0,pos2-4)+' '+text.substring(pos2-1,text.length);
				text=tempv;
			}
			return tempv;
		}
	cnt++;
	}
	return '';
 }

 // Now we initialise some settings
 // This part must allways be called before anything else
 function initParameters() {
	if ((navigator.appName!='Netscape')&&(navigator.appVersion<4))
	{
		// Older browsers
		URLparameters=document.location;
		if (URLparameters.indexOf('?')>-1)
		{
			URLparameters=URLparameters.substring(URLparameters.indexOf('?')+1,URLparameters.length);
		}

		// VV: handle passing parameters using the '#' tag after the URL.
		if (URLparameters.indexOf('#')>-1)
		{
			URLparameters=URLparameters.substring(URLparameters.indexOf('#')+1,URLparameters.length);
		}
	}
	else
	{
		// Netscape or version 4 browsers

		URLparameters=document.location.search;
		URLparameters="&"+URLparameters.substring(1,URLparameters.length);

		// VV: handle passing parameters using the '#' tag after the URL.
		URLparametersHash=document.location.hash;
		URLparameters+=(URLparameters!="&"?"&":"")+URLparametersHash.substring(1,URLparametersHash.length);
	}
	
	while (URLparameters.indexOf('%20')>0){
		pos2=URLparameters.indexOf('%20',0);
		tmp=URLparameters.substring(0,pos2)+' '+URLparameters.substring(pos2+3,URLparameters.length);
		URLparameters=tmp;
	}
	
	pos = -1;		
	tmp = "";
	text=URLparameters;
	if (text!='') {
		text=text+'&';
		URLparameters=URLparameters+'&';
		Myparams=0;
		while (text.length>0) {
			pos=text.indexOf('&',0);
			text=text.substring(pos+1);
			Myparams++;
		}
	}
 }


//-->

