webmaster = "Webmaster";
sales = "sales";
site = "ParScientific.com";
tech = "tech"

function smail()
{
	document.write('<a href=\"mailto:' + sales + '@' + site + '\">' + sales + '@' + site + '</a>');
}

function tmail()
{
	document.write('<a href=\"mailto:' + tech + '@' + site + '\">' + tech + '@' + site + '</a>');
}

function fmail()
{
	document.write('<input type=hidden name=\"recipient\" value=\"' + sales + '@' + site + '\">');
}


function TextStart(sideMenuNumber)
{
	document.write("<div id='textcolumn'>")
	document.write("<table align='left' border=0 cellspacing=0 cellpadding=0 width='100%'>")
	document.write("<tr align='left' valign='top'>")
	document.write("<td valign='top' width='225'>")

	SideMenu(sideMenuNumber)

	document.write("</td>")
	document.write("<td valign='top'>")
	document.write("<div id='body'>")
	//document.write("<h2>" + MenuHeader + "<hr/></h2>")
	document.write("<h2>" + document.title + "<hr/></h2>")

	document.write("<table cellspacing='1' cellpadding='1' width='90%' summary='' border='0'>")
	document.write("<tr>")
	document.write("<td valign='top'>")
}


function TextEnd()
{
	document.write("</td>")
	document.write("</tr>")	
	document.write("</table>")
	document.write("</div>")

	document.write("</td>")
	document.write("</tr>")
	document.write("</table>")
	document.write("</div>")	
}



function Flash()
{
	document.write("<div id='flashrow'>");
	document.write("<div id='flashrowright'>");
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='703' height='210' id='tech' >");
	document.write("<param name='allowScriptAccess' value='sameDomain' />");
	document.write("<param name='movie' value='graphics/flash.swf?xml_path=graphics/slides.xml' />");
	document.write("<param name='quality' value='high' />");
	document.write("<embed src='graphics/flash.swf?xml_path=graphics/slides.xml' quality='high' width='703' height='210' name='tech' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
	document.write("</div>");
	document.write("</div>");
}


//This function is used in Exhibition.html to show a checkmark, if PC time is past exhibition.
//This means we do not need to worry about marking which exhibitions are done and which are not.
function ShowImage(exhibDate)
{
	
	Now = new Date()
	NowMonth = Now.getMonth()+1
	if (NowMonth < 10)
		NowMonth = "0" + NowMonth
	NowDay = Now.getDate();
	if (NowDay < 10)
		NowDay = "0" + NowDay
	NowDate = Now.getFullYear() + "-" + NowMonth + "-" + NowDay
	
	if (NowDate > exhibDate)
		document.write("<img src='graphics/check.gif'>")	
}



//This function will take a distributor and draw a table. To avoid too much redundancy!
function ShowDistributor(area, name, adress, tlf, fax, web)
{
	document.write("<table cellspacing='1'>")
	document.write("<tr>")
	document.write("<td rowspan='6' width='30' nowrap>&nbsp;</td>")
	document.write("<td align='right'>Sales area</td>")
	document.write("<td rowspan='6' width='20' nowrap>&nbsp;</td>")
	document.write("<td><font size='4'><strong>" + area + "</strong></font></td>")
	document.write("</tr>")
	document.write("<tr>")
	document.write("<td align='right' nowrap>Company name</td>")
	document.write("<td><font size='3'><strong>" + name + "</strong></font></td>")
	document.write("</tr>")
	document.write("<tr>")
	document.write("<td align='right'>Address</td>")
	document.write("<td>" + adress + "</td>")
	document.write("</tr>")
	document.write("<tr>")
	document.write("<td align='right'>Tel.</td>")
	document.write("<td>" + tlf +"</td>")
	document.write("</tr>")
	document.write("<tr>")
	document.write("<td align='right'>Fax.</td>")
	document.write("<td>" + fax + "</td>")
	document.write("</tr>")
	document.write("<tr>")
	document.write("<td align='right'>More info</td>")
	document.write("<td><a href=" + web + ">" + web + "</a></td>")
	document.write("</tr>")
	document.write("</table>")
	document.write("<br/><br/>")	
}

function Footer()
{
	document.write("<div id='footer'>");
	document.write("<p>Copyright &copy; 2009 by PAR Scientific A/S </p>");
	document.write("</div>");
}