var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

function menu_DoFSCommand(command, args) {
  var FSCommandObj = InternetExplorer ? menu : document.menu;
     if (command == "zChange") {
		zChange('right',args);
	}else if(command == "spOpen"){
		spOpen();
	}
}

function iehook(){
	if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
		navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
		document.write('<SCRIPT LANGUAGE=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('Sub menu_FSCommand(ByVal command, ByVal args)\n');
		document.write('  call menu_DoFSCommand(command, args)\n');
		document.write('end sub\n');
		document.write('</SCRIPT\> \n');
	}
}

function zChange(layName,zindex){
  if(document.getElementById)         //N6,Moz,IE5,IE6—p
    document.getElementById(layName).style.zIndex=zindex 
   else if(document.all)
    document.all(layName).style.zIndex=zindex    //IE4—p
   else if(document.layers)
    document.layers[layName].zIndex=zindex       //NN4—p
	
	return;
}

function spOpen(){
	window.open("./sp/index.html","SpecialSite","width=700,height=435");
}