span.squareButton button,
span.squareButton input
{
	width: 60px;
	height: 50px;
	border: 0px;
	background-image:url(../images/SquareButton.png);
	background-position:0 0;
	background-repeat:no-repeat;
	display:-moz-inline-box;
	display:inline-block;
	background-color:transparent;
	letter-spacing:0 !important;
	font-family: Arial !important;
 	font-size:11px !important;
	font-style:normal;
	color:#444444;
	font-weight: normal;
	line-height: 12px;
}

span.squareButton button:hover, 
span.squareButton input:hover, 
span.squarebutton-behavior-hover button,
span.squarebutton-behavior-hover input
{
	background-position: 0 -50px;
}

span.squareButton button:active, 
span.squareButton input:active, 
span.squarebutton-behavior-active button,
span.squarebutton-behavior-active input
{
	background-position: 0 -100px;
}

a.button, span.button, del.button{
	
	cursor:pointer;
	border:none;
    font-size:0;
   
	/*
	for Safari, read this first
	http://creativebits.org/webdev/safari_background_repeat_bug_fix
	*/
	background-position:0 0;
	background-repeat:no-repeat;
	text-decoration:none;
	color:#2e523b;
	font-style:normal;
	margin:0 6px 0px 0;
	padding:0 10px 0 0;	
	padding-top:-2px;
	_position:relative;
	_width:10px;	
	_overflow-y:hidden;
}

a.button, span.button, del.button,
a.button span, span.button button, span.button input, del.button span{
    vertical-align:top;	
    height:19px;
	display:-moz-inline-box;
	display:inline-block;
	background-image:url(../images/Button.png);
    _background-image:url(../images/Button.png);
}


a.button span, span.button button, span.button input, del.button span{
	
	
	white-space:nowrap;
	cursor:pointer;
    color:#222;
	letter-spacing:0 !important;
    font-family: Arial !important;
    font-size:12px !important;
    font-style:normal;    
    background-color:transparent;
	background-position:100% 0;
	background-repeat:no-repeat;
	padding:0px 20px 0 10px;
	margin:0 -16px 0 10px;
	border:none;
	zoom:1;
	_position:relative;
    _padding-left:0px;
	_padding-right:12px;
	_margin-right:-10px;	
	_display:block;
	_top:0;
	_right:-5px;
	
}

html.safari a.button:focus,
html.safari span.button button:focus{
    outline:none;
}

span.button button, span.button input{
	padding-top:0px;
}

/*Hover Style*/

a.button:hover, 
span.button:hover,
a.button:focus, 
span.button:focus select, 
a.dom-button-focus, 
span.button-behavior-hover{
	background-position:0 -19px;
	color:#222;
	text-decoration:none;
}

a.button:hover span, 
span.button:hover button, 
a.button:focus span, 
span.button:focus select, 
span.button:hover input, 
span.button-behavior-hover button, 
span.button-behavior-hover input{
	background-position:100% -19px;
}

/*Active Style*/

a.button:active, a.button:focus span{
	color:#444;
}

a.button:active span, 
span.button:active button,
span.button:active input, 
span.button-behavior-active button, 
span.button-behavior-active input{
	background-position:100% -38px;
	outline: none;
}

a.button:active, 
span.button:active,
a.dom-button-active, 
span.button-behavior-active{
	background-position:0 -38px;
	color:#222;
	text-decoration:none;
	outline: none;
}

/*Optional hack for IE6 to simulate :hover selector*/

span.squareButton button, span.squareButton input, span.button button, del.button span, span.button input
{
	_behavior:expression(
		(function(el){

			if( typeof( behavior_onMouseEnter) == 'undefined'){

				
				behavior_onMouseEnter = function(el){
					var dEl = this.parentNode;					
					var sClass = dEl.className ;
					dEl.__defaultClassName = sClass ;
					dEl.className = sClass + (this.id == 'squareButton' ? ' squarebutton-behavior-hover' : ' button-behavior-hover');	
					this.setCapture();
				};
				
				behavior_onMouseDown = function(el){
					var dEl = this.parentNode;					
					var sClass = dEl.className ;
					dEl.__defaultClassName2 = sClass ;
					dEl.className = sClass + (this.id == 'squareButton' ? ' squarebutton-behavior-active' : ' button-behavior-active');
					this.setCapture();
				};

				behavior_onMouseLeave = function(el) {
					var dEl = this.parentNode;
					dEl.className = dEl.__defaultClassName ;
					this.releaseCapture();
				};
				
				behavior_onMouseUp = function(el) {
					var dEl = this.parentNode;
					dEl.className = dEl.__defaultClassName2;
					this.releaseCapture();
				};
				
				behavior_onMouseDblClick = function(el){
					var dEl = this.parentNode;
					dEl.className = dEl.__defaultClassName2;
					this.releaseCapture();
				};


			};
			
			
			el.runtimeStyle.behavior = 'none';
			el.onmouseenter = behavior_onMouseEnter;
			el.onmouseleave = behavior_onMouseLeave;
			el.onmousedown = behavior_onMouseDown;
			el.onmouseup = behavior_onMouseUp;
			el.ondblclick = behavior_onMouseDblClick;
			
		})(this));
}
