function pdf_open(url){
    /*
	$.ajax({
    	  type: 'GET',
    	  url: '/pdf.php?url='+url,
  		  success: function(msg){
    		
    	
	    	/*
	  			if(msg == 'envoie_true') {
		          $.ajax({
		           type: "GET",
		           url: '/static/vbc-foot/ajx.php?page=ok',
		           success: function(data) {
		                //$('#mod-soccer').html(data);
		                
		              }          
		          });
			  	}
			*/	
    	
    	
	/*	
         } 
    	});   
    	*/
      return false;
      
}


  function url_en_cour64(){
    url = document.location.href;
    url64 = $.base64Encode(url);
    return url64;
  }
  
  
  
function form_to_data(elem){

  var txt = '';
  
  elem.each(function(){ 
  
    if($(this).attr("name") != '') {

        
        if($(this).attr("type") == 'radio')
          valeur = $('input#'+$(this).attr("id")+'[@name='+$(this).attr("name")+']:checked').val();
        else
          valeur = $(this).val();
        
       if(valeur != undefined) { 
       
          if(txt != '')
            txt += '&';
          
          txt += $(this).attr("name") + '=' + valeur;
        
        }
    }
  })
  
  return txt;
   
}



function pub_shuffle(i){
	max = pub.length - 1;

	if(i > max)
		i = 0;
	
	if(i == undefined)
		i = 0;
		
	//$('#pub').css('display','none');
	//$('#cache_pub').css('display','block');
	//$('#cache_pub').html($('#pub #pub_content').html());

	/*
	$('#pub').css('margin-top','-'+$('#cache_pub').css('height'));
	$('#pub').css('height',$('#cache_pub').css('height'));
	*/
	
	$('#pub').animate({opacity: 0}).html(pub[i]).animate({opacity:1});
	/*
	$('#pub img').load(function () {
	
		$('#pub').fadeIn(3000);
		popp();

	} )
	*/
	popp();
	

	
	i = parseInt(i) + parseInt(1);
	
	
	setTimeout("pub_shuffle("+i+")",10000);
	
}


  