	function OpenWindow(url, w, h) 
	{
		window.open(url, '', 'toolbar=0,menubar=0,location=0,status=0,scrollbars=0,resizable=0,height='+h+',width='+w+',left=50,top=50');
	}
	
	function layerd(layerName)
	{
		// DOM1

		if(document.getElementById) return document.getElementById(layerName)

		// MSIE4
		if(document.all) return document.all[layerName]

		// Netscape 4
		if(document.layers) return document.layers[layerName]

		// Unknown
		return null
	}

	function flip(item)
	{
		if (item.style.display == 'none')
		{
			item.style.display = 'inline';
		}
		else
		{
			item.style.display = 'none';
		}
	}

	function scrolled()
	{
		parent.leftFrame.document.body.scrollTop=document.body.scrollTop;
		parent.rightFrame.document.body.scrollTop=document.body.scrollTop;
	}


	function stepcarSetCurrent (PhotoCur)
	{
		phInfoCur = PhotoCur;
		stepcarShowCur();
	}
	
	function stepcarMovePrev ()
	{
		stepcarShowBlank();
		phInfoCur--;
		phInfoCur = (phInfoCur==-1 ? phInfoCount-1 : phInfoCur);
		stepcarousel.stepBy('stepcar-fotos', -1);
		stepcarShowCur();
	}
	
	function stepcarMoveNext ()
	{
		stepcarShowBlank();
		phInfoCur++;
		phInfoCur = (phInfoCur==phInfoCount ? 0 : phInfoCur);
		stepcarousel.stepBy('stepcar-fotos', 1);
		stepcarShowCur();
	}
	
	function stepcarShowBlank()
	{
		if(layerd('big_photo'))
		{
			layerd('big_photo').src = '/gfx/spacer.gif';
			layerd('big_photo').alt = '';
			layerd('big_photo').title = '';
		} 
	}


	function stepcarOnload()
	{
		if(layerd('big_photo'))
		{
			layerd('big_photo').src = phLoadImage.src;
			layerd('big_photo').alt = phInfo[phInfoCur].alt;
			layerd('big_photo').title = layerd('big_photo').alt;
		}
	}
	
	function stepcarShowCur()
	{
		phLoadImage.src = '/photo.php?type=show&action=big&fixheight=1&id='+phInfo[phInfoCur].id;
		phLoadImage.onload = stepcarOnload;
	}	
