

/***********************************************
* © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit DynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
* Go to http://www.dynamicdrive.com/ for full source code

* Portions of this script is copyrighted material from Dynamic Drive
* It also has been modified for this environment
***********************************************/


//Contents for menu 1
var menu1=new Array()
var menu2=new Array()
var menu3=new Array()

menu1[0]='&nbsp;<a onmouseover="this.style.color=\'#E1AE08\'; image1.src=\'http://www.srsd.net/images/bullet_hl.gif\'; this.style.cursor=\'hand\';" style="text-decoration: none; color: #000000" onmouseout="this.style.color=\'black\'; image1.src=\'http://www.srsd.net/images/bullet.gif\';" id="ok" target="_blank" href="http://www.srsd.net/webapps/default.aspx?toUrl=technology/helpdesk/default.aspx?mode=createTicket"><img name="image1" border="0" src="http://www.srsd.net/images/bullet.gif">Technology </a><br>'
menu1[1]='&nbsp;<a onmouseover="this.style.color=\'#E1AE08\'; image2.src=\'http://www.srsd.net/images/bullet_hl.gif\'; this.style.cursor=\'hand\';" style="text-decoration: none; color: #000000" onmouseout="this.style.color=\'black\'; image2.src=\'http://www.srsd.net/images/bullet.gif\';" id="ok" target="_blank" href="http://www.myschoolbuilding.com/myschoolbuilding/MyGateway.asp?acctnum=717295842"><img name="image2" border="0" src="http://www.srsd.net/images/bullet.gif">School Dude</a>'		
menu2[0]='&nbsp;<a onmouseover="this.style.color=\'#E1AE08\'; image3.src=\'http://www.srsd.net/images/bullet_hl.gif\'; this.style.cursor=\'hand\';" style="text-decoration: none; color: #000000" onmouseout="this.style.color=\'black\'; image3.src=\'http://www.srsd.net/images/bullet.gif\';" id="ok" target="_blank" href="https://exchange.srsd.net"><img name="image3" border="0" src="http://www.srsd.net/images/bullet.gif">Faculty E-mail </a><br>'
menu2[1]='&nbsp;<a onmouseover="this.style.color=\'#E1AE08\'; image4.src=\'http://www.srsd.net/images/bullet_hl.gif\'; this.style.cursor=\'hand\';" style="text-decoration: none; color: #000000" onmouseout="this.style.color=\'black\'; image4.src=\'http://www.srsd.net/images/bullet.gif\';" id="ok" target="_blank" href="https://students.srsd.net"><img name="image4" border="0" src="http://www.srsd.net/images/bullet.gif">Student E-mail</a>'	
menu3[0]='&nbsp;<a onmouseover="this.style.color=\'#E1AE08\'; image5.src=\'http://www.srsd.net/images/bullet_hl.gif\'; this.style.cursor=\'hand\';" style="text-decoration: none; color: #000000" onmouseout="this.style.color=\'black\'; image5.src=\'http://www.srsd.net/images/bullet.gif\';" id="ok" href="http://www.srsd.net/search/default.aspx"><img name="image5" border="0" src="http://www.srsd.net/images/bullet.gif">Website </a><br>'
menu3[1]='&nbsp;<a onmouseover="this.style.color=\'#E1AE08\'; image6.src=\'http://www.srsd.net/images/bullet_hl.gif\'; this.style.cursor=\'hand\';" style="text-decoration: none; color: #000000" onmouseout="this.style.color=\'black\'; image6.src=\'http://www.srsd.net/images/bullet.gif\';" id="ok" href="http://www.srsd.net/facultysearch/default.aspx"><img name="image6" border="0" src="http://www.srsd.net/images/bullet.gif">Faculty</a>'		
//menu1[0]='&nbsp;<img name="image1" src="http://srsd.net/images/bullet_hl.gif"><a id="ok" target="_blank" href="http://srsd.org/Login/technical problems/">Technology </a><br>&nbsp;<img name="image1"  src="http://srsd.net/images/bullet_hl.gif"><a id="ok" target="_blank" href="http://www.myschoolbuilding.com/myschoolbuilding/MyGateway.asp?acctnum=717295842">Maintenance</a>'
//menu1[0]='&nbsp;<img name="image1" src="http://srsd.net/images/bullet_hl.gif"><a id="ok" target="_blank" href="http://srsd.org/Login/technical problems/">Technology </a><br>'
//menu1[1]='&nbsp;<img name="image1" src="http://srsd.net/images/bullet_hl.gif"><a id="ok" target="_blank" href="http://www.myschoolbuilding.com/myschoolbuilding/MyGateway.asp?acctnum=717295842">Maintenance</a>'		
	


var menuwidth='75px' //default menu width
var menubgcolor='#e6e6e6'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" align="left" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function PrintThisPage() 
{ 
   var sOption="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
         sOption+="scrollbars=yes,width=750,height=600,left=100,top=25"; 
   
   var winprint=window.open("http://www.srsd.net/printerfriendly.asp","Print",sOption); 
 
    winprint.focus(); 
}


function load(x) {
var load = window.open(x,'','scrollbars=yes,menubar=no,height=300,width=300,resizable=no,toolbar=no,location=no,status=no'); }

function loadPopUp(x) {
var load = window.open(x,'','scrollbars=yes,menubar=no,height=300,width=225,resizable=no,toolbar=no,location=no,status=no'); }

function scholarshipGraphs(x) {
var load = window.open(x,'','scrollbars=yes,menubar=no,height=400,width=450,resizable=no,toolbar=no,location=no,status=no'); }

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

function loadAUP(x) {
var load = window.open(x,'','scrollbars=yes,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no'); }

function goToFormsAUP() {
var load = window.open('http://www.srsd.net/tech/docs/formsAUP.asp','','scrollbars=yes,menubar=no,height='+screen.height+',width='+screen.width+',resizable=yes,toolbar=no,status=no,location=no'); 
}

function loadSportsCalendar(x) {
var load = window.open(x,'','scrollbars=yes,menubar=yes,height=600,width=800,resizable=yes,toolbar=yes,location=no,status=no'); }




function goToForms() {
window.location = 'http://www.srsd.net/webapps'; 
}

function showPic (whichpic) {
 if (document.getElementById) {
  document.getElementById('placeholder').src = whichpic.href;
  if (whichpic.title) {
   document.getElementById('desc').childNodes[0].nodeValue = whichpic.title;
  } else {
   document.getElementById('desc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
  }
  return false;
 } else {
  return true;
 }
}

/*
function hidePopUp(szDivID, iState) // 1 visible, 0 hidden
{
    if(document.layers)	   //NN4+
    {
       document.layers[szDivID].visibility = iState ? "show" : "hide";
    }
    else if(document.getElementById)	  //gecko(NN6) + IE 5+
    {
        var obj = document.getElementById(szDivID);
        obj.style.visibility = iState ? "visible" : "hidden";
    }
    else if(document.all)	// IE 4
    {
        document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
    }
}
*/

function hidePopUp() // 1 visible, 0 hidden
{
/*
var ie1=document.all
var dom1=document.getElementById
var ns41=document.layers
if (!dom1&&!ie1&&!ns41)
return
objWeb=(dom1)?document.getElementById("PopupDiv").style : ie1? document.all.PopupDiv : document.PopupDiv
objWeb.visibility="hidden"
var ie=document.all && !window.opera
var dom=document.getElementById

objref=(dom)? document.getElementById("PopupDiv") : document.all.PopupDiv
  objref.style.visibility="hidden"*/

  if(document.layers)	   //NN4+
   {
       document.layers['PopupDiv'].visibility = 'hide';
     
    }
    else if(document.getElementById)	  //gecko(NN6) + IE 5+
    {
         document.getElementById('PopupDiv').style.visibility = 'hidden';
        //objWeb.style.visibility = 'hidden';
      
    }
    else if(document.all)	// IE 4
    {
        document.all['PopupDiv'].style.visibility = 'hidden';
        
    }
    
    
   }
   
   
function faqShowCrisisInfo(vstate,id,id1) // 1 visible, 0 hidden
{

if (vstate == 0){

  if(document.layers)	   //NN4+
   {
       document.layers[id].visibility = 'hide';
       
       
     
    }
    else if(document.getElementById)	  //gecko(NN6) + IE 5+
    {
    	
        
        
         //document.getElementById(i1).innerHTML = document.getElementById(id1).innerHTML 
         document.getElementById(id).innerHTML = ""  
          document.getElementById(id1).href= "javascript:faqShowCrisisInfo(1,'" + id + "','" + id1 + "')";
          
         
           //document.getElementById(id).style.visibility = 'hidden';
        //objWeb.style.visibility = 'hidden';
    }
    else if(document.all)	// IE 4
    {
        document.all[id].style.visibility = 'hidden';
        
    }
    
    
   }
   
   else if(vstate == 1){
   
   
    if(document.layers)	   //NN4+
   {
       document.layers[id].visibility = 'visible';
     
    }
    else if(document.getElementById)	  //gecko(NN6) + IE 5+
    {
    
   

         
        
      
       //document.getElementById(id1).innerHTML = document.getElementById(id1).innerHTML   
       document.getElementById(id).innerHTML ="<br><div class=faqCrisis>" + getAnswer(id) + "</div>"     
        document.getElementById(id1).href= "javascript:faqShowCrisisInfo(0,'" + id + "','" + id1 + "')";
       
        //document.getElementById(id).style.visibility = 'visible';
        //objWeb.style.visibility = 'hidden';

      
    }
    else if(document.all)	// IE 4
    {
        document.all[id].style.visibility = 'visible';
        
    }
    
    
   }

   
   }

   

function faqPopUp(vstate,id,id1) // 1 visible, 0 hidden
{

if (vstate == 0){

  if(document.layers)	   //NN4+
   {
       document.layers[id].visibility = 'hide';
       
       
     
    }
    else if(document.getElementById)	  //gecko(NN6) + IE 5+
    {
    	
        
        
         //document.getElementById(i1).innerHTML = document.getElementById(id1).innerHTML 
         document.getElementById(id).innerHTML = ""  
          document.getElementById(id1).href= "javascript:faqPopUp(1,'" + id + "','" + id1 + "')";
          
         
           //document.getElementById(id).style.visibility = 'hidden';
        //objWeb.style.visibility = 'hidden';
    }
    else if(document.all)	// IE 4
    {
        document.all[id].style.visibility = 'hidden';
        
    }
    
    
   }
   
   else if(vstate == 1){
   
   
    if(document.layers)	   //NN4+
   {
       document.layers[id].visibility = 'visible';
     
    }
    else if(document.getElementById)	  //gecko(NN6) + IE 5+
    {
    
   

         
        
      
       //document.getElementById(id1).innerHTML = document.getElementById(id1).innerHTML   
       document.getElementById(id).innerHTML ="<br><div class=faq>" + getAnswer(id) + "</div>"     
        document.getElementById(id1).href= "javascript:faqPopUp(0,'" + id + "','" + id1 + "')";
       
        //document.getElementById(id).style.visibility = 'visible';
        //objWeb.style.visibility = 'hidden';

      
    }
    else if(document.all)	// IE 4
    {
        document.all[id].style.visibility = 'visible';
        
    }
    
    
   }

   
   }


function getAnswer(id){

switch (id){
case "a1":
return "A: No, the client is only available on campus.";
break;
case "a2":
return "A: That refers to spam and anti-virus filtering software.";
break;
case "a3":
return "A: Yes.";
break;
case "a4":
return "A: With the new phone system, messages can be directly sent to voice mail.";
break;
case "a5":
return "A: This is for e-mail tracking purposes. Select yes and ''Do not ask me again'' and you will no longer see the message.";
break;
case "a6":
return "A: No.";
break;
case "a7":
return "A: No.";
break;
case "a8":
return "A: The new SPAM filter will catch upwards of 90% of all SPAM. But some will still sneak through. If you get an e-mail now and then do not be concerned. The SPAM filter is constantly being updated and will catch those. If you are consistently getting e-mail let the tech team know and we can block the sender or domain.";
break;
case "a9":
return "A: The new address is @srsd.net with your first initial and full last name.";
break;
case "a10":
return "A: With the policies we have in place you will still receive all @srsd.org mail. You can inform people of the new address if you like but it is not necessary.";
break;
case "a11":
return "A: Yes it will ding and will also have a small pop up window in the bottom right corner of the screen telling you who the E-mail is from.";
break;
case "a12":
return "A: History is proprietary to First Class. It is also considered a security loophole that Outlook does not allow.";
break;
case "a13":
return "A: SPAMers use numerous ways to get peoples e-mail addresses. It is not necessary for you to visit any sites. SPAM is a world wide problem and everyone is a victim. It is not a personal attack just a computer sending out mail.";
break;
case "a14":
return "A: The For Sale Public Folder is located under the Teachers Public Folder.";
break;
case "a15":
return "A: To correct this, please turn off your pop-up blocker.";
break;
case "a16":
return "A: You’re no longer viewing the folder list. Please click the manilla folder icon on the bottom left of the client. It will return you to the folder list view.";
break;
case "ca1":
return "<span class=\'boldText\'>DYFS (Division of Youth and Family Services) 877-652-2873</span><br>If your child (or any child) is being abused we recommend that you <span class=\'boldText\'>call the police - #911</span> (if immediate intervention is needed), and/or the DYFS to report your knowledge of the abuse. DYFS calls are confidential! DYFS is designed to protect the child and they will take action as needed. DYFS is also dedicated to helping families get stronger. Once the immediate risk is addressed, DYFS can provide additional counseling and support services to improve the family structure.<br><br>"
break;
case "ca2":
return "<span class=\'boldText\'>PESS (Psychiatric Emergency Screening Service) 866-904-4477</span>If you believe that your child is at risk to commit suicide, this 24hr emergency service will be available to evaluate your child. <span class=\'boldText\'>PESS is not a counseling service.</span> Their important mission is to help determine if your child is in present danger of committing suicide. Depending on the outcome of that evaluation, immediate interventions may be put in place and/or recommendations for additional services will be provided.<br><br>" 
break;
case "ca3":
return "<span class=\'boldText\'>Value Options: 877-652-7624</span><br>Value Options is the call to make if you have a child who is disruptive, defiant and at times out of control. This is not a reporting service (such as DYFS). This is a service where a parent/guardian calls and <span class=\'boldText\'>“asks for help”</span> with a situation where a child’s behavior is interfering with the child/family’s health and wellbeing. Value Options has access to a variety of staffing and County resources and they can oversee the case to be sure that those services are provided to your family.<br><br>Please keep in mind that the services provided to your family will be designed to match the information provided when you call. It is important that you be thorough and forthcoming in reporting the severity of the current situation.  If the situation you present fits their criteria they will arrange for an evaluation of the situation to take place right in your home. (Otherwise they can offer some referral suggestions)<br><br> " 
break;
case "ca4":
return "<span class=\'boldText\'>ADACO (Alcoholism &amp; Drug Abuse Council of Ocean)  609-597-9601 Also 732-367-5515</span>If you suspect that your child may be abusing drugs/alcohol it is never too early to reach out for services. A child does not have to be “addicted” to warrant/receive important services. ADACO provides a complete “evaluation” service that will help determine the level of care that is needed. ADACO offers counseling and support services, and they are very knowledgeable about additional County and State services that reach beyond the scope of their program. <br><br>The Ocean County Health Department maintains a very comprehensive listing of the drug &amp; alcohol treatment services and facilities.  Click <a title=\'Details in PDF File\' target=\'_blank\' class=\'hyperBlue\' href=\'http://www.ochd.org/ResourceDirectory.pdf\'>here</a><img border=\'0\' src=\'../../../../images/pdf.gif\' width=\'10\' height=\'10\' alt=\'PDF File Icon\'> to go directly to the OC Addictive Services Guide.<br><br> " 
break;
case "ca5":
return "The counseling services listed below is not meant to be a complete listing of available services, but more a place to get started. If you are fortunate to be covered by a health plan, we always recommend that you start the process by contacting your health plan. Often health plans will provide you with a list of local counselors with whom they are affiliated. <br><br>Other options: Counselors with private practices can often be accessed through the phonebook. Look under “Counselors/Counseling” The following community based organizations offer a variety counseling services.They also have funding available to help families who need financial assistance in accessing counseling services.  <span class=\'boldText\'><br>Ocean Mental Health Services 609-597-6494<br>Preferred Behavioral Health    732-367-4700<br>St. Francis Counseling Center 609-494-1554</span><br><br>More Options:The Ocean County Health Department maintains a comprehensive guide that lists all the programs available county-wide. Beyond the issues highlighted above, this guide will provide additional counseling services, social services, legal services and specialized services. Click <a title=\'Details in PDF File\' class=\'hyperBlue\' target=\'_blank\' href=\'http://www.ochd.org/GOLRD.pdf\'>here</a><img border=\'0\' src=\'../../../../images/pdf.gif\' width=\'10\' height=\'10\' alt=\'PDF File Icon\'> for a direct link to this valuable Ocean County Health Dept. Resource Guide." 
break;

default : return "";
}


}




function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu



