var pname, ptype;
var wndw, OKTOLOAD;
function DispFlash()
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="495" height="330" id="flash">');
	document.write('<param name=movie value="photographerdave.swf">');
	document.write('<param name=quality value=high>');
	document.write('<param name=loop value=false>');
	document.write('<param name=bgcolor value=#000000>');
	document.write('<embed src="photographerdave.swf" loop=false quality=high bgcolor=#000000  WIDTH="495" HEIGHT="330" NAME="flash" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
	document.write('</embed>');
	document.write('</object>');
}
function isIE()
{
	if (window.navigator.appName == "Microsoft Internet Explorer")
		return(true);
	else
		return(false);
}
function OpenPict(pname, ptype)
{
	if (wndw != null)
		wndw.close();
	wndw=window.open(pname, "PREVIEW", "toolbar=no, location=no, status=no, menubar=no, scrollbars=no, resizeable=no, top=50, left=250");
	if (ptype == 0)
		wndw.resizeTo(330,520);
	if (ptype == 1)
		wndw.resizeTo(480,360);
	if (ptype == 2)
		wndw.resizeTo(480,520);
	if (ptype == 3)
		wndw.resizeTo(655,560);
	if (ptype == 4)
		wndw.resizeTo(430,560);
	wndw.focus();
}
function GetStyleObject(id)
{
	if (document.getElementById)
	{
		return document.getElementById(id).style;
	}
	else if (document.layers)
	{
		return document.layers[id];
	}
	else if (document.all)
	{
		return document.all[id].style;
	}
	else
	{
		alert("This Browser does not support DHTML. Please use Microsoft Internet Explorer 4.0 or later or Netscape 4.0 or later");
		return flase;
	}
}
function GetIdObject(id)
{
	if (document.getElementById)
		return document.getElementById(id);
	else if (document.layers)
		return document.layers[id];
	else if (document.all)
		return document.all[id];
	else
	{
		alert("This Browser does not support DHTML. Please use Microsoft Internet Explorer 4.0 or later or Netscape 4.0 or later");
		return flase;
	}
}
function ChangeColor(id,clr)
{
	GetStyleObject(id).color=clr;
}
function ChangeBorderColor(id,clr)
{
	GetStyleObject(id).borderColor=clr;
}
function ChangeSrc(id,srctag)
{
	var obj = GetIdObject(id);
	obj.src = srctag;
}
function FadeUp(id)
{
	var obj = GetIdObject(id);
	if (document.all)
		obj.filters.blendTrans.apply();
	obj.src = id+"h.jpg";
	if (document.all)
		obj.filters.blendTrans.play();
}
function FadeDown(id)
{
	var obj = GetIdObject(id);
	if (document.all)
		obj.filters.blendTrans.apply();
	obj.src = id+".jpg";
	if (document.all)
		obj.filters.blendTrans.play();
}
function SetGalleryView()
{
	var obj = window.parent.GetIdObject("FS");
	obj.cols="155,600,230,1*";
}
function SetStandardView()
{
	var obj = window.parent.GetIdObject("FS");
	obj.cols="155,0,830,1*";
}