mover = new Array();
mout = new Array();
mover0 = new Array();
mout0 = new Array();

	for(m=1;m<6;m++) {
		mover[m] = new Image()
		mout[m] = new Image()
		mover0[m] = new Image()
		mout0[m] = new Image()
		}

	for(m=1;m<6;m++) {
		mover[m].src = "images/m1_" +m+ "a.gif"
		mout[m].src = "images/m1_" +m+ ".gif"
		mover0[m].src = "images/m0_" +m+ "a.gif"
		mout0[m].src = "images/m0_" +m+ ".gif"
		}

	function mOn(mn) {
		document["m"+mn].src = mover[mn].src;
	}

	function mOff(mn) {
		document["m"+mn].src = mout[mn].src;
	}

	function mOn0(mn) {
		document["m_"+mn].src = mover0[mn].src;
	}

	function mOff0(mn) {
		document["m_"+mn].src = mout0[mn].src;
	}

function  mto(m2,m1){
	location.href="mailto:"+m1+"@"+m2;
}

function cmnPlaceholder( eThis, sText, sClass_on_empty ){
	eThis.onfocus = function(){ if( eThis.value.length && eThis.value == sText ){ eThis.value = ''; } cmnRemove_class( this, sClass_on_empty ); eThis.select(); }
	eThis.onblur = function(){ if( !this.value.length ){ cmnSet_class( this, sClass_on_empty ); this.value = sText; } }
	if( !eThis.value.length ){ eThis.onblur(); }
	if( !eThis.getAttribute( 'placeholder' ) ){ eThis.setAttribute( 'placeholder', sText ); }
}

function cmnRemove_class( eOn, sClass_name ){
	cmnSet_class( eOn, "", sClass_name );
}

function cmnSet_class( eOn, sClass_name, sInstead ){
	if( eOn ){
		sClass_name = ( sClass_name.length ) ? sClass_name.replace( /(^\s+|\s+$)/, "" ) : "";
		if( eOn.className.length ){
			var sOld = sClass_name;
			if( sInstead && sInstead.length ){
				sInstead = sInstead.replace( /\s+(\S)/g, "|$1" );
				if( sOld ){
					sOld += "|";
				}
				sOld += sInstead;
			}
			eOn.className = eOn.className.replace( new RegExp("(^|\\s+)(" + sOld +")($|\\s+)", "g"), "$1" );
		}
		eOn.className += ( eOn.className.length && sClass_name ? " " : "" ) + sClass_name;
	}
}
