function getConvocatoria(cid)
{
var $j = jQuery.noConflict();    
$j.get('http://www.sgae.cat/wp-content/themes/twentyten/ajax.php', { op: "getConvocatoria", cid : cid}, function(data) {
$j("#content").html(' ');
$j("#content").html(data);
setAnalytics('convocatorias', cid);
});
}
function getCurso(cid)
{
var $r = jQuery.noConflict();
$r.get('http://www.sgae.cat/wp-content/themes/twentyten/ajax.php', { op: "getCurso", cid : cid}, function(data) {
$r("#content").html(' ');
$r("#content").html(data);
setAnalytics('cursos', cid);
});          
 
}
function getLicencia(cid)
{
var $j = jQuery.noConflict();    
$j.get('http://www.sgae.cat/wp-content/themes/twentyten/ajax.php', { op: "getLicencia", cid : cid}, function(data) {
$j("#socios-container").html(' ');
$j("#socios-container").html(data);
$j('.faqhover').click(function(){
var currFaq = '#' + $j(this).attr('id') + 'r';
$j(currFaq).toggle();
});
setAnalytics('clientes', cid);
});
}
function getCursos(sede, tipo)
{
var $j = jQuery.noConflict();    
$j.get('http://www.sgae.cat/wp-content/themes/twentyten/ajax.php', { op: "getCursos", sede : sede, tipo : tipo}, function(data) {
$j("#content").html(' ');
$j("#content").html(data);
});
}

function setAnalytics(tipopod, idpod)
{
$j.get('http://www.sgae.cat/wp-content/themes/twentyten/ajax.php', { op: "getAnalytics", tipopod : tipopod, idpod : idpod}, function(data) {
pageTracker._trackPageview(data);
});  
}
