
var popUp;

function openPDF(filename)	
{	
var edge = screen.width - 610;
if (edge < 0 ) { edge = 0; }

//check for open window
 if ( popUp )
 { popUp.close(); }					
	
  popUp = window.open(filename, 'popUp','resizable=yes,scrollbars=yes,toolbars=yes,menubar=no,location=no,left=' + edge + ',width=600,height=770');	
  popUp.focus();  //unremarked & revised -deleted window ref -by Broca 12/17/01
	
  return false;
}




var URL = 'documents/BOT_DistanceLearning07.mht';
var PPSwin;

function openPPS()
{
	if (PPSwin)
	 { PPSwin.close(); }
	
	var attributes = ""
	attributes += 'width='+ window.screen.width;
	attributes += ',height='+ window.screen.height;
	attributes += ',left=0,';
	attributes += ',top=0';
	 
	PPSwin = window.open(URL, 'PPS',attributes );
	PPSwin.focus();
	
	return false;
}



function openFooterlink( footeritem )
{  var URL = footeritem;
   
   var wide = 300;
   var high = (wide*1.6);

   var scroll = 1;
   var menu = 1;
   var tool = 1;
   var location = 1;
   var resize = 1;
   var left = 0;
   var top = 0;
   
   switch ( footeritem.toLowerCase() )
   { case 'privacy':
        URL = "http://www.seattlecolleges.com/Common_files/privacy/privacyCIS.html";    
        wide = 600;
        high = 400;
        menu = 0;
        tool = 0;
        location = 0;
        resize = 0;
        left = 100;
        top = 100;
        break; 
     
     case 'disclaimer':
        URL = "http://www.seattlecolleges.com/Common_files/disclaimer/disclaimer.asp";
        wide = 300;
        high = wide;
        menu = 0;
        tool = 0;
        location = 0;
        resize = 0;
        left = 100;
        top = 100;
        break; 
     
     case 'aftseattle':
        URL = "http://wa.aft.org/aftseattle";
		wide = 750;
        high = 500;
        left = ((screen.availWidth-wide)/2);
        top = ((screen.availHeight-high)/2);
        break;
     
     default:
        return false;
        left = ((screen.availWidth-wide)/2);
        top = ((screen.availHeight-high)/2);
        break;
   }

    if( popUp )
       { popUp.close(); }

    var attributes = 'scrollbars='+ scroll ; 
    attributes += ',menubar='+ menu ; 
    attributes += ',toolbar='+ tool ; 
    attributes += ',location='+ location ;         
    attributes += ',resizable='+ resize ; 
    attributes += ',width=' + wide + ',height=' + high; 
    attributes += ',left='+ left +',screenX='+ left +', top=' + top +', screenY=' + top; 
	
	popUp = window.open ( URL, footeritem , attributes );
	popUp.window.focus();

	return false;        
}



function openHelp()
{  //-- modaldialog dimension = 768W x 484H
   var URL = "help/";
   
   var wide = 768-10; //-- adjustment to match modaldimensions
   var high = 484-36; //-- adjustment to match modaldimensions
   
   var scroll = 0;
   var menu = 0;
   var tool = 0;
   var location = 0;
   var resize = 0;
   var left = (screen.availWidth-wide)/2;
   var top = (screen.availHeight-high)/2;

    if( popUp )
       { popUp.close(); }

    var attributes = 'scrollbars='+ scroll ; 
    attributes += ',menubar='+ menu ; 
    attributes += ',toolbar='+ tool ; 
    attributes += ',location='+ location ;         
    attributes += ',resizable='+ resize ; 
    attributes += ',width=' + wide + ',height=' + high; 
    attributes += ',left='+ left +',screenX='+ left +', top=' + top +', screenY=' + top; 
	
	popUp = window.open ( URL, 'help', attributes );
	popUp.window.focus();

	return false;        
}
   
