
function changeBGimg(ImgPath) {document.body.background = ImgPath;}


function ChgBGRhide() {var BGIhide=document.getElementById("BGtable");
BGIhide.style.visibility="hidden";
AlbumShow();}

function Albumhide() {
var ALBhide=document.getElementById("albumLst");
ALBhide.style.visibility="hidden";}

function AlbumShow() {
var ALBshow=document.getElementById("albumLst");
ALBshow.style.visibility="visible";}

function ChgBGR(ImgPath) {
document.body.background = ImgPath;ChgBGRhide();
AlbumShow();}

function changeBGimg_ALBUM() {
ClrTab='<table id="CLRtable" style="background-color:#ECE9D8"><tr>';
 for (i=0;i<32;i++){ 
 if (i % 4 == 0)   {
 ClrTab += "</tr><tr>\n";     }
  var ImgICON = 'http://picturedomino.com/decors/X' + i + '.gif';
 ClrTab += '<td onDblClick= "ChgBGR(' + "'" + ImgICON + "')" + '"><img src="';
 ClrTab += ImgICON + '" id="BKG" style="cursor:hand" width=25 height=25  alt="C' + i+ '"/></td>\n';   } 
 ClrTab += '</tr><tr><td colspan="4" align="right" >';
 ClrTab += '<button style="cursor:hand" onclick="ChgBGRhide()">X</button></td></tr></table>';
var BGI = document.getElementById("BGtable"); BGI.innerHTML=ClrTab;BGI.style.visibility="visible" ;
Albumhide();}


function chgColor(){
   var bgr = document.getElementById("clrs");
   brdr=(bgr.style.border);
   bgrc=(bgr.style.backgroundColor);
   switch(bgrc)
   {
    case "red":	
	window.status="orange";
	bgr.style.backgroundColor = "orange";
	bgr.style.border="yellow 4px solid";	
	bgr.style.color ="yellow";
	break;
	
	case "orange":	
	window.status="yellow";
	bgr.style.backgroundColor = "yellow";
	bgr.style.border="green 4px solid"; 
	bgr.style.color="green";
	break;
		  
	
	case "yellow":
	window.status="green";
	bgr.style.backgroundColor = "green";
	bgr.style.border="blue 4px solid"; 
	bgr.style.color="blue";
	break;
	
	case "green":		  
	window.status="blue";
	bgr.style.backgroundColor = "blue";
	bgr.style.border="indigo 4px solid";
	bgr.style.color="white";
	break;					  
	
	
	case "blue":	   
	window.status="indigo";
	bgr.style.backgroundColor = "indigo";
	bgr.style.border="violet 4px solid";
	bgr.style.color="white";
	break;
							
	
	case "indigo":		 
	window.status="violet";
	bgr.style.backgroundColor = "violet";
	bgr.style.border="red  4px solid";
	bgr.style.color="red";
	break;				   
	
	
	case "violet":		 
	window.status="red";
	bgr.style.backgroundColor = "red";
	bgr.style.border="orange 4px solid";
	bgr.style.color="orange";
	break;	
	
	
   }
   
   }
  
