(function(){var d=document,e=d.documentElement,s=d.createElement('style');if(e.style.MozTransform===''){s.textContent='body{visibility:hidden}';e.firstChild.appendChild(s);function f(){s.parentNode&&s.parentNode.removeChild(s);}
addEventListener('load',f,false);setTimeout(f,5000);}})();function slideSwitch(){var $active=$('#slideshow IMG.active');if($active.length==0)$active=$('#slideshow IMG:last');var $next=$active.next().length?$active.next():$('#slideshow IMG:first');$active.addClass('last-active');$next.css({opacity:0.0}).addClass('active').animate({opacity:1.0},2000,function(){$active.removeClass('active last-active');var $active1=$('#slideshow1 IMG.active');if($active1.length==0)$active1=$('#slideshow1 IMG:last');var $next=$active1.next().length?$active1.next():$('#slideshow1 IMG:first');$active1.addClass('last-active');$next.css({opacity:0.0}).addClass('active').animate({opacity:1.0},2000,function(){$active1.removeClass('active last-active');var $active2=$('#slideshow2 IMG.active');if($active2.length==0)$active2=$('#slideshow2 IMG:last');var $next=$active2.next().length?$active2.next():$('#slideshow2 IMG:first');$active2.addClass('last-active');$next.css({opacity:0.0}).addClass('active').animate({opacity:1.0},2000,function(){$active2.removeClass('active last-active');});});});}
function slideSwitch1(){}
function slideSwitch2(){}
$(function(){setInterval("slideSwitch()",6000);});$(document).ready(function(){$(".close, .close1, .close2").hide();$(".panel").hide();$(".read, .read1, .read2").click(function(){$(".panel").slideToggle("fast");$(this).hide();$(this).siblings(".close, .close1, .close2").show();});$(".close, .close1, .close2").click(function(){$(".panel").slideToggle("fast");$(this).hide();$(this).siblings(".read, .read1, .read2").show();});$("#slink1").hover(function(){$("#slink").css({"background":"url(images/trans_orange.png)"});$("#slink").children("a").css({"color":"#FFF"});$(this).css({"background":"url(images/trans_orange.png)"});$(this).children("a").css({"color":"#FFF"});},function(){$("#slink").css({"background":"url(images/Floorplan_lightgrey_color.png)"});$("#slink").children("a").css({"color":"#7e7d6d"});$(this).css({"background":"url(images/Floorplan_lightgrey_color.png)"});$(this).children("a").css({"color":"#7e7d6d"});});$("#slink").hover(function(){$("#slink1").css({"background":"url(images/trans_orange.png)"});$("#slink1").children("a").css({"color":"#FFF"});$(this).css({"background":"url(images/trans_orange.png)"});$(this).children("a").css({"color":"#FFF"});},function(){$("#slink1").css({"background":"url(images/Floorplan_lightgrey_color.png)"});$("#slink1").children("a").css({"color":"#7e7d6d"});$(this).css({"background":"url(images/Floorplan_lightgrey_color.png)"});$(this).children("a").css({"color":"#7e7d6d"});});});jQuery.fn.liScroll=function(settings){settings=jQuery.extend({travelocity:0.04},settings);return this.each(function(){var $strip=jQuery(this);$strip.addClass("newsticker")
var stripWidth=0;var $mask=$strip.wrap("<div class='mask'></div>");var $tickercontainer=$strip.parent().wrap("<div class='tickercontainer'></div>");var containerWidth=$strip.parent().parent().width();$strip.find("li").each(function(i){stripWidth+=jQuery(this,i).outerWidth(true);});$strip.width(stripWidth);var totalTravel=stripWidth+containerWidth;var defTiming=totalTravel/settings.travelocity;function scrollnews(spazio,tempo){$strip.animate({left:'-='+spazio},tempo,"linear",function(){$strip.css("left",containerWidth);scrollnews(totalTravel,defTiming);});}
scrollnews(totalTravel,defTiming);$strip.hover(function(){jQuery(this).stop();},function(){var offset=jQuery(this).offset();var residualSpace=offset.left+stripWidth;var residualTime=residualSpace/settings.travelocity;scrollnews(residualSpace,residualTime);});});};
