
// popup window function
function winBRopen(theURL, Name, popW, popH, scroll) { // V 1.0
	var winleft = (screen.width - popW) / 2;
	var winUp = (screen.height - popH) / 2;
	winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll+',resizable=no'
	Win = window.open(theURL, Name, winProp)
	if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }

}




// Courtesy of SimplytheBest.net (http://simplythebest.net/info/dhtml_scripts.html)
//Modified by AJPalleschi 12.30.04

function create() {
        this.src = ''
}

words = new Array()
for(var i=1; i<=5; i++) { words[i] = new create() }

images = new Array()
for(var i=1; i<=5; i++) { images[i] = new create() }

words[1].src = '<a href="proyectos_lanier.htm"><strong>Lanier Cold Storage</strong><br>Gainesville, Georgia</a>'
words[2].src = '<a href="proyectos_sanderson.htm"><strong>Sanderson Farms</strong><br>McComb, Mississippi</a>'
words[3].src = '<a href="proyectos_neworleans.htm"><strong>Port of New Orleans</strong><br>New Orleans, Louisiana</a>'
words[4].src = '<a href="proyectos_coors.htm"><strong>Coors Brewing Company</strong><br>Shenandoah Valley, VA</a>'
words[5].src = '<a href="proyectos_publix.htm"><strong>Publix Super Market</strong><br>Lakeland, FL</a>'

images[1].src = '<a href="proyectos_lanier.htm"><img src="../images/photos/featured-lanier.jpg" class="bordered"></a>'
images[2].src = '<a href="proyectos_sanderson.htm"><img src="../images/photos/featured_sanderson.jpg" border="0"></a>'
images[3].src = '<a href="proyectos_neworleans.htm"><img src="../images/photos/featured-port-of-no.jpg" class="bordered"></a>'
images[4].src = '<a href="proyectos_coors.htm"><img src="../images/photos/featured-coors.jpg" class="bordered"></a>'
images[5].src = '<a href="proyectos_publix.htm"><img src="../images/photos/featured-publix.jpg" class="bordered"></a>'

var n = Math.random() + ''
n = parseInt(n.charAt(5))
if(n >5) {
        n = n - 5
}
else if(n==0) {
        n = n + 5
}
n += ""

var text = words[n]
var image = images[n]
var feature = ""

feature += '<tr><td colspan=2>' 
feature += image.src
feature += '</td></tr>'
feature += '<tr>'
feature += '<td valign=top><br><font color="#003399"><strong>Proyecto Principal:</strong></font></td>'
feature += '<td valign=top><br>'
feature += text.src
feature += '</td></tr>'

/*

				<tr><td valign="top" colspan="2"><a href="proyectos_columbus.htm"><img src="images/main/featured_columbus.jpg" border="0"></a></td></tr>
				<tr>
					<td valign="top" align="right"><br><strong>FEATURED PROJECT:</strong></td>
					<td valign="top"><br></td>
				</tr>
*/


//print this page function
function printPage() {
  if (window.print)
    window.print()
  else
    alert("Sorry, your browser doesn't support this feature. Please use the Print option from your browser's Main Menu" );
}




