window.onload = templateOnload;
function templateOnload(){
	if(contactSubject != ""){
		var subjectOptions = document.getElementById("subject").options;
		for(var i=0; i < subjectOptions.length; i++){
			if(subjectOptions[i].value.toLowerCase().indexOf(contactSubject) > -1){
				subjectOptions[i].selected = true;
			}
		}
	}
}
function embedSlideshow(){
	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', '980',
			'height', '180',
			'src', 'main',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'window',
			'devicefont', 'false',
			'id', 'main',
			'bgcolor', '#000000',
			'name', 'main',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', '/wp-content/themes/moki/slideshow/main',
			'salign', '',
			'FlashVars','xmlPath=/wp-content/themes/moki/slideShow.xml'
			); //end AC code
	}
}
