site = {
	globalVars:{},
	_baseUrl:'',
	baseUrl:function(){
		return this._baseUrl;
	},
	setBaseUrl:function(value){
		if(this._baseUrl == value) return;
		this._baseUrl = value;
	},
	util:{
		flattenObject:function(o, no){
			for(var n in o){
				no[n] = o[n];
				if(o[n] instanceof Object)
					return site.util.flattenObject(o[n], o);
			}
			return no;
		},
		stripslashes:function(str){
			return (str+'').replace(/\\(.?)/g, function (s, n1){
        		switch(n1){
           			case '\\':
                		return '\\';
            		case '0':
                		return '\u0000';
            		case '':
                		return '';
            		default:
                		return n1;
        		}
    		});
		}
	}
};

var addthis_config = {
	ui_hover_direction:-1,
	data_use_flash:false
}

jQuery(function($){
	// Allow for href targets and still validate as strict xhtml 1.0
	$('a[rel*=external]').each(function(){
		if(this.href) this.target = "_blank";
	});
	
	// Allow for disabling auto completion on inputs and still validate 
	// as strict xhtml 1.0
	$('.disable-auto-complete').attr('autocomplete', 'off');
	
	// Insures hyperlinks used for pure javascript don't kick the user
	// to the top of the page 
	$("a[href*='#']").click(function(){ return false; });
})

