// JScript source code
// This file contains the links in the picture bar and links below it

	if (typeof loglink == "undefined")
    document.writeln("loglink undefined");
	if (typeof message == "undefined")
    document.writeln("message undefined");
	if (typeof memberPage == "undefined")
    document.writeln("memberPage undefined");
    	
    //document.writeln("hello");
	//generate 4 random numbers
	var images = new Array();
	var count = 0 ;
	var exists;
	var rndnumber;
	while ( true){
      exists = false ;
      rndnumber=Math.floor(Math.random()*8);
	   for (k=0; k<count; k++){
	     if (images[k] == rndnumber)exists = true;
	   }  
	   if(exists == false){
	      images[count] = rndnumber ;
	      count++;
	   }
	   if (count >= 4)break;     
	 }
   	  document.writeln("<table cellSpacing='0' cellPadding='0' width='100%' border='0'><tr>");						
	   document.writeln("<td class='b_line' align='center' bgColor='#6b8ab6' colSpan='4' height='125'>");
	   for(i=0; i<4; i++){
	       var img = "images/thumbs/img" + (images[i] + 1); 
	        img += ".gif";
	        document.writeln("<IMG height='80' hspace='12' src='" + home + img + "' width='120'>");
	        //document.writeln("<IMG  hspace='12' src='" + home + img + "' />");
	    }
	document.writeln("</td>");
	/*
	document.writeln("<IMG height='80' hspace='12' src='" + home + "images/img1.gif' width='120'>");
   */
	document.writeln("</tr></table>");	
	document.writeln("<table class='imglink' cellSpacing='0' cellPadding='0' width='100%' border='0'>");

	document.writeln("<tr>");
	document.writeln("<td colspan='2' align='center' width='120' bgColor='#e7e7ef'>");
	document.writeln("<A href='" + home + "mission.htm'><strong>Our Mission Statement</strong></A></td>");
	document.writeln("<td colspan='3' align='center' width='146' bgColor='#e7e7ef'>");
	document.writeln("<A href='" + home + "about_us.htm'><strong>New Bylaws</strong></A></td>");
	document.writeln("</tr>");	

	document.writeln("<tr><td align='center' width='120' bgColor='#e7e7ef' height='47'>");
	document.writeln("<A href='http://www.stmoritzisc.org/PhotoAlbums/' target=_blank>Photo Albums</A></td>");							  
	//document.writeln("<A href='" + home + "central.htm'>Central Pacific Regional Championships Results</A></td>");							  
	document.writeln("<td align='center' width='120' bgColor='#e7e7ef'>");
	//document.writeln("<A href='" + home + "competitions.htm'>2011 Skate St Moritz</A></td>");
	document.writeln("<A href='" + home + "competitions.htm'>2011 Bay Cities Synchro</A></td>");
	document.writeln("<td align='center' width='120' bgColor='#e7e7ef'>");
	document.writeln("<A href='" + home + "membership.htm'>Membership</A></td>");
	document.writeln("<td align='center' width='120' bgColor='#e7e7ef'>");
	document.writeln("<A href='" + home + "goodStanding/good_standing_search.php'>Certification Letter</A></td>");
	document.writeln("<td align='center' bgColor='#e7e7ef'>");
	document.writeln("<A href='" + home + "jacket_order_form.pdf'>Club Jackets</A></td>");
	document.writeln("</tr> </table>");
	
	//login and member's name titlebar

/*
	document.writeln("<table cellSpacing='0' cellPadding='0' width='100%' border='0'>");
	document.writeln("<tr bgColor='lightblue'>");
	document.writeln("<td align='center' >");
	document.writeln( message + "</td>");
	document.writeln("<td align='center' >");
	document.writeln( memberPage + "</td>");
	document.writeln("<td align='right' >");
	document.writeln( loglink + "</td>");
	document.writeln("</tr> </table>");
*/	
	
							
				 

