// VÖLKwerbung JavaScript Document in combination with jQuery for leistungen, umsetzung

//function open window not used jet
function openNewWindow(URLtoOpen, windowName, windowFeatures)
{ newWindow=window.open (URLtoOpen, windowName, windowFeatures);}


function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		munich_o = newImage("../bilder/scrollDn-o.gif");
		nav1_o = newImage("../bilder/scrollUp.gif");
		menu1_o = newImage("../bilder/ulSquare.gif");
		
		preloadFlag = true;
	}
}
	
$(document).ready(function() {
  
    /* sample function for animation; now in use*/
 $('#mainWrapper').css('display','none');					   
  var mainAnimation = function() {
	  //$('#mainWrapper').fadeIn('slow'); 
	 // $('#mainWrapper').show(1000); 
	//   $('#mainWrapper').animate({height: 'show'}, 'slow'); 
	   $('#mainWrapper').animate({width: 'show'}, 'slow'); 
		
  };	
  mainAnimation();
  

});









