// Macromedia Open Browser Window
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


//Macromedia Image Swapper
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//Show live clock
function ShowLiveClock(){
 if (!document.layers&&!document.all)
 return
 var Digital=new Date()
 var hours=Digital.getHours()
 var minutes=Digital.getMinutes()
 var seconds=Digital.getSeconds()
 var dn="AM"
 if (hours>12){
 dn="PM"
 hours=hours-12
 }
 if (hours==0)
 hours=12
 if (minutes<=9)
 minutes="0"+minutes
 if (seconds<=9)
 seconds="0"+seconds
//change font size here to your desire
myclock=hours+":"+minutes+":"+seconds+" "+dn
if (document.layers){
document.layers.liveclock.document.write(myclock)
document.layers.liveclock.document.close()
}
else if (document.all)
liveclock.innerHTML=myclock
setTimeout("ShowLiveClock()",1000)
 }

// Rollover text array
var linktext=new Array()
linktext[0]='<h2>Consultancy</h2><p>Our advisory services take full advantage of experience gained during the extensive and varied projects we have undertaken. We ensure our customers get the best return from their investment and achieve their required business result. Services include:<ul><li>Needs analysis - aligning technology to business need</li><li>Content & structural design</li><li>System design and technical build specifications</li><li>Best practice consultancy - application take-up & usability to assist ROI</li><li>Communications & deployment strategies</li></ul>'
linktext[1]='<h2>Project Management</h2><p>We perform a wide variety of project management services to ensure all ALMATECH projects are successfully deployed and meet their associated time and cost efficiency objectives.. To include:<ul><li>Scheduling & resource planning</li><li>Review & progress monitoring</li><li>Communication Management</li><li>User community launch & deployment services</li><li>Management reporting and usage analysis</li><li>Education services</li></ul>'
linktext[2]='<h2>Bespoke Development</h2><p>We deliver bespoke business applications designed around our customers specific needs. Application examples include:<ul><li>Internet and Intranet portals and corporate Micro-sites</li><li>Product and solution catalogues</li><li>Structured content management & real-time delivery tools</li><li>Knowledge profiling tools including management reporting</li><li>Booking & scheduling systems</li><li>Sales accreditation and assessment tools</li><li>Email marketing and newsletter applications </li></ul>'
linktext[3]='<h2>Maintenance</h2><p>We provide system and application support for all ALMATECH developed tools (via remote system access and/or on-site). Contracts and service levels typically support<ul><li>Front-end user interface </li><li>Content & user management tools</li><li>Back-end database structures  - configuration & maintenance </li><li>Fault diagnosis and system updates </li><li>Quarterly reviews - including routine system checks & performance monitoring</li><li>Note: full application hosting can also be provided via a third-party service provider </li></ul>'
var ns6=document.getElementById&&!document.all
var ie=document.all

// Show the rollover text function
function show_text(thetext, whichdiv){
	if (ie) eval("document.all."+whichdiv).innerHTML=linktext[thetext]
else if (ns6) document.getElementById(whichdiv).innerHTML=linktext[thetext] }
	function reset(whichdiv){
if (ie) eval("document.all."+whichdiv).innerHTML='<h2>Tell Me More</h2><p>Roll over one of the four block to find out how we can help you.</p>'
	else if (ns6) document.getElementById(whichdiv).innerHTML='<h2>Tell Me More</h2><p>Roll over one of the four block to find out how we can help you.</p>'
}

// Submit form function
function submitform()
{
  document.PROCESSFORM.submit();
}



// Rotating Text Code
var i=2
var quotewords = new Array();
quotewords[1] = "We have a tremendous problem managing, controlling and updating our products & services information. It is difficult for our sales & marketing people not only to locate the right information, but then be sure it is the correct and latest version.";
quotewords[2] = "We are unable to determine whether our employees have the appropriate levels of knowledge and skills required to carry out their job roles. Without this information we cannot adequately assess their capability which definitely restricts how we support & develop our staff moving forward.";
quotewords[3] = "There is no straightforward and reliable way we can book our customers and staff onto the training and PR events that we regularly run. We need an on-line and automated way to allocate places and confirm each booking; otherwise error and disappointments will continue to cost us money.";
quotewords[4] = "Providing our internal and external customer's information is one thing, but providing it in such a way that it gives them the right level of detail they need, is a difficult challenge. You need to look at how you structure and present the content and how you get the users to navigate through to the information in a controlled way.";
quotewords[5] = "We have not been able to achieve the success and revenue return we need from our sales & marketing campaigns. Getting our teams to initially focus correctly and then deliver the right customer communication, requires everyone to be fully up-to-speed and on-message in a very short period of time.";

function StartText(){
var randomnumber=Math.floor(Math.random()*4)
document.getElementById('quotesummary').innerHTML=quotewords[randomnumber+1];
}

function Timer(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
curTime=hours*3600+mins*60+secs;

if (curTime>=closeTime){
    document.getElementById('quotesummary').innerHTML=quotewords[i];
    if (i < 5){	
        i++;
    }
    else{
        i = 1;
    }
    StartTime();
    }
else{
    window.setTimeout("Timer()",1000)}
}

function StartTime(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
closeTime=hours*3600+mins*60+secs;
closeTime+=10;	// How many seconds until the next banner rotation
Timer();
}