// ibdev.js - 01/17/2003

var loc = location.hostname; // get URL - to which server are we connecting?
if ( loc == "http://ibdev.com/Merchant2/" ) {
	var path = "../ibdev/";
}

// open email client 
function noSpam(user,domain, TLD) {
	locationstring = "mailto:" + user + "@" + domain + "." + TLD;
	window.location = locationstring;
}
function writeMenuBar(path){
document.write("<TD ALIGN=center><A HREF=" + path + "index.html><img src=" + path + "images/menu_home.gif width=75 height=30 BORDER=0 ALT=></A></TD>")
document.write("<TD ALIGN=center><img src=" + path + "images/menu_company.gif width=75 height=30 name=menu0 id=menu0 onmouseover=showMenu(event) onmouseout=hideMenu(event)></TD>")
document.write("<TD WIDTH=10 BGCOLOR=#CCCC99>&nbsp;</TD>")
document.write("<TD ALIGN=center><img src=" + path + "images/menu_products.gif width=75 height=30 name=menu1 id=menu1 onmouseover=showMenu(event) onmouseout=hideMenu(event)></TD>")
document.write("<TD ALIGN=center><img src=" + path + "images/menu_services.gif width=75 height=30 name=menu2 id=menu2 onmouseover=showMenu(event) onmouseout=hideMenu(event)></TD>")
document.write("<TD ALIGN=center><img src=" + path + "images/menu_support.gif width=75 height=30 name=menu3 id=menu3 onmouseover=showMenu(event) onmouseout=hideMenu(event)></TD>")
// next line may be added for link to store from web site
//document.write("<TD ALIGN=center><a href=\"http://ibdev.com/Merchant2/merchant.mv?Screen=SFNT&Store_Code=AH\"><img src=" + path + "images/menu_store.gif width=75 height=30 border=0></a></TD>")
}
function writeWebLinks(path){
document.write("<div align=center><font face=Arial size=+3 color=#D2D2D0>MIVA Means Business.<sup><font size=-1>TM</font></sup></font></div>")
}
function writeHeaderImages(path){
document.write("<IMG SRC=\"" + path + "images/name_xp.gif\" WIDTH=\"400\" HEIGHT=\"40\" STYLE=\"position: relative; right: 0px;\"  HSPACE=\"0\" VSPACE=\"0\" BORDER=\"0\" ALIGN=\"LEFT\" ALT=\"\">")
document.write("<IMG SRC=\"" + path + "images/swirl_narrow.gif\" WIDTH=\"319\" HEIGHT=\"96\" BORDER=\"0\" ALIGN=\"RIGHT\" ALT=\"\" STYLE=\"position: relative; right: 0px;\" HSPACE=\"0\" VSPACE=\"0\">")
}
function writeSearchBox(path){
document.write("<FORM method=\"GET\" action=\"http://www.ibusinessdevelopers.com/cgi-bin/perlfect/search/search.pl\">");
document.write("<INPUT type=\"hidden\" name=\"p\" value=\"1\">");
document.write("<INPUT type=\"hidden\" name=\"lang\" value=\"en\">");
document.write("<input type=\"hidden\" name=\"include\" value=\"\">");
document.write("<input type=\"hidden\" name=\"exclude\" value=\"\">");
document.write("<input type=\"hidden\" name=\"penalty\" value=\"0\">");
document.write("<INPUT type=\"hidden\" name=\"mode\" value=\"any\">");
document.write("<TD WIDTH=\"400\" ALIGN=\"right\" NOWRAP>");
document.write("<FONT STYLE=\"font: bold 8pt Verdana; letter-spacing: 0.01em; color: White;\">search:</FONT>&nbsp;&nbsp;");
// Replace CLASS=\"null\" with CLASS=\"search\" once all pages have been modified to use script
document.write("<INPUT CLASS=\"null\" TYPE=\"text\" NAME=\"q\" VALUE=\"Enter&nbsp;Keywords\" SIZE=\"20\">");
// document.write("<INPUT class=\"search\" TYPE=\"text\" NAME=\"q\" VALUE=\"Enter&nbsp;Keywords\" SIZE=\"20\">");
document.write("<INPUT TYPE=\"image\" SRC=\"" + path + "web_images/go_1.gif\" ALIGN=\"bottom\" HSPACE=\"2\">");
document.write("</TD></FORM>");
}
function MailTo(name, domain){ // hides mailto link from spiders
location.href = "mailto:" + name + "@" + domain;
}
