/**
 * @author Marco Canete Jimenez <marco.canete-jimenez@unister-gmbh.de>
 * @version $Id: login.js 3604 2010-06-02 11:17:23Z beate_seifert $
 */

/**
* dropout login-list
*/

function loginMouseOut(){
    $('#loginBtn, #accountBtn').css(
    	{backgroundColor: "transparent"});
    $('.login').hide(); //fades out the login box
    
}		

var timeout;	

$(document).ready(function(){
	
	$('.login').hide();	

    $('ul#loginWrap li, .login').mouseover(function(){
	    if (timeout) 
			window.clearInterval(timeout);
		
		$('#loginBtn, #accountBtn').css(
			{backgroundColor: "#fff"});	
		$('.login').show(); //fades in the login box	    	
    });
    
	$('ul#loginWrap li, .login').mouseout(function() {
		if (timeout) 
			window.clearInterval(timeout);
		timeout = window.setTimeout("loginMouseOut()", 1000);
	});					
	
}); 



//stops fluttering background-image in IE&)
try {
	document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}
