// JavaScript Document

  function show(id) {
	  if (document.getElementById) {
		  document.getElementById(id).style.display="block";
		} else if (document.all) {
		  document.all[id].style.display="block";
		} else if (document.layers) {
		  document.layers[id].display="block";
		} } 

 function hide(id) {
	  if (document.getElementById) {
		  document.getElementById(id).style.display="none";
		} else if (document.all) {
		  document.all[id].style.display="none";
		} else if (document.layers) {
		  document.layers[id].display="none";
		} } 
		
		
		
		

 function PopupPic(pic_id, pic_width, pic_height) { 
			
				if( navigator.userAgent.indexOf('Opera') != -1) {
					var deskWidth = window.innerWidth;
					var deskHeight = window.innerHeight;
				} else if( navigator.userAgent.indexOf('Firefox') != -1) {			
					var deskWidth = parseInt(window.screen.availWidth);
					var deskHeight = parseInt(window.screen.availHeight);
				} else {			
					var deskWidth = parseInt(window.screen.availWidth);
					var deskHeight = parseInt(window.screen.availHeight);
				}
				
				var scrollWidth = 17;
				var scrollHeight = 17;
				var pic_width;
				var pic_height;
	
				if( (parseInt(pic_width)>=deskWidth) && (parseInt(pic_height)>=deskHeight) ){
					var scrollers = "yes"
					var pic_fin_width = deskWidth;
					var pic_fin_height = deskHeight-20;
				} else if( (parseInt(pic_width)>=deskWidth) && (parseInt(pic_height)<deskHeight) ){
					var scrollers = "yes"
					var pic_fin_width = deskWidth;
					var pic_fin_height = pic_height+scrollHeight;
				} else if( (parseInt(pic_width)<deskWidth) && (parseInt(pic_height)>=deskHeight) ) {
					var scrollers = "yes"
					var pic_fin_width = pic_width+scrollWidth;
					var pic_fin_height = deskHeight-20;
				} else {
					var scrollers = "no"
					var pic_fin_width = pic_width;
					var pic_fin_height = pic_height;
				}
		
				var win_str = pic_id;
				var pic_window = window.open(win_str, 'pop','width='+pic_fin_width+',height='+pic_fin_height+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+scrollers+',resizable=yes,screenX=0,screenY=0,left=0,top=0');
			
				
			}