var its = new its();
var styleSheet;

if ((top.location.href.indexOf("ddasolutions.com") > 0) || (top.location.href.indexOf("file:") >= 0))
{	// use testing domain here
	baseURL = 'http://clients.ddasolutions.com/cappe/website/';
}
else
{	// use live domain here
	// that way you can ftp anytime without having to update the file
	//be sure to use the correct protocol, application like the employment form use SSL
	//window.location.protocol looks like 'http:'
	baseURL = window.location.protocol + '//www.cappe.org/';
}

if (its.mac) {
	if (its.ie) {
		styleSheet = 'default_nn.css';
    }
	else {
		styleSheet = 'default_nn.css';
    }
}
else {
    if (its.ie) {
		styleSheet = 'default.css'; //most used
    }
	else {
		styleSheet = 'default_nn.css';
    }
}
//document.write('<base href="' + baseURL + '">');
document.write('<link href="' + baseURL + 'favicon.ico" rel="SHORTCUT ICON">');
document.write('<link href="' + baseURL + styleSheet + '" rel="styleSheet" type="text/css" media="screen">');
document.write('<link href="' + baseURL + styleSheet + '" rel="styleSheet" type="text/css" media="print">');

function its() {
	var n = navigator;
	// string comparisons are much easier if we lowercase everything now.
	// to make indexOf() tests more compact/readable, we prepend a space 
	// to the userAgent string (to get around '-1' indexOf() comparison)
	var ua = ' ' + n.userAgent.toLowerCase();

	this.nn = ua.indexOf('mozilla') > 0;
	// 'compatible' versions of mozilla aren't navigator
	if(ua.indexOf('compatible') > 0) {
		this.nn = false;
	}
	this.ie = ua.indexOf('msie') > 0;
	this.mac = ua.indexOf('mac') > 0;
	this.win = ua.indexOf('win') > 0;

	return this;
}


