// JavaScript Document

function initGalleryHeader(){
	var staticHeight = $('#gallery_header').height();
	$('#gallery_header').attr('staticHeight', staticHeight);
	$('#gallery_header').css('clip', 'rect(0px, 9999px, '+staticHeight+'px, 0px)');
}

function resizeGalleryHeader(flashHeight){
	$('#gallery_header').attr('flashHeight', flashHeight);
	$('#gallery_header').css('height', flashHeight+'px');
	$('#gallery_flash').css('height', flashHeight+'px');
}

function slideDownVideo(){
	var clipHeight = $('#gallery_header').attr('flashHeight');
	$('#gallery_header').css('clip', 'rect(0px, 9999px, '+clipHeight+'px, 0px)');
}

function slideUpVideo(){
	var clipHeight = $('#gallery_header').attr('staticHeight');
	$('#gallery_header').css('clip', 'rect(0px, 9999px, '+clipHeight+'px, 0px)');
}

function initSideNavigation(){
	var a = $('#subnav>li.current>a');
	$(a).wrap('<span id="sIFR-me"></span>');
}