/*
JS for diagnosezentrum Moedling 
Produced by: J Koller || MMC:Agentur
Last Edited: Februar 2010
*/

$(document).ready(function(){
pagewidth();

/* Start - Show/Hide Infolayer */
$("a#showinfos").toggle(function() {$('#infos').show(); $('a#showinfos').addClass("active");},
						function() {$('#infos').hide(); $('a#showinfos').removeClass("active");});
//$("#infos").click(function() {$('#infos').hide(); $('a#showinfos').removeClass("active");});

/* Start - Set correct BG Image Position */
$("#nav_main li a").hover(function () {$(this).parent("li").prev($("a li")).addClass("border");},function () {$(this).parent("li").prev($("a li")).removeClass("border");});

/* Start Print Links */
/*$("#infos a.print").click(function() {$('#infos').printElement();});
$('#toolbar li.print a').click(function() {window.print(); return false;});*/

/* Start Image Zoom */
/*
$("a.img_right").fancybox({'zoomOpacity':true,'overlayShow':true,'zoomSpeedIn':500,'overlayOpacity':0.4,'zoomSpeedOut':400, 'hideOnContentClick': true});
*/
});



/* $(window).resize(function() {pagewidth();}); */

/* Start Function - Set correct BG Image Position */

function pagewidth() {
centerwidth = 979;
borderleft = ($(window).width()-centerwidth)/2;
$(".center").width($(window).width());
$("#header_full").css({backgroundPosition: (borderleft)+"px 0px"});
$(".content_full").css({backgroundPosition: (borderleft)+"px 0px"});
}

/* End - Function - Set correct BG Image Position */
