// shw_siteSettings.js (c)2009 SugarHill Works LLC - http://www.sugarhillworks.com

//// ********************************************************************************************************** //
//// ********************************************************************************************************** //
//// *********************************                                        ********************************* //
//// *********************************      DO NOT EDIT BELOW THIS LINE       ********************************* //
//// *********************************                                        ********************************* //
//// ********************************************************************************************************** //
//// ********************************************************************************************************** //
var d = document;
var isitIE = false;
var isitIE7 = false;
var isitIE6 = false;
if (window.attachEvent && !window.opera) { //object-detect IE5+, exclude opera
	isitIE = true;
	if(navigator.appVersion.match(/MSIE 7/)) { isitIE7 = true; }
	if(navigator.appVersion.match(/MSIE 6/)) { isitIE6 = true; }
}
if(isitIE == true){
	d.write("<meta HTTP-EQUIV=\"imagetoolbar\" content=\"no\">");
}

var isitFF2 = false;
var userAgent = navigator.userAgent.toLowerCase();
if (/firefox[\/\s](\d+\.\d+)/.test(userAgent)) {
	var ffversion = new Number(RegExp.$1);
	if (ffversion < 3){// && userAgent.indexOf('mac') != -1) {
	  isitFF2 = true;
	}
}
if (/firefox[\/\s](\d+\.\d+)/.test(userAgent)) {
	var ffversion = new Number(RegExp.$1);
	if ((ffversion < 3) && (userAgent.indexOf('mac') != -1)) {
	  isitFF2mac = true;
	}
}

// for IE6+ so we can use appendChild, etc...
if (!window.Node) {
	var Node = {
		ELEMENT_NODE: 1,
		ATTRIBUTE_NODE: 2,
		TEXT_NODE: 3,
		COMMENT_NODE: 8,
		DOCUMENT_NODE: 9,
		DOCUMENT_FRAGMENT_NODE: 11
	};
}


//function randOrd(){
//	return (Math.round(Math.random())-0.5);
//}

// so we can dynamically add event watchers...
var addEvent = function( obj, type, fn ) {
	if (obj.addEventListener) {
		obj.addEventListener(type, fn, false);
	} else if (obj.attachEvent) {
		obj.attachEvent('on' + type, function() { return fn.apply(obj, new Array(window.event)); });
	}
}; 
