﻿// JScript File

var visibleElement = "none";;

function showText(element){
   // alert(element);
  
 
   if ((visibleElement!=element)&&(visibleElement!="none")){
        hide(visibleElement);
   } 
   
    if (visibleElement == element){
        //hide(element);
	}else 
   		show(element);
  /* if (element.style.width =="800px"){
        element.style.border = "none";
        element.style.width = "200px";
        element.style.height = "150px";
        element.style.overflow = "hidden";
   }else {
        element.style.border = "black 1px solid";
        element.style.width = "800px";
        element.style.height = "inherit";
        element.style.overflow = "auto";
    }
    */
}

function hide(element){
        visibleElement = "none";
        element.style.border = "none";
        element.style.width = "200px";
        element.style.height = "150px";
        element.style.overflow = "hidden";
		element.style.padding = "0";
		element.style.backgroundColor = "#F4F81D";
		element.style.cursor = "crosshair";
}

function show(element){
        visibleElement = element;
       
        element.style.border = "black 1px solid";
        element.style.width = "678px";
        element.style.padding = "30px 60px 60px 60px";
        element.style.height = "auto";
        element.style.overflow = "visible";
		element.style.backgroundColor = "white";
        element.style.cursor = "default";
}