/* ---------------------- AS_ShowChild -----------------------*/

function SetShowChild(){
ObjArray=document.getElementsByTagName('div');
for (Index=0;Index<ObjArray.length;Index++){
 Temp="@#! "+ObjArray[Index].className+" !@#";
 if (Temp.indexOf(" AS_ShowChild ")>-1){
  ObjArray[Index].onmouseover = ShowChild;
  ObjArray[Index].onmouseout = HideChild;
 }
}
}

function ShowChild(){
try{
document.getElementById(this.id+"Child").style.display="block";
} catch(e) {}
}

function HideChild(){
try{
document.getElementById(this.id+"Child").style.display="none";
} catch(e) {}
}


/* ---------------------- BtnImageSwap -----------------------*/

/* css
.AS_Hover {cursor:pointer;cursor:hand;} 
*/

function SetHovers(){
ObjArray=document.getElementsByTagName('img');
for (Index=0;Index<ObjArray.length;Index++){
 Temp="@#! "+ObjArray[Index].className+" !@#";
 if (Temp.indexOf(" AS_Hover ")>-1){
  ObjArray[Index].onmouseover = BtnImageSwapHover;
  ObjArray[Index].onmouseout = BtnImageSwap;
 }
}
}

function BtnImageSwapHover(){
if(!this.src.indexOf("_Hover.")>-1){
this.src = this.src.substring(0,this.src.length-4)+"_Hover"+this.src.substring(this.src.length-4);
}
}

function BtnImageSwap(){
if(this.src.indexOf("_Hover.")>-1){
this.src = this.src.substring(0,this.src.length-10)+this.src.substring(this.src.length-4);
}
}


/* ---------------------- Onload Detector -----------------------*/

Postload();

function Postload(){
try{
	if(document.getElementsByTagName('body').length>0){
		window.onload = Postloader();
	} else {
		setTimeout("Postload()",10);
	}

} catch(e){
setTimeout("Postload()",10);
}
}

function Postloader(){
SetHovers();
SetShowChild();
}