preloadImages = function(imglist) {
	var imgs = new Array();
	var count;
	if (document.images) {
		for (count=0; count<imglist.length; count++) {
			imgs[count]=new Image(); imgs[count].src=imglist[count];
		}
	}
}

sfHover = function(idList, tagList) {
	var count;
	for (count=0; count<idList.length; count++) {
		var sfEls = document.getElementById(idList[count]).getElementsByTagName(tagList[count]);
		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'), '');
			}
		}
	}	
}

var console;
var debug = true;

if(typeof(console)!='undefined' && debug==true) {
	var console = console;
} else {
	console = function(){};
	console.firebug = false;
	console.log = function(){};
	console.logMessage = function(){};
	console.logAssert = function(){};
	console.debug = function(){};
	console.info = function(){};
	console.warn = function(){};
	console.error = function(){};
	console.fail = function(){};
	console.assert = function(){};
	console.assertEquals = function(){};
	console.assertNotEquals = function(){};
	console.assertGreater = function(){};
	console.assertNotGreater = function(){};
	console.assertLess = function(){};
	console.assertNotLess = function(){};
	console.assertContains = function(){};
	console.assertNotContains = function(){};
	console.assertTrue = function(){};
	console.assertFalse = function(){};
	console.assertNull = function(){};
	console.assertNotNull = function(){};
	console.assertUndefined = function(){};
	console.assertNotUndefined = function(){};
	console.assertInstanceOf = function(){};
	console.assertNotInstanceOf = function(){};
	console.assertTypeOf = function(){};
	console.assertNotTypeOf = function(){};
	console.group = function(){};
	console.groupEnd = function(){};
	console.time = function(){};
	console.timeEnd = function(){};
	console.count = function(){};
	console.trace = function(){};
}