var x = 250;
var mapRates = new Array( new Array("project",(x),(x) * 2 ), new Array("presentation",(x*2),(x*2) * 2 ), new Array("brochure",(x*6),(x*6) * 2 ),  new Array("print",(x*12),(x*12) * 2 ), new Array("tv",(x*16),(x*16) * 2 ),  new Array("internet",(x*20),(x*20) * 2 ),  new Array("all",(x*24),(x*24) * 2 )); 
var loc = self.location;

function callNow3(frm){
var pcode, pname;
var isOk = false;
var parameters="";
var usageValue, format, currency, rate;
var rate=0;
var usdRate=43.5;
var euroRate=57;
pcode="MOWMAP";
pname=self.location+"";
//pname=self.location;
i=pname.toLowerCase().indexOf("mapsofworld.com");
if (i > -1){
	pname=pname.substring(i,pname.length);
}
	if (frm.usage.value == "NS"){
		alert("Please select your <Usage type> i.e. for Internet Site or Presentation etc.");
		return false;
	}else{
		usageValue = frm.usage.value;
	}
	if (frm.format.value == "NS"){
			alert("Please select map image format.");
			return false;
	}else{
		format = frm.format.value;
	}
	rate=getMapRate(usageValue,format);
	currency=frm.currency.value;
	if (currency.toLowerCase() == "usd"){
		rate=Math.ceil(rate/usdRate);
	}else if(currency.toLowerCase() == "euro"){
		//rate = rate * usdRate;
		rate=Math.ceil(rate/euroRate);
	}	
	if (format.toLowerCase() == "withwatermark"){
		usage="FOR-USE-IN-"+usageValue.toUpperCase()+"-WITH-WATERMARK"; 
	}else{
		usage="FOR-USE-IN-"+usageValue.toUpperCase()+"-WITHOUT-WATERMARK"; 
	}
parameters ="http://www.mapsofworld.com/cart/" + currency + "/viewCart.html?" + pcode + "//" + pname + "//" + usage + "=" + rate + "//1";
	window.location.href=parameters;
		
return false;
}
function getMapRate(strUsageValue,strFormat)
{
	for (var i=0;i<mapRates.length;i++){
		//alert(mapRates[i][0]);
		if (strUsageValue.toLowerCase() == mapRates[i][0].toLowerCase()){
			if (strFormat.toLowerCase() == "withwatermark"){

				return mapRates[i][1];
			}else{
				return mapRates[i][2];
			}
		}
	}
}

function openeRates(){
var ratesWin=window.open("http://www.mapsofworld.com/emrm.html","ratesWindow","width=400, height=190, toolbars=0");
return false;
}

function shopping_form(){
	document.write('<table  border="0" cellpadding="2" cellspacing="0" width="100%" style="font-family:Arial, Verdana, Helvetica, sans-serif; color:#000; font-size:12px;"><form onsubmit="return callNow3(this);" style="margin:0px;padding:0px;"><tr><td><strong>Usage:</strong></td><td><select name="usage" style="{font-family:verdana;font-size:10px;font-weight:normal; color:#000;}"><option value="NS" selected>Please select map image Usage</option><option value="project">Project Report</option><option value="presentation">Presentation / Circulation</option><option value="brochure">Brochure</option><option value="internet">Internet site</option><option value="tv">TV Channel</option><option value="print">Print Media(Books,Newspapers,Magazines,Publication)</option><option value="all">All Uses</option></select>&nbsp;&nbsp;<a href="http://www.mapsofindia.com/emrm.html" style="{color:blue;text-decoration:none; font-weight:bold;}" onclick="return openeRates();"><font style="color:#015998; font-weight:bold; text-decoration:underline ">[View Rates]</font></a></td></tr><tr><td valign="top"><strong>Format:</strong></td><td valign="top"><select name="format" style="{font-family:verdana;font-size:10px;font-weight:normal; color:#000;}"><option value="NS" selected>Please select map image format&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option><option value="withwatermark">With Watermark (logo)</option><option value="withoutwatermark">Without Watermark</option></select></td></tr><tr><td><strong>Currency:</strong></td><td> <select name="currency" style="{font-family:verdana;font-size:10px;font-weight:normal; color:#000;}"><option value="usd">US$</option><option value="euro">EURO</option></select>&nbsp;<input type="submit" value="Buy Now" style="font-size:10px; color:#015998;"></td></tr><tr><td colspan=2  valign="top" style="padding-top:0px; text-decoration:none; text-align:justify; vertical-align:top; ">You can also order these map images in various sizes, styles, formats. We can also customize maps for you as your requirements. For more details Please write to <a href="mailto:subir@infobase.in" style="{color:#2A7A98;text-decoration:underline; font-weight:normal;}"><font style="color:#2A7A98;">subir@infobase.in</font></a> with your requirement or call Subir Roy at +1(408)-326-9371.</font></td></tr></form></table>');
}


function shopping_info(){
	document.write('<table width="100%"  border="0px" cellpadding="0px" style="background-image:url(http://mapsofworld.com/images/2008/banner-box.gif); background-repeat:no-repeat;font-family:Arial, Verdana, Helvetica, sans-serif; color:#2A7A98; font-size:12px; background-repeat:no-repeat; width:543px; height:121px;"> <tr><td height="80" style="text-decoration:none; text-align:justify; padding-left:20px; padding-right:15px; padding-top:10px; vertical-align:top;"><span style="display:block; font-size:18px; font-weight:normal; text-decoration:underline; height:28px; color:#015998; ">Buy this Map </span>Use this map in your Presentations, Internet Sites, Magazines, Print Media, Circulations, Brochures or TV Channel. MapsofWorld.com reserves the right to act against any unauthorized use of its Intellectual Property. All our Financial transactions are through Verisign secure payment gateway. </td></tr></table>');
}

function shopping_form1(){
	document.write('<table width="100%"  border="0px" cellpadding="0px" style="background-image:url(http://mapsofworld.com/images/2008/banner-box.gif); background-repeat:no-repeat;font-family:Arial, Verdana, Helvetica, sans-serif; color:#2A7A98; font-size:12px; background-repeat:no-repeat; width:543px; height:122px;"><form onsubmit="return callNow3(this);" style="margin:0px;padding:0px;"><tr height="20"><td width="25px" height="30" style="padding-left:20px; padding-right:0px;"><font style="color:#015998; font-weight:bold;">Usage:</font></td><td width="500px" style="padding-left:0px; text-align:left"><select name="usage" style="{font-family:verdana;font-size:10px;font-weight:normal; color:#2A7A98;}"><option value="NS" selected>Please select map image Usage</option><option value="project">Project Report</option><option value="presentation">Presentation / Circulation</option><option value="brochure">Brochure</option><option value="internet">Internet site</option><option value="tv">TV Channel</option><option value="print">Print Media(Books,Newspapers,Magazines,Publication)</option><option value="all">All Uses</option></select>&nbsp;&nbsp;<a href="http://www.mapsofindia.com/emrm.html" style="{color:blue;text-decoration:none; font-weight:bold;}" onclick="return openeRates();"><font style="color:#015998; font-weight:bold; text-decoration:underline ">[View Rates]</font></a></td></tr><tr><td height="25" valign="top" style="padding-left:20px; padding-right:0px;"><font style="color:#015998; font-weight:bold;">Format:</font></td><td valign="top" style="padding-left:0px; text-align:left;"><select name="format" style="{font-family:verdana;font-size:10px;font-weight:normal; color:#2A7A98;}"><option value="NS" selected>Please select map image format&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option><option value="withwatermark">With Watermark (logo)</option><option value="withoutwatermark">Without Watermark</option></select><font style="color:#015998; font-weight:bold;">&nbsp;Currency:</font> <select name="currency" style="{font-family:verdana;font-size:10px;font-weight:normal; color:#2A7A98;}"><option value="usd">US$</option><option value="euro">EURO</option></select>&nbsp;<input type="submit" value="Buy Now" style="font-size:10px; color:#015998;"></td></tr><tr><td colspan=2  valign="top" style="padding-top:0px; text-decoration:none; text-align:justify; padding-left:20px; padding-right:15px;">You can also order these map images in various sizes, styles, formats. We can also customize maps for you as your requirements. For more details Please write to <a href="mailto:subir@infobase.in" style="{color:#2A7A98;text-decoration:underline; font-weight:normal;}"><font style="color:#2A7A98;">subir@infobase.in</font></a> with your requirement or call Subir Roy at +1(408)-326-9371.</font></td></tr></form></table>');
}

function byMap(){
document.write("<a href='#bot1'><img src='http://mapsofworld.com/newhomeimages/buy-map.gif' alt='Buy this map' width='154px' height='34px' border='0px' align='center'></a>");
}