function setLinks(){
	var links = document.getElementsByTagName('a');
	for (var i=0;i<links.length;i++){
	 	if(links[i].className == 'spa' || links[i].className == 'products'){
		links[i].onmouseover = function(){fadeOut(this.className,100);return false}
		//links[i].onmouseover = function(){fadetext('fadeTxt',255);return false}
		links[i].onmouseout = function(){fadeIn(this.className,0);return false}
		}
	}
} 
  function fadeOut(id,opValue){
  if(opValue > 0){
  //fadetext('fadeTxt',153);
  var d = document.getElementById(id);
  if(!d) return;
  d.style.filter = 'alpha(opacity='+opValue+')';
  d.style.MozOpacity = opValue/100;
  d.style.opacity = opValue/100;
  opValue -= 10;
   window.setTimeout("fadeOut('"+id+"',"+opValue+")", 70);
   }
 }
 function fadeIn(id,opValue){
   if(opValue <= 100){
   var d = document.getElementById(id);
  if(!d) return;
  d.style.filter = 'alpha(opacity='+opValue+')';
  d.style.MozOpacity = opValue/100;
  d.style.opacity = opValue/100;
  opValue += 10;
   window.setTimeout("fadeIn('"+id+"',"+opValue+")", 70);
	}
  }
  function fadetext(txtId,hex){
if(hex<255) {
document.getElementById(txtId).style.color="rgb("+hex+","+hex+","+hex+")";
hex+=11; 
setTimeout("fadetext('"+txtId+"',"+hex+")",70); 
	}
}
function go_home(){
var h = document.getElementById('header');
if(!h || window.location == "http://indoline.net/santika/" || window.location == "http://indoline.net/santika/index.php" || window.location == "http://indoline.net/santika/index.htm") return;
h.setAttribute('title','Back to Çantika\'s home');
h.onmouseover = function(){this.style.cursor = "pointer";return false};
h.onclick = function(){window.location = "http://indoline.net/santika/";return false};
}
window.onload = function(){go_home()};
