function TurnToImgs(node)
{
	var newHTML = "";
	for(var i = 0; i < node.innerHTML.length && i < 41; i++)
	{
		var ascii = node.innerHTML.charCodeAt(i);
		var top = 0;
		var width = 16;
		var doNotRender = false;
		if(ascii == 32)
		{
			top = 1480;
			width = 10;
		}
		else if(ascii == 46)
		{
			top = 1364;
			width = 10;
		}
		else if(ascii == 45)
		{
			top = 1386;
		}
		else if(ascii == 44)
		{
			top = 1408;
			width = 10;
		}
		else if(ascii >= 97 && ascii <= 122)
		{
			top = ((ascii - 97) * 22);
			if(ascii == 105)
			{
				width = 12;
			}
			if(ascii == 106)
			{
				width = 16;
			}
			if(ascii == 108)
			{
				width = 12;
			}
		}
		else if(ascii >= 65 && ascii <= 91)
		{
			top = ((ascii - 65) * 22) + 572;
			if(ascii == 73)
			{
				width = 12;
			}
			if(ascii == 74)
			{
				width = 16;
			}
		}
		else if(ascii >= 48 && ascii <= 57)
		{
			top = ((ascii - 48) * 22) + 1144;
		}
		else
		{
		 	doNotRender = true;
		}
		if(!doNotRender)
		{
			newHTML += 
			"<img " + 
			"src='Http://www.uktomalta.com/Admin/UserImages/101/Design/blank.gif' " + 
			"style='width:" + width + ";height:22;" + 
			"background-image:url(Http://www.uktomalta.com/Admin/UserImages/101/Design/chars.jpg);" + 
			"background-position:center -" + top + ";'" +
			">";
		}
	}
	node.innerHTML = newHTML;
}

function LoadMenu()
{
	if(navigator.appName == "Microsoft Internet Explorer")
	{
		var params = {menu: "false", wmode: "transparent"};
		var attributes = {style: "position:absolute;left:296;top:166;z-index:999;"};
	
		swfobject.embedSWF("Http://www.uktomalta.com/Admin/UserFiles/101/flash/menu-n.swf","flashMenu","600","30","9.0.0","Http://www.uktomalta.com/Admin/UserFiles/101/flash/expressInstall.swf",null,params,attributes);
	}
	else
	{
		var links = "<a href='http://www.uktomalta.com/home' class='menu'>Home</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
		links += "<a href='http://www.uktomalta.com/about-us' class='menu'>About Us</a>&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
		links += "<a href='http://www.uktomalta.com/contact-us' class='menu'>Contact Us</a>&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
		links += "<a href='http://www.uktomalta.com/how-to-buy' class='menu'>How to Buy</a>";
		
		document.all.flashMenu.style.paddingLeft = "50";
		document.all.flashMenu.style.paddingTop = "3";
		document.all.flashMenu.innerHTML = links;
	}
}

function PleaseWait()
{
	DisplayHTML('<span style=\'color:#ffffff;font-size:16pt;font-weight:bold;\'>Please Wait...</span><br><span style=\'color:#666666;font-size:20pt;font-family:Verdana Arial Tahoma;font-weight:bold;\'>UKtoMALTA.com</span><br><br><br><br>','#000000','80');
}

function SetLinks(node)
{
	var html = node.innerHTML;
	html = html.replace(/air conditioning/gi,"<span style='color:#ffffff'>Air Condition</span>");
	html = html.replace(/air condition/gi,"<span style='color:#ffffff'>Air Condition</span>");
	html = html.replace(/climate control/gi,"<span style='color:#ffffff'>AC with Climate Control</span>");
	html = html.replace(/power steering/gi,"PAS");
	html = html.replace(/power assisted steering/gi,"PAS");
	html = html.replace(/electronic power steering/gi,"PAS");
	html = html.replace(/anti-lock braking system/gi,"ABS");
	html = html.replace(/antilock braking system/gi,"ABS");
	html = html.replace(/anti lock braking system/gi,"ABS");
	html = html.replace(/electronic brake distribution/gi,"EBD");
	html = html.replace(/electronic stability program/gi,"ESP");
	html = html.replace(/PAS/g,'<a href="" onclick="return false;" onmouseout="HideExplenation(document.all.divPAS)" onmousemove="SetExplenation(document.all.divPAS,event)">PAS</a>');
	html = html.replace(/EPS/g,'<a href="" onclick="return false;" onmouseout="HideExplenation(document.all.divPAS)" onmousemove="SetExplenation(document.all.divPAS,event)">PAS</a>');
	html = html.replace(/ABS/g,'<a href="" onclick="return false;" onmouseout="HideExplenation(document.all.divABS)" onmousemove="SetExplenation(document.all.divABS,event)">ABS</a>');
	html = html.replace(/EBD/g,'<a href="" onclick="return false;" onmouseout="HideExplenation(document.all.divEBD)" onmousemove="SetExplenation(document.all.divEBD,event)">EBD</a>');
	html = html.replace(/ESP/g,'<a href="" onclick="return false;" onmouseout="HideExplenation(document.all.divESP)" onmousemove="SetExplenation(document.all.divESP,event)">ESP</a>');
	node.innerHTML = html;
}

function SetExplenation(div,evt)
{
	div.style.display = '';
	div.style.top = evt.clientY + document.body.scrollTop + 20;
	div.style.left = evt.clientX + 20;
}
function HideExplenation(div)
{
	div.style.display = 'none';
}

function gm()
{
	var t = new Array();
	t.push("35.891571");
	    
	var g = new Array();
	g.push("14.491131");
	    
	var bv = new Array();
	bv.push(true);
    	
	var bc = new Array();
	bc.push(
	'<table border="0" cellpadding="0" cellspacing="0" width="300" style="font-family:Helvetica;font-size:8pt;color:#000000;">'+
		'<tr>'+
			'<td rowspan="2"><img src="http://www.hash64.com/Admin/UserFiles/96/map/hash64-logo.png"></td>'+
			'<td rowspan="2"><img src="http://www.hash64.com/Admin/UserFiles/96/map/gmap-seperator.gif">&nbsp;&nbsp;&nbsp;&nbsp;</td>'+
			'<td valign="top" align="right"><br><b>Address:</b>&nbsp;&nbsp;&nbsp;</td>'+
			'<td valign="top"><br>Hash64, <br> Guze Ellul Street, <br> Gwardamangia, Pieta, <br> Malta, Europe.</td>'+
		'</tr>'+
		'<tr>'+						
			'<td align="right"><b>Email:</b>&nbsp;&nbsp;&nbsp;</td>'+
			'<td><a href="mailto:sales@uktomalta.com" style="color:#000000;">sales@uktomalta.com</a></td>'+
		'</tr>'+
	'</table>');
    	G(t,g,17,'hybrid',bc,bv);
}

if(window.location.pathname.substring(1).toLowerCase() == "contact-us")
{
	//window.attachEvent("onload",function(){ gm()});
}







