/* CSS Document */
function Buttonon(imag){
	document[imag].src = eval(imag+"on.src")
}

function Buttonoff(imag){
	document[imag].src = eval(imag+".src")
}


	// *********** Buttons Off ***************************
             
			 b1 = new Image();      
             b1.src = "images/b1.gif";
			 b2 = new Image();      
             b2.src = "images/b2.gif";
			 b3 = new Image();      
             b3.src = "images/b3.gif";
			 b4 = new Image();      
             b4.src = "images/b4.gif";
			 b5 = new Image();      
             b5.src = "images/b5.gif";
			 b6 = new Image();      
             b6.src = "images/b6.gif";
			 b7 = new Image();      
             b7.src = "images/b7.gif";
			 b8 = new Image();      
              b8.src = "images/b8.gif";
			b9 = new Image();      
             b9.src = "images/b9.gif";
			 b12 = new Image();      
             b12.src = "images/b12.gif";
			 t1 = new Image();      
             t1.src = "images/testimonials.gif";
			 t2 = new Image();
			 t2.src= "images/de_testimonials.gif"
  		     t3 = new Image();
			 t3.src= "images/fr_testimonials.gif"
			  t4 = new Image();
			 t4.src= "images/jp_testimonials.gif"
	// *********** Buttons On ********************************

			 b1on = new Image();      
             b1on.src = "images/b1o.gif";
			 b2on = new Image();      
             b2on.src = "images/b2o.gif";
			 b3on = new Image();      
             b3on.src = "images/b3o.gif";
			 b4on = new Image();      
             b4on.src = "images/b4o.gif";
			 b5on = new Image();      
             b5on.src = "images/b5o.gif";
			 b6on = new Image();      
             b6on.src = "images/b6o.gif";
			 b7on = new Image();      
             b7on.src = "images/b7o.gif";
			 b8on = new Image();      
             b8on.src = "images/b8o.gif";
			 b9on = new Image();      
             b9on.src = "images/b9o.gif";
			  b12on = new Image();      
             b12on.src = "images/b12o.gif";
			 t1on = new Image();      
             t1on.src = "images/testimonials_on.gif";
			 t2on = new Image();
			 t2on.src= "images/de_testimonials_on.gif"
			 t3on = new Image();
			 t3on.src= "images/fr_testimonials_on.gif"
			 t4on = new Image();
			 t4on.src= "images/jp_testimonials_on.gif"
function loader()
{
preLoad = new Array();
for (i = 0; i <= 6; i++)
	{
	preLoad[i] = new Image();
	}
	preLoad[0].src = "images/b1o.gif";
	preLoad[1].src = "images/b2o.gif";
	preLoad[2].src = "images/b3o.gif";
	preLoad[3].src = "images/b4o.gif";
	preLoad[4].src = "images/b5o.gif";
	preLoad[5].src = "images/b6o.gif";
	preLoad[6].src = "images/b7o.gif";
} 

function setColor(el, bg) {
  if (el.style) el.style.backgroundColor = bg;
}

function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){		  
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){		  
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){		   
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){		   
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		   
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		 
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		   
		    return false
		 }

 		 return true					
	}
