// START AND STOP VIDEO
function showSWFPreview(currSWF){
	document.getElementById('greyout').style.display = 'block';
	document.getElementById('movie_container').style.display = "block";
	var isSelection = "flvplayer.swf?file="+currSWF+"&autostart=true";
	var jsvar_height = 240;
	var jsvar_width = 320;
		
	var so = new SWFObject(isSelection, "mymovie", jsvar_width, jsvar_height, "7", "");
	so.addParam("wmode", "transparent");
	//so.addVariable("autostart","true");
	so.addParam("quality", "high");
	so.addParam("loop", "false");
	so.write('FlashDisplay');
}

function stopSWFPreview(){		
	document.getElementById('movie_container').style.display = "none";
	document.getElementById('greyout').style.display = 'none';
	document.getElementById('FlashDisplay').innerHTML = "&nbsp;";
}


//SHOW AND HIDE PHOTOS
function showPhoto(v_img,v_other,v_width,v_caption){
	leftPosition = (screen.width) ? (screen.width-v_width-40)/2 : 0;
	document.photoBig.src = "content/userfiles/"+v_img;
	document.getElementById('greyout').style.display = 'block';
	document.getElementById('photo_container').style.display = "block";
	document.getElementById('photo_container').style.left = leftPosition+"px";
	document.getElementById('photo_close').style.width = v_width+"px";
	document.getElementById('caption').innerHTML = v_caption;
}

function hidePhoto(){		
	document.getElementById('photo_container').style.display = "none";
	document.getElementById('greyout').style.display = 'none';
	document.photoBig.src = "images/spacer.gif";
	document.getElementById('caption').innerHTML = '';
}

// MOUSEOVER MENU
function onNav(vimg,vspot){
	//var thespot = "reflect"+vspot;
	document.images["nav"+vspot].src = "images/elm"+vspot+".jpg";
	document.images["reflect"+vspot].src = "images/elm"+vimg+".jpg";
}
function offNav(vimg,vspot){
	//var thespot = "reflect"+vspot;
	document.images["nav"+vspot].src = "images/white"+vspot+".jpg";
	document.images["reflect"+vspot].src = "images/white"+vimg+".jpg";
}