/**
* Delay plugin inspired by learningjquery.com/2007/01/effect-delay-trick
* @author : Jp Siffert
* @param : delay interval, if not given default to 1000ms
* @return : jquery chain object

This way you can call it like this

$('#element').delay().effect('pulsate');

**/

$.fn.delay = function(delay){
if(typeof delay==="undefined") delay = 1000;
return this.animate({"void":0}, delay);
}

$(function() { $('a:has(img)').addClass('image'); }); // get rid of links under images


$(document).ready(function() { 

	$('img[hover]').hover(function() {  // image hover
        var currentImg = $(this).attr('src');
        $(this).attr('src', $(this).attr('hover'));
        $(this).attr('hover', currentImg);
    }, function() {
        var currentImg = $(this).attr('src');
        $(this).attr('src', $(this).attr('hover'));
        $(this).attr('hover', currentImg);
    });



	// Collapse everything but the first menu:
	$("#VerColMenu > li > a").find("+ ul").slideUp(1);
	// Expand or collapse:
	$("#VerColMenu > li > a").click(function() {
		$(this).find("+ ul").slideToggle("medium");
	});

  $('.rounded').corners("10px 10px");

	
});