function previewPhoto(fileName){
      window.open(fileName,'','width=750,height=520,left=0,top=0,scrollbars=1,menubars=0');
}

// Global Stuff
var crossobj;
var contentheight;
function setcrossobj(mycontent, mycontainer) {
	if (iens6){
		crossobj=document.getElementById?document.getElementById(mycontent.toString()):eval("document.all."+mycontent);
		contentheight=crossobj.offsetHeight
	
	}
	else if (ns4){
		crossobj=eval("document.ns"+mycontainer+".document.ns"+mycontent)
		contentheight=crossobj.clip.height
	}
}
function movedown(mycontent, mycontainer){
	setcrossobj(mycontent,mycontainer)
	if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
		crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
	else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
		crossobj.top-=speed
		movedownvar=setTimeout("movedown('"+mycontent+"','"+mycontainer+"')",20)
}
function moveup(mycontent, mycontainer){
	setcrossobj(mycontent,mycontainer)
	if (iens6&&parseInt(crossobj.style.top)<=0)
		crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
	else if (ns4&&crossobj.top<=0)
		crossobj.top+=speed
		moveupvar=setTimeout("moveup('"+mycontent+"','"+mycontainer+"')",20)
}
function getcontent_height(mycontent,mycontainer){
	setcrossobj(mycontent,mycontainer)
	if (iens6)
		contentheight=crossobj.offsetHeight
		else if (ns4)
		eval("document.ns"+mycontainer+".document.ns"+mycontent+".visibility")="show"
}


