var imgsrcBlue = "../Images/blue_arrow.gif"
var imgsrcRed = "../Images/red_arrow_click.gif"
imagetmp = imgsrcBlue

var colorRed = "color:#CB2024"
var colorBlue = "color:#0069B3"
colortmp= colorBlue

var styleNone = "display:none"
var styleBlock = "display:block"
styletmp = styleNone

if (document.images) {
	image11on = new Image(); image11on.src = "../images/red_arrow_click.gif";
	image12on = new Image(); image12on.src = "../images/red_arrow_click.gif";
	image13on = new Image(); image13on.src = "../images/red_arrow_click.gif";
	image14on = new Image(); image14on.src = "../images/red_arrow_click.gif";
	image15on = new Image(); image15on.src = "../images/red_arrow_click.gif";
	image16on = new Image(); image16on.src = "../images/red_arrow_click.gif";

	image11off = new Image(); image11off.src = "../images/blue_arrow.gif";
	image12off = new Image(); image12off.src = "../images/blue_arrow.gif";
	image13off = new Image(); image13off.src = "../images/blue_arrow.gif";
	image14off = new Image(); image14off.src = "../images/blue_arrow.gif";
	image15off = new Image(); image15off.src = "../images/blue_arrow.gif";
	image16off = new Image(); image16off.src = "../images/blue_arrow.gif";
}

function setCss(openmenu)
{
	if (!openmenu) 
	{
		imagetmp = imgsrcBlue
		styletmp = styleNone
		colortmp = colorBlue
	}
	else
	{
		imagetmp = imgsrcRed
		styletmp = styleBlock
		colortmp = colorRed
	}
}

function builddbMastroProductMenu(divnum,sHeadline,sDec1,sUrl1,sDec2,sUrl2)
{
	sScriptTmp = ""
	sScriptTmp = sScriptTmp + "<table><tr><td><img src=../Images/blue_dots.gif border=0 ></td></tr>"
	sScriptTmp = sScriptTmp + "<tr><td onmouseover=this.style.cursor='hand' "
	sScriptTmp = sScriptTmp + "onclick=javascript:onclickMeImg('image" + divnum + "',this) "
	sScriptTmp = sScriptTmp + "style=" + colortmp + ">"
	sScriptTmp = sScriptTmp + "<img name=image" + divnum + " src=" + imagetmp
	sScriptTmp = sScriptTmp + "> " + sHeadline + "</td></tr><tr><td>"
	sScriptTmp = sScriptTmp + "<div id=div " + divnum + " STYLE=" + styletmp + ">"
	sScriptTmp = sScriptTmp + "<table ID=Table2 bgcolor=WhiteSmoke width=100% border=0 cellpadding=0 cellspacing=4>"
	sScriptTmp = sScriptTmp + "<tr><td rowspan=2><img src=../Images/pixel.gif border=0 width=12 height=0></td>"
	sScriptTmp = sScriptTmp + "<td><a href=" + sUrl1 + " class=smallLinkBlue >" + sDec1 + "</a></td>"
	sScriptTmp = sScriptTmp + "</tr><tr>"
	sScriptTmp = sScriptTmp + "<td><a href=" + sUrl2 + " class=smallLinkBlue>" + sDec2 + "</a></td>"
	sScriptTmp = sScriptTmp + "</tr></table></div></td></tr><tr><td><img src=../Images/blue_dots.gif border=0 ></td></tr></table>"
	return sScriptTmp 
}
	

function writeMenu(bShowFree)
{
//var bShowFree
//alert(bShowFree.toString())
var pageLocation = document.location.pathname.toLowerCase()
setCss(false)
if (pageLocation.indexOf('dbmaestrooverview.aspx') > 0 || pageLocation.indexOf('top5reasons.aspx') > 0)
	setCss(true)


var sScriptPro =""
sScriptPro = sScriptPro + "<table align=top>"

sScriptPro = sScriptPro + "<tr><td><img src=../Images/blue_dots.gif border=0 ></td></tr>"
sScriptPro = sScriptPro + "<tr><td onmouseover=this.style.cursor='hand' "
sScriptPro = sScriptPro + "onclick=javascript:onclickMeImg('image11',this) "
sScriptPro = sScriptPro + "style=" + colortmp + ">"
sScriptPro = sScriptPro + "<img name=image11 src=" + imagetmp
sScriptPro = sScriptPro + "> Business value</td></tr>" 
sScriptPro = sScriptPro + "<tr><td>"
sScriptPro = sScriptPro + "<div id=div11 STYLE=" + styletmp + ">"
sScriptPro = sScriptPro + "<table ID=Table2 bgcolor=WhiteSmoke width=100% border=0 cellpadding=0 cellspacing=4>"
if(bShowFree == "True"){
sScriptPro = sScriptPro + "<tr><td rowspan=3><img src=../Images/pixel.gif border=0 width=12 height=0></td>"
sScriptPro = sScriptPro + "<td><a href=dbMaestroOverview.aspx class=smallLinkBlue onmouseout=this.style.color='#0069B3' onmouseover=this.style.color='#CB2024'>Overview</a></td></tr>"
sScriptPro = sScriptPro + "<tr><td><a href=Top5Reasons.aspx class=smallLinkBlue onmouseout=this.style.color='#0069B3' onmouseover=this.style.color='#CB2024'>Top 5 reasons</a></td></tr>"
sScriptPro = sScriptPro + "<tr><td><a href=CompareVerEdition.aspx class=smallLinkBlue onmouseout=this.style.color='#0069B3' onmouseover=this.style.color='#CB2024'>Compare dbMaestro editions</a></td></tr>"
}
else
{
sScriptPro = sScriptPro + "<tr><td rowspan=2><img src=../Images/pixel.gif border=0 width=12 height=0></td>"
sScriptPro = sScriptPro + "<td><a href=dbMaestroOverview.aspx class=smallLinkBlue onmouseout=this.style.color='#0069B3' onmouseover=this.style.color='#CB2024'>Overview</a></td></tr>"
sScriptPro = sScriptPro + "<tr><td><a href=Top5Reasons.aspx class=smallLinkBlue onmouseout=this.style.color='#0069B3' onmouseover=this.style.color='#CB2024'>Top 5 reasons</a></td></tr>"
//sScriptPro = sScriptPro + "<tr><td><a href=CompareVerEdition.aspx class=smallLinkBlue onmouseout=this.style.color='#0069B3' onmouseover=this.style.color='#CB2024'>Compare dbMaestro editions</a></td></tr>"
}


sScriptPro = sScriptPro + "</table></div>"
sScriptPro = sScriptPro + "</td></tr>"

setCss(false)	
if (pageLocation.indexOf('dbmaestrousage.aspx') > 0 || pageLocation.indexOf('dbmaestrogeneral.aspx') > 0)
	setCss(true)

sScriptPro = sScriptPro + "<tr><td><img src=../Images/blue_dots.gif border=0 ></td></tr>"
sScriptPro = sScriptPro + "<tr><td onmouseover=this.style.cursor='hand' "
sScriptPro = sScriptPro + "onclick=javascript:onclickMeImg('image12',this) "
sScriptPro = sScriptPro + "style=" + colortmp + " >"
sScriptPro = sScriptPro + "<img name=image12 src=" + imagetmp
sScriptPro = sScriptPro + "> How to use</td></tr><tr><td>"
sScriptPro = sScriptPro + "<div id=div12 STYLE=" + styletmp + " >"
sScriptPro = sScriptPro + "<table ID=Table2 bgcolor=WhiteSmoke width=100% border=0 cellpadding=0 cellspacing=4>"
sScriptPro = sScriptPro + "<tr><td rowspan=2><img src=../Images/pixel.gif border=0 width=12 height=0></td>"
sScriptPro = sScriptPro + "<td><a href=dbMaestroUsage.aspx class=smallLinkBlue onmouseout=this.style.color='#0069B3' onmouseover=this.style.color='#CB2024'>Usage scenarios</a></td>"
sScriptPro = sScriptPro + "</tr><tr>"
sScriptPro = sScriptPro + "<td><a href=dbMaestroGeneral.aspx class=smallLinkBlue onmouseout=this.style.color='#0069B3' onmouseover=this.style.color='#CB2024'>General Q&A</a></td>"
sScriptPro = sScriptPro + "</tr></table></div></td></tr>"

setCss(false)	
if (pageLocation.indexOf('dbmaestrotech.aspx') > 0 || pageLocation.indexOf('dbmaestroreq.aspx') > 0 )
	setCss(true)

sScriptPro = sScriptPro + "<tr><td><img src=../Images/blue_dots.gif border=0 ></td></tr>"
sScriptPro = sScriptPro + "<tr><td onmouseover=this.style.cursor='hand' "
sScriptPro = sScriptPro + "onclick=javascript:onclickMeImg('image13',this) "
sScriptPro = sScriptPro + "style=" + colortmp + ">"
sScriptPro = sScriptPro + "<img name=image13 src=" + imagetmp
sScriptPro = sScriptPro + "> Technology highlight</td></tr><tr><td>"
sScriptPro = sScriptPro + "<div id=div13 STYLE=" + styletmp + ">"
sScriptPro = sScriptPro + "<table ID=Table2 bgcolor=WhiteSmoke width=100% border=0 cellpadding=0 cellspacing=4>"

sScriptPro = sScriptPro + "<tr><td rowspan=2><img src=../Images/pixel.gif border=0 width=12 height=0></td>"
sScriptPro = sScriptPro + "<td><a href=dbMaestroTech.aspx class=smallLinkBlue onmouseout=this.style.color='#0069B3' onmouseover=this.style.color='#CB2024'>Enabling technology</a></td>"
sScriptPro = sScriptPro + "</tr><tr>"
sScriptPro = sScriptPro + "<td><a href=dbMaestroReq.aspx class=smallLinkBlue onmouseout=this.style.color='#0069B3' onmouseover=this.style.color='#CB2024'>System requirements</a></td>"
sScriptPro = sScriptPro + "</tr></table></div></td></tr>"

setCss(false)
if (pageLocation.indexOf('createlicense.aspx') > 0  || pageLocation.indexOf('activatedbmaestro.aspx') > 0 )
	setCss(true)

sScriptPro = sScriptPro + "<tr><td><img src=../Images/blue_dots.gif border=0 ></td></tr>"
sScriptPro = sScriptPro + "<tr><td onmouseover=this.style.cursor='hand' "
sScriptPro = sScriptPro + "onclick=javascript:onclickMeImg('image14',this) "
sScriptPro = sScriptPro + "style=" + colortmp + ">"
sScriptPro = sScriptPro + "<img name=image14 src=" + imagetmp
sScriptPro = sScriptPro + "> Get dbMaestro</td></tr><tr><td>"
sScriptPro = sScriptPro + "<div id=div14 STYLE=" + styletmp + ">"
sScriptPro = sScriptPro + "<table ID=Table2 bgcolor=WhiteSmoke width=100% border=0 cellpadding=0 cellspacing=4>"

sScriptPro = sScriptPro + "<tr><td rowspan=2><img src=../Images/pixel.gif border=0 width=12 height=0></td>"
sScriptPro = sScriptPro + "<td><a href=ActivatedbMaestro.aspx class=smallLinkBlue onmouseout=this.style.color='#0069B3' onmouseover=this.style.color='#CB2024'>Get dbMaestro </a></td></tr>"
sScriptPro = sScriptPro + "<tr><td><a href=CreateLicense.aspx class=smallLinkBlue onmouseout=this.style.color='#0069B3' onmouseover=this.style.color='#CB2024'>Activate dbMaestro</a></td></tr>"
sScriptPro = sScriptPro + "</table></div></td></tr>"

setCss(false)
if (pageLocation.indexOf('dbmaestrosupport.aspx') > 0 )
	setCss(true)

sScriptPro = sScriptPro + "<tr><td><img src=../Images/blue_dots.gif border=0 ></td></tr>"
sScriptPro = sScriptPro + "<tr><td onmouseover=this.style.cursor='hand' "
sScriptPro = sScriptPro + "onclick=javascript:onclickMeImg('image15',this) "
sScriptPro = sScriptPro + "style=" + colortmp + ">"
sScriptPro = sScriptPro + "<img name=image15 src=" + imagetmp
sScriptPro = sScriptPro + "> Support</td></tr><tr><td>"
sScriptPro = sScriptPro + "<div id=div15 STYLE=" + styletmp + ">"
sScriptPro = sScriptPro + "<table ID=Table2 bgcolor=WhiteSmoke width=100% border=0 cellpadding=0 cellspacing=4>"

sScriptPro = sScriptPro + "<tr><td rowspan=3><img src=../Images/pixel.gif border=0 width=12 height=0></td>"
sScriptPro = sScriptPro + "<td><a href=dbMaestrosupport.aspx class=smallLinkBlue onmouseout=this.style.color='#0069B3' onmouseover=this.style.color='#CB2024'>dbMaestro Support</a></td></tr>"
sScriptPro = sScriptPro + "<tr><td><a href='#' onclick=javascript:window.open('../demo/dbMaestroDemo.html','','top=0,left=0,width=1015,height=720,resizable=0,status=0,menubar=0,scrollbars=0,fullscreen=0,titlebar=0,alwaysRaised=0,toolbar=0'); class=smallLinkBlue onmouseout=this.style.color='#0069B3' onmouseover=this.style.color='#CB2024'>Online demo</a></td></tr>"
sScriptPro = sScriptPro + "</table></div></td></tr>"


//Footer
sScriptPro = sScriptPro + "<tr><td><img src=../Images/blue_dots.gif border=0 ></td></tr></table>"

return sScriptPro
}



