/*
RPCI JavaScript Namespace
Author: Anthony Cashaw
Date: 

Requirments: SurbertCOM v2.08

Contents:
1. pokEmail
2. banner
3. captionaize
4. alert -- DISCONTIUNED
5. alarm

Note: 
*/
    
    //declare RPCI namespace
	if(typeof(RPCI) == 'undefined'){ var RPCI ={};}	
	
	//RPCI namespace constants
	RPCI.report = false;
	RPCI.globals = false;
	RPCI.autoload = true;
	RPCI.base = "RPCI";
	RPCI.siteBase = "http://www.roswellpark.org";
	RPCI.styles = true;
	RPCI.editable = 'copy';
    RPCI.init = function(){
        //autoloader
        if(RPCI.autoload){       	
        	
        	var mes = '';
            for(var i in this){
            	
	            if(typeof(this[i].init) == 'function'){	               
	                mes += i + "\n";
	                this[i].init();
	             }
            }
            
    	}
        
        //default sytles
        // RPCI.styleRef = sc.styles.load(RPCI.base + '/RPCI.css');
        // if(!RPCI.styles)sc.styles.disable(RPCI.styleRef);
       
        
        //correct styles
        RPCI.correctStyles();
        
        //display report
        if(RPCI.report)$('#reportrun').innerHTML += mes;
        };
        
    RPCI.autobay = [];
    RPCI.config = [];
    RPCI.correctStyles = function(){
        if(sc.browser.platform == "mac"){	    
			$("#mainnav").style.position = "relative";
			$("#mainnav").style.top = "2px";	    
	    }
	    
	    
	    if(sc.browser.agent == "sf"){
	        $("#searchbutton").style.width = "35px";
        }
    };
       
    //attach RPCI globals
    if(RPCI.globals){for(g in RPCI){if(!window[g]){window[g] = RPCI[g];}}}