google.load("feeds","1");

$(function(){
 $(window).hashchange(function(){
  var hash=window.location.hash;
  if(hash=="#about"){about();}
  else if(hash=="#solutions"){solutions();}
  else if(hash=="#product0"){products();}
  else if(hash=="#products"){products("products");}
  else if(hash=="#services"){products("services");}
  else if(hash=="#contact"){contact();}
  else if(hash=="#home" || hash===""){home();}
 });
 $(window).trigger('hashchange');
});

function init(){
 var hash=window.location.hash;
 if(hash=="#about"){about();}
 else if(hash=="#solutions"){solutions();}
 else if(hash=="#product0"){products();}
 else if(hash=="#contact"){contact();}
 else{home();}
 footer();
}

function html(id,text){
 document.getElementById(id).innerHTML=text;
}

var backgs=new Array
backgs[0]="photo1.jpg"
backgs[1]="photo2.jpg"

function bgChange(opt){
 if(opt=="home"){document.body.background='src/images/HomeBg.jpg';}
 else{document.body.background='src/images/background.jpg';}
}

function IncJS(jsFile){document.write('<script type="text/javascript" src="'+jsFile+'"></scr'+'ipt>');}
IncJS('src/js/ajax.js');
IncJS('src/js/menu.js');
IncJS('src/js/footer.js');
IncJS('src/js/home.js');
IncJS('src/js/about.js');
IncJS('src/js/solutions.js');
IncJS('src/js/products.js');
IncJS('src/js/contact.js');
IncJS('src/js/twitter.js');
