Click the crab to go back Special Event
}); Y.use('nav-selecta', 'popup-login', 'photos-display', 'pagination-keyboard-shortcuts', 'grease', 'flickr', 'share-this-v3-menu', function(Y) { var nav_selecta = new Y.NavSelecta('#nav-selecta-field', {linkUsernameToPhotostream:1}); Y.popup_login.init(); var logo, logoLink, clickHandler, headTop, snowElement; logo = Y.one('#head-logo'); if (logo) { logoLink = logo.one('a'); } function snowClickHandler(e) { var startSnow = Y.one('#start-snow'); startSnow.set('innerHTML', '[x]'); startSnow.setStyle('left', (Y.one('#head-logo img').getXY()[0] + 168) + 'px'); startSnow.setStyle('top', '7px'); startSnow.setStyle('color', '#666'); try { startSnow.setStyle('cursor', 'pointer'); } catch(ee) { // old IE might barf here } startSnow.on('click', function(e) { startSnow.setStyle('display', 'none'); Y.christmasLights.destruct(); Y.one('#lights').setStyle('display', 'none'); Y.snowStorm.stop(); e.halt(); return false; }); headTop.setStyle('position', 'static'); Y.use('christmaslights', function(Y) { if (typeof Y.christmasLights !== 'undefined') { Y.christmasLights.init(); } }); Y.use('snowstorm', function(Y) { if (typeof Y.SnowStorm !== 'undefined') { Y.snowStorm = new Y.SnowStorm(); Y.snowStorm.start(); } }); e.halt(); clickHandler.detach(); return false; } if (logoLink && (!Y.UA.ie || (Y.UA.ie && Y.UA.ie > 7))) { try { headTop = Y.one('#head-top'); headTop.setStyle('position', 'relative'); snowElement = document.createElement('div'); snowElement.innerHTML = ''; snowElement = Y.one(headTop.appendChild(snowElement)); clickHandler = Y.all('#start-snow').on('click', snowClickHandler); } catch(ee) { } }