
// this is the common file for the freak fitness htmls

// set up variable to access name
var position_found = -1;

// there are currently 2 members that have flash set up
// showing their form

// they are listed below


// Team GOTS members
// Darren Mehling = 0
// Christina Mehling = 1 
// Sasha Herwig = 2
// Shawna Goossen = 3
// Natalie Poisson = 3


/* holding area for the various arrays
// setting up the test array
// arrays always have to start at 0
var assign_test = new Array();

assign_test[0] = ' ';
assign_test[1] = ' ';
assign_test[2] = ' ';
assign_test[3] = ' ';
assign_test[4] = ' ';
assign_test[5] = ' ';
assign_test[6] = ' ';
assign_test[7] = ' ';
assign_test[8] = ' ';
assign_test[9] = ' ';
assign_test[10] = ' ';

*/




// name of flash to be displayed
// arrays always have to start at 0
var assign_flash_name = new Array();

assign_flash_name[0] = 'flash/Darren_montage.swf';
assign_flash_name[1] = 'flash/Christina_montage.swf';
assign_flash_name[2] = 'flash/Shasha2_montage.swf';
assign_flash_name[3] = 'flash/Shawna_montage.swf';
assign_flash_name[4] = ' ';
assign_flash_name[5] = ' ';
assign_flash_name[6] = ' ';
assign_flash_name[7] = ' ';
assign_flash_name[8] = ' ';
assign_flash_name[9] = ' ';
assign_flash_name[10] = ' ';


// width of flash to be displayed
// arrays always have to start at 0
var assign_flash_width = new Array();

assign_flash_width[0] = '500';
assign_flash_width[1] = '500';
assign_flash_width[2] = '450';
assign_flash_width[3] = '450';
assign_flash_width[4] = ' ';
assign_flash_width[5] = ' ';
assign_flash_width[6] = ' ';
assign_flash_width[7] = ' ';
assign_flash_width[8] = ' ';
assign_flash_width[9] = ' ';
assign_flash_width[10] = ' ';



// height of flash to be displayed
// arrays always have to start at 0
var assign_flash_height = new Array();

assign_flash_height[0] = '500';
assign_flash_height[1] = '500';
assign_flash_height[2] = '450';
assign_flash_height[3] = '450';
assign_flash_height[4] = ' ';
assign_flash_height[5] = ' ';
assign_flash_height[6] = ' ';
assign_flash_height[7] = ' ';
assign_flash_height[8] = ' ';
assign_flash_height[9] = ' ';
assign_flash_height[10] = ' ';


// gots TEAM member name
// arrays always have to start at 0
var assign_TEAM_member = new Array();

assign_TEAM_member[0] = 'Darren Mehling, BA, CSCS';
assign_TEAM_member[1] = 'Christina Mehling, IFBB Figure Professional';
assign_TEAM_member[2] = 'Sasha Herwig';
assign_TEAM_member[3] = 'Shawna Goossen';
assign_TEAM_member[4] = ' ';
assign_TEAM_member[5] = ' ';
assign_TEAM_member[6] = ' ';
assign_TEAM_member[7] = ' ';
assign_TEAM_member[8] = ' ';
assign_TEAM_member[9] = ' ';
assign_TEAM_member[10] = ' ';



// gots TEAM member bio
// arrays always have to start at 0
var assign_TEAM_bio = new Array();

assign_TEAM_bio[0] = '0';
assign_TEAM_bio[1] = '0';
assign_TEAM_bio[2] = '2008 MABBA Novice Women&rsquo;s Figure Championship,<br/>Open Masters Division, 2nd Place<br /><br />Medium Division, 3rd place.<br /><br />2008 MABBA Provincial Women&rsquo;s Figure Championship,<br />Open Masters Division, 4th Place<br /><br />Medium Division, 2nd place.';
assign_TEAM_bio[3] = '2008 MABBA Novice Women&rsquo;s Figure Championship,<br />Medium-tall Division,<br />4th Place.';
assign_TEAM_bio[4] = ' ';
assign_TEAM_bio[5] = ' ';
assign_TEAM_bio[6] = ' ';
assign_TEAM_bio[7] = ' ';
assign_TEAM_bio[8] = ' ';
assign_TEAM_bio[9] = ' ';
assign_TEAM_bio[10] = ' ';




// this function will display what was selected from the screen
// to a new window.  It will show the name, phone # and address of the
// selected item.
function windowWrite(page_type,features) {
  if (position_found < 0) {
    alert('Incorrect location selected, please retry.');
  } else {
	  if (position_found != 75) {
        project_window = window.open(page_type,'my_win',features);

		project_window.document.write('<html><head>');

		project_window.document.write('<link rel="stylesheet" type="text/css" href="css/gots_team.css" />');

        project_window.document.write('<title>Team GOTS Flash Presentation - Freak Fitness</title>');
		
		project_window.document.write('</head>');
		
		project_window.document.write('<body>');
		
		project_window.document.write('  <div align="center" style="background-color:#000000;">');
		project_window.document.write('    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
		project_window.document.write('            codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"'); 
		project_window.document.write('	        width="'+assign_flash_width[position_found]+'"'); 
		project_window.document.write('	        height="'+assign_flash_height[position_found]+'"'); 
		project_window.document.write('	        align="middle">');
		project_window.document.write('	  <param name="allowScriptAccess" value="sameDomain" />');
		project_window.document.write('	  <param name="movie" value="'+assign_flash_name[position_found]+'" />');
		project_window.document.write('	  <param name="quality" value="high" />');
		project_window.document.write('	  <param name="bgcolor" value="#000000" />');
		project_window.document.write('	  <embed src="'+assign_flash_name[position_found]+'" quality="high" bgcolor="#000000" width="'+assign_flash_width[position_found]+'" height="'+assign_flash_height[position_found]+'"'); 
		project_window.document.write('	         name="webtop" align="middle"'); 
		project_window.document.write('		     allowScriptAccess="sameDomain"'); 
		project_window.document.write('		     type="application/x-shockwave-flash"');
		project_window.document.write('		     wmode="transparent"'); 
		project_window.document.write('		     pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		project_window.document.write('    </object>');
		project_window.document.write('  </div>');
		
		project_window.document.write('  <div id="gots_member_bio">');
		project_window.document.write('    <p><strong>'+assign_TEAM_member[position_found]+'</strong><br />');

    if (assign_TEAM_bio[position_found] != "0") {
        project_window.document.write('	   '+assign_TEAM_bio[position_found]+'</p>');
	} else {
        project_window.document.write('	   </p>');		
	}
		project_window.document.write('  </div>');
		
		project_window.document.write('<br />');    
		project_window.document.write('<span class="gots_text"><center><a href="#" onclick="window.close()"; return false;>Close me</a></center></span>');
		
		project_window.document.write('</body>');
		project_window.document.write('</html>');

        project_window.document.close();
        project_window.focus();
      } else {
        project_window = window.open(page_type,'my_win',features);
        project_window.document.write('<html><head><title>Return to page prompt.</title></head><body>');
        project_window.document.write('<table width= "450" align="center" border="0">');
	    project_window.document.write('<tr>');
	    project_window.document.write('<td>Hit Close Me to return to previous page.</td>')
	    project_window.document.write('</tr>');
	    project_window.document.write('</table>');
        project_window.document.write('<br />');    
        project_window.document.write('<p><center><a href="#" onclick="window.close()"; return false;>Close me</a></center></p>');
        project_window.document.write('</body></html>');
        project_window.document.close();
        project_window.focus();	  
      }
  }
}



 // this code will swap an image from what you had to what you want
// the image and new_image is what you want in and out
function swap_the_Image(image, new_image){
  if (document.images) {
    document.images[image].src = new_image;
  }
}

