/*function log(msg) {
	window.console.log(msg);
}*/
// $(document).ready(function(){
// 	/* Set real weddings and the idea & advice/photo gallery group to equal heights */
// 	
// 	var c = document.getElementById('ideas');
// 	var fw = $('div#real_wedding',c);
// 	var iapg = $('div.group',c);
// 	var fwHeight = fw.height();
// 	var iapgHeight = iapg.height();
// 	
// 	if (fwHeight > iapgHeight) {
// 		iapg.height(fwHeight);
// 	}
// 	else if(iapgHeight > fwHeight) {
// 		fw.height(iapgHeight);
// 	}
// 	
// 	if (ie == 6) {
// 		$('img#top_diamond,img#bottom_diamond').attr('src','/images/gui/homepage/diamond.gif')
// 	}
// });


function Elegala() {

	return;

}
// Elegala


Elegala.prototype = new Object;

Elegala.prototype.parent = Elegala.prototype.constructor.prototype;

Elegala.prototype.constructor = Elegala;


/**
 * Initialize some stuff
 *
 * @return void
 */
 
Elegala.prototype.init = function () {

	return;

};
// init


/// @property Default twitter feed config params

Elegala.prototype.twitter_config = {
	
	'username' : "Elegala",

	'join_text' : "auto",

	'avatar_size' : 32,

	'count' : 1,

	'auto_join_text_default' : "we said,", 

	'auto_join_text_ed' : "we",

	'auto_join_text_ing' : "we were",

	'auto_join_text_reply' : "we replied to",

	'auto_join_text_url' : "we were checking out",

	'loading_text' : "loading tweets...",
	
	'template' : '{tweet_text}<div class="rel-time">{tweet_relative_time}</div>'

};


/**
 * Hook up twitter feed using jQuery plugin from http://tweet.seaofclouds.com/
 *
 * @param obj config Config params
 *
 * @return void
 */

Elegala.prototype.twitter_init = function ( config ) {

	$( "#twitter-feed" ).addClass( 'enabled' );

	$( "#foot" ).addClass( "section less" );
			
	var merged_config = this.twitter_config;

	merged_config = $.extend( true, merged_config, config );

	$( "#twitter-feed" ).tweet( merged_config );			


	return;

};
// twitter_init


elegala = new Elegala;

