// <![CDATA[


//////////////////////////////////////////////////////
// TOOLTIP
//////////////////////////////////////////////////////

$(document).ready(function(){

//.aminomed_0 #right .left .image a
//.pearlsdents_0 #right .image a

	$('.tooltip_img').tooltip({ 
		delay: 0, 
		showURL: false, 
		bodyHandler: function() { 
			return $("<img/>").attr("src", this.href); 
		} 
	});

/*
$('#tonus').tooltip({ 
    delay: 0, 
    showURL: false, 
    bodyHandler: function() { 
        return $("<img/>").attr("src", this.src); 
    } 
});
*/
});

//////////////////////////////////////////////////////
// TOGGLE QUELLEN
//////////////////////////////////////////////////////

$(document).ready(function(){
	$(".box_quellen ul").hide(); 
	$(".box_quellen a").click(function(){
		$(this).toggleClass("active").next().slideToggle("fast");
		return false;
	});
});

//////////////////////////////////////////////////////
// BOOKMARK
//////////////////////////////////////////////////////

$(document).ready(function(){
	$("a.bookmark").click(function(e){
		e.preventDefault(); // this will prevent the anchor tag from going the user off to the link
		var bookmarkUrl = this.href;
		var bookmarkTitle = this.title;
		if (window.sidebar) { // For Mozilla Firefox Bookmark
			window.sidebar.addPanel(bookmarkTitle, bookmarkUrl,"");
		} else if( window.external || document.all) { // For IE Favorite
			window.external.AddFavorite( bookmarkUrl, bookmarkTitle);
		} else if(window.opera) { // For Opera Browsers
			$("a.jQueryBookmark").attr("href",bookmarkUrl);
			$("a.jQueryBookmark").attr("title",bookmarkTitle);
			$("a.jQueryBookmark").attr("rel","sidebar");
		} else { // for other browsers which does not support
			 alert('Your browser does not support this bookmark action');
			 return false;
		}
	});
});

//////////////////////////////////////////////////////
// A FOCUS BLUR FIX
//////////////////////////////////////////////////////

onload = function() {
	a_tags = document.getElementsByTagName('a')
	for (i=0;i<a_tags.length;i++) {
		a_tags[i].onfocus = blur_links;
	}
}
function blur_links() {
	this.blur();
}

//////////////////////////////////////////////////////
// FORM VALUE
//////////////////////////////////////////////////////

function FormValue(Typ,FormName,FeldName,Wert){
	switch(Typ){
	case 'onfocus' :
		var formular = document.forms[FormName].elements[FeldName];
		if(formular.value == Wert){
		formular.value = '';
		}
	break;
	case 'onblur' :
		var formular = document.forms[FormName].elements[FeldName];
		if(formular.value == ''){
		formular.value = Wert;
		}
	break;
	}
}

//////////////////////////////////////////////////////
// FORM SUBMIT
//////////////////////////////////////////////////////

function FormSubmit(formularname) {
	var formular = document.forms[formularname];
	formular.submit();
}














// ]]>
