jQuery(document).ready(function(){
    jQuery("#contentArea .resortList li").css("background-color", function(i){
        return (i % 2 === 0) ? "#EDEDED": "#FFFFFF";
    });
      
 
	  
    jQuery(function(){
    	jQuery.fn.supersized.options = {
    	startwidth: 1650, // startwidth und startheight geben die Ausgangsgr��en des Bildes f�r die korrekte Skalierung an.
    	startheight: 1200,
    	minsize: .7, // Relative Mindestgr��e des Bildes, hier mit 50% von der Originalgr��e
    	slideshow: 0, // Die "1" steht f�r Slideshow, alle anderen Werte schalten diese ab.
    	slideinterval: 5000 // Intervall der Slideshow in Millisekunden.
    	};
    	jQuery('#supersize').supersized();
    });    
 
 
    if ((jQuery('.photoLink1').length > 0) && (jQuery('.photoLink2').length > 0)) {
		jQuery('#container').after(jQuery('.photoLink1').clone().removeAttr('class').addClass('dynLink1')); 	
		jQuery('#container').after(jQuery('.photoLink2').clone().removeAttr('class').addClass('dynLink2')); 	
		jQuery(window).resize(function() {
			resizeLink();
		});
		resizeLink();
		window.setTimeout("resizeLink();",1000);  
    }

});

function resizeLink() {
	
	jQuery('.dynLink1').css({'left' : jQuery('.photoLink1').position().left, 'top': jQuery('.photoLink1').position().top, 'width' : jQuery('.photoLink1').width(), 'height' : jQuery('.photoLink1').height()});
	
	jQuery('.dynLink2').css({'left' : jQuery('.photoLink2').position().left, 'top': jQuery('.photoLink2').position().top, 'width' : jQuery('.photoLink2').width(), 'height' : jQuery('.photoLink1').height()});

	var height = jQuery('.photoLink1').height();
	var	marginTop = (100 / 85) * height;
		
	jQuery('.content.welcome').css({'margin-top' : marginTop}); 
	
}

