/*
	beeaddons.js
	
	relies on jquery and jquery.newsTicker already being loaded
*/
$(document).ready(function() {
	
	// $("#topbanner").load("http://m.google.com");

	$("#pollframe").css("height","120px");
	$.preload( "/gfx/businessenergyexchange.gif" );

	if( $("#news").length > 0) {
		var options = {
	  		newsList: "#news",
	 		startDelay: 10,
	 		placeHolder1: "|"
		}
		$().newsTicker(options);
	}
	
	// $("#newsticker a").css("color","#333333");
	
	var polls = $(".pollpanel");
	if(polls.length > 0) {
		// polls[0].id = "pollframe"
		$("#polllink").bind("click", function(e) {
			$("#pollframe").css("display","block");
			$(".pollpanel").animate({height: "200px"},500);
		});
	}
	
});