//change photo
function change_photo( item, photo ){
	item.src = photo;
}

//simplePreload( '01.gif', '02.gif' ); 
function simplePreload()
{
  var args = simplePreload.arguments;
  document.imageArray = new Array(args.length);
  for(var i=0; i<args.length; i++)
  {
    document.imageArray[i] = new Image;
    document.imageArray[i].src = args[i];
  }
}

function roll_staff(){
	jQuery(document).ready(function(){
		var showImage = jQuery("#big_img");
		
		jQuery(".small_img").each(function(){
			jQuery(this).mouseover(function(){
				showImage.attr("src", this.src );
			}).click(function(){
				showImage.attr("src", this.src );
			});

			var p = jQuery(this).parent("a");
			if( 0 == p.size() ){
				jQuery(this).wrap("<a href='" + this.src + "' class='small_img_a'></a>"); 
				p = jQuery(this).parent("a");
			}
			
			p.lightBox();
		});
	})
}
