var applicationBaseUrl ="http://www.freecrm.com/"

function ButtonPressed(menuItem){

	switch(menuItem){
	
		case "calendar":			
			var url = "/static/overview/calendar.html";
		break;
		
		case "company":			
			var url = "/static/overview/company.html";
		break;
		
		case "contact":			
			var url = "/static/overview/contact-overview.html";
		break;
		
		case "task":			
			var url = "/static/overview/task.html";
		break;
		
		case "deal":			
			var url = "/static/overview/deal.html";
		break;
		
		case "case":			
			var url = "/static/overview/case.html";
		break;
		
		case "call":			
			var url = "/static/overview/call.html";
		break;
		
		case "email":			
			var url = "/static/overview/email.html";
		break;
		
		case "doc":			
			var url = "/static/overview/doc.html";
		break;
	
		case "form":			
			var url = "/static/overview/forms.html";
		break;
	
		case "report":			
			var url = "/static/overview/report.html";
		break;
	
		default:
			alert("button pressed " + menuItem);
		
	}

	new Ajax(url, {
			method: 'get',
			update: $('dynamic_div'),
			evalScripts:true
		}).request();
	
}

function GoToQuickTour(){

	var link = "quick-tour.html?keepThis=true&TB_iframe=true&height=707&width=1368";
	TB_show("Quick tour",link,false);
	



}

/*
window.addEvent('domready', function(){
	
	var list = $$('#idList li');
	list.each(function(element) {
		
		var fx = new Fx.Styles(element, {duration:200, wait:false});
		
				
			var OriginalColor = String(element.style.background.rgbToHex(true));
			 		
			var Colors = OriginalColor.split(",");				
			var	bgcolor =  [Number(parseInt(Colors[0],16)) + 25,Number(parseInt(Colors[1],16)) + 25,Number(parseInt(Colors[2],16)) + 25].rgbToHex();									
			var	OrigColor = [Number(parseInt(Colors[0],16)),Number(parseInt(Colors[1],16)),Number(parseInt(Colors[2],16))].rgbToHex();							
			
		
		
		element.addEvent('mouseenter', function(){
			fx.start({
				'background-color': '#666',
				'margin-right':5
			});
		});
		
		element.addEvent('mouseleave', function(){
			fx.start({
				'background-color': '#666',//OrigColor,
				'margin-right':0 
			});
		});
	});

	$('opt1').addEvent('click', function(e) {
		e = new Event(e).stop();	 
			
			var url = "calendar.html";		
	
		new Ajax(url, {
			method: 'get',
			update: $('dynamic_div')
		}).request();
	});

	$('opt2').addEvent('click', function(e) {
		e = new Event(e).stop();	 
			
		var url = "index.html";		
		
		
		new Ajax(url, {
			method: 'get',
			update: $('dynamic_div')
		}).request();
	});	
	
	$('opt3').addEvent('click', function(e) {
		e = new Event(e).stop();	 
			
		var url = "http://www.freecrm.com/index.html";		
		
	
		new Ajax(url, {
			method: 'get',
			update: $('dynamic_div')
		}).request();
	});	
});
*/
