function showInfo(id){
	var alldivs = $('.myspan');
	$("li").removeClass("a");
	$('#infoBox'+id).addClass("a");
	alldivs.addClass("hideme");
	$("#mydiv"+id).removeClass("hideme");
	$("#infoPlus").addClass("hideme");
	if(pluses[id] != "") {
		// we got plus!
		$("#infoPlus").html(pluses[id]);
		$("#infoPlus").removeClass("hideme");
	}
}

function highlight(show, id){
	if (show == 1){
		$("#divid"+id).css("background","url('/i/r"+id+"-a.jpg')");
	} else {
		$("#divid"+id).css("background","url('/i/r"+id+".jpg')");
	}	
}

function saveImageAs() 
{
	var imgSrc = $("#imageToSave").attr("src");

	window.win = open(imgSrc);
	setTimeout('win.document.execCommand("SaveAs")', 500);
}

function SaveFile(fname)
{
	document.getElementById('img').contentWindow.document.execCommand('saveas', null ,fname);
}

$(document).ready(function(){
 hideall();
 

 
 
 });
 
 jQuery.preloadImages = function()
{
  for(var i = 0; i<arguments.length; i++)
  {
    jQuery("<img>").attr("src", arguments[i]);
  }
}