/* --  File Paths  -- */
var bioPath = 'bio/';

/* --  PopUp  -- */
function pop (sCase) {
  // Argument Test
  // alert (sCase + '  ' +  pop.arguments[1]+ '  ' +  pop.arguments[2]);
  
  switch(sCase) {
  
  /* --  Bios   -- */
  case 'bio' :
    var bioID = pop.arguments[1];
    // Switch Trailers Via CLIPID
    switch (bioID) {
      case 'deborah': // Deborah bio
        popup(bioPath + 'deborah.html', 565, 700, 'bio', 'no', 'no', 'yes', 'no', 'no', 'no');
        break;
	  case 'howard': // Howard bio
        popup(bioPath + 'howard.html', 565, 700, 'bio', 'no', 'no', 'yes', 'no', 'no', 'no');
        break;
	  case 'cynthia': // Cynthia bio
        popup(bioPath + 'cynthia.html', 565, 700, 'bio', 'no', 'no', 'yes', 'no', 'no', 'no');
        break;
    } 
  break;
  
  /* --  About   -- */
  case 'about' :
    popup('about.html', 565, 700, 'about', 'no', 'no', 'yes', 'no', 'no', 'no');
	break;
  
   /* --  Mission Statement   -- */
  case 'mission' :
    popup('popup/mission.html', 565, 500, 'mission', 'no', 'no', 'yes', 'no', 'no', 'no');
	break;
  
  
  /* --  Audition   -- */
  case 'audition' :
    popup('popup/audition.html', 565, 700, 'audition', 'no', 'no', 'yes', 'no', 'no', 'no');
	break;
	
 /* --  Audition   -- */
  case 'v_audition' :
    popup('popup/video_audition.html', 565, 700, 'video_audition', 'no', 'no', 'yes', 'no', 'no', 'no');
	break;
		
	
  /* -- Class Descriptions --*/
   case 'classes' :
    popup('classes.html', 565, 700, 'classes', 'no', 'no', 'yes', 'no', 'no', 'no');
	break;
	
	/* --  ET chunnel Link   -- */
  case 'watch_et' :
    popup(' http://www.etonline.com/news/2008/01/57503/index.html', 1024, 768, 'watch_et', 'no', 'no', 'yes', 'yes', 'no', 'yes');
	break;
	
  case 'news050608' :
    popup('news/050608.html', 500, 700, 'watch_et', 'no', 'no', 'yes', 'no', 'no', 'no');
	break;
	
	case 'news061608' :
    popup('news/061608.html', 500, 500, 'watch_et', 'no', 'no', 'yes', 'no', 'no', 'no');
	break;
	
  }
}
 
// Make Popup Windows
function popup( url, w, h, windowName, r, st, s, l, m, t) {
  // Close Prev Pops
  try {
    win.close();
  } catch(e) {    
  }
  // Fudge Height
  // h += 15;
  // Set Too Center
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  // Call popup
  win = window.open(url, windowName, 'height=' +h+ ', width=' +w+ ', resizable=' +r+ ', status= ' +st+ ', scrollbars=' +s+ ', location=' +l+ ', menubar=' +m+  ', toolbar= ' +t+ ', left='+winl+', top='+wint);
  // Focus
  win.focus();    
}