// JavaScript Document

$(function(){
	if ($('#tweets').length) {
		new TWTR.Widget({id: 'tweets',version: 2,type: 'profile',rpp: 20,interval: 6000,width: 'auto',height: 400,
						theme: {
							shell:{background: '#27669B',color: '#ffffff'},
							tweets:{background: '#ffffff',color: '#000000',links: '#27669b'}
					  			},
						features: {scrollbar: true,loop: false,live: true,hashtags: true,timestamp: true,avatars: false,behavior: 'all'}
					}).render().setUser('MiJobsEnergy').start();
		
	};
	if ($('#facebookSimpleTab').length) { 
		FB.init("4cdb821df2c0741721f683c820581a78");
	};
	
	if ($('#Carousel').length){
		$('#Carousel').infiniteCarousel({
				displayThumbnailBackground : 0
		});
	};
	
	if ($('#Register').length){
		$('input').keydown(function(e){
			if (e.keyCode == 13) {
				return false;
			}
		});		
	};
	
});

