//bilder müssen mit -out und -over enden, damit rollover effekt funktioniert; id=rollover muss zugewiesen werden
//bsp: <a href="#" id="rollover"><img src="img/buttons/btn-config-out.png"/></a>
$(document).ready(function() {
	//alle rollover-effekte bei bildern
	$("a.rollover img").hover(
 		function()
 		{
  			this.src = this.src.replace("-out","-over");
 		},
 		function()
 		{
 			this.src = this.src.replace("-over","-out");
 		}
	);
	
	$("img.rollover").hover(
 		function()
 		{
  			this.src = this.src.replace("-out","-over");
 		},
 		function()
 		{
 			this.src = this.src.replace("-over","-out");
 		}
	);
	
	
	//submit button bei den formularen
	$("#submit").hover(
 		function()
 		{
  			this.src = this.src.replace("-out","-over");
 		},
 		function()
 		{
 			this.src = this.src.replace("-over","-out");
 		}
	);
	
	//für polaroids auf startseite
	
	/*$("a.resize img").each(function() {
    	$.data(this, 'size', { width: $(this).width(), height: $(this).height() });
	}).hover(function() {
		$(this).css("height", $.data(this,'size').height*1.03);
		$(this).css("width", $.data(this,'size').width*1.03);
	}, function() {
    	$(this).css("height", $.data(this,'size').height);
		$(this).css("width", $.data(this,'size').width);
	});*/


	
	//Modellseiten____________________________
	//_______________________________________
	
	if (document.URL.indexOf("modell-") != -1 ){
		$(".tooltip").css("display", "none");
		
		$("#preis").hover(
			function () {
				$(".tooltip").css("display", "block");
			}, 
			function () {
				$(".tooltip").css("display", "none");
			}
		);	
	}
});


