/**
 * SwfLivefeed is the swfObject for the livefeed of Fsv
 *
 * Changelog
 * ---------
 *
 * -
 *
 * @since Wed Dec 30 2009
 * @author Vanja de Keizer (vanja@connectholland.nl)
 **/
var SwfLivefeed = Class.create(SWFObject, {
	
	/**
	 * initialize
	 *
	 * Initialize a new SwfResize object
	 *
	 * @since Wed Dec 30 2009
	 * @param string swfname
	 * @param string swffile
	 * @param integer width
	 * @param integer height
	 * @param string bgcolor
	 * @return void
	 **/
	initialize: function($super, swfname, swffile, width, height, bgcolor) {
		this.swfname = swfname;
		$super(swfname, swffile, width, height, bgcolor);
	},
	
	/**
	 * scaleBanner
	 *
	 * Sets the height of the banner
	 *
	 * @since Wed Dec 30 2009
	 * @param integer height
	 * @return void
	 **/
	scaleBanner: function(height) {
		var objNode = document.getElementById(this.swfname);
		objNode.style.height = height;
		objNode.attributes.height.nodeValue = height;
	},

	/**
	 * showLivefeed
	 *
	 * Shows the popup for the Livefeed
	 *
	 * @since Wed Dec 30 2009
	 * @return void
	 **/
	showLivefeed: function(date) {
		var livefeed = new SWFObject("livefeed", "/var/flash/photofeed20100331.swf?date=" + date, "838", "486", "transparent");
		swfloader.loadSWFObject("livefeed_container", livefeed);
			
		if ($("liveFlashfeed-fade") ) {
			$("liveFlashfeed-fade").addClassName("show").removeClassName("hide");
		}
		if ($("liveFlashfeed-form") ) {
			$("liveFlashfeed-form").addClassName("show").removeClassName("hide");
		}
	}
});


