$(document).ready( function() {
    $("#selectedDomain").multiSelect();
});
$(document).ready( function() {
	jQuery.post('latestProject.action',{state:'start'}, function(data) {		
		$("#latestProject").html(data);  
	});
});

$(document).ready( function() {
	jQuery.post('popularProject.action',{state:'start'}, function(data) {		
		$("#popularProject").html(data);  
	});
});

function nextpopularProject(){	
	$('#searchLoadingPopularProject').show();
	jQuery.post('popularProject.action',{}, function(data) {
		$('#searchLoadingPopularProject').hide();
		$("#popularProject").html(data);  
	});			
};

function previouspopularProject(){
	$('#searchLoadingPopularProject').show();
	jQuery.post('prevpopularProject.action',{}, function(data) {	
		$('#searchLoadingPopularProject').hide();
		$("#popularProject").html(data);  
	});		
};


function nextlatestProject(){	
	$('#searchLoadingLatestProject').show();
	jQuery.post('latestProject.action',{}, function(data) {	
		$('#searchLoadingLatestProject').hide();
		$("#latestProject").html(data);  
	});			
};

function previouslatestProject(){	
	$('#searchLoadingLatestProject').show();
	jQuery.post('latestprevProject.action',{}, function(data) {
		$('#searchLoadingLatestProject').hide();
		$("#latestProject").html(data);  
	});		
};

function getNextMonth(){
	jQuery.get('getMonth.action',{month:'next'}, function(data) {
		$("#calenderContainer").html(data);    
    });
};

function getPreMonth(){
	jQuery.get('getMonth.action',{}, function(data) {
		$("#calenderContainer").html(data);    
    });
}
function addStyle(id){
	var image='';
	if(id=='entrepreneurImage')
		image = "images/entrepreneur_hover.gif";
	if(id=='investorImage')
		image = "images/investor_hover.gif";
	if(id=='expertImage')
		image = "images/expertise_hover.jpg";
	if(id=='memberImage')
		image = "images/member_hover.gif";
	$("#"+id).attr("src",image);
}
function removeStyle(id){
	var image='';
	if(id=='entrepreneurImage')
		image = "images/entrepreneur.gif";
	if(id=='investorImage')
		image = "images/new_invest.gif";
	if(id=='expertImage')
		image = "images/expertise.jpg";
	if(id=='memberImage')
		image = "images/member.gif";
	$("#"+id).attr("src",image);
}


