/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var am=new Array()
am[0]='<a href="/siw-faq.html">F.A.Q.</a>'
am[1]='<a href="/siw-diff.html">Versions</a>'
am[2]='<a href="/tss/license-agreement.html">License Agreement</a>'
am[3]='<a href="/tss/privacy-policy.html">Privacy Policy</a>'
am[4]='<a href="/tss/affiliate-program.html">Affiliate Program</a>'
am[5]='<a href="/tss/contact-us.html">Contact Us</a>'
am[6]='<a href="/tss/feedback.html">Feedback</a>'
am[7]='<a href="/siw_lang.html">Languages</a>'
am[8]='<a href="/siw-command-line.html">Command Line Arguments</a>'
am[9]='<a href="http://blog.gtopala.com">Blog</a>'
am[10]='<a href="/siw_help_me.html">Help me</a>'
am[11]='<a href="/resume.html">My Resume</a>'
am[12]='<a href="/siw_bugs.html">Known Bugs</a>'
am[13]='<a href="/other-programs/books.html">Books</a>'
am[14]='<a href="/other-programs/">Links</a>'

var fm=new Array()
fm[0]='<a href="/siw-file/info.html">Display File Info</a>'
fm[1]='<a href="/siw-file/convert.html">Convert CUE to ISO, BIN to CUE, RAW to ISO</a>'
fm[2]='<a href="/siw-file/log.html">Create a LOG file</a>'
fm[3]='<a href="/siw-file/exit.html">Exit</a>'

var hm=new Array()
hm[0]='<a href="/siw-hardware/system.html">System</a>'
hm[1]='<a href="/siw-hardware/motherboard.html">Motherboard</a>'
hm[2]='<a href="/siw-hardware/sensors.html">Sensors</a>'
hm[3]='<a href="/siw-hardware/bios.html">BIOS</a>'
hm[4]='<a href="/siw-hardware/cpu.html">CPU Info</a>'
hm[5]='<a href="/siw-hardware/devices.html">Devices</a>'
hm[6]='<a href="/siw-hardware/pci.html">PCI</a>'
hm[7]='<a href="/siw-hardware/system-slots.html">System Slots</a>'
hm[8]='<a href="/siw-hardware/network-cards.html">Network Cards</a>'
hm[9]='<a href="/siw-hardware/memory.html">Memory</a>'
hm[10]='<a href="/siw-hardware/video.html">Video</a>'
hm[11]='<a href="/siw-hardware/storage-devices.html">Storage Devices</a>'
hm[12]='<a href="/siw-hardware/logical-disks.html">Logical Disks</a>'
hm[13]='<a href="/siw-hardware/ports.html">Ports</a>'
hm[14]='<a href="/siw-hardware/battery.html">Battery</a>'
hm[15]='<a href="/siw-hardware/printers.html">Printers</a>'
		
var sm=new Array()
sm[0]='<a href="/siw-software/operating-system.html">Operating System</a>'
sm[1]='<a href="/siw-software/updates.html">Software Updates</a>'
sm[2]='<a href="/siw-software/system-directories.html">System Directories</a>'
sm[3]='<a href="/siw-software/installed-programs.html">Installed Programs</a>'
sm[4]='<a href="/siw-software/applications.html">Applications</a>'
sm[5]='<a href="/siw-software/licenses.html">Licenses</a>'
sm[6]='<a href="/siw-software/system-files.html">System Files</a>'
sm[7]='<a href="/siw-software/accessibility.html">Accessibility</a>'
sm[8]='<a href="/siw-software/environment.html">Environment</a>'
sm[9]='<a href="/siw-software/regional-settings.html">Regional Settings</a>'
sm[10]='<a href="/siw-software/associations.html">File Associations</a>'
sm[11]='<a href="/siw-software/processes.html">Running Processes</a>'
sm[12]='<a href="/siw-software/loaded-dlls.html">Loaded DLLs</a>'
sm[13]='<a href="/siw-software/drivers.html">Drivers</a>'
sm[14]='<a href="/siw-software/services.html">NT Services</a>'
sm[15]='<a href="/siw-software/pipes.html">Pipes</a>'
sm[16]='<a href="/siw-software/autorun.html">Autorun</a>'
sm[17]='<a href="/siw-software/scheduled-tasks.html">Scheduled Tasks</a>'
sm[18]='<a href="/siw-software/databases.html">Databases</a>'
sm[19]='<a href="/siw-software/codecs.html">Audio/Video Codecs</a>'
sm[20]='<a href="/siw-software/shared-dlls.html">Shared DLLs</a>'
sm[21]='<a href="/siw-software/activex.html">ActiveX</a>'
sm[22]='<a href="/siw-software/open-files.html">Open Files</a>'
sm[23]='<a href="/siw-software/user.html">Groups and Users</a>'
sm[24]='<a href="/siw-software/protected-files.html">Protected Files</a>'
sm[25]='<a href="/siw-software/secrets.html">Secrets</a>'

var nm=new Array()
nm[0]='<a href="/siw-network/info.html">Network Info</a>'
nm[1]='<a href="/siw-network/extended-info.html">Extended Network Info</a>'
nm[2]='<a href="/siw-network/neighborhood.html">Neighborhood Scan</a>'
nm[3]='<a href="/siw-network/open-ports.html">Open Ports</a>'
nm[4]='<a href="/siw-network/shares.html">Shares</a>'
nm[5]='<a href="/siw-network/ras.html">RAS Connections</a>'
nm[6]='<a href="/siw-network/hosts.html">Hosts Scan</a>'
nm[7]='<a href="/siw-network/ping.html">Ping</a>'
nm[8]='<a href="/siw-network/trace.html">Trace</a>'
nm[9]='<a href="/siw-network/request.html">Request</a>'
nm[10]='<a href="/siw-network/traffic.html">Network Traffic</a>'
nm[11]='<a href="/siw-network/statistics.html">Statistics</a>'
nm[12]='<a href="/siw-network/remote.html">Remote Computer</a>'
nm[13]='<a href="/siw-network/remote-command.html">Remote Command</a>'
		
var tm=new Array()
tm[0]='<a href="/siw-tools/eureka.html">Eureka!</a>'
tm[1]='<a href="/siw-tools/mac-address-changer.html">MAC Address Changer</a>'
tm[2]='<a href="/siw-tools/speedtest/index.html">Broadband Speed Test</a>'
tm[3]='<a href="/siw-tools/cpu-usage.html">CPU and Memory Usage</a>'
tm[4]='<a href="/siw-tools/win-9x-password.html">Win 9x Password</a>'
tm[5]='<a href="/siw-tools/win-9x-performance-monitor.html">Win 9x Performance Monitor</a>'
tm[6]='<a href="/siw-tools/microsoft.html">Microsoft&#039;s Tools...</a>'
tm[7]='<a href="/siw-tools/shutdown.html">Shutdown/Restart</a>'
tm[8]='<a href="/siw-tools/monitor-test.html">Monitor Test</a>'
// tm[8]='<a href="/siw-tools/opengl.html">OpenGL Test</a>'
tm[9]='<a href="/siw-tools/url-explorer.html">URL Explorer</a>'
tm[10]='<a href="/siw-tools/options.html">Options</a>'


var menuwidth='165px' //default menu width
var menubgcolor='#3366ff'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

/*******************************************/
var awind = ""

//function doNew() 
function showImage(image, w, h) 
{
var LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
var TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
awin = window.open("", "", "width=" + w + ",height=" + h + ", titlebar='no', top=" + TopPosition + ",left=" + LeftPosition); 
awin.document.write("<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>\n\
<html>\n\
<head>\n\
<title>SIW</title>\n\
</head>\n\
<body>\n\
<a href=\"javascript:self.close()\">Close Window</a><br>\n\
<img alt='siw' title='siw' src=" + image + " ><hr>\n\
</body>\n\
</html>\n");
awin.document.close();
awin.focus(); //close and bring awin to the foreground

}

var DefaultDomain = "gtopala.com"

function cloakemail(user,domain,DisplayText){

    var asciiMAILTO = "&#109;&#97;&#105;&#108;&#116;&#111;&#58;" //-- Ascii for 'mailto:'
    if (domain == null || domain== "" ){ domain = DefaultDomain}
    if (DisplayText == null || DisplayText== "" ){ DisplayText = user +'&#64;' + domain;}
	document.write('<a href="' + asciiMAILTO + user + '&#64;' + domain + '" style="color: blue; text-decoration: underline">' + DisplayText + '</a>');
}


function cloakemail_img(user,domain){

    var asciiMAILTO = "&#109;&#97;&#105;&#108;&#116;&#111;&#58;" //-- Ascii for 'mailto:'
    if (domain == null || domain== "" ){ domain = DefaultDomain}
    document.write('<a href="' + asciiMAILTO + user + '&#64;' + domain + '">');

}

function cloakemail_img2(user,domain,imgPath,imgWidth,imgHeight){

    var asciiMAILTO = "&#109;&#97;&#105;&#108;&#116;&#111;&#58;" //-- Ascii for 'mailto:'
    if (domain == null || domain== "" ){ domain = DefaultDomain}
    document.write('<a href="' + asciiMAILTO + user + '&#64;' + domain + '"><img border="0" src="'+imgPath+'" width="'+imgWidth+'" height="'+imgHeight+'"></a>');

}
