// Detect if the browser is IE or not.
// If it is not IE, we assume that the browser is NS.
var IE = document.all?true:false

// If NS -- that is, !IE -- then set up for mouse capture
//if (!IE) document.captureEvents(Event.MOUSEMOVE)

getCategory = function(idPage, idCategory, limit) {
	var url='index.php';
	var param='id='+idPage+'&tx_igportfolio_pi1[category]='+idCategory+'&tx_igportfolio_pi1[limit]='+limit+'&tx_igportfolio_pi1[ajax]=1';
	document.getElementById("ig_portfolio_ajax_block").innerHTML = "<p class='chargement'><span></span></p>";
	var myUpdate = new Ajax.Updater('ig_portfolio_ajax_block', url, {method: 'get', parameters: param});
}


getProject = function(idPage, idCategory, idProject, limit) {
	var url='index.php';
	var param='id='+idPage+'&tx_igportfolio_pi1[category]='+idCategory+'&tx_igportfolio_pi1[project]='+idProject+'&tx_igportfolio_pi1[limit]='+limit+'&tx_igportfolio_pi1[ajax]=1';
	document.getElementById("ig_portfolio_ajax_block").innerHTML = "<p class='chargement'><span></span></p>";
	var myUpdate = new Ajax.Updater('ig_portfolio_ajax_block', url, {method: 'get', parameters: param});
}

