<!-- JS -->
	window.addEvent('domready', function() {
		
		// SLIDER PORTFOLIO ////////////////////////////////////////////
		
		//slider variables for making things easier below
		var itemsHolder = $('container1');
		if (itemsHolder != null) {
			var myItems = $$(itemsHolder.getElements('.item'));
			
			//controls for slider
			var theControls = $('controls1');
			var numNavHolder = $(theControls.getElement('ul'));
			var thePrevBtn = $(theControls.getElement('.prev_btn'));
			var theNextBtn = $(theControls.getElement('.next_btn'));
			
			
			//create instance of the slider, and start it up		
			var mySlider = new SL_Slider({
				slideTimer: 4000,
				orientation: 'none',      //vertical, horizontal, or none: None will create a fading in/out transition.
				fade: false,                    //if true will fade the outgoing slide - only used if orientation is != None
				isPaused: false,
				container: itemsHolder,
				items: myItems,
				numNavActive: true,
				numNavHolder: numNavHolder,
				prevBtn: thePrevBtn,
				nextBtn: theNextBtn
			});
			mySlider.start();		
		}
		
		// FLASH TEASER ////////////////////////////////////////////
		var params = {
			quality: "high",
			scale: "noscale",
			wmode: "window",
			allowscriptaccess: "always",
			bgcolor: "#FFFFFF"
		};
		var flashvars = {

		};
		var attributes = {
			id: "flashcontent",
			name: "flashcontent"
		};
		swfobject.embedSWF("/tl_files/tnt/flash/tnt-flash.swf", "flashcontent", "400", "720", "9.0.124", false, flashvars, params, attributes);
											 
	});
