/* buttons-control.js
 * 
 * Author: Garik Suess
 * Creation Date: 10/10/09
 * 
 * Copyright 2009 u-city Gibraltar Ltd.
 */

function controlButtons() {
	var smallButtons = $(".small-button");
	var silverButtons = $(".silver-button");
	
	if ($.browser.msie && $.browser.version=="6.0") {
		//alert("Im the annoying IE6");

		smallButtons.hover(function(){
			$(this).addClass("small-button-hover");
		},function(){
			$(this).removeClass("small-button-hover");
		});
		
		silverButtons.hover(function(){
			$(this).addClass("silver-button-hover");
		},function(){
			$(this).removeClass("silver-button-hover");
		});
	}
	
	
	smallButtons.mousedown(function(){
		$(this).addClass("small-button-hold");
		$(this).removeClass("small-button");
	}).mouseup(function(){
		$(this).addClass("small-button");
		$(this).removeClass("small-button-hold");
	});
	
	silverButtons.mousedown(function(){
		$(this).addClass("silver-button-hold");
		$(this).removeClass("silver-button");
	}).mouseup(function(){
		$(this).addClass("silver-button");
		$(this).removeClass("silver-button-hold");
	});
}
