// --------------------------------------------------
//		(c) SingularIT 2001
// --------------------------------------------------
/*
function SL_show() {
function SL_hide() {
function SL_MoveTo( x, y ) {
function SL_ResizeTo( w, h ) {
function SL_GetRef() {
function SL_GetLeft() {
function SL_GetTop() {
function SL_GetWidth() {
function SL_GetHeight() {
*/
// --------------------------------------------------
function SinLayer( idStr ) {
// --------------------------------------------------
	this.idStr = idStr;
	this.idPtr = layerGetRef(idStr);

	this.makeAnimatable	= SIN_makeAnimatable; // requires lib_ani.js

	this.x = layerGetX(this.idStr);
	this.y = layerGetY(this.idStr);
	this.h = layerGetHeight(this.idStr);
	this.w = layerGetWidth(this.idStr);
	return (this);
}
// --------------------------------------------------
//	PROTOTYPE METHOD DECLARATION
// --------------------------------------------------
var the_proto = SinLayer.prototype;
the_proto.S 				= SL_show;
the_proto.H 				= SL_hide;
the_proto.MoveTo 			= SL_MoveTo;
the_proto.ResizeTo 			= SL_ResizeTo;
the_proto.getLeft			= SL_GetLeft;
the_proto.getTop			= SL_GetTop;
the_proto.getWidth			= SL_GetWidth;
the_proto.getHeight			= SL_GetHeight;
the_proto.setToHeight 		= SL_setToHeight;
the_proto.getRef 			= SL_GetRef;
// --------------------------------------------------
// METHODS TO BE SET LATER
// --------------------------------------------------
function SIN_makeAnimatable() {	return;		}
// --------------------------------------------------
function SL_setToHeight() {
// --------------------------------------------------
	if (browser.ie) {
		this.idPtr.style.pixelHeight = this.getHeight();
	}
	else {
		this.idPtr.clip.height = this.getHeight();
	}
}
// --------------------------------------------------
// METHODS FOR SINLAYER
// --------------------------------------------------
function SL_show() { layerShow(this.idStr); }
function SL_hide() { layerHide(this.idStr); }
function SL_MoveTo( x, y ) { x = parseInt(x); y = parseInt(y); layerMoveTo( this.idStr, x, y ); this.x=x; this.y=y; }
function SL_ResizeTo( w, h ) { w = parseInt(w); h = parseInt(h); layerResizeTo( this.idStr, w, h ); this.w=w; this.h=h; }
function SL_GetRef() { return (layerGetRef(this.idStr)); }
function SL_GetLeft() {	return (layerGetX(this.idStr)); }
function SL_GetTop() { return (layerGetY(this.idStr)); }
function SL_GetWidth() { return (layerGetWidth(this.idStr)); }
function SL_GetHeight() { return (layerGetHeight(this.idStr)); }

