// ##########################################################################

// **** MARKET OBJECT CONTACT PAGE ****

// WRITE EMAIL ADDRESES DYNAMICALLY TO PREVENT SPAMMER SCRAPING
// OPEN MAP POP-UP

// ##########################################################################

// SEND MAIL THROUGH WIN32 CLIENT

var bAt = "@";
var dOt = ".com";

function sendmail(bTo,domain){

var Ln = "-------------------------------------------------------------------------";
var NL = "%0D%0A";
var subInfo= " Information request for MARKET OBJECT";
window.location = "mailto:"+bTo+bAt+setDom(domain)+dOt
+"?subject="
+"RE:"+subInfo 
+"&body="
+"Thank you for contacting us."+NL+NL 
+"Infuse your Marketing with fresh concepts that combine compelling"+NL 
+"creative with breakthrough technology. At Market Object, we can reach"+NL
+"your target audience, whether on or off-line, through Marketing"+NL 
+"Strategies that range from the traditional to the bleeding edge."+NL+NL
+"Please let us know how we may assist you:"+NL+Ln+NL+NL 
+"NAME:"+NL+NL
+"PHONE NUMBER:"+NL+NL
+"E-MAIL ADDRESS:"+NL+NL
+"YOUR QUERY:"+NL+NL+NL+NL+NL+Ln+NL
+"We appreciate your taking the time to contact us."+NL
+"Best wishes from MARKET OBJECT."+NL
+"www.MarketObject.com"+NL
+"info@MarketObject.com"+NL
+"613.594.8787"+NL+Ln;
	}

function showmail(bTo,domain){
document.write(bTo+bAt+setDom(domain)+dOt);
	}

function setDom(domain){
if (domain == "MO"){
return "MarketObject";}

/* 
else{
return "ea";} 
 */
	}


// WRITE MAIL LINK STYLE

document.write('<style>A.mail-link, A.mail-link:link, A.mail-link:visited { font:bold 10px verdana; color:#AE2833; text-decoration:underline; }</style>');
document.write('<style>A.mail-link:hover,  A.terms-link:active { color:#000;text-decoration:none; }</style>');

// ##########################################################################

// OPEN MAP POP-UP

var amapWin;

function doAMap() {

if (document.getElementById) {
if (!amapWin || amapWin.closed) {
writeamapWin();
amapWin.focus();
	}
else {
amapWin.close();
writeamapWin();
amapWin.focus();
	}
    }
else {
writeamapWin();
	}
  }



function writeamapWin(){
amapWin = window.open('mo_map.htm',"amapWinName",'status,top=50,left=50,width=510,height=510');

	}

// ##########################################################################
// OPEN PRIVACY POP-UP

		var newwindow;		

		function openWin(varURL, varWindowTitle, varParams){	

			newwindow=window.open(varURL,varWindowTitle,varParams);
		
			newwindow.focus();
		}


// ##########################################################################