/* Path to the local proxy */
PROXY = "../feedget.php?proxy=";

var config = {
	widgetversion:		'1.0',		//Widget version
   	activateall: 		false,		//All plateforms activation
   	google: 			true,		//iGoogle activation
   	netvibes: 			true,		//Netvibes activation
	firefoxsidebar: 	true,		//Firefox activation
	blog: 				true,		//Blog activation
	facebook: 			true,		//Facebook activation
	vista:				true,		//Vista activation
	iphone:				true,		//Iphone activation
	noBookmark:			true,		//Bookmarks' button disabled	
	loader: 			"<div class='loader'><img src='media/img/ajax-loader.gif' /></div>",  	//HTML code of the loader
	templatespath: 		"templates/",							//Templates directory
	path: 				window.location.protocol+'//'+window.location.hostname+window.location.pathname.substr(0,window.location.pathname.indexOf('/',1))+'/',		//widget path
	facebookUrl:		'http://apps.facebook.com/turfoo-fr',		//Url of Facebook Application
	igoogleUrl:			'http://www.google.com/ig/adde?source=atgs&moduleurl=http://widget.turfoo.fr/turfoo/google/turfoo-courses-chevaux.xml'	//Url of XML file for Google
}

// Additional class component needed
config.jsClass = [
   'fuic.carroussel'
   ,'fuic.slideshow'
];

// Container definition
config.container = {
	// default view
	'default' : {
		/* Content path */
		'path':config.path+"templates/content.html" 
		
		/* Callback called when the widget is ready */
		,'cb': function(){
			turfooView.widgetLoaded();
		}
	}
	
	// Docked vista view
	,'vista' : {
		/* Content path */
		'path':config.path+"templates/vistacontent.html"
		
		/* Callback called when the widget is ready */
		,'cb': function(){
			turfooVistaview.widgetLoaded();
		}
	}
}

// Widget initialisation with feedget
CWE.initWidget(config);
