
/* searchfield magic */
function autoFill(id, v){
	$(id).css({ color: "#b2adad" }).attr({ value: v }).focus(function(){
		if($(this).val()==v){
			$(this).val("").css({ color: "#000" });
		}
	}).blur(function(){
		if($(this).val()==""){
			$(this).css({ color: "#b2adad" }).val(v);
		}
	});

}

Shadowbox.init({ 
	});


ddsmoothmenu.init({
	mainmenuid: "smoothmenu1", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
});

/* jQuery */

$(document).ready(function(){
		$("#wrapper_content a img").parent().addClass("none");

		autoFill($("#searchfield"), "Suchbegriff(e) eingeben");       
		
		// EPIC target_blank crap (geht in header weiter)
		$("a[href*='http://']:not([href*='"+location.hostname+"'])").addClass("ext");   



});           



