function popup(e, obj, obj1, obj2, val1, val2) {
    var posx = 0;
    var posy = 0;

        if (!e) var e = window.event;

        if (e.pageX || e.pageY) {           //moz
            posx = (e.pageX - 14) + "px;";
            posy = (e.pageY - 10) + "px;"; }

        else if (e.clientX || e.clientY) {  //ie
            posx = (e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft) - 0;
            posy = (e.clientY + document.body.scrollTop + document.documentElement.scrollTop) - 25; }

    $(obj1).innerHTML = val1;
    $(obj2).innerHTML = val2;
    $(obj).style.left = posx;
    $(obj).style.top  = posy;
    $(obj).style.display = 'block';           
}  //END popup(e, obj, obj1, obj2, val1, val2)

newestJobsTitle = "Newest Jobs";
newestJobsBody  = "The newest jobs are available to job seekers as soon as they are posted. Visit this section often and be the first to apply. Click the link to see more information about different positions offered.";

hottestSearchesTitle = "Hottest Searches";
hottestSearchesBody = "See the most viewed jobs on WorkZone. Find career positions and companies you'd like to research. Select a position title to review information on job openings, salary and company history.";

newFeaturesTitle = "New Features";
newFeaturesBody = "<p>Check out the exciting features added to WorkZone. Employers can save money by purchasing multiple positions upfront using our bulk pricing plan. Payment is made easier through our purchase order option for agencies that qualify.</p><p>Another feature is <strong>FREE</strong> posting of internship opportunities for students and recent graduates. Job seekers can use the new mapping feature to look at jobs based on location and check out career-related books in the bookstore section.</p>";

myJobsTitle = "My Jobs";
myJobsBody = "Create and save up to 5 searches that you can come back to at any time with this tool tailored based on your search agents. Change agents when you want and update as needed.";

nearMeTitle = "Near Me";
nearMeBody = "Find other career positions in the geographic location you specify. Use this section to compare job listings including salary and benefits packages.";

myToolTitle = "My Tools";
myToolsBody = "This section provides tips and techniques for interviewing, improving searches, and identifying other resources for furthering your career.";

improveJobSearchTitle = "Improve Job Search";
improveJobSearchBody = "<ul><li>Focus search by job type, location or employer</li><li>Research employers you are interested in</li><li>Visit APWA WorkZone frequently for new jobs</li></ul>";

resumeWritingTipsTitle = "Resume Writing Tips";
resumeWritingTipsBody = "<ul><li>Write content that quantifies past job accomplishments</li><li>Use resume design that directs attention and promotes work experience</li><li>Highlight required qualifications and your related skill set</li></ul>";

interviewingTipsTitle = "Interviewing Tips";
interviewingTipsBody = "<ul><li>Prepare for interview – research company and key staff</li><li>Dress for the part – conservative always works for an interview</li><li>Answer interviewer questions honestly and specifically.</li></ul>";


function getCoords(e, orientation) {
    if (orientation == 0) { orx = 10; }
    else if (orientation == 1) { orx = -225; }

             if (e.pageX || e.pageY) {      //moz
                posx = (e.pageX) + orx + "px;";
                posy = (e.pageY) + 5 + "px;"; }

        else if (e.clientX || e.clientY) {  //ie
                posx = (e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft) + orx;
                posy = (e.clientY + document.body.scrollTop + document.documentElement.scrollTop) + 15; }
}  //END getCoords(e, orientation)

function displayExclamation(e, orientation, obj, val) {
    getCoords(e, orientation);

        $(obj).style.left = posx;
        $(obj).style.top  = posy;
        $(obj+'2').innerHTML = val;
        $(obj).style.display = 'block';
}   //END displayExclamation(e, orientation, obj, val)
