// This is the implementation of SimpleSwap
// by Jehiah Czebotar
// Version 1.1 - June 10, 2005
// Distributed under Creative Commons
//
// Include this script on your page
// then make image rollovers simple like:
// <img src="/images/ss_img.gif" oversrc="/images/ss_img_over.gif">
//
// http://jehiah.com/archive/simple-swap
// 


function SimpleSwap(el,which){
  el.src=el.getAttribute(which || "origsrc");
}

function SimpleSwapSetup(){
  var x = document.getElementsByTagName("img");
  for (var i=0;i<x.length;i++){
    var oversrc = x[i].getAttribute("oversrc");
    if (!oversrc) continue;
      
    // preload image
    // comment the next two lines to disable image pre-loading
    x[i].oversrc_img = new Image();
    x[i].oversrc_img.src=oversrc;
    // set event handlers
    x[i].onmouseover = new Function("SimpleSwap(this,'oversrc');");
    x[i].onmouseout = new Function("SimpleSwap(this);");
    // save original src
    x[i].setAttribute("origsrc",x[i].src);
  }
}

var PreSimpleSwapOnload =(window.onload)? window.onload : function(){};
window.onload = function(){PreSimpleSwapOnload(); SimpleSwapSetup();}

function changeDesc(desc){ 
var obj = document.getElementById("special"); 

if (desc == 'history'){
obj.innerHTML="<img src='images/subttl_history.gif' alt='Company History' width='549' height='85' border='0'/><br />"
obj.innerHTML+="<strong>J &amp; B Cleaning Services was founded in 1975 and is a privately-owned Virginia corporation.</strong>"
obj.innerHTML+="<br /><br />"
obj.innerHTML+="Originally formed to provide service to commercial office buildings and banks, the company's scope has expanded to include all aspects of building service contracting."
obj.innerHTML+="<br />"
obj.innerHTML+="J &amp; B now employs nearly 300 employees who service more than 20 million square feet of space every day in Maryland, Virginia and Washington, D.C."
} 

else if (desc == 'bizmodel'){ 
obj.innerHTML="<img src='images/subttl_bizmodel.gif' alt='Business Model' width='549' height='85' border='0'/><br />"
obj.innerHTML+="<strong>J &amp; B provides the financial strength of the national firms with the customer support of the smaller firms.</strong>"
obj.innerHTML+="<br /><br />"
obj.innerHTML+="J &amp; B successfully competes against three main types of janitorial companies: franchises, large national companies, and mom and pop operations. Franchises sell their contracts to third parites, large national firms can lose interest with the individual customer, and mom and pop firms do well until they hire more employees than they can manage."
obj.innerHTML+="<br /><br />"
obj.innerHTML+="Our business conduct must not only be legal but also ethical. Profit is an economic necessity for any company. It is critical for us to remain a well-managed company to assure long-term profitability and perpetuate our growth and partnerships with our clients."
}

else{ 
obj.innerHTML="<img src='images/subttl_clients.gif' alt='Company History' width='549' height='85' border='0'/><br />"
obj.innerHTML+="<strong>Our customers are in a variety of industries that all have different needs.</strong>"
obj.innerHTML+="<br /><br />"
obj.innerHTML+="<ul>"
obj.innerHTML+="<em>Educational</em>"
obj.innerHTML+="<li>University</li>"
obj.innerHTML+="<li>Private K-12</li>"
obj.innerHTML+="<li>Preschools</li>"
obj.innerHTML+="<li>Church Preschools</li>"
obj.innerHTML+="</ul>"

obj.innerHTML+="<ul>"
obj.innerHTML+="<em>Governmental</em>"
obj.innerHTML+="<li>Architect of the Capitol</li>"
obj.innerHTML+="<li>Postal facilities</li>"
obj.innerHTML+="<li>Police</li>"
obj.innerHTML+="</ul>"

obj.innerHTML+="<ul>"
obj.innerHTML+="<em>Financial</em>"
obj.innerHTML+="<li>Banks</li>"
obj.innerHTML+="<li>Law/CPA</li>"
obj.innerHTML+="</ul>"

obj.innerHTML+="<ul>"
obj.innerHTML+="<em>Hospitality</em>"
obj.innerHTML+="<li>Hotels</li>"
obj.innerHTML+="<li>Health Clubs</li>"
obj.innerHTML+="<li>Country Clubs</li>"
obj.innerHTML+="</ul>"

obj.innerHTML+="<ul>"
obj.innerHTML+="<em>Medical</em>"
obj.innerHTML+="<li>Hospitals</li>"
obj.innerHTML+="</ul>"

obj.innerHTML+="<ul>"
obj.innerHTML+="<em>Residential</em>"
obj.innerHTML+="<li>Apartment complexes</li>"
obj.innerHTML+="<li>Condo complexes</li>"
obj.innerHTML+="<li>National REIT's</li>"
obj.innerHTML+="</ul>"

obj.innerHTML+="<ul>"
obj.innerHTML+="<em>Retail</em>"
obj.innerHTML+="<li>Home improvement centers</li>"
obj.innerHTML+="<li>Individual stores</li>"
obj.innerHTML+="<li>National chains</li>"
obj.innerHTML+="<li>Malls</li>"
obj.innerHTML+="</ul>"

obj.innerHTML+="<ul>"
obj.innerHTML+="<em>Commercial</em>"
obj.innerHTML+="<li>Multi-tenant</li>"
obj.innerHTML+="<li>Headquarters</li>"
obj.innerHTML+="<li>Office buildings</li>"
obj.innerHTML+="</ul>"
} 

} 

