// JavaScript Document
/*function populateSelect(selectobj){
	for (var i=0; i<picsarray.length; i++)
		selectobj.options[selectobj.options.length]=new Option(picsarray[i], picsarray[i])
		if (selectobj.options.length>1){
		selectobj.selectedIndex=0
		showpicture(document.getElementById("picsform").picslist)
	}
}*/

function showpicture(selectobj){
	ShowHideLayers('picturearea','','show');
	piccontainerobj=document.getElementById("picturearea")	
	resetfade(10)
	piccontainerobj.innerHTML='<table width="100%" border="0" cellspacing="0" cellpadding="0" class="texto" style="BACKGROUND-COLOR: white; BORDER-BOTTOM: #0099CC 1px solid; BORDER-LEFT: #0099CC 1px solid; BORDER-RIGHT: #0099CC 1px solid; BORDER-TOP: #0099CC 1px solid; FONT-FAMILY: Tahoma; FONT-SIZE: 8pt;"><tr><td>&nbsp;<span style="color: #999999; font-weight: bold;"><strong>Screenshot</strong></span></td></tr><tr><td align="center"><br><img src="'+selectobj+'"><br>&nbsp;</td></tr></table>'
	fadepictoview=setInterval("gradualfade(piccontainerobj)",50)
}

function resetfade(degree){
	if (window.fadepictoview)
	clearInterval(fadepictoview)
	if (typeof piccontainerobj.style.MozOpacity=="string")
	piccontainerobj.style.MozOpacity=degree/100
	else if (piccontainerobj.filters)
	piccontainerobj.filters.alpha.opacity=degree
	
	piccontainerobj=document.getElementById("picturearea")
	
}

function gradualfade(){
	if (typeof piccontainerobj.style.MozOpacity=="string" && piccontainerobj.style.MozOpacity<1)
	piccontainerobj.style.MozOpacity=Math.min(parseFloat(piccontainerobj.style.MozOpacity)+0.2, 0.99)
	else if (piccontainerobj.filters && piccontainerobj.filters.alpha.opacity<100)
	piccontainerobj.filters.alpha.opacity+=20
	else //if not IE or Moz
	clearInterval(fadepictoview)
}

window.onload=function(){
	//populateSelect(document.getElementById("picsform").picslist)
}