// External Links

function email(user,domain) {
  locationstring = "mailto:" + user + "@" + domain;
  window.location = locationstring; }


function externalLinks() {
  if (!document.getElementsByTagName) return;
  var anchors = document.getElementsByTagName("a");
  for (var i=0; i<anchors.length; i++) {
    var anchor = anchors[i];
    if (anchor.getAttribute("href") &&
        anchor.getAttribute("rel") == "external")
      anchor.target = "_blank";
    }
}
window.onload = externalLinks;

// sIFR

var univscond = { src: '/incl/univscond.swf' };

sIFR.activate(univscond);

sIFR.replace(univscond, {
  selector: '#leftcolumn #maintitle h1', 
	css: [
		'.sIFR-root { margin: 0; padding: 0; color: #539225; font-weight: bold; z-index: 1; }' ],
	wmode: 'transparent'
});

sIFR.replace(univscond, {
  selector: '#leftcolumn h1', 
	css: [
		'.sIFR-root { margin: 0; padding: 0; color: #415065; letter-spacing: -1; z-index: 1; text-transform: uppercase;}' ],
	wmode: 'transparent'
});

sIFR.replace(univscond, {
  selector: '#leftcolumn h2', 
	css: [
		'.sIFR-root { margin: 0; padding: 0; color: #539225; z-index: 1;}' ],
	wmode: 'transparent'
});

sIFR.replace(univscond, {
  selector: '#sidebar h2', 
	css: [
		'.sIFR-root { margin: 0; padding: 0; color: #636363; z-index: 1; text-transform: uppercase;}' ],
	wmode: 'transparent'
});


// Image Gallery by Jeremy Keith
// http://adactio.com

function showPic (whichpic) { 
	if (document.getElementByClass) { 
		document.getElementByClass('imgbox').src = whichpic.href; 
		if (whichpic.title) { 
			document.getElementByClass('desc').childNodes[0].nodeValue = whichpic.title; 
		} else { 
			document.getElementByClass('desc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue; 
		} 
		return false; 
	} else { 
		return true; 
	} 
}