/*******************************************/
// Javascript for LemurMonitors.com template
//
// Author:	Greg Browne
// Company:	Root Four Imagination Inc.
// Date:	Dec 2009
// Contact:	gbrowne@rootfour.com
/*******************************************/

function writeSidebar()
{
	// Sidebar Popups
	document.write("<img name='popupImg' class='sidebarIcons' id='sidebarInstalll' src='images/sidebarInstalll.png' style='top: 85px' onmouseover=\"popupInfo('sidebarInstalll')\" onmouseout=\"popupInfo(0)\" onclick=\"popupInfo(0)\" />");
	document.write("<img name='popupImg' class='sidebarIcons' id='sidebarNoTools' src='images/sidebarNoTools.png' style='top: 205px' onmouseover=\"popupInfo('sidebarNoTools')\" onmouseout=\"popupInfo(0)\" onclick=\"popupInfo(0)\" />");
	document.write("<img name='popupImg' class='sidebarIcons' id='sidebarNoPC' src='images/sidebarNoPC.png' style='top: 320px' onmouseover=\"popupInfo('sidebarNoPC')\" onmouseout=\"popupInfo(0)\" onclick=\"popupInfo(0)\" />");
	document.write("<img name='popupImg' class='sidebarIcons' id='sidebarNoWires' src='images/sidebarNoWires.png' style='top: 445px' onmouseover=\"popupInfo('sidebarNoWires')\" onmouseout=\"popupInfo(0)\" onclick=\"popupInfo(0)\" />");
	document.write("<img name='popupImg' class='sidebarIcons' id='SafeDriverAwardSmall' src='images/SafeDriverAwardSmall.png' style='top: 350px' onmouseover=\"popupInfo('SafeDriverAwardSmall')\" onmouseout=\"popupInfo(0)\" onclick=\"popupInfo(0)\" />");


	// Sidebar Map
	document.write("<map name='sidebarMap' id='sidebarMap'>");
	document.write("<area shape='rect' alt='LemurMonitors.com' coords='0,95, 720,0' href='index.html' />");
	document.write("<area shape='rect' alt='Easy to Install' coords='0,222, 133,95' onmouseover=\"popupInfo('sidebarInstalll')\" href='javascript:void(0);' />");
	document.write("<area shape='rect' alt='No tools required' coords='0,345, 133,222' onmouseover=\"popupInfo('sidebarNoTools')\" href='javascript:void(0);' />");
	document.write("<area shape='rect' alt='No computer needed' coords='0,465, 133,345' onmouseover=\"popupInfo('sidebarNoPC')\" href='javascript:void(0);' />");
	document.write("<area shape='rect' alt='No wires' coords='0,604, 133,465' onmouseover=\"popupInfo('sidebarNoWires')\" href='javascript:void(0);' />");
	document.write("<area shape='rect' alt='2010 CES Honoree' coords='25,706, 104,575' onmouseover=\"popupInfo('SafeDriverAwardSmall')\" href='javascript:void(0);' />");
	document.write("</map>");
}

function writeLeftCol()
{
/*document.write("<br />");
document.write("<a href='blog.html'><img src='images/blog.png' border='0' alt='Blog' /></a>");
document.write("<br />");
//document.write("<!-- Facebook Badge START -->");
document.write("<br />");
document.write("<a href=\"http://www.facebook.com/pages/The-Safe-Driving-Monitor/107173725134\" title=\"The Safe Driving Monitor Facebook Page\" target=\"_blank\"><img src=\"http://badge.facebook.com/badge/107173725134.1456.2050112482.png\" alt=\"The Safe Driving Monitor Facebook Page\" style=\"border: 0px;\" /></a>");
//document.write("<!-- Facebook Badge END -->");
document.write("<br /><br />");
//document.write("<!-- Start Tell a Friend Script -->");
document.write("<div id=\"st200812195313\" class=\"st-taf\" style=\"margin-left: 16px\"><script type=\"text/javascript\" src=\"http://cdn.socialtwist.com/200812195313/script.js\"></script><img alt=\"SocialTwist Tell-a-Friend\" style=\"border:0;padding:0;margin:0;\" src=\"http://images.socialtwist.com/200812195313/button.png\" onmouseout=\"hideHoverMap(this)\" onmouseover=\"showHoverMap(this, '200812195313', window.location, document.title)\" onclick=\"cw(this, {id:'200812195313',link: window.location, title: document.title })\"/></div>");
//document.write("<!-- End Tell a Friend Script -->");*/
}

function writeRightCol()
{
document.write("<div class='shoppingCart'>");
document.write("<div class='cartHeader'>Shopping Cart</div>");
document.write("<div id='cartContents' style='padding-left: 4px'>&nbsp;</div>");
document.write("<div style='text-align: right; padding: 4px'><input type='button' value='Checkout' class='lmButton' onclick=\"window.location='https://www.lemurmonitors.com/secureCheckout.html'\" /></div>");
document.write("</div>");
document.write("<p>");
document.write("<span style='font-size: 150%; font-weight: bold'>Click to Add to Cart</span>");
document.write("<br />");
document.write("<a href='javascript:void(0);'><img id='cLemurMonitorsSafe'  src='images/AddToCartSafeDriver.png'  alt='Add SafeDriver to Cart'  onclick=\"addToCart(this.id); updateCart()\" /></a>");
document.write("<br />");
document.write("<a href='javascript:void(0);'><img id='cLemurMonitorsEcono' src='images/AddToCartEconoDriver.png' alt='Add EconoDriver to Cart' onclick=\"addToCart(this.id); updateCart()\" /></a>");
document.write("<br />");
document.write("<a href='javascript:void(0);'><img id='cLemurMonitorsAlert' src='images/AddToCartAlertDriver.png' alt='Add AlertDriver to Cart' onclick=\"addToCart(this.id); updateCart()\" /></a>");
document.write("</p>");
document.write("<br />");
document.write("<p>");
document.write("<span style='font-size: 150%; font-weight: bold'>Customer Support</span>");
document.write("<br />");
document.write("<a href='mailto:info@lemurmonitors.com'><img src='images/customerSupportEmail.png' alt='info@lemurmonitors.com' /></a>");
document.write("<br />");
document.write("<img src='images/customerSupportPhone.png' alt='1-866-302-0054' />");
document.write("<a id='_lpChatBtn' href='https://server.iad.liveperson.net/hc/5774645/?cmd=file&file=visitorWantsToChat&site=5774645&byhref=1&imageUrl=http://www.lemurmonitors.com/images' target='chat5774645'  onClick=\"lpButtonCTTUrl = 'https://server.iad.liveperson.net/hc/5774645/?cmd=file&file=visitorWantsToChat&site=5774645&imageUrl=http://www.lemurmonitors.com/images&referrer='+escape(document.location); lpButtonCTTUrl = (typeof(lpAppendVisitorCookies) != 'undefined' ? lpAppendVisitorCookies(lpButtonCTTUrl) : lpButtonCTTUrl); lpButtonCTTUrl = ((typeof(lpMTag)!='undefined' && typeof(lpMTag.addFirstPartyCookies)!='undefined')?lpMTag.addFirstPartyCookies(lpButtonCTTUrl):lpButtonCTTUrl);window.open(lpButtonCTTUrl,'chat5774645','width=475,height=400,resizable=yes');return false;\" ><img src='https://server.iad.liveperson.net/hc/5774645/?cmd=repstate&site=5774645&channel=web&&ver=1&imageUrl=http://www.lemurmonitors.com/images' name='hcIcon' border=0></a>");
document.write("</p>");
document.write("<br />");
document.write("<p>");
document.write("<span style='font-size: 150%; font-weight: bold'>Download User Manual</span>");
document.write("<br />");
document.write("<a href='SafeDriverUserManual.pdf' target='_blank'><img src='images/downloadManualSafeDriver.png' alt='SafeDriver User Manual' /></a>");
document.write("<br />");
document.write("<a href='EconoDriverUserManual.pdf' target='_blank'><img src='images/downloadManualEconoDriver.png' alt='EconoDriver User Manual' /></a>");
document.write("<br />");
document.write("<a href='AlertDriverUserManual.pdf' target='_blank'><img src='images/downloadManualAlertDriver.png' alt='AlertDriver User Manual' /></a>");
document.write("</p>");


	updateCart();
}

function writeFooter()
{
	document.write("<a href='news.html'>News</a>");
	document.write("<strong> | </strong>");
	document.write("<a href='about.html'>Corporate Info</a>");
	document.write("<strong> | </strong>");
	document.write("<a href='privacy.html'>Privacy Statement</a>");
	document.write("<strong> | </strong>");
	document.write("<a href='returns.html'>Return &amp; Refund Policy</a>");
	document.write("<strong> | </strong>");
	document.write("<a href='legal.html'>Legal Notice</a>");
	document.write("<strong> | </strong>");
	document.write("<a href='contact.html'>Contact Us</a>");

	document.write("<!-- BEGIN LivePerson Monitor. --><script language='javascript'> var lpMTagConfig = {'lpServer' : 'server.iad.liveperson.net','lpNumber' : '5774645','lpProtocol' : 'https'}; function lpAddMonitorTag(src){if(typeof(src)=='undefined'||typeof(src)=='object'){src=lpMTagConfig.lpMTagSrc?lpMTagConfig.lpMTagSrc:'/hcp/html/mTag.js';}if(src.indexOf('http')!=0){src=lpMTagConfig.lpProtocol+\"://\"+lpMTagConfig.lpServer+src+'?site='+lpMTagConfig.lpNumber;}else{if(src.indexOf('site=')<0){if(src.indexOf('?')<0)src=src+'?';else src=src+'&';src=src+'site='+lpMTagConfig.lpNumber;}};var s=document.createElement('script');s.setAttribute('type','text/javascript');s.setAttribute('charset','iso-8859-1');s.setAttribute('src',src);document.getElementsByTagName('head').item(0).appendChild(s);} if (window.attachEvent) window.attachEvent('onload',lpAddMonitorTag); else window.addEventListener('load',lpAddMonitorTag,false);</script><!-- END LivePerson Monitor. -->");
}

function writeRetailers()
{
	document.write("<p style='text-align: left; font-weight: bold; font-style: italic'>Preferred Retailers: ");
	document.write("<a href='http://www.amazon.com/Lemur-Vehicle-Monitors-LMSD-001-SafeDriver/dp/B00352H2QU/ref=sr_1_2' target='_blank'><img src='images/sm_amazon.gif' alt='Amazon.com' class='retailers' style='top: 12px' /></a>");
	document.write("<a href='http://www.thinkgeek.com/gadgets/car/d2ec/' target='_blank'><img src='images/sm_thinkgeeklogo.gif' alt='ThinkGeek.com' class='retailers' style='top: 4px' /></a></p>");
}
