$(document).ready(function() {

	$('.menuButton').mouseover(function() {
		$(this).attr("src","images/buttons/" + $(this).attr("id") + "_h.png");
	});
	$('.menuButton').mouseout(function() {
		$(this).attr("src","images/buttons/" + $(this).attr("id") + "_n.png");
	});

	if( (navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i)) ) {
		$("img.tumbIcon").parent().click(function(e) {
			var p = $(this).position();
			p['left'] += 200;
			p['top'] -= 50;
			
			$('#bigIcon').attr("src",$(this).children("':first").attr("src"));
			$('#bigIcon').css(p);
			$('#bigIcon').fadeIn("fast");
	
			e.preventDefault();
		});
	} else {
		$("img.tumbIcon").hover(function() {
			var p = $(this).position();
			p['left'] += 200;
			
			$('#bigIcon').attr("src",$(this).attr("src"));
			$('#bigIcon').css(p);
			$('#bigIcon').fadeIn("fast");
		} , function() {
			$('#bigIcon').fadeOut("normal");
		});
	}


	$('.sc_ios_abloadtool').lightBox();
	$('.sc_ios_compgen').lightBox();
	$('.sc_ios_central').lightBox();
	$('.sc_ios_isysinfo').lightBox();
	
	$('.sc_mac_upload').lightBox();


});
