window.addEvent('domready', function() {	


	new UvumiDropdown('dropdown');
	
	$$('.menu_btn').each(function(img) {
img.set('morph', {duration: '500', transition: 'bounce:out'});

	img.addEvent('mouseover', function() { 
//	img.morph({'background-position','100%'});
	
//img.morph({color:'#444444', 'opacity': [0,1]});
img.morph({'background-position':['400 -30','400 0'],color:'#a02237','padding':['0px 25px 10px 25px','5px 25px 5px 25px']});

	
	
	//this.tween( 'background-position','top '); 
	//this.tween( 'background-position','top '); 
	});
	img.addEvent('mouseleave', function() { 

img.morph({'background-position':['400 0','400 -30'],color:'#ffffff','padding':['10px 25px 0px 25px','5px 25px 5px 25px']});
	});
  });
  
  
  
  		var accordion = new Accordion($$('.toggler'),$$('.element'), {
			opacity: true,
			display:0,
			show: false,
			onActive: function(toggler) { toggler.setStyle('color', '#ff3300'); },
			onBackground: function(toggler) { toggler.setStyle('color', '#000000'); }
		});


  
  	  	$$('.mix_btn').each(function(img) {
									 
									 
	img.addEvent('mouseover', function() { 
	this.set('opacity','0.5'); 
	});
	img.addEvent('mouseout', function() { 
	this.set('opacity','1'); 
	});
	/*
	img.addEvent('click', function() { 
	window.location.href=this.getElements('a.d_red');
	//this.toggle();
	});
	*/
  });
  
  
   	  	$$('.dd_btn').each(function(img) {
									 
									 
	img.addEvent('mouseover', function() { 
	this.getElements('a.noacc_title').setStyle('color','#000'); 
	this.getElements('p.size12').setStyle('color','#000'); 
	this.setStyle('border','1px solid #aaa'); 
	});
	img.addEvent('mouseout', function() { 
	this.getElements('a.noacc_title').setStyle('color','#666'); 
	this.getElements('p.size12').setStyle('color','#666'); 
	this.setStyle('border','1px solid #ccc'); 
	});

	img.addEvent('click', function() { 
	window.location.href=this.getElements('a.noacc_title');
	//this.toggle();
	});

  });
  
  
  
  	
	  	$$('.change_thumb').each(function(img) {
									 
	var   thisalt_id =img.getElements('img.this_thumb').get('alt');
	var aathisalt_id= new String(thisalt_id)	
 var thisalt_src =img.getElements('img.this_thumb').get('src');
	var aathisalt_src= new String(thisalt_src)	
								 

	img.addEvent('mouseover', function() { 
	
	//alert(img.getParent().getParent().getParent().get('id'));
//	alert(img.getParent().getParent().getParent().get('id'));
	
	//alert(aathisalt_src);
	//alert(aathisalt_id);
	//  var thisalt_src =img.getElements('img.this_thumb').get('src');
	 // var thisalt_src =img.get('lang');

	$(aathisalt_id).setAttribute("src",this.get('rev'));
	$(aathisalt_id).getParent().setAttribute("href",this.get('href'));
//	alert(aathisalt_id);
			
			
	});
	img.addEvent('mouseout', function() { 
	this.setStyle('background-color','#ffffff'); 
	});
	img.addEvent('click', function() { 
	window.location.href=this.getElements('a.bold');
	//this.toggle();
	});
  });
		
  
  
    	  	$$('.red_btn').each(function(img) {
									 
	img.addEvent('mouseover', function() { 
	
if(this.get('id')!='red_cbtn')	{
	this.getElements('b.red_b').setStyle('background-position','0% 0%');
	this.getElements('a.red_a').setStyle('background-position','100% 0%');
	this.getElements('a.red_a').setStyle('text-decoration','none');
	this.getElements('a.red_a').setStyle('color','#fff');
}
	});
	img.addEvent('mouseout', function() { 
if(this.get('id')!='red_cbtn')	{
	this.getElements('b.red_b').setStyle('background-position','0% 100%');
	this.getElements('a.red_a').setStyle('background-position','100% 100%');
	this.getElements('a.red_a').setStyle('color','#333');
}
	});
  });
			
			
			
			
			
  
});	


if (document.all && /MSIE (5\.5|6)/.test(navigator.userAgent) &&
  document.styleSheets && document.styleSheets[0] && document.styleSheets[0].addRule)
 {
 document.styleSheets[0].addRule('ul', 'behavior: url(css/iepngfix.htc)');
 document.styleSheets[0].addRule('img', 'behavior: url(css/iepngfix.htc)');
 document.styleSheets[0].addRule('div', 'behavior: url(css/iepngfix.htc)');
 }

/*
function	check_search(){
	  str =  document.getElementById("login_user").value;
	  strpp =  document.getElementById("login_pass").value;
 	 if(str=='' || str=="Email Address"){
		document.getElementById("login_user").focus();
	return false;
	
	
	}else if(strpp=='' || strpp=="password"){
		document.getElementById("login_pass").focus();
	return false;
	
	
	
	}else{
	return true;
		}
}
*/

function	check_search(){
	  str =  document.getElementById("login_user").value;
	  strpp =  document.getElementById("login_pass").value;
	  default_em = $("login_user").get('lang');
 	 if(str=='' || str== default_em){
		document.getElementById("login_user").focus();
	return false;
	
	
	}else if(strpp=='' || strpp=="password"){
		document.getElementById("login_pass").focus();
	return false;
	
	
	
	}else{
	return true;
		}
}


var notfirst=1;
function resetinput1(){
if(notfirst==1){document.getElementById("login_user").value=""; notfirst=0;}
}
var notfirst2=1;
function resetinput2(){
if(notfirst2==1){document.getElementById("login_pass").value=""; notfirst2=0;}
}



