function showGraph(but, dSize, cond) {
		   var img = but.parentElement.children[5];
		   var map = but.parentElement.children[6];
		   var showBut = but.parentElement.children[0];
		   var mBut = but.parentElement.children[1];
		   var pBut = but.parentElement.children[2];
		   var fullScreen = but.parentElement.children[3];
		   if (showBut != but) {
		      if (showBut.title == 'Show a Graph')
		         return;
		      var w = img.width;
		      if (w*dSize > 100) {
		         img.style.maxWidth = (w = Math.round(w*dSize)) + "px";
		         if (!img.style.maxWidth)
		            img.width = w;
		      }
		      var h = img.height;
		      if (h*dSize > 100) {
		         img.style.maxHeight = (h = Math.round(h*dSize)) + "px";
		         if (!img.style.maxHeight) 
		            img.height = h;
		      }   
		      return;
		   }
		   if (but.title == 'Show a Graph') {
		      if (!cond) {
		         mBut.hidden = false;
		         pBut.hidden = false;
		         fullScreen.hidden = false;
		         but.title='Hide a Graph';
		         but.className='button_imageB button_hideGraph';
  		         img.hidden=false;
		      }   
//		      if (!img.src)
		         img.src=img_src;
		         getContent(map, img_map_src);
		   } else {
		      mBut.hidden = true;
		      pBut.hidden = true;
		      fullScreen.hidden = true;
		      but.title='Show a Graph';
		      but.className='button_imageB button_showGraph';
		      img.hidden=true;
		   }
		}
// if cond is true, do not turn it on (from hidden, leave that property as is.
if cond is true, do not turn it on (from hidden, leave that property as is.
if cond is true do not turn it on ( from hidden leave that property as is .
function showGraph(but, dSize, cond) {
		   var img = but.parentElement.children[5];
		   var map = but.parentElement.children[6];
		   var showBut = but.parentElement.children[0];
		   var mBut = but.parentElement.children[1];
		   var pBut = but.parentElement.children[2];
		   var fullScreen = but.parentElement.children[3];
		   if (showBut != but) {
		      if (showBut.title == 'Show a Graph')
		         return;
		      var w = img.width;
		      if (w*dSize > 100) {
		         img.style.maxWidth = (w = Math.round(w*dSize)) + "px";
		         if (!img.style.maxWidth)
		            img.width = w;
		      }
		      var h = img.height;
		      if (h*dSize > 100) {
		         img.style.maxHeight = (h = Math.round(h*dSize)) + "px";
		         if (!img.style.maxHeight) 
		            img.height = h;
		      }   
		      return;
		   }
		   if (but.title == 'Show a Graph') {
		      if (!cond) {
		         mBut.hidden = false;
		         pBut.hidden = false;
		         fullScreen.hidden = false;
		         but.title='Hide a Graph';
		         but.className='button_imageB button_hideGraph';
  		         img.hidden=false;
		      }   
		         img.src=img_src;
		         getContent(map, img_map_src);
		   } else {
		      mBut.hidden = true;
		      pBut.hidden = true;
		      fullScreen.hidden = true;
		      but.title='Show a Graph';
		      but.className='button_imageB button_showGraph';
		      img.hidden=true;
		   }
		}
function showGraph ( but , dSize , cond ) { var img = but . parentElement . children [ 5 ] ; var map = but . parentElement . children [ 6 ] ; var showBut = but . parentElement . children [ 0 ] ; var mBut = but . parentElement . children [ 1 ] ; var pBut = but . parentElement . children [ 2 ] ; var fullScreen = but . parentElement . children [ 3 ] ; if ( showBut != but ) { if ( showBut . title == 'Show a Graph' ) return ; var w = img . width ; if ( w * dSize > 100 ) { img . style . maxWidth = ( w = Math . round ( w * dSize ) ) + "px" ; if ( ! img . style . maxWidth ) img . width = w ; } var h = img . height ; if ( h * dSize > 100 ) { img . style . maxHeight = ( h = Math . round ( h * dSize ) ) + "px" ; if ( ! img . style . maxHeight ) img . height = h ; } return ; } if ( but . title == 'Show a Graph' ) { if ( ! cond ) { mBut . hidden = false ; pBut . hidden = false ; fullScreen . hidden = false ; but . title = 'Hide a Graph' ; but . className = 'button_imageB button_hideGraph' ; img . hidden = false ; } img . src = img_src ; getContent ( map , img_map_src ) ; } else { mBut . hidden = true ; pBut . hidden = true ; fullScreen . hidden = true ; but . title = 'Show a Graph' ; but . className = 'button_imageB button_showGraph' ; img . hidden = true ; } }
if cond is true, do not turn it on (from hidden, leave that property as is.
if cond is true do not turn it on ( from hidden leave that property as is .
//		      if (!img.src)