// Redirects to other engineering sites

		var from = document.URL;
		if ( from.match(/http:\/\/www.che.pitt.edu/) != null )
		{
				parent.location =
"http://www.engr.pitt.edu/chemical/index.html"
		}		
		else if ( from.match(/http:\/\/www.ie.pitt.edu/) != null )
		{
				parent.location =
"http://www.engr.pitt.edu/industrial"
		}
		else if ( from.match(/http:\/\/che.pitt.edu/) != null )
		{
				parent.location =
"http://www.engr.pitt.edu/chemical/index.html"
		}
		else if ( from.match(/http:\/\/www.me.pitt.edu/) != null
)
		{
				parent.location =
"http://www.engr.pitt.edu/mechanical/index.html"
		}
		else if ( from.match(/http:\/\/www.ee.pitt.edu/) != null
)
		{
				parent.location =
"http://www.engr.pitt.edu/electrical/index.html"
		}
		else if ( from.match(/http:\/\/www.mac.pitt.edu/) !=
null )
		{
				parent.location =
"http://www.engr.pitt.edu/mac"
		}
		else if ( from.match(/http:\/\/crl.ee.pitt.edu/) !=
null )
		{
				parent.location =
"http://www.engr.pitt.edu/electrical/faculty-staff/lee"
		}



// Random Image and Text

var j;
j=parseInt(Math.random()*3);
j=(isNaN(j))?0:j;

var featureName, image1, image2, image3, featureImage1, featureImage2, featureImage3, featureImages;

if (j == 0) {
	featureName = "foulke";
	image1 = "jpg";
	
}
else if (j == 1) {
	featureName = "gleeson";
	image1 = "jpg";
	
}
else if (j == 2) {
	featureName = "lalley";
	image1 = "jpg";
	
}


featureImage1 = "<a href='news/featured/" + featureName + ".html'><img src='images/featured-" + featureName + "." + image1 + "' alt='' border='0'></a>";


featureImages = featureImage1;