<!--
	// CSS
	
	if ((navigator.appName.indexOf("Microsoft") != -1) || ((navigator.appName.indexOf("Netscape") != -1) && (parseInt(navigator.appVersion.substring(navigator.appVersion.indexOf(".")-1)) > 4)) || ((navigator.appName.indexOf("Netscape") != -1) && (navigator.appVersion.indexOf("Mac") != -1) && (parseInt(navigator.appVersion.substring(navigator.appVersion.indexOf(".")-1)) > 3)  ))
  		{
    		document.write('<link rel="stylesheet" type="text/css" href="aegean.css">');
  		} 
	else 
  		{
   		document.write('<link rel="stylesheet" type="text/css" href="aegean-netscape.css">');
  		}
	// Preload Images

	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];}}
	}


	// Image Rollover

	function changeImage(imageName,newImageSource) {
		if (document.images) {
			document.images[imageName].src = newImageSource;
		}
	}
	// Fade
	       nereidFadeObjects = new Object();
	       nereidFadeTimers = new Object();
	       /* object - image to be faded (actual object, not name);
	       * destop - destination transparency level (ie 80, for mostly solid)
	       * rate   - time in milliseconds between trasparency changes (best under 100)
	       * delta  - amount of change each time (ie 5, for 5% change in transparency)
	       */
	       function nereidFade(object, destOp, rate, delta){
	     if (!document.all)
	     return
	          if (object != "[object]"){  //do this so I can take a string too
	 	       setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
	              return;
	          }
	                      clearTimeout(nereidFadeTimers[object.sourceIndex]);
	                  diff = destOp-object.filters.alpha.opacity;
	          direction = 1
	           if (object.filters.alpha.opacity > destOp){
	              direction = -1;
	          }
	          delta=Math.min(direction*diff,delta);
	          object.filters.alpha.opacity+=direction*delta;
	              if (object.filters.alpha.opacity != destOp){
	              nereidFadeObjects[object.sourceIndex]=object;
	              nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
	          }
	      }
	
	// Random Images
	<!--
	/*  You can get this script and many others 
    	by visiting JavaScript City at: http://www.javascriptcity.com . */

		pic_width=400;   /*change to match the height of all your images */
		pic_height=179;   /* change to match the width of all your images */
		border_size=0;   /* change to the border size you want on the images */
		alignment=1;      /* 0=left,1=center */

	/* define image urls */

		if (document.images)
 		{
     		pic1= new Image(pic_width,pic_height);
     		pic1.src="images/l1-main-pic.jpg";  
     		pic2= new Image(pic_width,pic_height); 
     		pic2.src="images/l1-main2-pic.jpg"; 
     		pic3= new Image(pic_width,pic_height);
     		pic3.src="images/l1-main3-pic.jpg";  
     		pic4= new Image(pic_width,pic_height);
     		pic4.src="images/l1-main4-pic.jpg";  
     		pic5= new Image(pic_width,pic_height);
     		pic5.src="images/l1-main5-pic.jpg";
     		pic6= new Image(pic_width,pic_height);
     		pic6.src="images/l1-main6-pic.jpg";
 		}    

	/* no need to edit past this point (unless you want to add more image slots) */

		if (alignment==1)
 		{
  		cent_it="<CENTER>";
  		cent_it2="<\/CENTER>";
 		}
		else
 		{
  		cent_it="";
  		cent_it2="";
 		}
 
		function get_random(maxNum)
		{
  		if (Math.random && Math.round)
  		{
    		var ranNum= Math.round(Math.random()*(maxNum-1));
    		ranNum+=1;
    		return ranNum;
  		}
  		else
  		{
  		today= new Date();
  		hours= today.getHours();
  		mins=   today.getMinutes();
  		secn=  today.getSeconds();
  		if (hours==19)
   		hours=18;
  		var ranNum= (((hours+1)*(mins+1)*secn)%maxNum)+1;
  		return ranNum;
  		}
		}

		function get_Image()
		{
 		if (document.images)
 		{
  		var choose_one= get_random(6);  
  		choose_one--;

  		var pics= new Array(6) 
   		pics[0]=pic1.src;
   		pics[1]=pic2.src;
   		pics[2]=pic3.src;
   		pics[3]=pic4.src;
   		pics[4]=pic5.src;
   		pics[5]=pic6.src; 

  		document.write(cent_it+"<IMG SRC='"+pics[choose_one]+"' width='"+pic_width+"' height='"+pic_height+"' border='"+border_size+"'>"+cent_it2);
 		}
		}
		//-->

	
	// Flash
	
	function writeFlashOrImage(FlashName,ImageName,Width,Height,Alt,FlashVersion) {
		// first, write the opening object tag
	
		strObjectTag = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
		strObjectTag = strObjectTag + ' width="' + Width + '" height="' + Height + '" ';
		strObjectTag = strObjectTag + 'codebase="http://active.macromedia.com/flash5/cabs/swflash.cab#version=';
		strObjectTag = strObjectTag + FlashVersion + '">';
		strMovieParam = '<param name="movie" value="' + FlashName + '">';
		document.write(strObjectTag);
		document.write(strMovieParam);
		document.write('<param name=\"play\" value=\"true\">');
		document.write('<param name=\"loop\" value=\"true\">');
		document.write('<param name=\"quality\" value=\"best\">');
	
		// if the Flash Plug-in is installed and a browser than user plug-ins is the browser, write an embed tag
		plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
			strImageTag = '<image src="' + ImageName + '" width="' + Width + '" height="' + Height + '" ';
			strImageTag = strImageTag + ' border="0" alt="' + Alt + '">';
		if ( plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 4 )
			{
			strEmbedTag = '<embed src="' + FlashName + '" width="' + Width + '" height="' + Height + '" ';
			strEmbedTag = strEmbedTag + 'play="true" loop="true" quality="best" ';
			strEmbedTag = strEmbedTag + 'pluginspace="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">';
			document.write(strEmbedTag);
			document.write('</embed>');
			}
		// otherwise, then write an image tag.
		else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
			document.write(strImageTag);
			}
		
		//finally, write the closing object tag
		document.write('</object>');
	}

		
//-->
