/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Mike Hudson :: http://www.afrozeus.com */

function setupFadeLinks() {
  arrFadeLinks[0] = "http://www.unlikelysource.com/";
  arrFadeTitles[0] = "<h1>Welcome!!!</h1>";
  arrFadeLinks[1] = "http://www.unlikelysource.com/html/about.html";
  arrFadeTitles[1] = "<b>unlikelysource.com</b> is the <i>Magic Behind the Button</i>.  Have you ever wondered what happens when you press the <b>OK</b> button?  Where does the information go?  Or when you press the button to upload a file: where does the file go?  We use open source software, combined with custom programming, to make your website come alive with the press of a button!  We do web <b>development</b> which fills in the gaps left behind by the web <b>design</b>. <p>The origins of what we now know as the 'Web' can be traced to the European Organization for Nuclear Research (CERN), located in Switzerland.  From roughly 1980 to 1991, an idea known as <i>hypertext</i> was developed, where you highlight a word or phrase, and can then 'jump' to a related topic.  Also, the solution to the problem of how to display text and graphics on different platforms was solved with the evolution of the <i>web browser</i> were born.  From 1992 to 1995 a number of protocols converged and the basis for the <i>Worldwide Web</i> (WWW) was formed.  Commercialization set in, and by the turn of the millennium, it seemed as if everybody had to have a website.  We all know the story of the 'Dot Com Boom' ... and more infamously, the 'Dot Com Bust.'  What survived were a ... whole bunch of websites, in various stages of completion.  Add to that an enormous wave of small businesses jumping on board.  The problem many people face, however, is that although knowledge of how to build pretty web pages is widespread, the ability to infuse a website with <b>Business Intelligence</b> is lacking.  This is where we come in!</p>";
  arrFadeLinks[2] = "mailto:info@unlikelysource.com";
  arrFadeTitles[2] = "<b>Web design</b> is a process of conceptualization, planning, modeling, and execution of electronic media content delivery via Internet in the form of technologies (such as markup languages) suitable for interpretation and display by a web browser or other web-based graphical user interfaces (GUIs). The intent of web design is to create a web site (a collection of electronic files residing on one or more web servers) that presents content (including interactive features or interfaces) to the end user in the form of web pages once requested. Such elements as text, forms, and bit-mapped images (GIFs, JPEGs, PNGs) can be placed on the page using HTML, XHTML, or XML tags. Displaying more complex media (vector graphics, animations, videos, sounds) usually requires plug-ins such as Flash, QuickTime, Java run-time environment, etc. Plug-ins are also embedded into web pages by using HTML or XHTML tags. Improvements in the various browsers' compliance with W3C standards prompted a widespread acceptance of XHTML and XML in conjunction with Cascading Style Sheets (CSS) to position and manipulate web page elements. The latest standards and proposals aim at leading to the various browsers' ability to deliver a wide variety of media and accessibility options to the client possibly without employing plug-ins. -- [From WikiPedia]";
  arrFadeLinks[3] = "http://www.unlikelysource.com/html/faq.html";
  arrFadeTitles[3] = "A <b>web developer</b> is a software developer or software engineer who is specifically engaged in the development of World Wide Web applications, or distributed network applications that are run over the HTTP protocol from a web server to a web browser. Many web developers are also skilled in related areas such as web design, information architecture, usability engineering, web content management systems, web server administration, database administration, software engineering, project management, network security, and search engine optimization. Developers often specialize in either frontend or backend work. Frontend developers tend to focus on the client-side and typically work with technologies such as markup languages, ECMAscript and its variants (JavaScript, JScript, ActionScript), CSS, and the DOM. Backend developers usually focus on the interaction between server-side frameworks using Perl, Python, Ruby, PHP, JSP, or .NET and databases. Some backend developers maintain databases directly on their web servers, while in other situations the backend developer calls data, managed by a database administrator, on an external system.In recent years the role of Presentation Layer Developer has evolved from the Frontend Technologist/Interface Developer role. -- [From WikiPedia]";
  arrFadeLinks[4] = "mailto:info@unlikelysource.com";
  arrFadeTitles[4] = "<b>Business intelligence</b> (BI) refers to technologies, applications and practices for the collection, integration, analysis, and presentation of business information and sometimes to the information itself. The purpose of business intelligence--a term that dates at least to 1958--is to support better business decision making.  Thus, BI is also described as a decision support system (DSS).<p>BI is sometimes used interchangeably with briefing books, report and query tools and executive information systems. In general, business intelligence systems are data-driven DSS.  BI systems provide historical, current, and predictive views of business operations, most often using data that has been gathered into a data warehouse or a data mart and occasionally working from operational data. Software elements support the use of this information by assisting in the extraction, analysis, and reporting of information. Applications tackle sales, production, financial, and many other sources of business data for purposes that include, notably, business performance management. Information may be gathered on comparable companies to produce benchmarks. -- [From WikiPedia]";
  arrFadeLinks[5] = "http://www.unlikelysource.com/";
  arrFadeTitles[5] = "<b>Open Source</b> is a development methodology, which offers practical accessibility to a product's source (goods and knowledge). Some consider open source as one of various possible design approaches, while others consider it a critical strategic element of their operations. Before open source became widely adopted, developers and producers used a variety of phrases to describe the concept; the term open source gained popularity with the rise of the Internet, which provided access to diverse production models, communication paths, and interactive communities.The open source model of operation and decision making allows concurrent input of different agendas, approaches and priorities, and differs from the more closed, centralized models of development. The principles and practices are commonly applied to the development of source code for software that is made available for public collaboration, and it is usually released as open-source software. -- [From WikiPedia]";
  arrFadeLinks[6] = "mailto:info@unlikelysource.com";
  arrFadeTitles[6] = "What Makes <b>unlikelysource.com</b> Different?<br><ul><li>20+ years programming experience</li><li>20+ years database experience</li><li>Affiliated with world&rsquo;s largest ISP</li><li>Affiliated with world's largest Internet payment services company</li><li>Services based on the Open Source model</li><li>Locally based, which means you can see and meet with the developer directly</li><li>Personalized service</li><li>Reasonable price</li><li>Affiliated with a network of artists, programmers, and Linux systems administrators</li></ul>";
  arrFadeLinks[7] = "http://www.unlikelysource.com/";
  arrFadeTitles[7] = "In short, <b>unlikelysource.com</b> offers <ul><li>Complete <b>web development</b></li><li>Working with your existing web designer or graphic artist if you have them</li><li>Using free <b>open source</b> software</li><li>To add <b>business intelligence</b> to your website</li><li>In order to make you more <b>profitable</b></li></ul>";
}

// You can also play with these variables to control fade speed, fade color, and how fast the colors jump.

var m_FadeOut = 255;
var m_FadeIn=0;
var m_Fade = 2;
var m_FadeStep = 6;
var m_FadeWait = 33333;
var m_bFadeOut = true;

var m_iFadeInterval;

window.onload = Fadewl;

var arrFadeLinks;
var arrFadeTitles;
var arrFadeCursor = 0;
var arrFadeMax;

function Fadewl() {
  m_iFadeInterval = setInterval(fade_ontimer, 60);
  arrFadeLinks = new Array();
  arrFadeTitles = new Array();
  setupFadeLinks();
  arrFadeMax = arrFadeLinks.length-1;
  setFadeLink();
}

function setFadeLink() {
  var ilink = document.getElementById("fade_link");
  ilink.innerHTML = arrFadeTitles[arrFadeCursor];
  ilink.href = arrFadeLinks[arrFadeCursor];
}

function fade_ontimer() {
  if (m_bFadeOut) {
    m_Fade+=m_FadeStep;
    if (m_Fade>m_FadeOut) {
      arrFadeCursor++;
      if (arrFadeCursor>arrFadeMax)
        arrFadeCursor=0;
      setFadeLink();
      m_bFadeOut = false;
    }
  } else {
    m_Fade-=m_FadeStep;
    if (m_Fade<m_FadeIn) {
      clearInterval(m_iFadeInterval);
      setTimeout(Faderesume, m_FadeWait);
      m_bFadeOut=true;
    }
  }
  var ilink = document.getElementById("fade_link");
  if ((m_Fade<m_FadeOut)&&(m_Fade>m_FadeIn))
    ilink.style.color = "#" + ToHex(m_Fade);
}

function Faderesume() {
  m_iFadeInterval = setInterval(fade_ontimer, 60);
}

function ToHex(strValue) {
  try {
    var result= (parseInt(strValue).toString(16));

    while (result.length !=2)
            result= ("0" +result);
    result = result + result + result;
    return result.toUpperCase();
  }
  catch(e)
  {
  }
}

