function toggle(element) {
	if(document.getElementById(element).style.display=='block') {
		document.getElementById(element).style.display="none";
	} else {
		document.getElementById(element).style.display="block";
	}
}

function inverseToggle(element) {
	if(document.getElementById(element).style.display=='block') {
		document.getElementById(element).style.display="block";
	} else {
		document.getElementById(element).style.display="none";
	}
}

function getGallery(which,index) {
	document.write('<object type="application/x-shockwave-flash" data="flash/gallery.swf?which='+which+'&index='+index+'" width="770" height="660">\n');
  document.write('<param name="movie" value="flash/gallery.swf?which='+which+'&index='+index+'" />');
	document.write('<param name="wmode" value="transparent"/>');
  document.write('<param name="bgcolor" value="#000000"/>');
  document.write('</object>\n');
}

function getPreviews() {
	document.write('<object type="application/x-shockwave-flash" data="flash/harleyPreviews.swf" width="405" height="177">\n');
  document.write('<param name="movie" value="flash/harleyPreviews.swf" />');
  document.write('<param name="bgcolor" value="#000000"/>');
  document.write('</object>\n');
}

function getEasel() {
	document.write('<object type="application/x-shockwave-flash" data="flash/easel.swf" width="402" height="173">\n');
  document.write('<param name="movie" value="flash/easel.swf" />');
	document.write('<param name="wmode" value="transparent"/>');
  document.write('<param name="bgcolor" value="#000000"/>');
  document.write('</object>\n');
}

function getSlideshow() {
	document.write('<object type="application/x-shockwave-flash" data="flash/slideshow.swf" width="250" height="250">\n');
  document.write('<param name="movie" value="flash/slideshow.swf" />');
  document.write('<param name="bgcolor" value="#000000"/>');
	document.write('<param name="wmode" value="transparent"/>');	
  document.write('</object>\n');
}

function getHeaderImage(filename) {
	document.getElementById('header').style.backgroundImage = "url("+filename+")";
}
