$(document).ready(function(){rs()});$(window).bind("resize",function(){rs()});function rs(){var b=1760/1200,a=$("#hg"),c=$(a).width();c=$(a).height();var d=$(window).width(),e=$(window).height();d=d+20;if(e<600&&d<880){$(a).height(600);$(a).width(880)}else{if(e>d){$(a).height(e);c=e*b;$(a).width(c);if(d>c){$(a).width(d);c=d/b;$(a).height(c)}}if(d>=e){$(a).width(d);c=d/b;$(a).height(c);if(e>c){$(a).height(e);c=e*b;$(a).width(c)}}}} function slideSwitch(){var b=$("#header-foto IMG.active");if(b.length==0)b=$("#header-foto IMG:last");var a=b.next().length?b.next():$("#header-foto IMG:first");b.addClass("last-active");a.css({opacity:0}).addClass("active").animate({opacity:1},1E3,function(){b.removeClass("active last-active")})}$("#header-foto").children().length>1&&$(function(){setInterval("slideSwitch()",5E3)});
