jQuery.jPrintAreaLslp=function(el) {
	var iframe=document.createElement('IFRAME');
	var doc=null;
	jQuery(iframe).attr('style','position:absolute;width:0px;height:0px;left:-500px;top:-500px;');
	document.body.appendChild(iframe);
	doc=iframe.contentWindow.document;
	var links=window.document.getElementsByTagName('link');
	for(var i=0;i<links.length;i++) {
		if(links[i].rel.toLowerCase()=='stylesheet') {
			doc.write('<link type="text/css" rel="stylesheet" href="'+links[i].href+'"></link>');
		}
	}
	doc.write('<div id="printIframe">'+jQuery(el).html()+'</div>');
	doc.close();
	//
	var f = function() { onIframeReady(doc, iframe); };
	setTimeout(f, 1000);
};
function onIframeReady(doc, iframe) {
	// hide unnecessary elements	
	jQuery("#printIframe #actionCol", doc).css("display", "none");
	jQuery("#printIframe #directionsFormWrapper", doc).css("display", "none");
	// hide map controls and marker PNGs
	jQuery("#printIframe img[@src*=mapcontrols2.png]", doc).remove();
	//jQuery("#printIframe img[@src*=shadow]", doc).remove();
	//jQuery("#printIframe img[@src*=markerTransparent]", doc).remove();
	// SVG route...
	//alert(jQuery("#directionsMap svg", doc).html());
	if ((jQuery.browser.msie) && (jQuery.browser.version < 7)) {
		jQuery("#directionsWrapper", doc).css("width", "667px");
		jQuery("#directionsPanel", doc).css("width", "220px");
		jQuery("#directionsPanel td", doc).css("font-size", "11px");
	}
	//
	iframe.contentWindow.focus();
	iframe.contentWindow.print();
	// FF needs a bit o time to print before removing iframe
	var f = function() { onPrint(iframe); };
	setTimeout(f, 1000);
}
function onPrint(iframe) {
	document.body.removeChild(iframe);
}