<!--
// ----------------------------------------------------
// Layer Scripts
// Copyright Original T Limited
// ----------------------------------------------------

/***********************************************
* Drop Down/ Overlapping Content- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var currentDrop = ""

function overlay(curobj, subobjstr, dropHeight, opt_position){
var leftOffset = 0
if (document.all) {
	leftOffset = -1
}
currentDrop = subobjstr
if (document.getElementById){
var subobj=document.getElementById(subobjstr)
subobj.style.display=(subobj.style.display!="block")? "block" : "none"
var xpos=getposOffset(curobj, "left")+((typeof opt_position!="undefined" && opt_position.indexOf("right")!=-1)? -(subobj.offsetWidth-curobj.offsetWidth) : leftOffset) 
var ypos=getposOffset(curobj, "top")+((typeof opt_position!="undefined" && opt_position.indexOf("bottom")!=-1)? curobj.offsetHeight : dropHeight)
subobj.style.left=xpos+"px"
subobj.style.top=ypos+"px"
return false
}
else
return true
}


function overlayclose(subobj){
	document.getElementById(subobj).style.display="none"
	currentDrop = ""
}


function overlayCustomiseLayer(curobj, subobjstr, dropHeight, opt_position){
var leftOffset = 0
if (document.all) {
	leftOffset = -1
}
if (document.getElementById){
var subobj=document.getElementById(subobjstr)
subobj.style.display=(subobj.style.display!="block")? "block" : "none"
var xpos=getposOffset(curobj, "left")+((typeof opt_position!="undefined" && opt_position.indexOf("right")!=-1)? -(subobj.offsetWidth-curobj.offsetWidth) : leftOffset) 
var ypos=getposOffset(curobj, "top")+((typeof opt_position!="undefined" && opt_position.indexOf("bottom")!=-1)? curobj.offsetHeight : dropHeight)
subobj.style.left=xpos+"px"
subobj.style.top=ypos+"px"
return false
}
else
return true
}

// -->