// JavaScript Document

// checks if the browser used is IE.
// @return 	TRUE if the browser is IE,
//			FALSE otherwise.
function isIE()
{
	if (document.all)
	{
		return true;
	}
	
	return false;
}

function isNE()
{
	if (document.layers) 
	{
		return true;
	}
	
	return false;
}


// hides the 'Order' Div and shows the Check Mark and Cancel Link for a Photo to be ordered
function toggleOrder(strID)
{
	var strOrderID = 'order_' + strID;
	var strCancelID = 'cancel_' + strID;
	var strCheckID = 'check_' + strID;
	var strBlockID = 'block_' + strID;
	
	
	//if(isNE())
	//{
		//hide the Order div block;
		document. getElementById(strOrderID).style.display = 'none';
		
		//show the Cancel and Check Div Block
		document. getElementById(strCheckID).style.display = 'block';
		document. getElementById(strCancelID).style.display = 'block';
			
		//change the class style
		document. getElementById(strBlockID).className = 'siteDivResultBlockOrdered';
		
	//}
}


// hides the 'Cancel' Div and Check Div and shows the Order Link for a Photo to be cancelled
function toggleCancel(strID)
{
	var strOrderID = 'order_' + strID;
	var strCancelID = 'cancel_' + strID;
	var strCheckID = 'check_' + strID;
	var strBlockID = 'block_' + strID;
	
	//if(isNE())
	//{
		//show the Order div block;
		document. getElementById(strOrderID).style.display = 'block';
		
		//hide the Cancel and Check Div Block
		document. getElementById(strCheckID).style.display = 'none';
		document. getElementById(strCancelID).style.display = 'none';
		
		//change the class style
		document. getElementById(strBlockID).className = 'siteDivResultBlock';
	//}
	
	
}