var dialPos = ,err:,about:,etc:; dialPos['home'] = ; dialPos['err'] = ; dialPos['wrong'] = ; dialPos['about'] = ; dialPos['blood'] = ; dialPos['etc'] = ; var curPos = {}; window.addEvent('domready', function() { // window.scrollTo(0,0); /* FirebugUtils.x(); curPos = $('dimple').getStyles('top','left'); h1a = $$('h1 a'); h1a.addEvent("mouseenter", function() {$('dimple').setStyles(dialPos['home']);}); h1a.addEvent('mouseleave', function() {$('dimple').setStyles(curPos);}); nav1a = $$('a','nav1'); $each(nav1a, function(na) { na.addEvent('mouseenter', function(e) { l = this.getParent(); lid = l.id.substring(5); $('dimple').setStyles(dialPos[lid]); }.bindWithEvent(na)); na.addEvent('mouseleave', function() {$('dimple').setStyles(curPos);}); }); */ }); function setFrag(newFrag) { // console.log('f '+ newFrag); if (newFrag!='') {window.location.replace(baseURL+'#'+newFrag);} else {window.location.replace(baseURL);} } function getFrag(loc) { idx = loc.lastIndexOf('#'); fr = ''; if (idx > -1) { fr = loc.substring(idx+1); } return fr; } function initializeCookie() { Cookie.set('likes', 'cookies'); } var FirebugUtils={ consoleMethods:["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"], available:function() { return (window.console) ? (window.console.firebug) : false; }, x:function() { if(!this.available()) this.disable(); }, disable:function() { window.console = {}; $A(this.consoleMethods).each(function(method) { window.console[method] = function(){};}); } }