// JavaScript Document

function navOver(src)	{
	var obj = document.getElementById(src);
	obj.className = "navOptionSelected";
}

function navOut(src)	{
	var obj = document.getElementById(src);
	obj.className = "navOption";
}

function setVisible(src, set)	{
	var obj = document.getElementById(src);	
	obj.style.display = set;
}
<!--//--><![CDATA[//><!--
	
	sfHover = function() {
		var sfEls = document.getElementById("nav").getElementsByTagName("LI");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=" sfhover";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}
	if (window.attachEvent) window.attachEvent("onload", sfHover);
	
	//--><!]]>

function CreateControl(src,iWidth,iHeight,thisTitle)	{
	var retStr = "";
	retStr = retStr + "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='" + iWidth + "' height='" + iHeight + "'>";
	retStr = retStr + "<param name='movie' value='Images/titleGen.swf?thisTitle=" + thisTitle + "'/>";
	retStr = retStr + "<param name='quality' value='high' />";
	retStr = retStr + "<param name='scale' value='noscale'/>";
	retStr = retStr + "<param name='wmode' value='transparent'/>";
	retStr = retStr + "<embed src='Images/titleGen.swf?thisTitle=" + thisTitle + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + iWidth + "' height='" + iHeight + "' scale='noscale' wmode='transparent'></embed></object>";
	
	var d = document.getElementById(src);
	//alert(d.id);
	d.innerHTML = retStr;
}

function CreateEvents(src)	{
	var retStr = "";
	var iWidth = 560;
	var iHeight = 19;
	retStr = retStr + "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='" + iWidth + "' height='" + iHeight + "'>";
	retStr = retStr + "<param name='movie' value='events.swf'/>";
	retStr = retStr + "<param name='quality' value='high' />";
	retStr = retStr + "<param name='scale' value='noscale'/>";
	retStr = retStr + "<param name='wmode' value='transparent'/>";
	retStr = retStr + "<embed src='events.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + iWidth + "' height='" + iHeight + "' scale='noscale' wmode='transparent'></embed></object>";
	
	var d = document.getElementById(src);
	//alert(d.id);
	d.innerHTML = retStr;
}

function printPage(sCon1,sCon2,sExclude)	{
	var obj1 = document.getElementById(sCon1);	
	var retStr = "";
	//alert(obj1.innerHTML);
	
	newwindow=window.open();
	newdocument=newwindow.document;
	retStr =  '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';
	retStr =  retStr + '<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />';
	retStr =  retStr + '<title>Jaltek Integrated Electronic Design and Manufacturing Services</title>';
	retStr =  retStr + '<style><!--.newsHeadline{font-family: Arial, Helvetica, sans-serif;font-size: 18px;font-weight: bold;color: #333333;	line-height: 24px;}';
	if (sExclude != "") {
		retStr =  retStr + sExclude + '{display:none;}';
	}
	retStr =  retStr + '--></style>';
	retStr =  retStr + '</head><body>'
	retStr =  retStr + '<div style="font-family: Arial, Helvetica, sans-serif; font-size: 11px; line-height:16px; padding:10px; padding-top:0px;">';
	retStr =  retStr + '<img src="Images/logo_tagline.gif" align="left"><br/><br/><br/><br/><br/><br/><br/><br/>';	
	retStr =  retStr + 	obj1.innerHTML;
	retStr =  retStr +  "<br/><a href='javascript:this.print()'>" + "Print this Page</a>";
	retStr =  retStr +  "<br/><br/><span style='font-size:10px; color:#999999;'>&copy; The Jaltek Group of Companies 2008.</span></div>";
	retStr =  retStr + "</body></html>";
	newdocument.write(retStr);
	newdocument.close();
}

function popUpDetails(theURL) {
	// THIS FUNCTION IS USED
	var theName = "friend";
	var theProperties = "width=460,height=400";
	var theProps = theProperties +  ",status=yes,left=150,top=150";
	window.open(theURL,theName,theProps);
}

// News Ticker
function InitTicker() {
	 // Default values
	 currentStory = -1; 
	 currentLength = 0; 
	 //The top stories anchor tag
	 oAnchor = document.getElementById("tickerHREF"); 
	 NewsTicker(); 
}

var numStories = 4;
function NewsTicker() {
	var delay; 
	// Get next story if title is done from previous 
	if(currentLength == 0)	// length of title being written out 
		{ currentStory++; currentStory = currentStory % numStories;
		// use HTML entity for quotes so we don't mess up the anchor 
		currentTitle = storyMatrix[0][currentStory].replace(/&quot;/g,'"');
		oAnchor.href = storyMatrix[1][currentStory]; } 
		// Write title to anchor 
		oAnchor.innerHTML = currentTitle.substring(0, currentLength); 
		// adjust length of substring and set delays 
		if(currentLength != currentTitle.length) { 
			currentLength++; delay = charDelay; 	
		} else { 
			currentLength = 0; delay = storyDelay; 
		} // Recurse ticker 
		setTimeout("NewsTicker()", delay); 
}

function footerPos()	{
	// this function places the footer in IE6 - should not be called by any other browser
	var bDoc	= document.body.clientHeight;	
	document.getElementById("footer").style.top = bDoc + "px";
}

//window.onload = InitTicker;

<!-- Macromedia functions -->
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_jumpMenuGo(selName,targ,restore){ //v3.0
  var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}