/* 
 * This software and source code is private property protected
 * under copyright laws. Any form of using this software or
 * source code for commercial or non-commercial purposes is
 * strictly forbidden. If you don't own written permission to
 * view or use this source code from author of the software, you
 * are to close and delete this file immediately.
 * 
 * Any non-permitted use of this software or source code will be
 * punished by law.
 * 
 * Copyright (2011) Michal Sukupčák (michal.sukupcak@gmail.com)
 */

$(document).ready(function() {
    dropDown();
});

function dropDown() {
    var id = '.dropDown';
    $(id).hover(
	function() {
	    $(id).find('ul').stop(true,true).hide();
	    $(this).find('ul').slideDown('fast').show();
	},
	function() {
	    if ($(this).find('ul:visible')) {
		$(this).find('ul').delay(500);
		$(this).find('ul').slideUp('fast');
	    }
	}
    );
}


