if (self != top) top.location.replace(self.location);

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-15887645-1']);
_gaq.push(['_trackPageview']);

(function() {
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

function openPopup(url, width, height, resizable, toolbar, menubar) {
	var args = new Array();
	if (width){
		width = Math.min(width, screen.availWidth);
		args.push("width=" + width);
		args.push("left=" + (screen.width - width)/2);
	}
	if (height){
		height = Math.min(height, screen.availHeight);
		args.push("height=" + height);
		args.push("top=" + (screen.height - height)/2);
	}
	if (resizable){args.push("resizable=yes,scrollbars=yes");}
	if (toolbar){args.push("toolbar=yes");}
	if (menubar){args.push("menubar=yes");}
	window.status=args.join();
	window.open(url, '', args.join());
	return false;
}

function generate_address(suffix, hostname, username) {
	var atsign = "&#64;";
	var addr = username + atsign + hostname + '.' + suffix;
	document.write( 
	"<" + "a" + " " + "href=" + "mail" + "to:" + addr + ">" +
	addr +
	"<\/a>");
}

var slides = '/flash/slides.xml';

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


