
	
	$(document).ready(function() {
		
		// Teamfotos class hinzufuegen
		
		$('.rubrik25 #contentspalte img').addClass('rselect');
		
		// accordion logins in der Sidebar

				$(function() { 

				$("#login").tabs("#login div.pane", {tabs: 'h3', effect: 'fade', initialIndex: 3});
				});	


// Themenbild fader

	$("#products").tabs("div.description", {event:'mouseover', effect:'fade'});
	

	
	
// Navigation usability	
/*	
$("#mainnav").superfish({ 
            delay:       400,                            // one second delay on mouseout 
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
            speed:       'fast',                          // faster animation speed 
            autoArrows:  false,                           // disable generation of arrow mark-up 
            dropShadows: false                            // disable drop shadows 
        });
*/

// Text vergroessern

	/*	if($.cookie('TEXT_SIZE')) {
					$('body').addClass($.cookie('TEXT_SIZE'));	
				}
				$('.resizer a').click(function() {
					var textSize = $(this).parent().attr('class');
					$('body').removeClass('small medium large').addClass(textSize);
					$.cookie('TEXT_SIZE',textSize, { path: '/', expires: 10000 });
					return false;
				});    
*/

  });

// atmail login

function postlogin()  {

var email = document.atmail.email.value.split('@');

// email[0] contains user
// email[1] contain domain

document.atmail.username.value = email[0];
document.atmail.pop3host.value = email[1];

document.atmail.submit();




}




// Tooltip

this.tooltip = function(){	
	/* CONFIG */		
		xOffset = 10;
		yOffset = 20;		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result		
	/* END CONFIG */		
	$("a.tooltip").hover(function(e){											  
		this.t = this.title;
		this.title = "";									  
		$("body").append("<p id='tooltip'>"+ this.t +"</p>");
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");		
    },
	function(){
		this.title = this.t;		
		$("#tooltip").remove();
    });	
	$("a.tooltip").mousemove(function(e){
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};



// starting the script on page load
$(document).ready(function(){
	tooltip();
	
	

});




