/**
 * @script home.js
 * @author Jorge Escobar
 *
 */

//console log IE fix
if(!window.console||!console.firebug){var a=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"];window.console={};for(var i=0;i<a.length;++i)window.console[a[i]]=function(){}}

if(typeof Commuve == "undefined") var Commuve = {};

Commuve.home = new function() {

	var self = this;
	    
	this.init = function(){
	}

	this.go_to_country = function(country_object){
		console.log(country_object.region);
		country_code = country_object.region;
		window.location = '/community/' + country_code.toLowerCase();
	}

	this.on_facebook_login = function(){
		window.location = '/user/register?source=facebook';
	}

    }

$(document).ready(Commuve.home.init);
