
/*

lr.js
Copyright: Siegfried Mairböck, 2011
Januar 2011

*/


$(document).ready(function() {
	var theFrame = $("#Agentur");
//	theFrame.height($(document.body).height() + 30);
	theFrame.load( function () {
//		alert(theFrame.attr('scrollHeight') + " " + this.contentWindow.style.height);
	});
});


$(document).ready(function() {

    $(".newsbtnhover")
    	.hover(
    		function () {
				$(this).parent().css("zIndex",100);
				$(this).stop();
				$(this).animate({ left: -21, top: -7,width: 130, height: 60 }, 200);
			},
			function () {
				$(this).parent().css("zIndex",1);
				$(this).stop();
				$(this).animate({ left: 0, top: 0, width: 87, height: 40 }, 200);
		});
	
	$("#bm_show").click(function(){ $("#Bookmarks").fadeIn(); });
    $("#bm_hide").click(function(){ $("#Bookmarks").fadeOut(); });

	$zoom_hover = $('<' + 'div id="zoomhover"><' + '/div>').appendTo($(document.body));

    $("img.zoom").hover(
    	function (event) {
    		$(this).css("border","1px solid red");
    		$(this).css("border","none");
    		var p = $(this).position();
    		
    		$zoom_hover.css("left",p.left + 6);
    		$zoom_hover.css("top",p.top - 6);
    		$zoom_hover.hide().fadeIn("fast");
    	},
    	function (event) {
    		$zoom_hover.fadeOut("fast");
    	}
    );

});

