var temp, src,s,sec;
var pos,tp;
temp=this.document;
function Show(src)
{
if (src.id=='INFO') {src.style.left=(44*screen.width)/100;}
if (src.id=='COMM') {src.style.left=(54.125*screen.width)/100;}
if (src.id=='SERVICE') {src.style.left=(66.25*screen.width)/100;}
src.style.visibility="Visible";}
function Hide(src)
{src.style.visibility="Hidden";}

function PutMainMenu(src)
{
temp.write("<table border=0 width='100%' cellspacing=0 cellpadding=0 background='/images/stripe.gif'><tr>");
temp.write("<td colspan=7><img src='/images/abv.gif' border=0></td>");
temp.write("</tr><tr>");
if (src==1){
temp.write("<td width='13%' align='center'><img src='/images/aniarr.gif' border=0> Home</td>");}
else{
temp.write("<td width='13%' align='center'><a href='/'><b>Home</b></a></td>");}
if (src==2){
temp.write("<td width='13%' align='center'><img src='/images/aniarr.gif' border=0>  Who are we? </td>");}
else{
temp.write("<td width='13%' align='center'> <a href='/whorwe.asp'><b>Who are we?</b></a> </td>");}
if ((src>=3)&&(src<4)){
temp.write("<td width='13%' align='center'><img src='/images/aniarr.gif' border=0> <a href='info.asp'  onmouseover='Show(INFO);' onmouseout='Hide(INFO);'><b>Information</b></a></td>");}
else
{temp.write("<td width='13%' align='center'> <a href='/info.asp' onmouseover='Show(INFO);' onmouseout='Hide(INFO);'><b>Information</b></a> </td>");}
if ((src>=4) && (src<5)){
temp.write("<td width='13%' align='center'> <a href='#top' onmouseover='Show(COMM);' onmouseout='Hide(COMM);'><b>Communicate</b></a> </td>");}
else{temp.write("<td width='13%' align='center'> <a href='#top' onmouseover='Show(COMM);' onmouseout='Hide(COMM);'><b>Communicate</b></a> </td>");}
if((src>=5)&&(src<6)){
temp.write("<td width='13%' align='center'> <a href='#top' onmouseover='Show(SERVICE);' onmouseout='Hide(SERVICE);'><b>Services</b></a> </td>");}
else{
temp.write("<td width='13%' align='center'> <a href='#top' onmouseover='Show(SERVICE);' onmouseout='Hide(SERVICE);'><b>Services</b></a> </td>");}

if(src==6) {temp.write("<td width='13%' align='center'><img src='/images/aniarr.gif'> Directory</td>");}
else {temp.write("<td width='13%' align='center'><a href='/cgi-bin/dir.asp'><b>Directory</b></a></td>");}

if(src==7) {temp.write("<td width='13%' align='center'><img src='/images/aniarr.gif'> Catalog</td>");}
else{temp.write("<td width='13%' align='center'><a href='/cgi-bin/cat.asp'><b>Catalog</b></a></td>");}

temp.write("</tr><tr>");

temp.write("<td valign=top align='center' colspan=4 background='/images/blwlbk.gif'><form method=post action='/cgi-bin/srchcat.asp'>");
temp.write("<P STYLE='BACKGROUND-COLOR:#FFCC00'>&nbsp;Search Product: <input name='ps_keyword' type='text' size=15> ");
temp.write("<input type=submit value='Go'></form></td>");
temp.write("<td align='center' valign=top colspan=3 background='/images/blwlbk.gif'><form method=post action='/cgi-bin/srchdir.asp'>");
temp.write("<P STYLE='BACKGROUND-COLOR:#FFCC00'>Search Company: <input name='cs_keyword' type='text' size=15> ");
temp.write("<input type=submit value='Go'></form></td>");
temp.write("</tr></table>");

temp.write("<span id='INFO' style='position:absolute; top:76; left:0; visibility:hidden; z-index:2'>");
temp.write("<table border=1 bgcolor='#ffcc55' bordercolorlight='#ffdd77' bordercolordark='#ffdd77' cellspacing=0 cellpadding=3 onmouseout='Hide(INFO);' onmouseover='Show(INFO);'>");
if (src==3.1){temp.write("<tr><td><img src='/images/aniarr.gif' border=0> Export Council</td></tr>");}
else{temp.write("<tr><td><a href='/ecouncil.asp'><b>Export Council</b></a></td></tr>");}
if (src==3.2){temp.write("<tr><td><img src='/images/aniarr.gif' border=0> Export Strategy</td></tr>");}
else {temp.write("<tr><td><a href='/estrategy.asp'><b>Export Strategy</b></a></td></tr>");}
if (src==3.3){temp.write("<tr><td><img src='/images/aniarr.gif' border=0> Financial Dept.</td></tr>");}
else{temp.write("<tr><td><a href='/fdept.asp'><b>Financial Dept.</b></a></td></tr>");}

if (src==3.4){temp.write("<tr><td><img src='/images/aniarr.gif' border=0> Trade Org.</td></tr>");}
else{temp.write("<tr><td><a href='/trdorg.asp'><b>Trade Org.</b></a></td></tr>");}
if (src==3.5){temp.write("<tr><td><img src='/images/aniarr.gif' border=0> Indian Diplomats</td></tr>");}
else{temp.write("<tr><td><a href='/diplomats.asp'><b>Indian Diplomats</b></a></td></tr>");}
temp.write("</table></span>");

temp.write("<span id='COMM' style='position:absolute; top:76; left:0; visibility:hidden; z-index:4'>");
temp.write("<table border=1 bgcolor='#ffcc55' bordercolorlight='#ffdd77' bordercolordark='#ffdd77' cellspacing=0 cellpadding=3 onmouseout='Hide(COMM);' onmouseover='Show(COMM);'>");
if (src!=4.1){ temp.write("<tr><td><a href='/fback.asp'><b>Feedback</b></a></td></tr>");}
else{ temp.write("<tr><td><img src='/images/aniarr.gif' border=0> Feedback</td></tr>");} 
temp.write("<tr><td><a href='mailto:info@internettradewatch.com'><b>E-Mail us</b></td></tr>");
if (src!=4.2){ temp.write("<tr><td><a href='/cgi-bin/rchat.asp'><b>Chat</b></a></td></tr>");}
else{ temp.write("<tr><td><img src='/images/aniarr.gif' border=0> Chat</td></tr>");} 
temp.write("<tr><td>Video Confference</td></tr>");
temp.write("<tr><td>Net Telephone</td></tr>");
temp.write("</table></span>");
}

function Footer()
{ temp.write("<p align='center' class='FOOTER'><A HREF='/asso.asp'>Associate with us</a> | <A HREF='/advt.asp'>Advertise Here</a> | <A HREF='tnc.asp'>Terms &amp; Conditions</a>");
temp.write("<br>Copyright � 2004, Internet Trade Watch Ltd. All rights reserved.");
temp.write("<br>410, Prakashdeep Building, 7, Tolstoy Road, New Delhi 110001, India.");
temp.write("<br>Phone: 91-11-23358259, 41520805.");
temp.write("<br>E-Mail: <a href='mailto:info@itwltd.in'>info@itwltd.in</a> | <a href='mailto:info@internettradewatch.com'>info@internettradewatch.com</a></P>");
}

function PutSomeOtherMenu(src){
temp.write("<a href='#top' onclick='Show(LOG);'><b>Login</b></a>");
if (src!=1){temp.write(" | <a href='/fgtpwd.asp'><b>Forgot Password?</b></a>");}
else{temp.write(" | Forgot Password?");}
if (src!=2){temp.write(" | <a href='/cgi-bin/nuser.asp'><b>New User?</b> </a><br>");}
else{temp.write(" | New User?<br>");}
if (src!=4){temp.write("<a href='/tpbrain.asp'><b>Top Brain</b></a>");}
else{temp.write("Top Brain");}
if (src!=3){temp.write(" | <a href='/fback.asp'><b>Feedback</b></a>");}
else{temp.write(" | Feedback");}
temp.write(" | <a href='mailto:info@internettradewatch.com'><b>E-Mail us</b></a>");
}

function PutSessionMenu(tp,src)
{
temp.write("<table border=0 cellpaddin=8>")
if (tp=='P')
	{
	if ((src<2)||(src>=3)) {temp.write("<tr><td><a class='SPA2' href='/cgi-bin/inbox.asp'><b>My Messages</b></a></td></tr>");}
	else {temp.write("<tr><td><font color='#ff0000'><b>My Messages</b></font>");
	ShowSubMenu(src);
	temp.write("</td></tr>");}

	if (src!=3) {temp.write("<tr><td><a class='SPA2' href='/cgi-bin/cdtls.asp'><b>Change Details</b></a></td></tr>");}
	else {temp.write("<tr><td><img src='/images/aniarr.gif' border=0> Change Details</td></tr>");}

	if (src!=4) {temp.write("<tr><td><a class='SPA2' href='/cgi-bin/cpwd.asp'><b>Change Password</b></a></td></tr>");}
	else {temp.write("<tr><td>Change Password</td></tr>");}
	
	temp.write("<tr><td><a class='SPA2' href='/cgi-bin/logoff.asp'><b>Log Out</b></a></td></tr>");
	}
else	{
	if ((src<2)||(src>=3)) {temp.write("<tr><td><a class='SPA2' href='/cgi-bin/inbox.asp'><b>My Messages</b></a></td></tr>");}
	else {temp.write("<tr><td><font color='#ff0000'><b>My Messages</b></font>");
	ShowSubMenu(src);}

	if (src!=3) {temp.write("<tr><td><a class='SPA2' href='/cgi-bin/cdtls.asp'><b>Change Details</b></a></td></tr>");}
	else {temp.write("<tr><td><img src='/images/aniarr.gif' border=0> Change Details</td></tr>");}

	if (src!=4) {temp.write("<tr><td><a class='SPA2' href='/cgi-bin/cpwd.asp'><b>Change Password</b></a></td></tr>");}
	else {temp.write("<tr><td><img src='/images/aniarr.gif' border=0> Change Password</td></tr>");}
	
	if ((src<5)||(src>=6)) {temp.write("<tr><td><a class='SPA2' href='/cgi-bin/penq.asp'><b>Enquiry Register</b></a></td></tr>");}
	else {temp.write("<tr><td><font color='#ff0000'><b>Enquiry Register</b></font>");
	ShowSubMenu(src);}

	if ((src<6)||(src>=7)) {temp.write("<tr><td><a class='SPA2' href='/cgi-bin/ordreg.asp'><b>Order Register</b></a></td></tr>");}
	else {temp.write("<tr><td><font color='#ff0000'><b>Order Register</b></font>");
	ShowSubMenu(src);}

	if (src!=7) {temp.write("<tr><td><a class='SPA2' href='/cgi-bin/fbreg.asp'><b>Feedbacks</b></a></td></tr>");}
	else {temp.write("<tr><td><img src='/images/aniarr.gif' border=0> Feedbacks</td></tr>");}

	if (src!=8) {temp.write("<tr><td><a class='SPA2' href='/cgi-bin/ordreg.asp'><b>Accounts</b></a></td></tr>");}
	else {temp.write("<tr><td>Accounts</td></tr>");}

	if (src!=9) {temp.write("<tr><td><a class='SPA2' href='/cgi-bin/mpns.asp'><b>My Product/Service (s)</b></a></td></tr>");}
	else {temp.write("<tr><td><img src='/images/aniarr.gif' border=0> My Product/Service (s)</td></tr>");}

	temp.write("<tr><td><a class='SPA2' href='/cgi-bin/logoff.asp'><b>Log Out</b></a></td></tr>");
}
temp.write("</table>");
}

function ShowSubMenu(src)
{
	if ((src>2)&&(src<3)){
	if (src!=2.1){temp.write("<br> - <a class='SPA2' href='/cgi-bin/inbox.asp'>Read</a>");}
	else{temp.write("<br> <img src='/images/aniarr.gif' border=0> Read");}
	if (src!=2.2){temp.write("<br> - <a class='SPA2' href='/cgi-bin/outbox.asp'>Write</a>");}
	else{temp.write("<br> <img src='/images/aniarr.gif' border=0> Write");}
	if (src!=2.3){temp.write("<br> - <a class='SPA2' href='/cgi-bin/adbuk.asp'>Address Book</a>");}
	else{temp.write("<br> <img src='/images/aniarr.gif' border=0> Address Book");}
	}
	if ((src>5)&&(src<6))
	{if (src!=5.1){temp.write("<br> - <a class='SPA2' href='/cgi-bin/penq.asp'>Personal Enquiries</a>");}
	else{temp.write("<br> <img src='/images/aniarr.gif' border=0> Personal Enquiries");}
	if (src!=5.2){temp.write("<br> - <a class='SPA2' href='/cgi-bin/oenq.asp'>Other Enquiries</a>");}
	else{temp.write("<br> <img src='/images/aniarr.gif' border=0> Other Enquiries");}
	}
if ((src>6)&&(src<7))
	{if (src!=6.1){temp.write("<br> - <a class='SPA2' href='/cgi-bin/ordreg.asp'>View Register</a>");}
	else{temp.write("<br> <img src='/images/aniarr.gif' border=0> View Register");}
	if (src!=6.2){temp.write("<br> - <a class='SPA2' href='/cgi-bin/neword.asp'>New Order</a>");}
	else{temp.write("<br> <img src='/images/aniarr.gif' border=0> New Order");}
	}
	temp.write("<hr color='#ff0000' width='75%' noshade></td></tr>");
}
