// Central definitions for MapImagery site
var buynow = 1;

function IsCurrentDocument(url) {
 var stripped = document.URL.replace(/[^\/]*\//, "").replace(/[^\/]*\//, "").replace(/[^\/]*\//, "/");
 return (stripped.lastIndexOf(url) == 0);
}


function openWindow(html_fname, html_name) {
	popupWin = window.open(html_fname, html_name, 	'status,scrollbars')
}




function HeaderEntry(prompt,url) {
;
	document.writeln('    <td BGCOLOR="#04366A" NOWRAP>');
	if(!IsCurrentDocument(url)) {
		document.writeln('<a href="');
		document.writeln(url);
		document.writeln('">');
	}
	document.writeln('<font FACE="arial,helvetica" COLOR="#ffffff" size="2"><b>&nbsp;');
	document.writeln(prompt);
	document.writeln('&nbsp;</b></font>');
	if(!IsCurrentDocument(url)) {
		document.writeln('</a>');
	}
	document.writeln('</td>');
}


function MapImageryHeader(minimal, title) {
document.writeln('<table WIDTH="100%" BORDER="0">');
document.writeln('  <tr VALIGN="MIDDLE">');
document.writeln('    <td BGCOLOR="#FFFFFF"><img src="');
document.writeln('/images/logo.jpg" alt="logo.jpg (14881 bytes)"');
document.writeln('    </td>');
document.writeln('    <td HALIGN="RIGHT">');
document.writeln('<font FACE="impact,arial" size="+3" color="black">');
/* document.writeln(title); */
document.writeln('</font">');
document.writeln('    </td>');
document.writeln('    <td WIDTH="1"></td>');
document.writeln('    <td align="right" valign="bottom"></td>');
document.writeln('  </tr>');
document.writeln('</table>');
document.writeln('</center></div><div align="center"><center>');
document.writeln('');
document.writeln('<table BORDER="0" BGCOLOR="#04366A" CELLPADDING="2" CELLSPACING="0" width="100%">');
document.writeln('  <tr>');
		if (!minimal) {
		 HeaderEntry('Home',  '/');
	 	HeaderEntry('MapImagery',  '/mapimagery/index.html');
	 	HeaderEntry('ECW for MapInfo',  '/ecw/index.html'); 
	 	HeaderEntry('Try Now', '/trynow/index.html');
		if (buynow) 
	 		HeaderEntry('Buy Now', '/Licensing2/buynow.html');
	 	HeaderEntry('Licensing',  '/Licensing2/customer.html');
	 	HeaderEntry('Help', '/help/index.html');
		HeaderEntry('Download', '/download/index.html');
	 	/* HeaderEntry('Resellers', '/Licensing2/reseller.html'); */
	 	/* HeaderEntry('Press', '/press/index.html'); */
	 	HeaderEntry('About', '/common/about.html');
		}
document.writeln('    <td WIDTH="100%" BGCOLOR="#04366A">&nbsp; </td>');
document.writeln('  </tr>');
document.writeln('</table>');
}


function MapImageryFooter(minimal) {

	document.writeln('<hr WIDTH="100%" align="center">');
	document.writeln('<font FACE="arial,helvetica" size="-2" color="black">');
	document.writeln('<table WIDTH="100%">');
	if (!minimal) {
	  document.writeln('<tr align="center" width="100%"><td align="center">');
	  document.writeln('<font FACE="arial,helvetica" size="-2" color="black">');
	  document.writeln('[ <a href="/">Home</a> | <a href="/mapimagery/index.html">MapImagery</a>');
	  document.writeln('| <a href="/ecw/index.html">ECW for MapInfo</a>');
	  document.writeln('| <a href="/trynow/index.html">Try Now</a>');
	  if (buynow) 
	    document.writeln('| <a href="/Licensing2/buynow.html">Buy Now</a>');
	  document.writeln('| <a href="/Licensing2/customer.html">Licensing</a>');
	  document.writeln('| <a href="/help/index.html">Help</a>');
	  /*  document.writeln('| <a href="/Licensing2/reseller.html">Resellers</a>'); */
	  /* document.writeln('| <a href="/press/index.html">Press</a>'); */
	  document.writeln('| <a href="/download/index.html">Download</a>');
	  document.writeln('| <a href="/common/about.html">About</a> ]</td> </tr>');
	  document.writeln('</font>');
	}
	  document.writeln('<tr width="100%" align="center"> <td align="center">');
	document.writeln('<font FACE="arial,helvetica" size="-2" color="black">');
	document.writeln('Copyright ©2000-2010 MapImagery Pty Ltd</td></tr></font>');
	document.writeln('</font>');
	document.writeln('</table>');

}


function MapImagerySideBoxStart(title) {
    document.writeln('<table cellpadding="0" cellspacing="0" border="0" width="210">');
    document.writeln('  <tr>');
    document.writeln('    <td><img SRC="/images/blank.gif" HEIGHT="1" WIDTH="1" ALT> </td>');
    document.writeln('  </tr>');
    document.writeln('  <tr bgcolor="#04366A">');
    document.writeln('    <td valign="top">&nbsp;<font size="2" color="white" face="arial,helvetica"><b>', title);
    document.writeln('    </b></font></td>');
    document.writeln('  </tr>');
    document.writeln('  <tr>');
}

function MapImagerySideBoxEnd() {
	document.writeln('<tr>');
	//document.writeln('<td><img SRC="/images/blank.gif" HEIGHT="1" WIDTH="1" ALT> </td>');
	//document.writeln('</tr>');
	//document.writeln('    </div></td>');
	document.writeln('  </tr>');
	document.writeln('</table>');
}



function MapImageryBeta() {

    MapImagerySideBoxStart("Try MapImagery Now");
	document.writeln('<tr>');
	document.writeln('<td><font size="-1" face="arial,helvetica">');
	document.writeln('You can try a fully functional version of MapImagery Professional for a 14 day period free of charge.&nbsp; All you have to do is register on this site, then you can download a 14 day demo software license.');
	document.writeln('<br>');
	document.writeln('<a href="/trynow/index.html"></font><font SIZE="-2" FACE="arial,helvetica">[More Info]</font></a></td>');
	document.writeln('</tr>');
 	MapImagerySideBoxEnd();


}


function MapImageryReseller() {

    MapImagerySideBoxStart("MapImagery Resellers");
	document.writeln('<tr>');
	document.writeln('<td><font size="-1" face="arial,helvetica">');
	document.writeln('MapImagery is currently putting the finishing touches on its reseller program. &nbsp  If you are interested in becomming a MapImagery reseller click on the following link for more information.');
	document.writeln('<br>');
	document.writeln('<a href="/Licensing2/reseller.html"></font><font SIZE="-2" FACE="arial,helvetica">[More Info]</font></a></td>');
	document.writeln('</tr>');
 	MapImagerySideBoxEnd();


}



function MapImageryAbout() {
    MapImagerySideBoxStart("About MapImagery Pty Ltd");

	document.writeln('		<td><font size="-1" face="arial,helvetica">');
	document.writeln(' MapImagery&nbsp; is a developer of Mapping software that');
        document.writeln(' focuses on integration of GIS with raster imagery.&nbsp;&nbsp' );
        document.writeln(' MapImagery is also a provider of software consulting services.');
	document.writeln('        <a href="/common/about.html"><font SIZE="-2" FACE="arial,helvetica">[More Info]</font></a></font>');
	document.writeln('		</td>');


	MapImagerySideBoxEnd();


}


function MapImageryBuyNow() {
    MapImagerySideBoxStart("Buy MapImagery Now");

	document.writeln('<td><font size="-1" face="arial,helvetica">');
    	document.writeln('     <table border="0" cellpadding="0" cellspacing="0" width="100%">');
	document.writeln('		<tr>');
	document.writeln('You can now puchase MapImagery Professional');
	document.writeln('Licenses for immediate download, via our '); 
	document.writeln('On-Line credit card entry facility. &nbsp A number');
	document.writeln('of different pack sizes are available.');
	document.writeln('		</tr>');
	document.writeln('		<tr>');
	document.writeln('<img src="/images/delta.gif" alt="DELTA">');
	document.writeln('<img src="/images/switch.gif" alt="SWITCH">');
	document.writeln('<img src="/images/solo.gif" alt="SOLO">');
	document.writeln('<img src="/images/visa.gif" alt="VISA" >');
	document.writeln('<img src="/images/mastercard.gif" alt="MasterCard" >');
	document.writeln('<img src="/images/jcb.gif" alt="JBS" >');
	document.writeln('<img src="/images/euro.gif" alt="EuroCard">');
	document.writeln('<img src="/images/amex.gif" alt="AmericanExpress">');
	document.writeln('<a href="/Licensing2/buynow.html"><font SIZE="-2" FACE="arial,helvetica">[More Info]</font></a></font>');
	document.writeln('		</tr>');
	document.writeln('		</table>');
	document.writeln('		</td>');

	MapImagerySideBoxEnd();


}


function MapImageryTermsAndConditions() {
    MapImagerySideBoxStart("Terms & Conditions");

	document.writeln('		<td><font size="-1" face="arial,helvetica">');
	document.writeln('The following terms and conditions');
	document.writeln('apply to the purchase of MapImagery');
	document.writeln('Professional and related products.');
	document.writeln('');
	document.writeln('');

	document.writeln('        <a href="javascript:openWindow(\'/common/terms.html\', \'terms\')"><font SIZE="-2" FACE="arial,helvetica">[More Info]</font></a></font>');
	document.writeln('		</td>');


	MapImagerySideBoxEnd();


}


function MapImageryReturnPolicy() {
    MapImagerySideBoxStart("Return & Refund Policy");

	document.writeln('		<td><font size="-1" face="arial,helvetica">');
	document.writeln('The following return and refund policy');
	document.writeln('applys to the purchase of MapImagery');
	document.writeln('Professional and related products.');
	document.writeln('');
	document.writeln('');

	document.writeln('        <a href="javascript:openWindow(\'/common/return.html\', \'terms\')"><font SIZE="-2" FACE="arial,helvetica">[More Info]</font></a></font>');
	document.writeln('		</td>');


	MapImagerySideBoxEnd();


}



function MapImageryIntroOffer() {
    MapImagerySideBoxStart("Introductory Offer");

	document.writeln('		<td><font size="-1" face="arial,helvetica">');
	document.writeln('For a limited period following the');
	document.writeln('launch of MapImagery Professional, ');
	document.writeln('a special introductory base price ');
	document.writeln('of $299 will apply. After this period,');
	document.writeln('the base price will be $499.');
	document.writeln('The same discount factor will ');
	document.writeln('also apply to multi volume packs.');

	document.writeln('		</td>');


	MapImagerySideBoxEnd();


}

function MapImageryVolumeDiscounts() {
    MapImagerySideBoxStart("Volume Discounts");

	document.writeln('		<td><font size="-1" face="arial,helvetica">');
	document.writeln('If you are a large MapInfo user you may.');
	document.writeln('be interested in our volume discount');
	document.writeln('scheme.  This scheme offers very');
	document.writeln('generous discounts for multiple copy packs');
	document.writeln(' of MapImagery Professional. ');
	document.writeln('Please contact MapImagery for more information. ');

    	document.writeln('        <a href="mailto:sales@mapimagery.com"><small>sales@mapimagery.com</small></a>');
	// document.writeln('        <a href="javascript:openWindow(\'/common/volume.html\', \'Pricing\')"><font SIZE="-2" FACE="arial,helvetica">[More Info]</font></a></font>');
	document.writeln('		</td>');


	MapImagerySideBoxEnd();


}






function MapImageryContact() {
    MapImagerySideBoxStart("Contacting MapImagery");
    document.writeln('    <td>T<small>he best way to contact MapImagery is by email:</small><div align="left">');
    document.writeln('     <table border="0" cellpadding="0" cellspacing="0" width="100%">');
    document.writeln('      <tr>');
    document.writeln('        <td><a href="mailto:support@mapimagery.com"><small>support@mapimagery.com</small></a></td>');
    document.writeln('      </tr>');
    document.writeln('      <tr>');
    document.writeln('        <td><a href="mailto:info@mapimagery.com"><small>info@mapimagery.com</small></a></td>');
    document.writeln('      </tr>');
    document.writeln('      <tr>');
    document.writeln('        <td><a href="mailto:licensing@mapimagery.com"><small>licensing@mapimagery.com</small></a></td>');
    document.writeln('      </tr>');
    document.writeln('      <tr>');
    document.writeln('        <td><a href="mailto:sales@mapimagery.com"><small>sales@mapimagery.com</small></a></td>');
    document.writeln('      </tr>');
    document.writeln('      <tr>');
    document.writeln('        <td><a href="mailto:webmaster@mapimagery.com"><small>webmaster@mapimagery.com</small></a></td>');
    document.writeln('      </tr>');

    document.writeln('    </table>');
    document.writeln('    </div></td>');
    document.writeln('  </tr>');
    document.writeln('</table>');
	MapImagerySideBoxEnd();

}



function MapImageryMiniHeader(title) {
document.writeln('<table WIDTH="100%" BORDER="0">');
document.writeln('  <tr VALIGN="MIDDLE">');
document.writeln('    <td BGCOLOR="#FFFFFF"><img src="');
document.writeln('/images/logo.jpg" alt="logo.jpg (14881 bytes)" width="150" height="50"');
document.writeln('    </td>');
document.writeln('    <td HALIGN="RIGHT">');
document.writeln('<font FACE="impact,arial" size="+3" color="black">');
document.writeln(title);
document.writeln('</font">');
document.writeln('    </td>');
document.writeln('    <td WIDTH="1"></td>');
document.writeln('    <td align="right" valign="bottom"></td>');
document.writeln('  </tr>');
document.writeln('</table>');
document.writeln('</center></div><div align="center"><center>');
document.writeln('');
document.writeln('<table BORDER="0" BGCOLOR="#04366A" CELLPADDING="2" CELLSPACING="0" width="100%">');
document.writeln('  <tr>');
document.writeln('    <td WIDTH="100%" BGCOLOR="#04366A">&nbsp; </td>');
document.writeln('  </tr>');
document.writeln('</table>');
}

