function Proscenium_test(){
        alert ('Proscenium functioning:');
    }

/*This is the Proscenium object
  the Proscenium object controls the stage and interactions between stages
  the Stage object controls interactions within the stage*/

function proscenium_listeners(){
    jQuery('#e_mid_top').mouseover(function(){jQuery('#e_mid_top_message').css('display','block');});
    jQuery('#e_mid_top').mouseout(function(){jQuery('#e_mid_top_message').css('display','none');});
    jQuery('#e_mid_bottom').mouseover(function(){jQuery('#e_mid_bottom_message').css('display','block');});
    jQuery('#e_mid_bottom').mouseout(function(){jQuery('#e_mid_bottom_message').css('display','none');});

    jQuery('#w_mid_top').mouseover(function(){jQuery('#w_mid_top_message').css('display','block');});
    jQuery('#w_mid_top').mouseout(function(){jQuery('#w_mid_top_message').css('display','none');});
    jQuery('#w_mid_bottom').mouseover(function(){jQuery('#w_mid_bottom_message').css('display','block');});
    jQuery('#w_mid_bottom').mouseout(function(){jQuery('#w_mid_bottom_message').css('display','none');});
}

function gem_call(color){
    switch(color){
    case 'green':
    window.location = "/feedback.php?color=green&page="+current_directory+current_page;
    break;
    case 'red':
    window.location = "/feedback.php?color=red&page="+current_directory+current_page;
    break;
    case 'yellow':
    window.location = "/feedback.php?color=yellow&page="+current_directory+current_page;
    break;
    case 'blue':
    window.location = "/feedback.php?color=blue&page="+current_directory+current_page;
    break;
    default:
    alert ("feedback but not a good color!");
    break;
    }
}

function Box(state,type,text,link){
    this.state = state;//"on,"not_on",not_set
    this.type = type;//"date","text","pic",not_set
    this.text = text;//string,not_set
    this.link = link;//link,"not_set"
}

//create a control panel object for calling page
function Proscenium(north,south){
    this.north = north;
    this.south = south;
}

Proscenium.prototype.create_box = function(SIDE,ID){
    // on or off if on, date or text if text, link or not
     switch(SIDE.state){
      case 'on':{//usually it's on
         switch(SIDE.type){
            case 'date':{
	      jQuery(ID).text((new Date).toDateString());
 	    break;
            }//date case
            case 'text':{
  		if(SIDE.link){
		    jQuery(ID).empty();
		    jQuery(ID).append('<a id="ID_link" href="'+SIDE.link+'">'+SIDE.text+'</a>')
		}//link
		else{
                  jQuery(ID).text(SIDE.text);
		}//no link
	    break;
	    }//text case
	    default: break;
	 }//switch type: date or text
      break;
      }//case: on
      case 'not_on':{
        jQuery(ID).hide();
      break;
      }
      default:	break;
      }//switch on-not_on
}//display

function scene_center(){
   doc_width = jQuery(window).width();
   scenemargin = Math.round((doc_width-640)/2);
   northmargin = Math.round((doc_width-north_width)/2);
   southmargin = Math.round((doc_width-south_width)/2);
   jQuery('#stage').css('margin-left',scenemargin+'px');
   jQuery('#n_mid').css('margin-left',northmargin+'px');
   jQuery('#s_mid').css('margin-left',southmargin+'px');
}






