﻿var engineeringnewsInterval = 3000;

//        function engineeringnewschange(oldnews,newnews) {
//            //alert(oldnews + "-" + newnews);
//            document.getElementById("BHCRHODESnews"+oldnews+"link").style.color = "#c3c3c3"
//            document.getElementById("BHCRHODESnews"+newnews+"link").style.color = "#003366"
//            if (newnews == "5")
//            { setTimeout("engineeringnewschange('5','1')", engineeringnewsInterval); }
//            else
//            { setTimeout("engineeringnewschange(" + parseInt(newnews) + "," + (parseInt(newnews) + 1) + ")", engineeringnewsInterval); }
//        }
function engineeringpicchange(oldpic, newpic) {
    //alert(oldpic + "-" + newpic);
    document.getElementById("engineeringpic" + oldpic).style.display = "none"
    document.getElementById("engineeringpic" + newpic).style.display = "block"
    document.getElementById("Engineeringcaption").innerHTML = document.getElementById("engineeringpic" + newpic).getAttribute('alt');
    if (newpic == "10")
    { setTimeout("engineeringpicchange('10','1')", engineeringnewsInterval); }
    else
    { setTimeout("engineeringpicchange(" + parseInt(newpic) + "," + (parseInt(newpic) + 1) + ")", engineeringnewsInterval); }
}
function showengineeredbox(thecopy, thewidth, theheight) {
    document.getElementById("engineerediframe").src = thecopy
    document.getElementById("engineeredbox").style.display = "block";
    document.getElementById("contentbox").height = "2000px";
    var thecontentbox = document.getElementById("contentbox");
    thecontentbox.style.display = "block";
    thecontentbox.style.height = theheight + "px";
    thecontentbox.style.width = thewidth + "px";
}
function closeengineeredbox() {
    document.getElementById("engineeredbox").style.display = "none";
    document.getElementById("contentbox").style.display = "none";
}
function recordOutboundLink(link, category, action) {
    _gat._getTrackerByName()._trackEvent(category, action);
    setTimeout('document.location = "' + link.href + '"', 100);
}

