jQuery(document).ready(function() {
var Config = {
"changeTime" : 3000,
"fadeTime" : 1500
};
var isHome = false;
if(window.location.pathname == "/"){
isHome = true;
}
jQuery(".index_rahmen").prepend(generateImageRotationBox());
var panos = new Array();
panos.push("/Bilder/01FL_Fujita.png");
panos.push("/Bilder/02FL_Hiller1.png");
panos.push("/Bilder/03FL_Hiller2.png");
panos.push("/Bilder/04FL_Do.png");
panos.push("/Bilder/05FL_Concepcion.png");
panos.push("/Bilder/06FL_Woellmer.png");
panos.push("/Bilder/07FL_Hitzing.png");
var currentPanoIndex = 1;
var _img = jQuery("").attr("src",panos[0]).attr("id","pano_rotate");
if(isHome == true){
jQuery("#rotationBox").append(_img);
setInterval(function() {
if(currentPanoIndex > (panos.length - 1)){
currentPanoIndex = 0;
}
jQuery("#pano_rotate").ImageSwitch(
{
Type: "FadeIn",
NewImage:panos[currentPanoIndex],
Speed: Config.fadeTime
}
);
currentPanoIndex = currentPanoIndex + 1;
}, Config.changeTime);
}
});
function generateImageRotationBox(){
var _box = jQuery('