var addthis_pub = "";

window.addEvent("domready", function(){
	
	new SmoothScroll({"links": $$(".scroll")});
	//new AlphaPng();
	new Lightbox();

	$$(".volatile").each(function(el){
		$(el).addEvent("focus", function(){
			if(this.getValue() == this.getProperty("title")) {
				this.value = "";
			}
		});
	});
	
	$$("a[rel*='external']").each(function(a){ 
		$(a).setProperty("target", "_blank");
	});
	
	$$("#ticker").each(function(el){ new Ticker(el, {"interval": 4000}) });

	// Configure all socialize links
	$$(".socialize").addEvent("click", function(e){
		new Event(e).stop();
		addthis_url = location.href;
		addthis_title = document.title;
		addthis_click(this);
	});

	var toggler = $$(".locations li h2");
	
	toggler.addEvent("click", function(e){
		new Event(e).stop();
	});

	new Accordion(toggler, $$(".locations li .bd"), { "alwaysHide": true, "show": -1, opacity: 0 });
	
});


