function start_menu() {
	var aEls;
		
	if(aEls = getElementsByClass('start_forjs')) {			
		for(i=0; i<aEls.length; i++) {					
			$(aEls[i]).mouseenter(function() { 
				var imgEl = this.parentNode.getElementsByTagName('IMG')[0];
				if(bs.ie) { imgEl.style.display = 'block'; } 
				else { $(imgEl).fadeIn(); }					
			});
			$(aEls[i]).mouseleave(function() { 
				var imgEl = this.parentNode.getElementsByTagName('IMG')[0]; 
				if(bs.ie) { imgEl.style.display = 'none'; } 
				else { $(imgEl).fadeOut(); }		
			});
		}
	}
}

function start_menu_pos() {
	for(i=0; i<=8; i++) {
		var divEl,imgEl;
		if(divEl = document.getElementById('start_hand_' + i)) {
			if(imgEl = divEl.getElementsByTagName('IMG')[0]) {
				if(divEl.offsetHeight > imgEl.offsetHeight) {
					divEl.style.height = imgEl.offsetHeight + 'px';
				}
				if(divEl.offsetWidth > imgEl.offsetWidth) {
					divEl.style.width = imgEl.offsetWidth + 'px';
				}				
			}			
		}
	}
	
	for(i=0; i<=5; i++) {
		var divEl;
		if(divEl = document.getElementById('start_button_' + i)) {
			divEl.style.display='block';
		}
	}
	
	var aslink;
	if(aslink = document.getElementById('start_superlink')) {
		aslink.style.display = 'none';
	}
}

/*---info---*/
$(function() {
	$('#start_info div').css('display', 'none');
	
	if ($.browser.webkit) { // if chrome
		$('#start_info a').click(function() {
			$('#start_info div').toggle();
		});	
	}
	else {
		$('#start_info p').css('display', 'none');
		
		$('#start_info a.start_info_a').toggle(
			function() {
				$('#start_info div').animate({ width: 'toggle' }, 'slow', function() { $(this).find('p').fadeToggle('fast'); });			
			},
			function() {
				$('#start_info div').find('p').fadeToggle('fast', function() { $(this).parent().animate({ width: 'toggle' }, 'slow'); });
			}
		);		
	}
});

$(function() {
	start_menu();
});
