﻿
	function EmailStoryLocal() {
	
		var sFileLeafRef = document.location
		var sTitle = $(".ContentTitle").text()
		var sReleaseDate  = $(".Date").text()

		var sMailToLink = 'mailto:?subject=' + sTitle + ' - ' + sReleaseDate+ '&body=Here is an iSuppli article that may be of interest to you:%0D' + sFileLeafRef;								

		win = window.open( sMailToLink, 'emailWindow'); 
		
		// close window if user clicks back to parent
		if (win && win.open && !win.closed) 
		{
			win.close(); 
		}				

	}
	
	function PrintStoryLocal() {
		
		var txt =   '<head><link href="http://cdn.isuppli.com/style.css" rel="stylesheet" type="text/css" /></head>'
		txt = txt + '<body>'
		txt = txt + '	<div id="topnav">'
		txt = txt + '		<div class="content">'
		txt = txt + '			<div class="logo">'
		txt = txt + '				<div class="content">'
		txt = txt + '					<a href="http://www.isuppli.com/"><img class="isupplilogo" src="http://cdn.isuppli.com/img/new-logo.png" alt="Main Logo" /></a>'
		txt = txt + '				</div>'
		txt = txt + '				<div class="sublogo">Applied Market Intelligence</div>'
		txt = txt + '			</div>'
		txt = txt + '		</div>'
		txt = txt + '	</div>'
		txt = txt + "<div style='background-color:#fff;padding:20px;width:996px;'>"
		txt = txt + $("#fullcontent").html()
		txt = txt + "<div>"
		txt = txt + '</body>'

		winPrintPreview = window.open(); 
		winPrintPreview.document.write(txt);
		winPrintPreview.document.close();


	}
	
	

