<!--
function correctPNG()
{
    for(var i=0; i<document.images.length; i++)
    {
        var img = document.images[i];
        var imgName = img.src.toUpperCase();

        if (imgName.substring(imgName.length - 3, imgName.length) == "PNG")
        {
            var imgID = (img.id) ? "id='" + img.id + "' " : "";
            var imgClass = (img.className) ? "class='" + img.className + "' " : "";
            var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
            var imgStyle = "display:inline-block;" + img.style.cssText;

            if (img.align == "left") imgStyle = "float:left;" + imgStyle;

            if (img.align == "right") imgStyle = "float:right;" + imgStyle;

            if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;

            var strNewHTML = "<span " + imgID + imgClass + imgTitle
            + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
            + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
            + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>";
            
            img.outerHTML = strNewHTML;
            i--;
        }
    }
}

if ( window.attachEvent ) window.attachEvent("onload", correctPNG);

aMonth = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");

function datetime()
{
    oToday = new Date();
    
    nTimezoneOffset = Math.floor(oToday.getTimezoneOffset() / 60); // number of hours difference between UTC and user's machine
    nHourDiff = ( nTimezoneOffset - 4 ) * 1;
    
    oToday.setTime(oToday.getTime()); // + ( nHourDiff * 3600000 ));

    sMonth = aMonth[oToday.getMonth()];
    nDate = oToday.getDate();
    nYear = oToday.getFullYear();
    
    nHour = oToday.getHours();
    nMinute = oToday.getMinutes();
    
    
        
    sDatetime = sMonth + " " + nDate + ", " + nYear + " " + twelveHour(nHour) + ":" + zeroPad(nMinute) + " " + amPm(nHour); // + ( fDaylightSavings ? " edt" : " est" );
    document.getElementById("datetime").innerHTML = sDatetime;
}

function twelveHour(n)
{
    return n > 12 ? n - 12 : n;
}

function zeroPad(n)
{
    return n < 10 ? "0" + n : n;
}

function amPm(n)
{
    return n > 11 ? "PM" : "AM";
}

function initDatetime(fDst)
{
    fDaylightSavings = fDst;
    datetime(); // kick it off right away!
    hDatetime = setInterval("datetime()", 5000); // update clock every 5 seconds
}



/*** news ticker functions ***/
function ticker(content, divId, delay)
{
	this.content = content;
	this.tickerid = divId;
	this.delay = delay;
	this.mouseoverBol = 0;
	this.hiddendivpointer = 1;
	document.write('<div id="' + divId + '" style="position: relative; overflow: hidden">HEADLINES: <div class="innerDiv" style="position: absolute; width: 100%;" id="' + divId + '1">' + content[0] + '</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="' + divId + '2">' + content[1] + '</div></div>');
	var scrollerinstance=this;

	if ( window.addEventListener )
	{
		window.addEventListener("load", function(){scrollerinstance.initialize()}, false);
	}
	else if ( window.attachEvent )
	{
		window.attachEvent("onload", function(){scrollerinstance.initialize()});
	}
	else if ( document.getElementById )
	{
		setTimeout(function(){scrollerinstance.initialize()}, 500);
	}
}

ticker.prototype.initialize = function()
{
	this.tickerdiv = document.getElementById(this.tickerid);
	this.visiblediv = document.getElementById(this.tickerid + "1");
	this.hiddendiv = document.getElementById(this.tickerid + "2");
	this.visibledivtop = parseInt(ticker.getCSSpadding(this.tickerdiv));
	this.visiblediv.style.width = this.hiddendiv.style.width = this.tickerdiv.offsetWidth - ( this.visibledivtop * 2 ) + "px";
	this.getinline(this.visiblediv, this.hiddendiv);
	this.hiddendiv.style.visibility = "visible";
	var scrollerinstance = this;
	document.getElementById(this.tickerid).onmouseover = function(){scrollerinstance.mouseoverBol=1};
	document.getElementById(this.tickerid).onmouseout = function(){scrollerinstance.mouseoverBol=0};

	if ( window.attachEvent )
	{
		window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null});
	}
	
	setTimeout(function(){scrollerinstance.animateup()}, this.delay);
}


ticker.prototype.animateup = function()
{
	var scrollerinstance = this

	if ( parseInt(this.hiddendiv.style.top) > (this.visibledivtop+5) )
	{
		this.visiblediv.style.top = ( parseInt(this.visiblediv.style.top) - 5 ) + "px";
		this.hiddendiv.style.top = ( parseInt(this.hiddendiv.style.top) - 5 ) + "px";
		setTimeout(function(){scrollerinstance.animateup()}, 50);
	}
	else
	{
		this.getinline(this.hiddendiv, this.visiblediv);
		this.swapdivs();
		setTimeout(function(){scrollerinstance.setmessage()}, this.delay);
	}
}

ticker.prototype.swapdivs = function()
{
	var tempcontainer = this.visiblediv;
	this.visiblediv = this.hiddendiv;
	this.hiddendiv = tempcontainer;
}

ticker.prototype.getinline = function(div1, div2)
{
	div1.style.top = this.visibledivtop + "px"
	div2.style.top = Math.max(div1.parentNode.offsetHeight, div1.offsetHeight) + "px"
}

ticker.prototype.setmessage = function()
{
	var scrollerinstance = this;

	if ( this.mouseoverBol == 1 )
	{
		setTimeout(function(){scrollerinstance.setmessage()}, 100);
	}
	else
	{
		var i = this.hiddendivpointer;
		var ceiling = this.content.length;
		this.hiddendivpointer = ( ( i + 1 ) > ( ceiling - 1 ) ) ? 0 : ( i + 1 );
		this.hiddendiv.innerHTML = this.content[this.hiddendivpointer];
		this.animateup();
	}
}

ticker.getCSSpadding = function(tickerobj)
{ 
	if ( tickerobj.currentStyle )
	{
		return tickerobj.currentStyle["paddingTop"];
	}
	else if ( window.getComputedStyle )
	{
		return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top");
	}
	else
	{
		return 0;
	}
}

// function from http://www.quirksmode.org/js/lastmod.html
function lastMod()
{
	var x = new Date(2007, 10, 15, 0, 0, 0); // (document.lastModified);
	Modif = new Date(x.toGMTString());
	Year = takeYear(Modif);
	Month = Modif.getMonth();
	Day = Modif.getDate();
	Mod = (Date.UTC(Year,Month,Day,0,0,0)) / 86400000;
	x = new Date();
	today = new Date(x.toGMTString());
	Year2 = takeYear(today);
	Month2 = today.getMonth();
	Day2 = today.getDate();
	now = (Date.UTC(Year2,Month2,Day2,0,0,0)) / 86400000;
	daysago = now - Mod;
	
	if ( daysago < 0 ) return '';
	
	unit = 'days';
	
	if ( daysago > 730 )
	{
		daysago = Math.floor(daysago / 365);
		unit = 'years';
	}
	else if ( daysago > 60 )
	{
		daysago = Math.floor(daysago / 30);
		unit = 'months';
	}
	else if ( daysago > 14 )
	{
		daysago = Math.floor(daysago / 7);
		unit = 'weeks'
	}
	
	var towrite = 'Page last updated: ';
	
	if ( daysago == 0 ) towrite += 'today';
	else if ( daysago == 1 ) towrite += 'yesterday';
	else towrite += daysago + ' ' + unit + ' ago';
	
	return towrite;
}


function takeYear(theDate)
{
	x = theDate.getYear();
	var y = x % 100;
	y += (y < 38) ? 2000 : 1900;
	
	return y;
}

function showFlag(sId)
{
	document.getElementById(sId).style.display = 'block';
}

function hideFlag(sId)
{
	document.getElementById(sId).style.display = 'none';
}

hHide = 0;

function showLinks(sId)
{
	if ( hHide > 0 )
	{
		clearTimeout(hHide);
	}
	
	aId = new Array("links_bar", "links_beam", "links_plate", "links_buildingsys", "links_harris", "links_joistdeck");
	
	for ( n = 0; n < aId.length; n++ )
	{
		if ( sId != aId[n] ) document.getElementById(aId[n]).style.display = "none";
	}

	document.getElementById("coverup").style.display = "block";
	document.getElementById("coverup").style.zIndex = 2;
	document.getElementById(sId).style.display = "block";
	document.getElementById("links").style.zIndex = 3;
}

function hideLinks(sId)
{
	hHide = setTimeout(function(){document.getElementById(sId).style.display="none";document.getElementById("coverup").style.display="none";}, 1000);
}

aValue = new Array();
aValue["title"] = new Array();
aValue["byline"] = new Array();
aValue["copy"] = new Array();
var nVal = null;

aValue["title"][1]  = "High Tech Company";
aValue["byline"][1] = "Tony Teeter, Manager of Engineering &amp; Special Projects<br />John Brandon, Manager of Technical Business Development";
aValue["copy"][1]   = "<p>&ldquo;High Tech Company&rdquo; means a manufacturing company that depends on knowledge from almost all engineering disciplines. From ore in the ground to direct reduced iron, long products, special bar quality product, high strength steel or fabricated joists, the process of making steel and steel products requires knowledge of metallurgy, melting, casting (solidification), rolling (shaping), heat treating and fabrication.</p>";
aValue["copy"][1]  += "<p>But before the first heat of steel is tapped, Geotechnical, Civil, Structural, Mechanical and Electrical Engineers and Construction and Project Management are responsible for building our manufacturing facilities.</p>";
aValue["copy"][1]  += "<p>Once a plant is constructed it is turned over to operations. Operations rely on Safety Engineers to provide guidelines to keep our employees safe; Chemical Engineers for water treatment; Environmental Engineers for fume control; Mechanical Engineers for maintenance and upgrades to equipment; Electrical Engineers for high, medium, and low voltage power distribution;  and Controls Engineers to maintain the high speed control systems and materials testing to prove that our product meets or exceeds customer's expectations.</p>";
aValue["copy"][1]  += "<p>Nucor's production facilities utilize the most advanced technological tools available to the industry. From Neural networks for analysis of complex metallurgical relationships, to profile laser gauges for confirmation of the most demanding  dimensional tolerances, to predictive software models that control each critical step in our manufacturing process, Nucor leads the way in adapting these state of the art technologies to the production of steel.</p>";
aValue["copy"][1]  += "<p>Our teammates utilize highly developed plant wide computer networks each and every day. Starting with raw materials through to the finished products, our steel  will  go through  the most advanced quality , tracking, and scheduling software platforms, analytical instruments will have confirmed chemistries, liquid steel may have been treated by magnetic fields, or subjected to vacuum , solidified steel will have had numerous test to confirm surface and internal characteristics.</p>";
aValue["copy"][1]  += "<p>&ldquo;Nucor is leading the way with the technology of tomorrow in steel.&rdquo;</p>";

aValue["title"][2]  = "Committed to Teammates";
aValue["byline"][2] = "Joe Stratman, Executive Vice President";
aValue["copy"][2]   = "<p>Nucor is a special place. It is a family place. Our focus is not simply on the financial success of our company but also on the personal success of our teammates and their families. Over my 20 year career this has been reinforced hundreds of times with hundreds of examples, but none more telling then when our seasoned teammates come to us and ask, &ldquo;How does my son or daughter get a job with Nucor&rdquo;?  This is the greatest testimony a teammate can give us. We care so much about our child, that we want them to work here too!</p>";
aValue["copy"][2]  += "<p>We provide diverse opportunities for people with diverse skill sets. We do not show you a road map and instruct you on how far down the road to go, or when you should arrive at each stop along the way. No. The company has a simple mission statement. &ldquo;Our Goal is to Take Care of Our Customers&rdquo;. Our teammates are our customers as well. How we accomplish this is left up to men and women from all walks of life who are brought together in small teams to accomplish big goals. The more we accomplish working together, the greater and more exciting the next challenge.</p>";
aValue["copy"][2]  += "<p>Since the mid 1960's, Nucor has been changing the face of the steel industry. How you might ask? We have changed it technologically, being the first to commercially develop CSP for sheet production and Castrip. We have changed it organizationally. Every teammate is paid on a bonus system that allows us outstanding earnings potential including a company profit sharing plan that pays in 10% of our company's pre-tax profits to our teammates. In addition, we support continuing education so strongly that we do not stop at tuition reimbursement for our employees. We strive forward and provide grants for post secondary education to all children of all our employees. And we have changed it environmentally, reducing all wastes from our facilities through recycling, pioneered Continuous Emissions Monitoring in the industry, and by 2005 we had reduced greenhouse gasses by more than 240% of what the Kyoto Protocol called for to be done by 2012.</p>";
aValue["copy"][2]  += "<p>These are just a few of the many reasons you will find out about Nucor that leads people to ask, &ldquo;How does my son or daughter get a job with Nucor?&rdquo;</p>";

aValue["title"][3]  = "Environmental Stewards";
aValue["byline"][3] = "Steve Rowlan, Director of Environmental Affairs";
aValue["copy"][3]   = "<p>At Nucor it is our nature to be environmental stewards. As the largest recycler in the Americas, we are keenly aware of the need to conserve natural resources, keep our air and water clean, minimize or recycle our waste products, and most of all to leave the world a better place than when we started. To that end we recycle the steel in nearly 5 million cars a year, recycle another 15 million tons of scrap metal that would otherwise be rusting in scrap yards and do this with 25% of the energy and pollution it would take to make the steel from virgin sources.  We recycle nearly about 90% of the by-products and wastes that we generate and have pioneered the development of new processes that put recycled content and materials in products that others never thought possible. We take our environmental responsibility seriously, so seriously that we made it part of our lean business critical management structure.</p>";

aValue["title"][4]  = "Careers are Boundless";
aValue["byline"][4] = "Josh Wall, Human Resources Supervisor";
aValue["copy"][4]   = "<p>The great thing about Nucor is that you are in control of your future. You will not find a clearly defined career path, but you will find opportunities. Nucor is responsible for providing these opportunities, but it is your responsibility to take advantage of them. You can go wherever your capabilities and character take you.</p>";

aValue["title"][5]  = "Engineers become Leaders";
aValue["byline"][5] = "Doug Jellison, Vice President &amp; General Manager, Nucor-Yamato Steel Company";
aValue["copy"][5]   = "<p>Why Engineering? As a child I thought the best part of new toys was taking them apart to see how they worked or finding unintended uses for the toys. Studying engineering gave me a foundation to understand the science of how things worked and a disciplined process to change and improve ideas.</p>";
aValue["copy"][5]  += "<p>Why A Leader? Once I entered the business world it became apparent very quickly that technical issues were only part of the challenge. Every system or process I worked with to develop or improve had people as a key part of the system. Explaining how things worked and why it was important became a key to success for almost every project. Once again my engineering training gave me the understanding to share complex issues to help create focus to make change.</p>";
aValue["copy"][5]  += "<p>Why Nucor? There are many reasons for why Nucor; however the most relevant explanation for this setting is to share a story. When I was working in our Seattle Steel mill I had the opportunity to give a mill tour we a few engineers from Microsoft. At the end of the tour all the engineers could say was \"Wow! That is high tech!\" They went on to comment \"we use computers to push data round. You guys use computers to push equipment around and make things.\" At Nucor we have bright motivated people that spend every day working safely and driving to improve. We are early adopters of technology and in most cases we adapt technology to improve our processes in ways that the designers never dreamed of. Engineering makes it possible to lead people from dreams to world class products.</p>";

aValue["title"][6]  = "Pay For Performance";
aValue["byline"][6] = "Jim Frias, Chief Financial Officer, Treasurer and Executive Vice President";
aValue["copy"][6]   = "<p>The term Pay For Performance sounds interesting and politically correct, but what does it really mean? At Nucor it means that every member of our team has a chance to share in the financial success of the company via incentive compensation and this happens on at least three levels. Why do we place so much emphasis on incentive compensation? It aligns the interests of Nucor teammates with our customers and our shareholders. The more profits we generate, the more pay our teammates earn and the more capital we have to invest in our future creating more opportunities for teammates to expand their responsibilities. <a href=\"/careers/benefits/\">Click on this link</a> for a summary of our multi-tiered incentive compensation benefits.</p>";

aValue["title"][7]  = "Made in America";
aValue["byline"][7] = "Mike Parrish, Executive Vice President";
aValue["copy"][7]   = "<p>The term &ldquo;Made in America&rdquo; can mean different things to different people. For me- it's all about supporting values and issues that are important to you. When you buy a foreign product you are directly supporting the people, jobs, and values of that country. When you buy an American made product you are supporting the people, jobs, values, and ideals of North America.</p>";
aValue["copy"][7]  += "<p>At Nucor- made in America means that the steel and steel products we make are:</p>";
aValue["copy"][7]  += "<ol><li>Produced by an American company with American workers in a safe and efficient manner.</li>";
aValue["copy"][7]  += "<li>Produced consistently with best quality and care in the industry.</li>";
aValue["copy"][7]  += "<li>Produced in a manner that protects our environmental concerns and future.</li>";
aValue["copy"][7]  += "<li>Produced with the most efficient operations and lowest cost models.</li>";
aValue["copy"][7]  += "<li>Supported by an excellent marketing team, just- in- time deliveries, and expert service.</li>";
aValue["copy"][7]  += "<li>Produced by the best employees in the world - Nucor Teammates.</li></ol>";
aValue["copy"][7]  += "<p>Before you buy&mdash;think about it!</p>";

function showValue(nVal)
{
	$('photos').setStyle({'display':'none'});
	$('values').setStyle({'display':'block'});

	if ( nVal == 1 ) $('prev').setStyle({'display':'none'});
	else $('prev').setStyle({'display':'inline'});
	
	if ( nVal == 7 ) $('next').setStyle({'display':'none'});
	else $('next').setStyle({'display':'inline'});

	$('close').setStyle({'display':'block'});
	$('title').innerHTML = aValue["title"][nVal] ? aValue["title"][nVal] : "&nbsp;";
	$('byline').innerHTML = aValue["byline"][nVal] ? aValue["byline"][nVal] : "&nbsp;";
	$('copy').innerHTML = aValue["copy"][nVal] ? aValue["copy"][nVal] : "&nbsp;";
	$('lightbox').setStyle({'zIndex':'30'});
	new Effect.Appear('lightbox');
	nValue = nVal;
}

function nextValue()
{
	nValue++;
	
	$('next').blur();
	
	Element.setOpacity('title', 0);
	Element.setOpacity('byline', 0);
	Element.setOpacity('copy', 0);
	Element.setOpacity('value_nav', 0);
	new Effect.Appear('title');
	new Effect.Appear('byline');
	new Effect.Appear('copy');
	new Effect.Appear('value_nav');
	
	$('title').innerHTML = aValue["title"][nValue] ? aValue["title"][nValue] : "&nbsp;";
	$('byline').innerHTML = aValue["byline"][nValue] ? aValue["byline"][nValue] : "&nbsp;";
	$('copy').innerHTML = aValue["copy"][nValue] ? aValue["copy"][nValue] : "&nbsp;";
	
	if ( nValue == 7 )
	{
		$('next').setStyle({'display':'none'});
	}
	else
	{
		$('next').setStyle({'display':'inline'});
	}
	
	$('prev').setStyle({'display':'inline'});
}

function prevValue()
{
	nValue--;
	
	$('prev').blur();
	
	Element.setOpacity('title', 0);
	Element.setOpacity('byline', 0);
	Element.setOpacity('copy', 0);
	Element.setOpacity('value_nav', 0);
	new Effect.Appear('title');
	new Effect.Appear('byline');
	new Effect.Appear('copy');
	new Effect.Appear('value_nav');
	
	$('title').innerHTML = aValue["title"][nValue] ? aValue["title"][nValue] : "&nbsp;";
	$('byline').innerHTML = aValue["byline"][nValue] ? aValue["byline"][nValue] : "&nbsp;";
	$('copy').innerHTML = aValue["copy"][nValue] ? aValue["copy"][nValue] : "&nbsp;";
	
	if ( nValue == 1 )
	{
		$('prev').setStyle({'display':'none'});
	}
	else
	{
		$('prev').setStyle({'display':'inline'});
	}
	
	$('next').setStyle({'display':'inline'});
}

var nPhoto = 0;

function showPhotos()
{
	$('values').setStyle({'display':'none'});
	$('photos').setStyle({'display':'block'});

	if ( nPhoto == 1 ) Element.setOpacity('prevp', 50);
	else Element.setOpacity('prevp', 1);
	
	if ( nPhoto == 15 ) Element.setOpacity('nextp', 50);
	else Element.setOpacity('nextp', 1);

	$('close').setStyle({'display':'block'});
	$('lightbox').setStyle({'zIndex':'30'});
	new Effect.Appear('lightbox');
}

function switchPhoto(nPho)
{
	sPhotoIdGoing = "photo" + nPhoto;
	sPhotoIdComing = "photo" + nPho;
	sThumbIdGoing = "thumb" + nPhoto;
	sThumbIdComing = "thumb" + nPho;
	$(sThumbIdGoing).className = "thumbnail";
	$(sThumbIdComing).className = "thumbnail on";
	new Effect.Opacity(sPhotoIdGoing, { from: 1.0, to: 0, duration: 0.5 });
	new Effect.Opacity(sPhotoIdComing, { from: 0, to: 1.0, duration: 0.5 });
	Element.setOpacity(sThumbIdGoing, .5);
	Element.setOpacity(sThumbIdComing, 1);
	nPhoto = nPho;
	
	sPhoto = nPhoto < 9 ? "0" + ( nPhoto + 1 ) : "" + ( nPhoto + 1 );
	sPhotoTotal = nPhotoTotal < 10 ? "0" + nPhotoTotal : "" + nPhotoTotal;
	$('photo_num').innerHTML = sPhoto + " of " + sPhotoTotal;
}

function nextPhoto()
{
	nPho = nPhoto;
	nPho++;
	
	if ( nPho == 15 ) nPho = 0;
	
	switchPhoto(nPho);
}

function prevPhoto()
{
	nPho = nPhoto;
	nPho--;
	
	if ( nPho == -1 ) nPho = 14;
	
	switchPhoto(nPho);
}

var isLocked = false;

function showFoot(sId, shouldLock)
{
	//$(sId).style.display = "block";
	var nHeight = $(sId).style.height;
	//alert(nHeight);
	//Effect.SlideDown(sId, { duration: 3.0 });
	new Effect.SlideDown(sId);
	isLocked = shouldLock;
}

function hideFoot(sId)
{
	if ( !isLocked )
	{
		hHideFoot = setTimeout(function(){document.getElementById(sId).style.display = "none";}, 1000);
	}
}
//-->