$(function() {

	$(".tweet").tweet({
        join_text: null,
        avatar_size: null,
        count: 6,
        loading_text: "loading tweets...",
        username: "webegy"
    });

 	$("#map").gMap({	
 		markers: [{
			address: "460 Sainte-Catherine St W, Montreal, QC H3B 1A7, Canada"
      	}],
  		zoom: 13,
  		maptype: G_PHYSICAL_MAP
  	});
		
	// initialize scrollable with mousewheel support
	var horizontal = $("#main").scrollable({ 
		vertical: false,
		mousewheel: true,
		keyboard: 'static',
		easing: 'swing',
		speed: 400
	}).navigator({
 
		// select the navigator
		navi: "#menu",
 
		// select A tags inside the navigator to work as items (not direct children)
		naviItem: 'a',
 
		// assign "current" class name for the active A tag inside navigator
		activeClass: 'active',
 
		// make browser's back button work
		history: true
 
	}).navigator({
 
		// select the navigator
		navi: "#pages",
 
		// select A tags inside the navigator to work as items (not direct children)
		naviItem: '.page',
 
		// assign "current" class name for the active A tag inside navigator
		activeClass: 'active',
 
		// make browser's back button work
		history: true
 
	});
		
	$(".page-right").scrollable({ 
		vertical: true,
		mousewheel: true,
		keyboard: 'static',
		easing: 'swing',
		speed: 400,
		circular: true
	}).navigator({
 
		// select the navigator
		navi: ".page-left",
 
		// select A tags inside the navigator to work as items (not direct children)
		naviItem: 'a',
 
		// assign "current" class name for the active A tag inside navigator
		activeClass: 'active',
 
		// make browser's back button work
		history: true
 
	});
	
});
