<!--
	    function replaceString(szString,szFind,szReplace)
		{
		    var iMatched, fSubstring, sSubstring;
		    iMatched=0;
			
			//alert(szString + "/" + szFind + "/" + szReplace);
		
		    while(iMatched>=0)
			{
			        iMatched=szString.indexOf(szFind);
			        if(iMatched<0)
					{					    
				        return szString;
					}
			        fSubstring=szString.substring(0,iMatched);
			        sSubstring=szString.substring(iMatched+szFind.length, szString.length);
			        szString=fSubstring + szReplace + sSubstring;
		    }
		    // Next line for Netscape compatibility 
		    //     only - no effects
			return(0);
		}

		function ConvertURLJS(strURL)
		{

			strTmp="%";
			strURL = replaceString(strURL,"%", "%"+returnBase(strTmp.charCodeAt(0),16));
		
			strURL = replaceString(strURL," ", "%20");		
			
			strTmp="<";
			strURL = replaceString(strURL,"<", "%"+returnBase(strTmp.charCodeAt(0),16));
			
			strTmp=">";
			strURL = replaceString(strURL,">", "%"+returnBase(strTmp.charCodeAt(0),16));
			
			strTmp=")";
			strURL = replaceString(strURL,")", "%"+returnBase(strTmp.charCodeAt(0),16));
			
			strTmp="&";
			strURL = replaceString(strURL,"&", "%"+returnBase(strTmp.charCodeAt(0),16));
			
			strTmp="#";
			strURL = replaceString(strURL,"#", "%"+returnBase(strTmp.charCodeAt(0),16));
			
			strTmp="{";
			strURL = replaceString(strURL,"{", "%"+returnBase(strTmp.charCodeAt(0),16));

			strTmp="}";
			strURL = replaceString(strURL,"}", "%"+returnBase(strTmp.charCodeAt(0),16));
			
			strTmp="+";
			strURL = replaceString(strURL,"+", "%"+returnBase(strTmp.charCodeAt(0),16));
			
			browser7=navigator.appName;
		    if (browser7=="Microsoft Internet Explorer")
			{
				// not allowed in Netscape due to bug :(((
				strTmp="(";
				strURL = replaceString(strURL,"(", "%"+returnBase(strTmp.charCodeAt(0),16));
			}
			return strURL;
		}
		
		
	    function makeArray() 
		{
		    for (i = 0; i<makeArray.arguments.length; i++)
		    this[i] = makeArray.arguments[i];
		}
		
		var convert = new makeArray('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');


	    function returnBase(number,base) 
		{
		    if (number < base) var ouput = convert[number];
	        else 
			{
		        var MSD = '' + Math.floor(number / base);
		        var LSD = number - MSD*base;
		        if (MSD > base) var output = returnBase(MSD,base) + convert[LSD];
		        else var output = convert[MSD] + convert[LSD];
		    }
		    return output;
		}



function openPictureWindow(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {
	iH = eval(imageHeight+20);
	iW = imageWidth;
	var dtNow = new Date();
	


	newWindow = window.open("","newWindow"+dtNow.getTime(),"width="+imageWidth+",height="+iH+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">'); 
	if (imageType == "swf"){
	newWindow.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high>');
	newWindow.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('</embed></object>');	}
	else if (imageType == "mov"){
			newWindow.document.write('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="'+iH+'" width="'+imageWidth+'">');
	newWindow.document.write('<param name="src" value="'+imageName+'">');
	newWindow.document.write('<param name="autoplay" value="true">');

	newWindow.document.write('<embed pluginspage="http://www.apple.com/quicktime/download/" src="'+imageName+'" type="video/quicktime" autoplay="true"> ');
	newWindow.document.write('</object>');
	}else{
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">'); 	}
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}
-->