/* JavaScript Document ShowHideApDiv.js 
Currently using 2 Ad-Panels
1. Abstract Paintings          "apDivAd-Panel"
2. Faux Kitchen Tile (Painted) "apDivFauxTilesAD"
*/

var visStr="hidden", obj, DivId;
var v1=false, v2=false;

function ShowHideDiv(DivId)
{  
	/*
	var msg
	if (DivId=="apDivAd-Panel") {
		v1=true;v2=false;
	} else {
		v1=false;v2=true;
	}	
	msg = "DivID= " + DivId + " v1= " + v1 + " v2=" + v2;
	alert(msg)
	*/

	obj = document.getElementById(DivId)  
	obj = obj.style
	if(visStr=='hidden') {
		visStr='visible'
	} else if(visStr=='visible') {
		visStr='hidden'  
	}
	obj.visibility = visStr
}

var n;
function textUnderline(n, DivId)
{ 
  obj = document.getElementById(DivId)  
  if (n==1) { 
	  obj.style.textDecoration = "underline" 
  } else {
      obj.style.textDecoration = "none" 
  }  
}

var x, oldCursor;
function setCursor(x, Id)
{ 
  obj = document.getElementById(Id)  
  
  oldCursor = obj.runtimeStyle.cursor
  if (x==1) { 
	  obj.style.cursor = "move" 
  } else {
      obj.style.cursor = oldCursor 
  }
}



