function getElementsByClass( searchClass, domNode, tagName) {
	if (domNode == null) domNode = document;
	if (tagName == null) tagName = '*';
	var el = new Array();
	var tags = domNode.getElementsByTagName(tagName);
	var tcl = " "+searchClass+" ";
	for(i=0,j=0; i<tags.length; i++) {
		var test = " " + tags[i].className + " ";
		if (test.indexOf(tcl) != -1)
			el[j++] = tags[i];
	}
	return el;
}

init = function(){
	var l = getElementsByClass('navBg');
	for(var i = 0; i < l.length; i++){
		l[i].onmouseover = function(){
			t[i] = new Tween(this.style,'backgroundPosition', Tween.bounceEaseOut, -61, -4, 0.5, '0px $px');
			t[i].start();
		}
		l[i].onmouseout = function(){
			t[i].stop();
			t[i] = new Tween(this.style,'backgroundPosition', Tween.strongEaseOut, -4, -61, 0.7, '0px $px');
			t[i].start();
		}
	}
	
	
	var m = getElementsByClass('leftLink');
	for(var i = 0; i < m.length; i++){
		m[i].onmouseover = function(){
			this.style.backgroundColor = '#05B3D8';
		}
		m[i].onmouseout = function(){
			t[i] = new ColorTween(this.style, 'backgroundColor', Tween.regularEaseOut, '05B3D8', '7ED2F6', 0.3);
			t[i].start();
		}
	}
}