
 
function gallery(){  
 
var preview = "";
    
        var aPreview = new Array(); 
        for (var i=1; i <= 2; i++) 
        { 
                preview = "{player: \'img\', content: \'/issue7/galleries/tirol/Tirol_"+ i +".jpg\'}" 

                aPreview.push(preview); 
        } 
		

		
	Shadowbox.open([{player: 'img', content: '/issue7/galleries/tirol/Tirol_1.jpg'},{player: 'img', content: '/issue7/galleries/tirol/Tirol_2.jpg'},{player: 'img', content: '/issue7/galleries/tirol/Tirol_3.jpg'},{player: 'img', content: '/issue7/galleries/tirol/Tirol_4.jpg'},{player: 'img', content: '/issue7/galleries/tirol/Tirol_5.jpg'},{player: 'img', content: '/issue7/galleries/tirol/Tirol_6.jpg'},{player: 'img', content: '/issue7/galleries/tirol/Tirol_7.jpg'},{player: 'img', content: '/issue7/galleries/tirol/Tirol_8.jpg'},{player: 'img', content: '/issue7/galleries/tirol/Tirol_9.jpg'},{player: 'img', content: '/issue7/galleries/tirol/Tirol_10.jpg'},{player: 'img', content: '/issue7/galleries/tirol/Tirol_11.jpg'},{player: 'img', content: '/issue7/galleries/tirol/Tirol_12.jpg'},{player: 'img', content: '/issue7/galleries/tirol/Tirol_13.jpg'},{player: 'img', content: '/issue7/galleries/tirol/Tirol_14.jpg'},{player: 'img', content: '/issue7/galleries/tirol/Tirol_15.jpg'},{player: 'img', content: '/issue7/galleries/tirol/Tirol_16.jpg'},{player: 'img', content: '/issue7/galleries/tirol/Tirol_17.jpg'},{player: 'img', content: '/issue7/galleries/tirol/Tirol_18.jpg'},{player: 'img', content: '/issue7/galleries/tirol/Tirol_19.jpg'}], { 
        continuous: true 
    }); 
}; 


function loadImage(ImageURL){  

Shadowbox.open({player: 'img', content: ImageURL});
 
};

// Videos einbinden
//URL:
//http://www.youtube.com/v/5Asn6Bz2Nkw
//http://vimeo.com/moogaloop.swf?clip_id=18351366&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=00ADEF&amp;fullscreen=1&amp;autoplay=0&amp;loop=0

function loadVideo(ImageURL){  

Shadowbox.open({ content:ImageURL+"?fs=1&amp;hl=de_DE&amp;autoplay=1&amp;fmt=22", player:"swf",height:432, width:720});
 
};

Shadowbox.init({ 
language: 'en', 
players:  ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv'] 
}); 

var Lightbox = Class.create();

Lightbox.prototype = {

	initialize: function() {	
		
		this.updateElementList();


		var objBody = document.getElementsByTagName("body").item(0);

	},


	updateElementList: function() {	
		if (!document.getElementsByTagName){ return; }
		var anchors = document.getElementsByTagName('a');
		var areas = document.getElementsByTagName('area');

		// Loop through all anchor tags...
		for (var i=0; i<anchors.length; i++){
			var anchor = anchors[i];
			
			var relAttribute = String(anchor.getAttribute('rel'));
			
			// Use the string.match() method to catch 'lightbox' references in the rel attribute
			if (anchor.getAttribute('href') && (relAttribute.toLowerCase().match('lightbox'))){
				anchor.onclick = function () {myLightbox.start(this); return false;}
			}
		}

		// Loop through all area tags...
		// ToDo: Combine anchor & area tag loops

	},
	
	
	//
	//	start()
	//	Display overlay and lightbox. If element is part of a set, add siblings to elementArray.
	//
start: function(elementLink) {	

		//hideSelectBoxes();		
		//hideFlash();
		

		Shadowbox.open({ content:elementLink+"?fs=1&amp;hl=de_DE&amp;autoplay=1&amp;fmt=22", player:"swf",height:432, width:720});
		
		//Shadowbox.open({ content:elementLink, player:"flv",height:360, width:640});		

		}


	};




