// JavaScript Document

function setHeight () {
	var columnHeight =  $(".wrapperBox").height();
	$(".dottedLine").css("height",columnHeight);
}


$(document).ready(function(){
	
	// hides the slickbox as soon as the DOM is ready
	// (a little sooner than page load)
	$('.toggleHide').hide();
	// then toggles the slickbox on clicking the noted link
	$('a.slick-toggle').click(function() {
		
		// setHeight for past touring page IE6 only
		if($.browser.msie && parseFloat($.browser.version.substr(0,3))<=6) {
			$(this).next('div.toggleHide').slideToggle(400,function() {
				//setHeight();
				$("#areaHomepagePast #footer").css("position","relative");
			});
		} else {
			$(this).next('div.toggleHide').slideToggle(400);
		}
		
		if($(this).html() == 'hide') {
			$(this).html(" more");
		} else {
			$(this).html('hide');			
		}
		
		return false;
	});
	
	// for past touring page IE6 only
	if($.browser.msie && parseFloat($.browser.version.substr(0,3))<=6) {
		//setHeight();
		
		//$(".dottedLine").css("display","none");
		$("#areaHomepagePast #footer").css("position","relative");
		
	}
	
});
