﻿// JScript File

function highlight(id)
{
    e = document.getElementById(id);
//    e.setAttribute("class", "topcellhover");
    e.style.backgroundColor = "#717171";
//    if (id == "careers")
//        e.setAttribute("class", "ltopcellhover");
    
}

function restore(id)
{
    e = document.getElementById(id);
//    e.setAttribute("class", "topcell");
    e.style.backgroundColor = "#666666";
//    if (id == "careers")
//        e.setAttribute("class", "ltopcell");    
}


var delay=100;
var currentChar=1;
var destination="textDestination";
function type()
{
  if (document.getElementById)
  {
    var dest=document.getElementById(destination);
    if (dest)// && dest.innerHTML)
    {
      dest.innerHTML=text.substr(0, currentChar);
      //dest.innerHTML+=text[currentChar-1];
      currentChar++
      if (currentChar>text.length)
      {
        currentChar=1;
        setTimeout("type()", 60000);
      }
      else
      {
        setTimeout("type()", delay);
      }
    }
  }
}

function startTyping(textParam, delayParam, destinationParam)
{
  text=textParam;
  delay=delayParam;
  currentChar=1;
  destination=destinationParam;
  type();
}

function fillDiv(elementId, contentId)
{
  if (document.getElementById)
  {
    var dest=document.getElementById(elementId);
    if (dest)// && dest.innerHTML)
    {
      if (contentId == 1)
      {  
        dest.innerHTML = "<table width='100%'><tr><td style='padding:10px;'>"
                        + "<h6 style='color:Navy;'>Business Value and Benefits</h6>"
                        + "<p align='justify'>As your company evolves and grows, its business needs change. SAP's All-in-One business solutions are comprehensive and highly configurable.<br/><ul style='list-style:none;'>"
                        + "<li><a href='../DataFiles/BusinessValueandBenefits/IndustryValueProposition-Manufacturing.pdf' target='_blank' style='color:Navy; font-size:smaller; text-decoration: none;'>Industry Value Proposition - Manufacturing</a></li>" 
                        + "<li><a href='../DataFiles/BusinessValueandBenefits/IndustryValueProposition-Wholesale.pdf' target='_blank' style='color:Navy; font-size:smaller; text-decoration: none;'>Industry Value Proposition - Wholesale</a></li>" 
                        + "<li><a href='../DataFiles/BusinessValueandBenefits/IndustryValueProposition-ServiceProvider.pdf' target='_blank' style='color:Navy; font-size:smaller; text-decoration: none;'>Industry Value Proposition - Service Provider</a></li><ul></p>" 
                        + "<a href='#' onclick='sp1.showPreviousPanel();' style='color:Navy; font-family:Arial; font-weight:bold; font-size:smaller;'>back</a><td><tr><table>";
      }
      if (contentId == 2)  
      {  
        dest.innerHTML = "<table width='100%'><tr><td style='padding:10px;'>"
                        + "<h6 style='color:Navy;'>Solutions Overview</h6>"
                        + "<p align='justify'>SAP Business All-in-one solutions adapt to your changing business needs and deliver intuitive user experience to boost productivity. <br/><ul style='list-style:none;'>"
                        + "<li><a href='../DataFiles/SolutionOverview/Solution-in-Detail_Manufacturing.pdf' target='_blank' style='color:Navy; font-size:smaller; text-decoration: none;'>All-in-One Manufacturing package</a></li>" 
                        + "<li><a href='../DataFiles/SolutionOverview/Solution-in-Detail_Service.pdf' target='_blank' style='color:Navy; font-size:smaller; text-decoration: none;'>All-in-One Service Provider package</a></li>" 
                        + "<li><a href='../DataFiles/SolutionOverview/Solution-in-Detail_Wholesale.pdf' target='_blank' style='color:Navy; font-size:smaller; text-decoration: none;'>All-in-One Wholesale package</a></li><ul></p>" 
                        + "<a href='#' onclick='sp1.showPreviousPanel();' style='color:Navy; font-family:Arial; font-weight:bold; font-size:smaller;'>back</a><td><tr><table>";        
      }
      if (contentId == 3)  
      { 
        dest.innerHTML = "<table width='100%'><tr><td style='padding:10px;'>"
                        + "<h6 style='color:Navy;'>Customer Success Stories</h6>"
                        + "<p align='justify'>Midsize companies are choosing proven, comprehensive SAP Business All-in-One solutions. <br/><ul style='list-style:none;'>"
                        + "<li><a href='../DataFiles/CustomerSuccessStories/GREATCOMPANIESRunSAP-Successstoriesofgrowingcompanies.pdf' target='_blank' style='color:Navy; font-size:smaller; text-decoration: none;'>Success stories of growing companies</a></li>" 
                        + "<li><a href='../DataFiles/CustomerSuccessStories/Patronics_ Industrial_Machinery.pdf' target='_blank' style='color:Navy; font-size:smaller; text-decoration: none;'>Patronics (s) Pte Ltd</a></li>" 
                        + "<li><a href='../DataFiles/CustomerSuccessStories/VirginCosmetic_A4[1].pdf' target='_blank' style='color:Navy; font-size:smaller; text-decoration: none;'>The Virgin Cosmetics Company</a></li><ul></p>" 
                        + "<a href='#' onclick='sp1.showPreviousPanel();' style='color:Navy; font-family:Arial; font-weight:bold; font-size:smaller;'>back</a><td><tr><table>";                 
      }
      if (contentId == 4)  
      {
        dest.innerHTML = "<table width='100%'><tr><td style='padding:10px;' align='center'>"
                        + "<h6 style='color:Navy;'>Resources</h6>"
                        + "<table width='100%' height='100%'><tr><td width='50%' height='50%'>"
                        + "<h5 style='color:Navy;' style='color:Gray; font-weight: bold; font-face: verdana; font-size: 10pt;'>IDC White Papers</h5>"
                        + "<ul style='list-style:none;'>"
                        + "<li><a href='../DataFiles/Resources/IDCWhitePapers/BusinessAgilityasGrowthEnabler.pdf' target='_blank' style='color:Navy; font-size:smaller; text-decoration: none;'>Business Agility</a></li>" 
                        + "<li><a href='../DataFiles/Resources/IDCWhitePapers/DeliveringCustomerValue.pdf' target='_blank' style='color:Navy; font-size:smaller; text-decoration: none;'>Delivering Customer Value</a></li>" 
                        + "<li><a href='../DataFiles/Resources/IDCWhitePapers/HittingtheMovingTargetofOperationalExcellence.pdf' target='_blank' style='color:Navy; font-size:smaller; text-decoration: none;'>Operational Excellence</a></li>" 
                        + "<li><a href='../DataFiles/Resources/IDCWhitePapers/IDC_Study_May07_Final.pdf' target='_blank' style='color:Navy; font-size:smaller; text-decoration: none;'>IDC Study</a></li><ul>" 
                        + "</td><td width='50%' height='50%'>"
                        + "<h5 style='color:Navy;' style='color:Gray; font-weight: bold; font-face: verdana; font-size: 10pt;'>Solution briefs</h5>"
                        + "<ul style='list-style:none;'>"
                        + "<li><a href='../DataFiles/Resources/SolutionBriefs/Solution-Brief_Manufacturing[1].pdf' target='_blank' style='color:Navy; font-size:smaller; text-decoration: none;'>Manufacturing Package</a></li>" 
                        + "<li><a href='../DataFiles/Resources/SolutionBriefs/Solution-Brief_Wholesale[1].pdf' target='_blank' style='color:Navy; font-size:smaller; text-decoration: none;'>Wholesale Package</a></li>" 
                        + "<li><a href='../DataFiles/Resources/SolutionBriefs/Solution-Brief_Service[1].pdf' target='_blank' style='color:Navy; font-size:smaller; text-decoration: none;'>Solution for Services</a></li><ul>" 
                        + "</td></tr></table>"
                        + "<a href='#' onclick='sp1.showPreviousPanel();' style='color:Navy; font-family:Arial; font-weight:bold; font-size:smaller;'>back</a><td><tr><table>";                           
      }
      
      //var sp1 = new Spry.Widget.SlidingPanels("SlidingPanels1");
      sp1.showNextPanel();
    }
  }
}