function removeHelpMenu2(){
 var x;
 x = new ActiveXObject("esriHelp.HelpCore");
 x.MenuDelete2();
}

function browser()
{
  var ua = navigator.userAgent;

  // Is it IE?
 bMSIE = (ua.indexOf("MSIE")!= -1);
  // Is it IE5.5?
 bMSIE55 = (ua.indexOf("MSIE 5.5") != -1);
}

function ShowFeedback()  
{
  //if (window.location.protocol != "mk:") {
    document.write("<A href='javascript:Feedback()'>");
    document.write("<img src='/common/style/images/feedback2.gif' alt='Feedback'border='0' height='16' width='16'/>");
    document.write("&nbsp;Send feedback on this page</A>");
  //}
}

function Feedback()  {
  // the frame structure is different for a sample (iframe)
  if(top.EDNIFrame){
  	document.location = '/arcobjects/9.1/email.asp?Page=' + document.location;
  }else{
	  if (top.fraTopic != null) {
	    top.fraTopic.location = '/arcobjects/9.1/email.asp?Page=' + top.fraTopic.location;
	  }
  }
}

function Jump(fullPath)
{
//  Samples/ArcMap/Symbology/Symbols/Custom_Line_Symbol/CustomLineSymbol.htm
//  esriSystemUI/ICommand.htm

	var pathArray = fullPath.split("/");
	var folder = pathArray[0];
	var path = fullPath.substring(folder.length + 1, fullPath.length); 
	var offset = fullPath.lastIndexOf("/"); 
	if (offset != 0)
	{
	  var file = fullPath.substring(offset+ 1, fullPath.length);
	}
	else
	{
	  var file = fullPath;
	}

	switch (window.location.protocol)
	{
		// JavaDoc
		case "file:":
		{
			var pathName = window.location.pathname;
			pathName = pathName.substring(1, pathName.length);
			offset = pathName.lastIndexOf("arcgis");
			if (offset != 0)
			{
	  		  pathName = pathName.substring(0, offset) + "arcgis\\";
			}
			var temp = folder.substring(0,4);
			if (temp == "esri")
			{
				folder = folder.slice(4);
				pathName = pathName + folder + "\\" + path + "l";
				window.location = pathName;
			}

			break;
		}
		/*case "mk:":
		{
			var href = window.location.href;
			if  (href.indexOf("VC.chm") != -1)
			{
			  folder = folder + "VC";
			}
			window.location="ms-its:" + folder + ".chm::/" + path;
			break;
		}
		case "ms-help:":
		{
			var prefix;
			if (folder == "Samples")
				prefix = "eagsam";
			else
				prefix = "eaglrf";

			var temp = folder.substring(0,4);
			if (temp == "esri")
			{
				folder = folder.slice(4);
			}
			
			offset = file.lastIndexOf(".htm");
			file = file.substring(0, offset);
			LinkKwd(prefix + folder + file)
			break;
		}*/
		case "http:":
		{
			var temp = folder.substring(0,4);
			if (temp == "esri")
			{
				fullPath= "ComponentHelp/" + fullPath;
			}

			window.location="/arcobjects/9.1/" + fullPath;
			break;
		}
	
	};
}

function WriteStyleSheet()
{
	document.write("<SCRIPT SRC='/common/scripts/dtuelink.js'></SCRIPT>");
	//document.write("<link rel='stylesheet' href='/common/style/dtue.css' TYPE='text/css'>");

/*	
	switch (window.location.protocol)
	{
		case "ms-help:":
		{
			document.write("<SCRIPT SRC='../scripts/dtuelink.js' LANGUAGE='JScript'></SCRIPT>");
			document.write("<SCRIPT SRC='../scripts/ns.js'></SCRIPT>");
			document.write("<link rel='stylesheet' href='../../Help.css' TYPE='text/css'>");
			break;
		}
		case "http:":
		{
			document.write("<SCRIPT SRC='/common/scripts/dtuelink.js'></SCRIPT>");
			document.write("<link rel='stylesheet' href='/common/style/dtue.css' TYPE='text/css'>");
			break;
		}
		default:
		{
			document.write("<SCRIPT SRC='/common/scripts/dtuelink.js'></SCRIPT>");
			document.write("<link rel='stylesheet' href='/common/style/dtue.css' TYPE='text/css'>");

		}
	}
	*/
}
