function openWin(JobID){ var x = (screen.width)/(2)-280, y = (screen.height)/(2)-150; var myBars = 'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=yes,location=no'; var myOptions = 'width=400,height=125'; var myFeatures = myBars + ',' + myOptions; var myUrl = 'contact_info.html?jobid=' + JobID; var newWin = open(myUrl,'myDoc',myFeatures); newWin.moveTo(x,y); newWin.focus(); } $(function() { // this prevents multiple counts via double-clicks $('.applyNowAchor').bind('click', function(event) { $(this).unbind(event); return trackANC(this, 'Top', 'Onsite'); }); }); // Job Info control script $(function() { $("#summaryTab").click(function() { $(".infoActive").attr("class", "infoTab"); $("#summaryTab").attr("class", "infoActive"); $("#infoSummary").show(); $("#infoPhone").hide(); $("#infoEmail").hide(); $("#infoAddress").hide(); }); $("#phoneTab").click(function() { if (this.className == "infoTab") { $(".infoActive").attr("class", "infoTab"); $("#phoneTab").attr("class", "infoActive"); $("#infoSummary").hide(); $("#infoPhone").show(); $("#infoEmail").hide(); $("#infoAddress").hide(); $.post("/record_clicks.php", { url: window.location, clickType: 'Phone_Tab' } ); } }); $("#emailTab").click(function() { if (this.className == "infoTab") { $(".infoActive").attr("class", "infoTab"); $("#emailTab").attr("class", "infoActive"); $("#infoSummary").hide(); $("#infoPhone").hide(); $("#infoEmail").show(); $("#infoAddress").hide(); $.post("/record_clicks.php", { url: window.location, clickType: 'Email_Tab' } ); } }); $("#addressTab").click(function() { if (this.className == "infoTab") { $(".infoActive").attr("class", "infoTab"); $("#addressTab").attr("class", "infoActive"); $("#infoSummary").hide(); $("#infoPhone").hide(); $("#infoEmail").hide(); $("#infoAddress").show(); $.post("/record_clicks.php", { url: window.location, clickType: 'Address_Tab' } ); } }); }); //video loader scripts $(function() { $("
").prependTo("body"); $("

Click outside the video to close
").prependTo("body"); $("#videoMask").click(function() { $("#videoPlayerFrame").attr({ src: ""}); $("#videoPlayer").hide(); $("#videoMask").fadeTo('2000', 0.0, function() { $("#videoMask").hide(); }); }); }); function customVideoLightbox() { $("#videoMask").fadeTo('2000', 0.8, function() { $("#videoPlayer").fadeIn(); }); } function creVideoLightbox() { $("#videoPlayer").html('
Click outside the video to close').css({'background':'#000000', 'border':'1px solid #cccccc','width':'430px','height':'250px','padding':'10px'}); $("#videoMask").fadeTo('2000', 0.8, function() { $("#videoPlayer").fadeIn(); }); } function videoLightbox(videoNum,init,auto) { $("#videoMask").fadeTo('2000', 0.8, function() { $("#videoPlayer").fadeIn(); changeVideo(videoNum,init,auto); }); } function changeVideo(videoNum,init,auto){ $("#videoPlayerFrame").attr({ src: "/videocenter/videoplayerdetail.cfm?videoNum="+init+"&getVid="+videoNum+"&auto="+auto}); $("#videoTitle").text(title); } //Custom Video Loader function customFlashLoader(divID, swfWidth, swfHeight, swfURL, windowMode, scriptAccess, swfBGColor) { //Private variables document.getElementById(divID).innerHTML = 'Click outside the video to close'; }