<!--// 
function initializeMenus()
{
}

function showDesignForm()
{
	if(document.all)
	{
		UDOMItem('formlayer').style.visibility='visible';
	}
	else
	{

		UDOMItem('formlayer').style.visibility='show';
	}
}

function SetAJSC()
{
	//var AJSC = "0";
		
	//if( document.all )
	//{
	//	if( navigator.appVersion.indexOf("5.") != -1 ||
	//		navigator.appVersion.indexOf("6.") != -1 ) 
	//	{
	//		//Browser is caable of using advanced capabilities in design forms
	//		AJSC = "1";
	//	}
	//}
	
	//return AJSC;

	return "1";
}



function ShowImageFlips()
{
   if (SetAJSC() == "1" )
       return true;
	   
   return false;
}


function ChangeAssemblyImage( DiameterType )
{
	if( ShowImageFlips() ) 
	{
		if( DiameterType == "e" )
		{
			window.document.imgAssembly.src = "/images/shaftass.gif";
		}
		else
		{
			window.document.imgAssembly.src = "/images/houseass.gif";
		}
	}
}

function OpenRingDesignCustom( pPartNbr )
{
	var nextURL = 'design_a_special.asp?AJSC=' + SetAJSC() + '&PartNbr=' + pPartNbr;
	//var nextURL = 'design_a_special.asp?PartNbr=' + pPartNbr;

	document.location = nextURL;
	
	return false;
}

function OpenPartImagePopup( pPartImage, pPartDesc )
{
	if (document.images)
	{
		window.open('/PartImagePopup.asp?PartImage='+ pPartImage + '&PartDesc='+ pPartDesc, 'PartPopUp', 'toolbar=no,directories=no,menubar=no,status=no,resizable=no,scrollbars=no,width=270,height=320');
		return false;
	}
	else
	{
		alert('Sorry, your browser does not support this feature.');
		return false;
	}
}
//-->
