var s; var c; var t; var i = 0; var timer; var shaderPosition = 0; var originalY; var s; var images; var imageList; var level = 100; var container = null; var staffText = new Array(); var staffnoImage = new Array(); var extension = new Array(); var room = new Array(); var holdFunction = new Array(); var Title = new Array(); Title['lormsbee'] = "Director of the Library"; staffnoImage["lormsbee"] = "False"; extension["lormsbee"] = "(570) 320-2400, ext. 7211"; room["lormsbee"] = "107"; staffText["lormsbee"] = ""; Title['lkoskie'] = "Library Acquisitions Manager"; Title['kpatters'] = "Acquisitions Specialist, Books and Media"; Title['pbeckman'] = "Acquisitions Specialist, Continuing Resources"; Title['heppenba'] = "Library Acquisitions Assistant
(Casual P/T)"; staffnoImage["lkoskie"] = "False"; staffnoImage["kpatters"] = "False"; staffnoImage["pbeckman"] = "False"; staffnoImage["heppenba"] = "True"; extension["lkoskie"] = "(570) 320-2400, ext. 8061"; extension["kpatters"] = "(570) 320-2400, ext. 7781"; extension["pbeckman"] = "(570) 320-2400, ext. 7041"; extension["heppenba"] = "(570) 320-2400, ext. 7381"; room["lkoskie"] = "223"; room["kpatters"] = "223"; room["pbeckman"] = "223"; room["heppenba"] = "222"; staffText["lkoskie"] = ""; staffText["kpatters"] = ""; staffText["pbeckman"] = ""; staffText["heppenba"] = "noBio"; Title['jeichenl'] = "Circulation Services Manager"; Title['cke1'] = "Library Circulation Supervisor
(Evenings)"; Title['nstaron'] = "Library Circulation Assistant"; Title['pbilbay'] = "Library Circulation Supervisor
(Days)"; Title['abrooks'] = "Library Circulation Assistant
(Regular Part-time)"; Title['ash1'] = "Library Circulation Services Assistant
(Substitute - Casual P/T)"; Title['dmw3'] = "Library Circulation Services Assistant
(Substitute - Casual P/T)"; Title['jab11'] = "Library Circulation Assistant
(Regular Part-time)"; Title['rls3'] = "Library Circulation Services Assistant
(Substitute - Casual P/T)"; Title['rxs1'] = "Library Circulation Services Assistant
(Substitute - Casual P/T)"; Title['shart'] = "Library Circulation Services Assistant
(Substitute - Casual P/T )"; Title['smachins'] = "Library Circulation Services Assistant
(Substitute - Casual P/T)"; staffnoImage["jeichenl"] = "False"; staffnoImage["cke1"] = "False"; staffnoImage["nstaron"] = "False"; staffnoImage["pbilbay"] = "False"; staffnoImage["abrooks"] = "True"; staffnoImage["ash1"] = "False"; staffnoImage["dmw3"] = "True"; staffnoImage["jab11"] = "False"; staffnoImage["rls3"] = "True"; staffnoImage["rxs1"] = "False"; staffnoImage["shart"] = "False"; staffnoImage["smachins"] = "False"; extension["jeichenl"] = "(570) 320-2400, ext. 7212"; extension["cke1"] = "(570) 320-2400, ext. 7872"; extension["nstaron"] = "(570) 320-2400, ext. 7016"; extension["pbilbay"] = "(570) 320-2400, ext. 7872"; extension["abrooks"] = "(570) 320-2400, ext. 7815"; extension["ash1"] = "(570) 320-2400, ext. 7815"; extension["dmw3"] = "(570) 320-2400, ext. 7815"; extension["jab11"] = "(570) 320-2400, ext. 7815"; extension["rls3"] = "(570) 320-2400, ext. 7815"; extension["rxs1"] = "(570) 320-2400, ext. 7815"; extension["shart"] = "(570) 320-2400, ext. 7815 "; extension["smachins"] = "(570) 320-2400, ext. 7815"; room["jeichenl"] = "109"; room["cke1"] = "136"; room["nstaron"] = "137"; room["pbilbay"] = "105"; room["abrooks"] = "136"; room["ash1"] = "136"; room["dmw3"] = "136"; room["jab11"] = "110"; room["rls3"] = "136"; room["rxs1"] = "136"; room["shart"] = "104"; room["smachins"] = "136"; staffText["jeichenl"] = ""; staffText["cke1"] = "noBio"; staffText["nstaron"] = ""; staffText["pbilbay"] = ""; staffText["abrooks"] = "noBio"; staffText["ash1"] = "noBio"; staffText["dmw3"] = "noBio"; staffText["jab11"] = "noBio"; staffText["rls3"] = "noBio"; staffText["rxs1"] = "noBio"; staffText["shart"] = ""; staffText["smachins"] = "noBio"; Title['crice'] = "Document Delivery and Mail Services Manager"; Title['mgregory'] = "Document Delivery and Mail Services Assistant"; Title['bberarde'] = "Document Delivery and Mail Services Assistant
(Regular Part-time)"; staffnoImage["crice"] = "False"; staffnoImage["mgregory"] = "False"; staffnoImage["bberarde"] = "True"; extension["crice"] = "(570) 320-2400, ext. 7914"; extension["mgregory"] = "(570) 320-2400, ext. 7788"; extension["bberarde"] = "(570) 320-2400, ext. 8062"; room["crice"] = "130"; room["mgregory"] = "130"; room["bberarde"] = "150"; staffText["crice"] = ""; staffText["mgregory"] = ""; staffText["bberarde"] = ""; Title['jbremige'] = "Library Operations Manager"; Title['ahart'] = "Library Operations Assistant"; Title['lszuhaj'] = "Public Services Assistant"; staffnoImage["jbremige"] = "False"; staffnoImage["ahart"] = "True"; staffnoImage["lszuhaj"] = "False"; extension["jbremige"] = "(570) 320-2400, ext. 7211"; extension["ahart"] = "(570) 320-2400, ext. 7104"; extension["lszuhaj"] = "(570) 320-2400, ext. 7650"; room["jbremige"] = "108"; room["ahart"] = "104"; room["lszuhaj"] = "136"; staffText["jbremige"] = ""; staffText["ahart"] = ""; staffText["lszuhaj"] = ""; Title['jmaurer'] = "Technology Services Manager"; Title['jbower3'] = "Virtual Resources Developer"; Title['bulmer'] = "Library Technology Specialist
(Evenings)"; Title['dcunning'] = "Technical Services Assistant"; Title['rkranz'] = "Technical Services Assistant"; staffnoImage["jmaurer"] = "False"; staffnoImage["jbower3"] = "True"; staffnoImage["bulmer"] = "True"; staffnoImage["dcunning"] = "False"; staffnoImage["rkranz"] = "True"; extension["jmaurer"] = "(570) 320-2400, ext. 7794"; extension["jbower3"] = "(570) 320-2400, ext. 8058"; extension["bulmer"] = "(570) 320-2400, ext. 4116"; extension["dcunning"] = "(570) 320-2400, ext. 7815"; extension["rkranz"] = "(570) 320-2400, ext. 7920"; room["jmaurer"] = "225"; room["jbower3"] = "222"; room["bulmer"] = "136"; room["dcunning"] = "104"; room["rkranz"] = "222"; staffText["jmaurer"] = ""; staffText["jbower3"] = ""; staffText["bulmer"] = "noBio"; staffText["dcunning"] = "noBio"; staffText["rkranz"] = ""; Title['abuck'] = "Associate Professor, Librarian, Cataloging

Automotive, Aviation (see Transportation Technology), Education, Natural Resources Management

"; Title['glaudens'] = "Assistant Professor, Librarian, Reference and Outreach

Civil Engineering, Electronics, Human Services, Industrial and Engineering Technologies, Math, Metal Trades (including Machinist, Welding), Natural Sciences, Plastics, Psychology, Sociology

"; Title['jmcconne'] = "Associate Professor, Librarian, Periodical and Faculty Outreach

Hospitality/Culinary Arts, Health Sciences, Sports/Recreation

"; Title['mbodnar'] = "Professor, Librarian, Instructional Initiatives

Business (including Accounting & Taxation), Economics, Law

"; Title['pscott'] = "Associate Professor, Librarian, Collection Development and Archives

Art, Communications, English, Geography, History, Literature, Music, Philosophy & Religion, Political Science, Printing & Pub

"; Title['tamey'] = "Associate Professor, Librarian, Department Head

Architecture, Computer Science, Building & Construction, Electrical Occupations

"; staffnoImage["abuck"] = "False"; staffnoImage["glaudens"] = "False"; staffnoImage["jmcconne"] = "False"; staffnoImage["mbodnar"] = "False"; staffnoImage["pscott"] = "False"; staffnoImage["tamey"] = "False"; extension["abuck"] = "(570) 320-2400, ext. 7742"; extension["glaudens"] = "(570) 320-2400, ext. 7828"; extension["jmcconne"] = "(570) 320-2400, ext. 7458"; extension["mbodnar"] = "(570) 320-2400, ext. 7459"; extension["pscott"] = "(570) 320-2400, ext. 7840"; extension["tamey"] = "(570) 320-2400, ext. 3701"; room["abuck"] = "222"; room["glaudens"] = "138"; room["jmcconne"] = "138"; room["mbodnar"] = "137"; room["pscott"] = "139"; room["tamey"] = "138"; staffText["abuck"] = ""; staffText["glaudens"] = ""; staffText["jmcconne"] = ""; staffText["mbodnar"] = ""; staffText["pscott"] = ""; staffText["tamey"] = ""; Title['hyoas'] = "Librarian
(Part-Time)"; Title['jzebrows'] = "Librarian
(Part-Time)"; Title['pcendoma'] = "Substitute Librarian
(Part-Time)"; Title['rfisher2'] = "Librarian
(Part-Time)"; Title['rkozar'] = "Substitute Librarian
(Part-Time)"; Title['sfarr'] = "Substitute Librarian
(Part-Time)"; Title['smaresch'] = "Substitute Librarian
(Part-Time)"; Title['srobisha'] = "Substitute Librarian
(Part-Time)"; staffnoImage["hyoas"] = "False"; staffnoImage["jzebrows"] = "True"; staffnoImage["pcendoma"] = "False"; staffnoImage["rfisher2"] = "False"; staffnoImage["rkozar"] = "False"; staffnoImage["sfarr"] = "True"; staffnoImage["smaresch"] = "False"; staffnoImage["srobisha"] = "False"; extension["hyoas"] = "(570) 320-2400, ext. 2409"; extension["jzebrows"] = "(570) 320-2400, ext. 2409"; extension["pcendoma"] = "(570) 320-2400, ext. 2409"; extension["rfisher2"] = "(570) 320-2400, ext. 2409"; extension["rkozar"] = "(570) 320-2400, ext. 2409"; extension["sfarr"] = "(570) 320-2400, ext. 2409"; extension["smaresch"] = "(570) 320-2400, ext. 2409"; extension["srobisha"] = "(570) 320-2400, ext. 2409"; room["hyoas"] = "136"; room["jzebrows"] = "136"; room["pcendoma"] = "136"; room["rfisher2"] = "136"; room["rkozar"] = "136"; room["sfarr"] = "136"; room["smaresch"] = "136"; room["srobisha"] = "136"; staffText["hyoas"] = ""; staffText["jzebrows"] = ""; staffText["pcendoma"] = ""; staffText["rfisher2"] = ""; staffText["rkozar"] = ""; staffText["sfarr"] = ""; staffText["smaresch"] = ""; staffText["srobisha"] = ""; window.onload = setOriginal; /*This code controls the mouseover effect item that appears*/ document.write("
") /*end*/ function setOriginal(){ originalY = document.body.scrollHeight || document.documentElement.scrollHeight; } function closeDIV(){ var frame = document.getElementById('frame'); var staff = document.getElementById('staffInfo'); var series2 = false; staff.innerHTML = ""; staff.style.width = 0 + "px"; staff.style.height = 0 + "px"; staff.style.display = "none"; shaderPosition += .45; if ((shaderPosition/5) <= 1){ frame.style.opacity = shaderPosition/5; if(navigator.userAgent.indexOf("MSIE") != -1){ level = shaderPosition*20; frame.style.filter = 'alpha(opacity=' + level + ')'; document.getElementById('b1').style.filter = 'alpha(opacity=' + level + ')'; document.getElementById('b2').style.filter = 'alpha(opacity=' + level + ')'; document.getElementById('b3').style.filter = 'alpha(opacity=' + level + ')'; } } else{ series2 = true; } if(series2 != true){ if(!timer){ timer = setInterval("closeDIV()",25); } } else{ clearInterval(timer); if((i == 0) && ((navigator.userAgent.indexOf("MSIE") != -1) || (navigator.userAgent.indexOf("Opera") != -1))){ for(i = 0; i < document.getElementById('frame').getElementsByTagName('a').length; i++){ document.getElementById('frame').getElementsByTagName('a')[i].disabled = false; document.getElementById('frame').getElementsByTagName('a')[i].style.cursor = 'hand'; document.getElementById('frame').getElementsByTagName('a')[i].style.color = "blue"; var holdString = holdFunction[i].toString(); if(navigator.userAgent.indexOf("MSIE") != -1){ holdString = holdString.substr(22); } else{ holdString = holdString.substr(13); } holdString = holdString.replace(/}/, ""); document.getElementById('frame').getElementsByTagName('a')[i].onclick = new Function(holdString); document.getElementById('frame').getElementsByTagName('a')[i].disabled = false; } } else{ document.getElementById('hide').style.display = "none"; document.getElementById('hide').width = 0 + "px" document.getElementById('hide').height = 0 + "px" } shaderPosition = 0; level = 100; i = 0; timer = null; } } function shades(shadow, name, title, person, isEmpty){ var shade = document.getElementById(shadow); var frame = document.getElementById('frame'); var objLinks = document.links; var shadeY ; var shadeX = (((window.innerWidth || document.body.clientWidth))) + (window.pageXOffset || (document.body.scrollLeft || document.documentElement.scrollLeft)-17); var shadeXIE = (((window.innerWidth || document.body.clientWidth))) + (window.pageXOffset || (document.body.scrollLeft || document.documentElement.scrollLeft)); if(document.body.scrollHeight > document.documentElement.scrollHeight){ shadeY = document.body.scrollHeight } else{ shadeY = document.documentElement.scrollHeight } if((i == 0) && ((navigator.userAgent.indexOf("MSIE") != -1) || (navigator.userAgent.indexOf("Opera") != -1))){ $("#imgOVR").stop(true, true).animate({"opacity": "hide"}, 25, "linear"); for(i = 0; i < document.getElementById('frame').getElementsByTagName('a').length; i++){ holdFunction[i] = document.getElementById('frame').getElementsByTagName('a')[i].onclick document.getElementById('frame').getElementsByTagName('a')[i].style.cursor = 'default'; document.getElementById('frame').getElementsByTagName('a')[i].disabled = true; } } if((navigator.userAgent.indexOf("MSIE") == -1) && (navigator.userAgent.indexOf("Opera") == -1) && (shade.style.display != "block")){ shade.style.display = "block"; } if (shade.style.height != shadeY){ if(window.innerWidth){ shade.style.width = shadeX + "px"; } else{ shade.style.width = shadeXIE + "px"; } shade.style.height = (shadeY) + "px"; } var series2 = false; shaderPosition = .45; if(frame.style.opacity == ''){ frame.style.opacity = 1; } if(frame.style.filter == ''){ if((navigator.userAgent.indexOf("Opera") == -1) && (navigator.userAgent.indexOf("Safari") == -1)){ frame.style.opacity = 1; } frame.style.filter = 'alpha(opacity=' + 100 + ')'; level = 100; } if (frame.style.opacity >= .25){ frame.style.opacity -= shaderPosition/5; document.getElementById('b1').style.KhtmlOpacity = (level / 100); document.getElementById('b2').style.KhtmlOpacity = (level / 100); document.getElementById('b3').style.KhtmlOpacity = (level / 100); if((navigator.userAgent.indexOf("MSIE") != -1)){ level = level - (shaderPosition*20); frame.style.filter = 'alpha(opacity=' + level + ')' document.getElementById('b1').style.filter = 'alpha(opacity=' + level + ')'; document.getElementById('b2').style.filter = 'alpha(opacity=' + level + ')'; document.getElementById('b3').style.filter = 'alpha(opacity=' + level + ')'; } } else{ series2 = true; } if(series2 != true){ if(!timer){ timer = setInterval("shades('hide', '"+name+"', '"+title+"','"+person+"', "+isEmpty+")",25); } } else{ clearInterval(timer); staffX = .5; staffY = .5; i = 0; timer = setInterval("openLayer('"+name+"','"+title+"','"+person+"', "+isEmpty+")",25); } } var staffX = .5; var staffY = .5; function openLayer(name, title, person, isEmpty){ var staff = document.getElementById('staffInfo'); var shadeY = document.body.scrollHeight|| document.documentElement.scrollHeight; var shadeX = (((window.innerWidth || document.body.clientWidth))) + (window.pageXOffset || (document.body.scrollLeft || document.documentElement.scrollLeft)-17); var shadeXIE = (((window.innerWidth || document.body.clientWidth))) + (window.pageXOffset || (document.body.scrollLeft || document.documentElement.scrollLeft)); var screenX; var ScreenY; var staffHEIGHT = 274 if((navigator.userAgent.indexOf("MSIE") != -1)){ ScreenY = 305; screenX = 605; } else if((navigator.userAgent.indexOf("Opera") != -1)){ ScreenY = 305; screenX = 605; } else if((navigator.userAgent.indexOf("Safari") != -1)){ ScreenY = 305; screenX = 605; } else if((navigator.userAgent.indexOf("Mozilla") != -1)){ ScreenY = 305; screenX = 605; staffHEIGHT = 275 } staff.style.display = 'block'; if(staffY <= ScreenY){ staff.style.height = staffY + "px"; if((navigator.userAgent.indexOf("MSIE") != -1)){ staffY += 25; } else if((navigator.userAgent.indexOf("Opera") != -1)){ staffY += 15; } else if((navigator.userAgent.indexOf("Safari") != -1)){ staffY += 15; } else if((navigator.userAgent.indexOf("Mozilla") != -1)){ staffY += 15; } } else{ staffY = 350 staff.style.width = staffX + "px"; if((navigator.userAgent.indexOf("MSIE") != -1)){ staffX += 25; } else if((navigator.userAgent.indexOf("Opera") != -1)){ staffX += 15; } else if((navigator.userAgent.indexOf("Safari") != -1)){ staffX += 15; } else if((navigator.userAgent.indexOf("Mozilla") != -1)){ staffX += 15; } } staff.style.marginLeft = (((shadeX/31.85) - (staff.style.width.split("px")[0]/2))/12.45 + (31.85/605)*1080)+"%"; staff.style.marginTop = ((shadeY*.001334) - (staff.style.height.split("px")[0]/2)) + 775 + "px"; if(staffX >= screenX){ staffX = 38.5 clearInterval(timer); timer = null; staff.innerHTML = "
LIB, Rm. " + room[name] + " | " + extension[name] + " | " + "" + name + "@pct.edu
close [x]
"; if(isEmpty != true){ document.getElementById('staffText').style.display = "block"; document.getElementById('staffText').innerHTML = staffText[name]; } else{ document.getElementById('staffText').style.display = "none"; } if(staffnoImage[name] != "True"){ images="http://www.pct.edu/library/images/staff/" + name + ".jpg"; } else{ images="http://www.pct.edu/library/images/staff/noimage.jpg"; } imageList=new Image(); imageList.src=images; clearTimeout(s); document.getElementById('staffPic').innerHTML = "
" + person + "
"+title+""; } } function on_mousemove(e, name, name2) { var scnWid,scnHei; if (self.innerHeight) // all except Explorer { scnWid = self.innerWidth; scnHei = self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) // Explorer 6 Strict Mode { scnWid = document.documentElement.clientWidth; scnHei = document.documentElement.clientHeight; } else if (document.body) // other Explorers { scnWid = document.body.clientWidth; scnHei = document.body.clientHeight; } var scrlHeight = window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop; var totalHEIGHT = scnHei + scrlHeight var distance; document.getElementById('arrowContainer').style.top = 45 +"px" document.getElementById('arrow').style.top = 40 +"px" if (navigator.userAgent.indexOf("MSIE") != -1) { distance = 6.775 + "em"; MouseX = window.event.x+document.body.scrollLeft+150; MouseY = window.event.y+document.body.offsetTop+540; document.getElementById('arrowContainer').style.left = 1000 + "em" container = document.getElementById('arrowContainer').getElementsByTagName("img")[0]; container.style.position = 'relative'; container.style.left = 29 + "px"; } else { // Netscape, (Firefox, Opera, ...) distance = 110 + "px"; MouseX = e.pageX; var testHEIGHT = (e.pageY+$(".IMGContainer").height()+$("#position").height()) document.getElementById('positionHLDR').style.top = 180 + "px" if (testHEIGHT > totalHEIGHT){ document.getElementById('arrowContainer').style.top = 135 + "px" document.getElementById('arrow').style.top = 135 + "px" MouseY = e.pageY - ($(".IMGContainer").height()-10); document.getElementById('positionHLDR').style.top = -10 - $("#positionHLDR").height() + "px" document.getElementById('arrowContainer').style.top = 135 + "px" document.getElementById('arrow').style.top = 130 + "px" } else{ /**if($("#position").height()+15 > ((scnHei - e.pageY))){ MouseY = e.pageY - ($(".IMGContainer").height()-10); document.getElementById('arrowContainer').style.top = 135 + "px" document.getElementById('arrow').style.top = 135 + "px" document.getElementById('positionHLDR').style.top = -10 - $("#positionHLDR").height() + "px" } else{**/ MouseY = e.pageY-45; //} } } document.getElementById('arrowContainer').style.left = distance; document.getElementById('imgOVR').style.left = document.getElementById(name).offsetLeft - 95 + "px"; var holder = document.getElementById('imgOVR').style.top; holder = holder.split("px"); document.getElementById('imgOVR').style.top = MouseY-10 + "px"; } $(document).ready(function(){ $(".pad").hover(function(){ $("#IMGContainer").html("") $("#imgOVR").stop(true, true).animate({opacity: "show"}, "fast", "linear", positionTXT(Title[$(this).attr("name")])); if($(this).attr("name") != null){ loadFast($(this).attr("name")); } }, function(){ $("#imgOVR").stop(true, true).animate({opacity: "hide"}, 25, "linear", document.getElementById('imgOVR').style.display = "none"); }); }); function loadFast(name){ if(staffnoImage[name] != "True"){ images="http://www.pct.edu/library/images/staff/" + name + ".jpg"; } else{ images="http://www.pct.edu/library/images/staff/noimage.jpg"; } imageList=new Image(); imageList.src=images; if((navigator.userAgent.indexOf("MSIE 6") != -1) || (navigator.userAgent.indexOf("Opera") != -1)){ document.getElementById('IMGContainer').innerHTML =""; clearTimeout(s); } else{ if(imageList.complete){ document.getElementById('IMGContainer').innerHTML =""; clearTimeout(s); } else{ s = setTimeout("isLoaded('IMGContainer')", 25); } } } function isLoaded(div){ if(imageList.complete){ clearTimeout(s); clearTimeout(); document.getElementById(div).innerHTML =""; return true; } else{ document.getElementById(div).innerHTML = "" s = setTimeout("isLoaded('"+div+"')", 250); } } function positionTXT(position){ var element = document.getElementById('position'); element.innerHTML = position; return true; } function hideShadow(shadow){ var shade = document.getElementById(shadow); var series2 = false; shaderPosition -= .45; if (shaderPosition >= 0){ shade.style.opacity = shaderPosition/10; shade.style.filter = 'alpha(opacity=' + shaderPosition*10 + ')'; } else{ series2 = true; } if(series2 != true){ if (!timer) timer = setInterval("hideShadow('hide'," + shaderPosition + ")", 1); } else{ shade.style.display="none"; clearInterval(timer); timer = null; } } function changeShadow(shadow){ var shade = document.getElementById(shadow); if(originalY < (document.body.scrollHeight || document.documentElement.scrollHeight)){ shade.style.height = originalY + "px"; } var shadeY = document.body.scrollHeight || document.documentElement.scrollHeight; var shadeX = (((window.innerWidth || document.body.clientWidth))) + (window.pageXOffset || (document.body.scrollLeft || document.documentElement.scrollLeft)-17); var shadeXIE = (((window.innerWidth || document.body.clientWidth))) + (window.pageXOffset || (document.body.scrollLeft || document.documentElement.scrollLeft)); if(window.innerWidth){ shade.style.width = shadeX + "px"; } else{ shade.style.width = shadeXIE + "px"; } shade.style.height = shadeY + "px"; }