/*
 * Hide e-mail from bots
 *
 * Usage: <script type="text/javascript">print_mail_to_link('info');</script>
 */
var rhs1 = "sensics";
var rhs2 = ".com";

function print_mail_to_link( lhs ) 
{
   document.write("<a href=\"mailto");
   document.write(":" + lhs + "@");
   document.write(rhs1 + rhs2 + "\">" + lhs + "@" + rhs1 + rhs2 + "<\/a>");
}



/*
 * pops up centered window
 *
 * link example:	<a href="page.html" onClick="pop_win('page.html','','450', '250','resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no');return false;">
 * settings example: 'resizable=yes,scrollbars=yes,toolbar=yes,status=yes,menubar,location,directories'
 */
var win = null;
function pop_win( mypage, myname, w, h, features )
{
	var winl = (screen.width-w)/2;
	var wint = (screen.height-h)/2;
	
	if (winl < 0)
		winl = 0;
	
	if (wint < 0)
		wint = 0;
	
	var settings = 'height=' + h + ',';
	settings += 'width=' + w + ',';
	settings += 'top=' + wint + ',';
	settings += 'left=' + winl + ',';
	settings += features;

	win = window.open( mypage, myname, settings );
	win.window.focus();
}


// as suggested in: http://www.adobe.com/devnet/activecontent/articles/devletter.html
// example:	print_flash("135","140","/files/flash/clients-homepage.swf","easynet clients");
//			print_flash("135","140","/files/flash/clients-clients-page.swf","easynet clients");
function print_flash(width,height,fileName,noembed)
{
   document.write('<object style="position:relative;z-index:5;" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" height="'+height+'" width="'+width+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">\n');
   document.write('<param value="'+fileName+'" name="Movie" />\n');
   document.write('<param value="'+fileName+'" name="Src" />\n');
   document.write('<param value="transparent" name="WMode" />\n');
   document.write('<param value="-1" name="Play" />\n');
   document.write('<param value="-1" name="Loop" />\n');
   document.write('<param value="High" name="Quality" />\n');
   document.write('<param value="-1" name="Menu" />\n');
   document.write('<param value="always" name="AllowScriptAccess" />\n');
   document.write('<param value="ShowAll" name="Scale" />\n');
   document.write('<param value="0" name="DeviceFont" />\n');
   document.write('<param value="0" name="EmbedMovie" />\n');
   document.write('<param value="#ffffff" name="BGColor" />\n');
   document.write('<param value="1" name="SeamlessTabbing" />\n');
   document.write('<param value="0" name="Profile" />\n');
   document.write('<param value="0" name="ProfilePort" /><embed src="'+fileName+'" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"><noembed>'+noembed+'</noembed></embed></object>\n');
}









