﻿ jQuery.noConflict();
 jQuery(document).ready(function($) {

// hides buttons, shows objectFrame
  $(".inframelink").click(function(event){
	$("#buttonsenglish a, #buttonsjapanese a,  #buttonsenglish img, #buttonsjapanese img, #turnoff").animate({ 
		height: "hide",
//		opacity: .10,
		borderWidth: "hide"
		}, 4000 );
//	 $("img").hide();
	$(".goback").animate({ 
		height: "show"
		},  3000  );
	$("#objectFrame").removeClass("hidden");
	$(".objectFrame").animate({ 
			height: "show",
			bottom: "show"
			},  4000  );
	$("div#header, #turnoff").hide(4000);
	$(".NHKdiv").hide();
  //alert("NHK hid in inframelink");
//		$(".NHK").animate({ 
//		right: "-100%"
//		  },  4000  );
	//  alert("opened");
  });

// goback home shows buttons, hides objectFrame
  $(".goback").click(function(event) {
  $(".goback").animate({ 
        height: "hide"
      },  3000  );
  $("div#header, #turnoff").show(4000);
  $(".objectFrame").animate({ 
        height: "hide",
		bottom: "hide"
      },  4000  );
//  $("#objectFrame").addClass("hidden");
//  $(".goback").hide();
//  $("img").show();
	//alert("NHK returning from goback");
	$(".NHKdiv").show();
//	$(".NHK").animate({ 
//		right: "25%"
//		},  4000  );
//  alert("opened");
	$("#buttonsenglish a, #buttonsjapanese a, #buttonsenglish img, #buttonsjapanese img, #turnoff").animate({
		height: "show",
//		opacity: 1,
		borderWidth: "show"
		},  4000);
  });

});
	function closer2(){
// hides buttons, shows objectFrame
		//alert("opening");
		jQuery("#buttonsenglish a, #buttonsjapanese a,  #buttonsenglish img, #buttonsjapanese img, #turnoff").animate({ 
			height: "hide",
	//		opacity: .10,
			borderWidth: "hide"
			}, 4000 );
	//	 jQuery("img").hide();
		jQuery(".goback").animate({ 
			height: "show"
			},  3000  );
		jQuery("#objectFrame").removeClass("hidden");
		jQuery(".objectFrame").animate({ 
				height: "show",
				bottom: "show"
				},  4000  );
		jQuery("div#header, #turnoff").hide(4000);
		//alert("NHK div being hidden from closer");
		jQuery(".NHKdiv").hide();
		//	jQuery(".NHK").animate({ 
		//	right: "-100%"
		//	  },  4000  );
		//alert("opened");
	};

