

function closeWindow(){
	myWindow.close();
}

function moveObject() {


 if (window.Event) {
   document.captureEvents(Event.MOUSEMOVE);
  }
 document.onmousemove = checkCoord;
}

var xpos;
var ypos;
firstTime=true;
displayWindow=true;

function checkCoord(e) {
  xpos = (window.Event) ? e.pageX : event.clientX;
  ypos = (window.Event) ? e.pageY : event.clientY;

	

	if(firstTime && displayWindow){
	
		if(xpos < 440 && xpos > 270 && ypos > 200 && ypos < 300){
			displayBalloon('curriculum');

			myType="cuballoon";

		} else {

			if(xpos > 502 && xpos < 675 && ypos > 200 && ypos < 300){
				displayBalloon('corporate');
				myType="coballoon";

			}
		}

		
	} else {
		
		if(displayWindow){
		
			document.getElementById(myType).firstChild.style.pixelTop=ypos;
			document.getElementById(myType).firstChild.style.pixelLeft=xpos;

		if(myType=='cuballoon'){
			if(xpos > 440 || xpos < 270 || ypos < 200 || ypos > 300){
				hideBalloon(myType);
				firstTime=true;
			} 

		} else {

			if(myType=='coballoon'){
				if(xpos < 502 || xpos > 675 || ypos < 200 || ypos > 300){
					hideBalloon(myType);
					firstTime=true;
				}
				
			}
		}

		}
			
	}
	
  
}

function displayBalloon(myNode){

	firstTime=false;

	var newdiv = document.createElement('div'); 
	var divIdName = 'balloonDiv'; 
	newdiv.setAttribute('id',divIdName); 
	newdiv.style.width = "300px"; 
	
	newdiv.style.left = xpos+4 + "px"; 
	newdiv.style.top = ypos +"px"; 
	newdiv.style.position = "absolute"; 
	newdiv.style.background = "#ffffff";
	newdiv.style.fontFamily='Arial';
	newdiv.style.fontSize='11px';
	newdiv.style.zIndex='3';
	newdiv.style.paddingLeft='8px';
	newdiv.style.paddingTop='3px';
	newdiv.style.paddingBottom='5px';
	
 

	if(myNode == 'curriculum'){

		var myInfo="Curriculum programs are one and two-year education and job preparation programs that include: " +
			"University Transfer (Associate of Arts, Associate in Science and Associate of Fine Arts degrees)," +
			"two-year Associate in Applied Science degrees, one-year diploma programs, and some " + 					"shorter certificate programs.";

		var myBalloon="cuballoon";
	

	} else {
		var myInfo="Corporate and Community Education provides an opportunity to improve skills in the job " +
			"market. Students can learn new vocational skills or quickly improve current skills. " +
			"Employers can arrange for custom training for employees.";
	
		var myBalloon="coballoon";
	}
	document.getElementById(myBalloon).appendChild(newdiv); 
	newdiv.innerHTML=myInfo;

}


function hideBalloon(myNode){
	
	e=document.getElementById(myNode)
	e.removeChild(e.firstChild); 
	

}



function getPosition(e) {
    e = e || window.event;
    var cursor = {x:0, y:0};
    if (e.pageX || e.pageY) {
        cursor.x = e.pageX;
        cursor.y = e.pageY;
    } 
    else {
        var de = document.documentElement;
        var b = document.body;
        cursor.x = e.clientX + 
            (de.scrollLeft || b.scrollLeft) - (de.clientLeft || 0);
        cursor.y = e.clientY + 
            (de.scrollTop || b.scrollTop) - (de.clientTop || 0);
    }
    return cursor;
}

function startVirtualTour(){

	var newdiv = document.createElement('div'); 
	var divIdName = 'virtualDiv'; 
	newdiv.setAttribute('id',divIdName); 
	newdiv.style.width = "320px";
	newdiv.style.position = "absolute"; 
	newdiv.style.top="50px";
	newdiv.style.left='262px';
	newdiv.style.height="320px";
	newdiv.style.border='inset';
	newdiv.style.backgroundColor='#fffab2';
	
	newdiv.style.zIndex='5';
	newdiv.style.padding="10px";
	if(window.event){
		newdiv.captureEvents(Event.ONCLICK);
	}
	newdiv.onclick=hideTour;

	document.getElementById("virtualTour").appendChild(newdiv); 

	newdiv.innerHTML="<embed type=\"application/x-mplayer2\"pluginspage=\"http://www.microsoft.com/Windows" +
	"/MediaPlayer/\" name=\"mediaplayer1\" autostart=\"true\"  transparentstart=\"1\" loop=\"0\" controller=\"true\"" + 	"src=\"http://www.carteret.edu/stream/videotour.wmv\"></embed><p align=\"center\">Click Here To Close</p>";

}

function hideTour(e){
	
	est=document.getElementById("virtualTour");
	est.removeChild(est.firstChild); 

}

function insertCampusMap(){
		e=document.getElementById("campusMapElement");
		var URL="http://www.carteret.edu/aboutccc/Buildings/";
		displayWindow=false;
		e.style.zIndex='5';
		e.style.width = '700px';
		e.style.height = '550px';
		e.style.top= '10px';
		e.style.left='250px';
		e.style.backgroundColor='#fffab2';
		e.style.fontSize='10px';
		e.style.border='groove';
		e.style.overflow='auto';
		e.innerHTML="<p align=\"center\">" +
		"<map name=\"campusMap\" id=\"campusMap\">" +
			"<area alt=\"Wayne West Building\" shape=\"poly\"" +
				"title=\"Wayne West Building\""+
				"coords=\"254,168,254,222,282,222,283,170\"" +
				"href=\"" + URL + "waynewest.htm\" />" +
			"<area alt=\"Center for Marine Sciences & Technology (CMAST) Building\" shape=\"poly\"" +
				"title=\"Center for Marine Sciences & Technology (CMAST) Building\"" +
				"coords=\"480,304,436,344,455,364,510,335\"" +
				"href=\""+ URL +"cmastbuilding.htm\" />" +
			"<area alt=\"REGISTER HERE  Josyln Hall - Henry J. McGee Building\"shape=\"poly\"" +
				"title=\"REGISTER HERE  Josyln Hall - Henry J. McGee Building\"" +
				"coords=\"305,85,302,94,311,96,309,113,333,110,340,85\"" +
				"href=\"" + URL + "joslynhall.htm\" />" +
			"<area alt=\"Marine Training & Education Center (MARTEC)\" shape =\"poly\""+
				"title=\"Marine Training & Education Center (MARTEC)\""+
				"coords=\"353,254,355,281,384,293,435,287,431,249\""+
				"href=\"" + URL +"ncmartecBuilding.htm\" />" +
			"<area alt=\"Michael J. Smith Building\" shape = \"poly\"" +
				"title=\"Michael J. Smith Building\"" +
				"coords=\"380,114,383,128,407,125,400,113\"" +
				"href=\"" + URL +"library_LRC.htm\" />" +
			"<area alt=\"Donald W. Bryant Student Center\" shape = \"poly\"" +
				"title=\"Donald W. Bryant Student Center\"" +
				"coords=\"403,166,406,175,452,171,441,162\"" +
				"href=\"" + URL + "studentcenter.htm\" />" +
			"<area alt=\"Robert B. Howard Aquaculture Building\" shape = \"poly\"" +
				"title=\"Robert B. Howard Aquaculture Building\"" +
				"coords=\"491,261,500,287,540,287,532,263\"" +
				"href=\"" + URL  + "howardbuilding.htm\" />" +
			"</map>" +
			"<img src=\"http://www.carteret.edu/aboutccc/images/Campus2.gif\" alt=\"Campus Map\""+ 
			"usemap=\"#campusMap\" border=\"0\" width=\"663\" height=\"531\" /><br />" +
			"Double-Click Window to Close</p>";

}

var myType='all';
function changewidth(mywidth,myheight,mytop,myleft,myborder,myNode){

	myType='all';
	displayWindow=false;

	e=document.getElementById(myNode);
	e.style.zIndex='5';
	e.style.width = mywidth + 'px';
	e.style.height = myheight + 'px';
	e.style.top= mytop + 'px';
	e.style.left=myleft + 'px';
	e.style.backgroundColor='#fffab2';
	e.style.fontSize='14px';
	e.style.overflow='auto';
	if(myborder != 'none'){
		e.style.borderStyle = myborder;
		e.style.borderWidth= '8px';
		
	} else {
		e.style.borderStyle = myborder;

	}
//writeText();
	newAjaxWrite(myNode);



}



function newAjaxWrite(myNode){
        
	
	function getHTTPObject() { 
  		var xmlhttp; 

  		if(window.XMLHttpRequest){ 
   		 xmlhttp = new XMLHttpRequest(); 
 		} 
 		 else if (window.ActiveXObject){ 
    			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); 
    			if (!xmlhttp){ 
        			xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); 
    			} 
    
		} 
  		return xmlhttp; 

  
	} 

		var http = getHTTPObject(); // create the HTTP Object 

	requestInfo();

       function handleHttpResponse() {    
        	if (http.readyState == 4) { 
             		 if(http.status==200) { 
                 	 var results=http.responseText; 
				if(myNode == 'employeeList'){
					document.getElementById(myNode).innerHTML = "<p align=\"center\">"+
					"<a href=\"javascript:restore('" + myNode +"')\">"+
					"Click Here to Close Window</a></p>"+
					"<p>List of current active faculty and staff at Carteret Community College."+
					"You may limit your list to Adjunct faculty (instructors), Full-Time Faculty"+
					"(instructors), of Staff members only (includes Student Enrollment Resources,"+
					" Financial Aid, and Registrar). Select from the list box an click the \"Select\""+
					" button to limit the list<br />"+ 
					" If you click the last name of an employee (higlighted in blue) their "+
					" personal home page will open. The personal home page lists additional"+
					" contact information including building, floor, and room. If you are"+
					" unsure of a building location check the Campus Map linked from the college"+
					" home page.<br /><br />"+
					"Select view: <select name=\"sortType\">"+
					"<option value=\"AdjunctOnly\">"+
					"Adjunct Only</option>"+
					"<option value=\"FullTimeFaculty\">"+
					"Full-Time Faculty</option>"+
					"<option value=\"StaffOnly\" >"+
					"Staff Only</option><option value=\"all\">All Employees</option></select>"+
					"<input type=\"button\" name=\"selectSort\" onClick=\"showMySelection()\""+
					"value=\"Select\">"+results;
				} else {
              		document.getElementById(myNode).innerHTML = "<p align=\"center\"><a href=\"javascript:" +
			"restore('" + myNode +"')\">Click Here to Close Window</a></p>" +
			results; 
				}
             		 } 
             	 } 
        } 
        
        function requestInfo() {

		switch(myNode){

			case 'curriculumPrograms':
		
				var myProgram="../NewFrontPage/programs.php";
			break;

			case 'corporatePrograms':

				var myProgram="../NewFrontPage/displayCCEDLinks.php";

			break;

			case 'academicCalendar':

				var myProgram="../NewFrontPage/acalendar.php";
			break;

			case 'employeeList':

		 		var myProgram="../NewFrontPage/getEmployees.php?type="+myType;

			break;

			case 'studentJobInfo':


				var myProgram="../NewFrontPage/studentJobs.php";

			break;

			case 'highSchool':
				var myProgram="getannouncements.php";
			break;



		}    
            
            http.open("GET",myProgram,true); 
            http.onreadystatechange = handleHttpResponse; 
            http.send(null); 
        } 


}

function showMySelection(){
	myselection=document.getElementsByTagName("option");
	for(i=0;i<myselection.length;i++){

		if(myselection[i].selected){
			myselectedEmployeeType=myselection[i].value;
		}

	}

	myType=myselectedEmployeeType;

	newAjaxWrite('employeeList');


	

}


function extractWindow(){

	e=document.getElementById("pageContent");
	e.style.visibility='visible';
	e.style.zIndex='5';
	e.style.width = '750px';
	e.style.top= '0px';
	e.style.left='0px';
	e.style.paddingRight='50px';
	e.style.backgroundColor='#fffab2';
	e.style.overflow='visible';
	e.style.borderStyle='none';


}

function restoreWindow(){


	e=document.getElementById("pageContent");
	e.style.position='absolute';
	e.style.top='156px';
	e.style.left='284px';
	e.style.zIndex='3';
	e.style.height='366px';
	e.style.width='553px';
	e.style.borderStyle='inset';
	e.style.overflow='auto';

}
function buildAreaMenu(areaMenu){

	function getHTTPObject() { 
  		var xmlhttp; 

  		if(window.XMLHttpRequest){ 
   		 xmlhttp = new XMLHttpRequest(); 
 		} 
 		 else if (window.ActiveXObject){ 
    			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); 
    			if (!xmlhttp){ 
        			xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); 
    			} 
    
		} 
  		return xmlhttp; 

  
	} 

		var http = getHTTPObject(); // create the HTTP Object 

	requestInfo();

       function handleHttpResponse() {    
        	if (http.readyState == 4) { 
             		 if(http.status==200) { 
                 	 var results=http.responseText; 
              		document.getElementById("pageMenus").innerHTML = results + 
			"<form><input type=\"button\" value=\" Print this page \""+
			"onclick=\"window.print();return false;\" /></form>" ; 
             		 } 
             	 } 
        } 
        
        function requestInfo() {

		var URL="newfrontpage/";


		switch(areaMenu){

			case 'admissions':
		
				var myProgram=URL + "../NewFrontPage/getMenu.php?menu=admissions";
			break;



		}    
            
            http.open("GET",myProgram,true); 
            http.onreadystatechange = handleHttpResponse; 
            http.send(null); 
        } 


}

function getAreaContent(myArea,myIndex){

	function getHTTPObject() { 
  		var xmlhttp; 

  		if(window.XMLHttpRequest){ 
   		 xmlhttp = new XMLHttpRequest(); 
 		} 
 		 else if (window.ActiveXObject){ 
    			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); 
    			if (!xmlhttp){ 
        			xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); 
    			} 
    
		} 
  		return xmlhttp; 

  
	} 

		var http = getHTTPObject(); // create the HTTP Object 

	requestInfo();

       function handleHttpResponse() {    
        	if (http.readyState == 4) { 
             		 if(http.status==200) { 
                 	 var results=http.responseText; 
              		document.getElementById("pageContent").innerHTML = results; 
             		 } 
             	 } 
        } 
        
        function requestInfo() {

		var URL="../newfrontpage/";	
		
		var myProgram= URL + "getContent.php?menu=" + myArea +"&content=" + myIndex;
		
    
            
            http.open("GET",myProgram,true); 
            http.onreadystatechange = handleHttpResponse; 
            http.send(null); 
        } 


}

function writeText(){
	e=document.getElementById("curriculumPrograms");
		var xml = new ActiveXObject("Microsoft.XMLDOM")
		xml.async = false
		xml.load("test.xml")// Load XSL
		var xsl = new ActiveXObject("Microsoft.XMLDOM")
		xsl.async = false
		xsl.load("test.xsl")// Transform
	document.getElementById("curriculumPrograms").innerHTML=xml.transformNode(xsl);
				
	
}


function displayITHelp(){
	e=document.getElementById("helpDetails");
	e.style.position='absolute';
	e.style.top='150px';
	e.style.left='262px';
	e.style.backgroundColor='#fffab2';
	e.style.height='310px';
	e.style.width='220px';
	e.style.zIndex='3';
	e.style.fontFamily='Arial';
	e.style.paddingLeft='10px';
	e.style.fontSize='10px';
	e.style.border='solid';
	e.style.borderWidth='1px';
	if (e.addEventListener){
  		e.addEventListener('dblclick', deletediv, false); 
	} else if (e.attachEvent){
  		e.attachEvent('ondblclick', deletediv);
	}	

	e.innerHTML="<h3 align=\"center\">Help Areas</h3><a href=\"javascript:displayHelpDetails('email')\">" +
	"Email Help</a><br/><a href=\"javascript:displayHelpDetails('blackboard')\">Blackboard Help</a><br />" +
	"<a href=\"javascript:displayHelpDetails('wireless')\">Wireless Help and FAQS</a><br />"+
	"<a href=\"javascript:displayHelpDetails('citrix')\">Using the Citrix Server</a><br />"+
	"<a href=\"javascript:displayHelpDetails('Gtalk')\">Using Google Talk</a><br />"+
	"<a href=\"javascript:displayHelpDetails('GDocs')\">Using Google Docs </a><br />"+
	"<a href=\"javascript:displayHelpDetails('troubleticket')\">Work Request and Trouble Tickets</a><br /><br />"+
	"<h4 align=\"center\">Double-Click Window to Close</h4>";

	displayWindow=false;
}

function listBookStoreMenu(){
	e=document.getElementById("bookStore");
	e.style.position='absolute';
	e.style.zIndex='5';
	e.style.top='157px';
	e.style.width='75px';
	e.style.left='262px';
	e.style.height='100px';
	e.style.fontSize='12px';
	e.style.backgroundColor='#fffab2';

	if (e.addEventListener){
  		e.addEventListener('click', deletebs, false);
		e.addEventListener('mouseout',deletebs,false); 
	} else if (e.attachEvent){
  		e.attachEvent('onclick', deletebs);
		e.attachEvent('onmouseout',deletebs);
	}	

	e.innerHTML="<a href=\"/IntranetHome/bookstore/booklisting.php\">Browse Books</a><a href=\"\">Page 2</a><a href=\"\">Page 3</a>";


}

function deletebs(){
	document.getElementById("bookStore");
	e.style.position="absolute";
	e.style.zIndex="-3";
	e.style.top="0";
	e.style.left="0";
	e.style.height="0";
	e.style.width="0";
	e.style.backgroundColor="#24001d";
	e.innerHTML="";
	displayWindow=true;
}

function listSGApages(){
	e=document.getElementById("helpDetails");
	e.style.position='absolute';
	e.style.top='20px';
	e.style.left='162px';
	e.style.backgroundColor='#fffab2';
	e.style.width = "300px";
	e.style.height= "270px";
	e.style.zIndex='5';
	e.style.fontFamily='Arial';
	
	e.style.paddingLeft='10px';
	e.style.fontSize='12px';
	e.style.border='solid';
	e.style.borderWidth='1px';
	e.style.overflow='auto';
	displayWindow=false;

	if (e.addEventListener){
  		e.addEventListener('dblclick', deletediv, false); 
	} else if (e.attachEvent){
  		e.attachEvent('ondblclick', deletediv);
	}

	var http = getHTTPObject(); // create the HTTP Object 

	requestInfo();

       function handleHttpResponse() {    
        	if (http.readyState == 4) { 
             		 if(http.status==200) { 
                 	 var results=http.responseText; 
              		document.getElementById("helpDetails").innerHTML  = "<p align=\"center\">"+
				"Double-Click Window to Close</p>" + results; 
             		 } 
             	 } 
        } 
        
        function requestInfo() {

		var URL="../newfrontpage/";
		var myProgram="listResearchAndReport.php?sga=all";

			  
            
            http.open("GET",myProgram,true); 
            http.onreadystatechange = handleHttpResponse; 
            http.send(null); 
        } 
	displayWindow=false;

}

function displaypage(myArea,myPage){

	var newdiv = document.createElement('div'); 
	var divIdName = 'helpInfoDiv'; 
	newdiv.setAttribute('id',divIdName); 
	newdiv.style.width = "800px";
	newdiv.style.height= "570px";
	newdiv.style.position = "absolute"; 
	newdiv.style.top="10px";
	newdiv.style.left='92px';
	newdiv.style.border='solid';
	newdiv.style.borderWidth='1px';
	newdiv.style.zIndex='7';
	newdiv.style.backgroundColor='#fffab2';
	newdiv.style.paddingLeft='10px';
	newdiv.style.paddingTop='5px';
	newdiv.style.overflow='auto';
	newdiv.style.paddingBottom='5px';
	

	if (newdiv.addEventListener){
  		newdiv.addEventListener('click', hidePage, false); 
	} else if (newdiv.attachEvent){
  		newdiv.attachEvent('onclick', hidePage);
	}



	var http = getHTTPObject(); // create the HTTP Object 

	requestInfo();

       function handleHttpResponse() {    
        	if (http.readyState == 4) { 
             		 if(http.status==200) { 
                 	 var results=http.responseText; 
              		document.getElementById("helpInfo").appendChild(newdiv).innerHTML = "<p align=\"center\">"+
				"Click Window to Close</p>" +results; 
             		 } 
             	 } 
        } 
        
        function requestInfo() {

		var URL="../newfrontpage/";


		var myProgram= "listResearchAndReport.php?" + myArea + "=" + myPage;

            
            http.open("GET",myProgram,true); 
            http.onreadystatechange = handleHttpResponse; 
            http.send(null); 
        } 
	displayWindow=false;



}

function hidePage(e){
	est=document.getElementById("helpInfo");
	est.removeChild(est.firstChild); 
	listSGApages();
	
}
function listResearchAndReports(){
	e=document.getElementById("helpDetails");
	e.style.position='absolute';
	e.style.top='20px';
	e.style.left='162px';
	e.style.backgroundColor='#fffab2';
	e.style.width = "800px";
	e.style.height= "570px";
	e.style.zIndex='5';
	e.style.fontFamily='Arial';
	
	e.style.paddingLeft='10px';
	e.style.fontSize='12px';
	e.style.border='solid';
	e.style.borderWidth='1px';
	e.style.overflow='auto';
	displayWindow=false;

	if (e.addEventListener){
  		e.addEventListener('dblclick', deletediv, false); 
	} else if (e.attachEvent){
  		e.attachEvent('ondblclick', deletediv);
	}


	var http = getHTTPObject(); // create the HTTP Object 

	requestInfo();

       function handleHttpResponse() {    
        	if (http.readyState == 4) { 
             		 if(http.status==200) { 
                 	 var results=http.responseText; 
              		document.getElementById("helpDetails").innerHTML =
	"<p align=\"center\">Double-Click to Close</p>"+ 
      "<h2 align=\"center\"><strong>Carteret Community College<br>Research and Reports</strong></h2>" +
      "<p align=\"center\"><i><font size=\"-1\">(You will need Acrobat Reader " +
       "<a href=\"http://www.adobe.com/products/acrobat/readstep2.html\" target=\"_blank\">" +
 	"<img src=\"http://www.carteret.edu/images/getacro.gif\" width=\"88\" height=\"31\" border=\"0\"></a> " +
        "to view some of the following files:</font></i><font size=\"-1\">)</font></p>" +
	"CCC Benefits Economic Impact Study<br />" + 
	"<a href=\"javascript:displayStaticPage('CCC and the Taxpayer Perspectives')\">" +
	"CCC and the Taxpayer Perspectives</a>" +
	"<a href=\"javascript:displayStaticPage('Fact Sheet: Economic Impact of Carteret" +
	" Community College')\">Fact Sheet: Economic Impact of Carteret Community College</a>" +
	"<a href=\"/ResearchandReports/CarteretLR.pdf\" target=\"_blank\" title=\"PDF Document-This requires Adobe Reader\">The" +
	" Socioeconomic Benefits Generated by Carteret Community College(Long)</a>" +
	"<a href=\"/ResearchandReports/CarteretES.pdf\" target=\"_blank\" title=\"PDF Document-This requires Adobe Reader\">The" +
	"Socioeconomic Benefits Generated by Carteret Community College (Executive Edition)</a>" +
	"<a href=\"/ResearchandReports/CCBenefits.ppt\" target=\"_blank\" title=\"Requires Microsoft PowerPoint\">Economic" +
	" Benefits Power Point</a><br /><br />Report to the Community<br />" +
	"<a href=\"/ResearchandReports/2006ReportToCommunity.pdf\" target=\"_blank\" title=\"PDF Document-This requires" +
	 "Adobe Reader\">Report to the Community 2005-2006</a><br />"+
	"<br />Performance Measures and Standards<br />" +
	 results +
	"<br /><a href=\"/ResearchandReports/Presentation.htm\" target=\"_blank\">Facility Utilization Study and Campus Master Plan"; 
             		 } 
             	 } 
        } 
        
        function requestInfo() {

		var URL="../newfrontpage/";	
		
		var myProgram= "listResearchAndReport.php";
		         
            http.open("GET",myProgram,true); 
            http.onreadystatechange = handleHttpResponse; 
            http.send(null); 
        } 

}

function deletediv(){
	document.getElementById("helpDetails");
	e.style.position="absolute";
	e.style.zIndex="-3";
	e.style.top="0";
	e.style.left="0";
	e.style.height="0";
	e.style.width="0";
	e.style.backgroundColor="#24001d";
	e.innerHTML="";
	displayWindow=true;
}
function displayStaticPage(mypage){

	var newdiv = document.createElement('div'); 
	var divIdName = 'helpInfoDiv'; 
	newdiv.setAttribute('id',divIdName); 
	newdiv.style.width = "800px";
	newdiv.style.height= "570px";
	newdiv.style.position = "absolute"; 
	newdiv.style.top="10px";
	newdiv.style.left='92px';
	newdiv.style.border='solid';
	newdiv.style.borderWidth='1px';
	newdiv.style.zIndex='7';
	newdiv.style.backgroundColor='#fffab2';
	newdiv.style.paddingLeft='10px';
	newdiv.style.paddingTop='5px';
	newdiv.style.overflow='auto';
	newdiv.style.paddingBottom='5px';
	

	if (newdiv.addEventListener){
  		newdiv.addEventListener('click', hidePerformance, false); 
	} else if (newdiv.attachEvent){
  		newdiv.attachEvent('onclick', hidePerformance);
	}


	var http = getHTTPObject(); // create the HTTP Object 

	requestInfo();

       function handleHttpResponse() {    
        	if (http.readyState == 4) { 
             		 if(http.status==200) { 
                 	 var results=http.responseText; 
              		document.getElementById("helpInfo").appendChild(newdiv).innerHTML = "<p align=\"center\">"+
				"Click Window to Close</p>" +results; 
             		 } 
             	 } 
        } 
        
        function requestInfo() {

		var URL="../newfrontpage/";
		var myProgram= URL + "listResearchAndReport.php?mpg=" + mypage;

 
            
            http.open("GET",myProgram,true); 
            http.onreadystatechange = handleHttpResponse; 
            http.send(null); 
        } 
	displayWindow=false;



}
function displayMyRecord(myIndex){

	var newdiv = document.createElement('div'); 
	var divIdName = 'helpInfoDiv'; 
	newdiv.setAttribute('id',divIdName); 
	newdiv.style.width = "800px";
	newdiv.style.height= "570px";
	newdiv.style.position = "absolute"; 
	newdiv.style.top="10px";
	newdiv.style.left='92px';
	newdiv.style.border='solid';
	newdiv.style.borderWidth='1px';
	newdiv.style.zIndex='7';
	newdiv.style.backgroundColor='#fffab2';
	newdiv.style.paddingLeft='10px';
	newdiv.style.paddingTop='5px';
	newdiv.style.overflow='auto';
	newdiv.style.paddingBottom='5px';
	

	if (newdiv.addEventListener){
  		newdiv.addEventListener('click', hidePerformance, false); 
	} else if (newdiv.attachEvent){
  		newdiv.attachEvent('onclick', hidePerformance);
	}



	var http = getHTTPObject(); // create the HTTP Object 

	requestInfo();

       function handleHttpResponse() {    
        	if (http.readyState == 4) { 
             		 if(http.status==200) { 
                 	 var results=http.responseText; 
              		document.getElementById("helpInfo").appendChild(newdiv).innerHTML = "<p align=\"center\">"+
				"Click Window to Close</p>" +results; 
             		 } 
             	 } 
        } 
        
        function requestInfo() {

		var URL="../IntranetHome/newfrontpage/";	
		
		var myProgram= URL + "listResearchAndReport.php?myrec=" + myIndex;
		
    
            
            http.open("GET",myProgram,true); 
            http.onreadystatechange = handleHttpResponse; 
            http.send(null); 
        } 
	displayWindow=false;
	
}
function displayHelpDetails(typeHelp){


	var newdiv = document.createElement('div'); 
	var divIdName = 'helpInfoDiv'; 
	newdiv.setAttribute('id',divIdName); 
	newdiv.style.width = "500px";
	newdiv.style.position = "absolute"; 
	newdiv.style.top="200px";
	newdiv.style.left='462px';
	newdiv.style.border='solid';
	newdiv.style.borderWidth='1px';
	newdiv.style.zIndex='5';
	newdiv.style.backgroundColor='#fffab2';
	newdiv.style.paddingLeft='10px';
	newdiv.style.paddingTop='5px';
	newdiv.style.paddingBottom='5px';

if (newdiv.addEventListener){
  newdiv.addEventListener('click', hideInfo, false); 
} else if (newdiv.attachEvent){
  newdiv.attachEvent('onclick', hideInfo);
}




	document.getElementById("helpInfo").appendChild(newdiv); 

	switch(typeHelp){


		case 'email':
	
			newdiv.innerHTML="<p>Carteret Community College provides a campus email"+
			" account as part of the Google Enterprise Network as a service to students." +
			" Instructors typically use the campus"+
			" email as the means of communication to students. To learn to use the campus "+ 
			"email system read the <a href=\"http://www.carteret.edu/studenthelp/mailccchelp.pdf\">"+
			"Email Info</a> document.</p>";

		break;

		case 'blackboard':
			newdiv.innerHTML="<p>Blackboard is the online learning software used by Carteret" +
			" Community College " +
			"for the Curriculum programs (not Corporate and Community Education). Each student enrolled " +
			"in an online class will be given a student account for Blackboard. For written instructions " +
			"regarding the use of Blackboard view the "+
			"<a href=\"http://www.carteret.edu/studenthelp/BlackboardHelp.htm\">BlackBoard Info</a> document."+
			"The blackboard help Desk is 866-590-9236, or to view the knowledge base"+
			"<a href=\"http://d2.parature.com/ics/support/default.asp?deptID=4308\"> click here</a>" ;

		break;

		case 'wireless':
			newdiv.innerHTML="<h3>Using the Wireless Access at CCC</h3>"+
			"If you are in range of a wireless access point you should see <br />"+
			"it broadcasting an SSID of \"CarteretCC\" or \"CCCWPA\" <br />"+
			"If your device allows create a new profile with the following information:<br />"+
			"The SSID = CarteretCC<br />"+
			"The WEP key is 128 BIT encryption 25222263902522226196abcdef<br />"+
			"or<br/>"+
			"The SSID = CCCWPA<br />"+
			"The WPA key is 2522226196<br />"+
			"Save the profile.<br />"+
			"Open your web browser<br />"+
			"It should redirect you to a web page which starts <br />"+
			"with https://bsc.carteret.edu/login.pl<br />"+
			"Login = first initial + middle initial + last name<br />"+
			"password = first initial + middle initial + last name<br />"+
			"  (your first initial needs to be capitalized)<br />"+
			"(this is the same for Citrix users)<br />"+
			"It will time you out after 30 minutes of no activity.";

		break;

		case 'citrix':


		break;

		case 'Gtalk':
			newdiv.innerHTML="<h3>Google Talk</h3>"+
			"Google Talk can be added to you Google Home Page providing an instant<br />"+
			"service that is available through our Google Enterprise Network<br />"+
			"Using the service you can communicate with other students on Campus,<br />"+
			" create or join study groups that allow you to share ideas.";

		break;

		case 'GDocs':
			newdiv.innerHTML="<h3>Google Documents</h3>"+
			"<p>The Google Docs application can be added to your Google Home Page. The<br />"+
			" application provides word processing, spreadsheet, and presentation software.<br />"+
			" When you create documents they are stored on the Google server and can be<br />"+
			" accessed from any location. Documents can be shared to allow completion of<br /> group"+
			" projects and they can be emailed as Microsoft Word Documents. Using <br />"+
			" Google Docs elminates the need of saving files to external drives. Students<br /> can access "+
			" work from any computer that has internet access.</p>"+
			"<p>Adding Google Docs to your Google Home Page</p>"+
			"<ol><li>Log into you Google Mail account(start.mailccc.net) following the<br />"+
			"procedure described in \"email help\".</li>"+
			"<li>Click the \"add stuff\" link located at the right, top side of your homepage"+
			" just below the \"powered by Google\" advertisement.</li>"+
			"<li>Search the items until you locate Google Docs. Click the \"Add It Now\" button to"+
			" to add it to your home page</li>"+
			"<li>Log out of your home page and log back in. Google Docs should now appear on your"+
			" home page</li></ol>"+
			"<p>Starting and using Google Docs</p>"+
			"<ol><li>After logging into your Google Home Page click the Google Docs Toolbar. Do not click"+
			"the \"sign in to your Google Docs account\" link below the Google Docs Toolbar (Clicking the"+
			" link takes you to an external Google Docs account. You will be using the Google Docs"+
			" account that is part of the enterprise network).</li>"+
			"<li>After selecting the Google Docs link in the Toolbar a Google Docs Application window"+
			" will open.</li>"+
			"<li>To create a new word processing document select \"New\" from the toolbar and a dropdown"+
			" menu will appear. From the dropdown menu select \"Document\"</li>"+
			"<li>A word processing window will open. The window has a menu bar and a standard toolbar."+
			"Write your document following normal word processing procedures (margins are set under"+
			" File/Print Settings)</li>"+
			"<li>After completing your document (documents should be saved at regular intervals to"+
			" prevent loss of edits) you can share your document, save your document, or save and close"+
			" your document. Using \"Share\" you can email your document as an attachement. The"+
			" document can be formatted as Microsoft Word, Rich Text, Open Office, or Portable"+
			" document format. Using the \"Share\" feature documents can be published or they can be"+
			" shared with other for collaboration in group projects</li></ol>"+
			"<p>Creating spreadsheets and presentations is similar to creating a document as describe "+
			" in the previous steps. Documents,spreadsheets, and presentations can also be created "+
			" using microsoft office or open office products. The documents can be uploaded to the "+
			" Google Docs area using the Upload feature.</p>"+
			"<p>Web Casts can be created and published using the presentation software component of "+
			" the Google Docs suite</p>";


		break;				

		



		case 'troubleticket':
			newdiv.innerHTML="<p>Trouble tickets can be submitted to the Information Technologies department " + 	
		"using the online helpdesk application. <a href=\"http://www.carteret.edu/helpdesk\">Submit trouble" +
		" ticket</a>.</p>"

		break;

	
		default:

		break; 


	}

	var tempstring=newdiv.innerHTML;
	newdiv.innerHTML=tempstring+"<p align=\"center\">Click Window To Close</p>";
	displayWindow=false;
	
}

function hideInfo(e){
	
	est=document.getElementById("helpInfo");
	est.removeChild(est.firstChild); 
	displayITHelp();

	
}

function hidePerformance(e){
	est=document.getElementById("helpInfo");
	est.removeChild(est.firstChild); 

	listResearchAndReports();
}

function restore($programName){

	e=document.getElementById($programName);


	e.style.top='0px';
	e.style.width='0px';
	e.style.height='0px';
	e.style.borderStyle='none';
	e.style.position='absolute';
	e.style.zIndex='1';
	e.innerHTML="";

	if($programName == 'highSchool'){
		e.style.position='absolute';
		e.style.top='463px';
		e.style.left='741px';
		e.style.backgroundColor='#a4d4b0';
		e.style.height='50px';
		e.style.width='140px';
		e.style.borderStyle='groove';
		e.style.borderWidth='3px';

		e.innerHTML="<p align=\"center\">"+
		"<a href=\"javascript:changewidth('800','400','5','150','outset','highSchool');\""+ 		
		"title=\"List of important announcements for students, faculty, and staff\">Announcements</a></span>";
	}
	
	displayWindow=true;

}

function getHTTPObject() { 
  var xmlhttp; 

  	if(window.XMLHttpRequest){ 
   		 xmlhttp = new XMLHttpRequest(); 
 	} 
	else if (window.ActiveXObject){ 
    			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); 
    		if (!xmlhttp){ 
        			xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); 
    		} 
    
	} 
  	return xmlhttp; 

  
} 
var oddeven=0;
function blinkbackground(){
	d=document.getElementById('highSchool');
  	 if(oddeven <10){
	
		oddeven += 1
		if(oddeven % 2){
			d.style.backgroundColor="#ef9c00";
		} else {
			d.style.backgroundColor="#a4d4b0";
		}

		var t=setTimeout("blinkbackground()",2000);
			
 	} else {
	
		d.style.backgroundColor="#a4d4b0";
  	}
}

function loadspecificdata(){

	// load banner
	newBannerObj= new createBanner('images/standardBanner3.jpg');

	newBannerObj.loadBanner();

	var myHBar= new loadHorizontalBar("javascript:loadRequestedPage('employee')",
		"http://www.carteret.edu/newfrontpage/Newtemplate.php?sectionNumber=13&" +
		"pageName=Human%20Resources&folderPath=HumanResources/&includeName=humanResources.inc",
		"http://www.carteret.edu/newfrontpage/template4.htm?directory",
		"http://www.carteret.edu/library",
		"http://www.carteret.edu/");

	myHBar.createHorizontalButtons();

	blinkmessageArea();
}

function blinkmessageArea(){
	d=document.getElementById('RightTopBox');

  	 if(oddeven <10){
	
		oddeven += 1
		if(oddeven % 2){
			d.style.backgroundColor="#ef9c00";
		} else {
			d.style.backgroundColor="#a4d4b0";
		}

		var t=setTimeout("blinkmessageArea()",2000);
			
 	} else {
	
		d.style.backgroundColor="#a4d4b0";
  	}
}