function actionAdmin(url, id) {
	document.location = url + '?ID=' + id;
}

$(document).ready( function() {
	// apply to all png images 
	$('img[@src$=.png]').ifixpng(); 
	
	$("#DATE").datepicker();

	$('a.lightbox').lightbox();

	$('#menus img').each( function() {
		var src = $(this).attr('src');

		if (src.match('_off.png') != null) {
			$(this).mouseover( function() {
				$(this).attr('src', src.replace('_off.png', '_on.png'));
			});

			$(this).click( function() {
				$(this).unbind();
			});

			$(this).mouseout( function() {
				$(this).attr('src', src);
			});
		}
	});
	
	$('#podzob').click (
		function() {
			$('#champpodzob').val ('antispam');	
		}
	);
});

$(window).load (function (){
	$('.imgZics').css ('display','block');
	$('.imgZics').cycle('fade');		
});


function verifurl()  {
	if($('#SITE').val()!='' && $('#SITE').val().search(/^([http]+[/:/]+[\///])+(.+)?[/\./]+[a-z]{2,4}$/) == -1)
	{
        alert ('veuillez entrer une adresse URL convenable (http://etc...)'); 
        $('#SITE').focus();
        return false;
       }
else {return true;}
}
