
var global = {
	// all the global variables here
	jQueryObjects: new Hashtable(),
	strings: {},
	queryString: {},
	newsNumber: 0,
	newsForPage: 4,
	namePage: "general",

	//lang:'',
	iSawMenu: false
}



/**
* Extends the <code>global</code> object and does some starting things.
* 
* @param varsFromPage, an object that will extend the <code>global</code> one.
* 
* @see http://api.jquery.com/jQuery.extend/
*/
function init (varsFromPage) {
	
	$.extend(global, varsFromPage);
	
	addBasicUtils();
	
	storedjQuery(window).bind('hashchange', function() {
		var hash = getHash();
	} );
	
	global.queryString = splitQueryString();
	
	// write here your project code
	setDefaultRolloverSwap();	
	
	//pagina iniziale
	if(global.namePage== "news" ||  global.namePage== "outlet") {
		createNews(global.newsPage);
	}
	
	if(global.namePage== "collezioniEstetiche") {
		$('#wrapColors').show();		
		showDetail();
		$('#colors-loading').hide();
		
		
		$(document).mousemove(function(e) {		
			onDocumentMouseMove(e.pageX, e.pageY);
			
		});
		
		
	}
}
