// ------------------------------------------------------------------------
// Componente fondo 1 | Version 1.0

function iconWebSiteLogo1(index){	
	this.index = index
	this.zIndex = rootIWS.ordenZIndex
	rootIWS.ordenZIndex++	
	this.base = rootIWS.componentes[index]
	this.indexImagen = 0
	this.imagenLogo = new Image()
	this.imagenLogo.src = this.base.dirImgs + this.base.img[this.indexImagen]
	this.init()
}

iconWebSiteLogo1.prototype.init = iconWebSiteLogo1FondoInit
function iconWebSiteLogo1FondoInit() {
		altoPag = parent.rootIWS.getWindowH()
		createLayer("logo" + this.index + "FondoDiv",
				 null,
				 this.base.posFondoX,
				 this.base.posFondoY,
				 200,
				 50,
				 null,
				 this.base.colorFondoFondo,
				 "visible",
				 this.zIndex)
	this.logoFondo = new DynLayer("logo" + this.index + "FondoDiv")
	this.mainLayer = this.logoFondo
	createLayer("logo" + this.index + "ImagenDiv",
				"logo" + this.index + "FondoDiv",
				 this.base.posImagenX,
				 this.base.posImagenY,
				 300,
				 60,
				 null,
				 this.base.colorFondoImagen,
				 "visible",
				 0)
	this.logoFondo.moveTo(null, altoPag-60)
	this.logoImagen = new DynLayer("logo" + this.index + "ImagenDiv")
	switch (this.base.comportamiento){
		case 1:{
			this.logoImagen.moveTo(-this.imagenLogo.width,null)
			this.logoImagen.write("<a href='mailto:axel@iconicabcn.com'><img src='" + 
										this.imagenLogo.src + 
										"' border='0'></a>")
			this.logoImagen.slideTo(0,null)
			break
	}
}

iconWebSiteLogo1.prototype.ordenarZIndex = iconWebSiteLogo1OrdenarZIndex
function iconWebSiteLogo1OrdenarZIndex() {
	this.mainLayer.css.zIndex = this.zIndex
}	
//this.setPosicion()	
}

iconWebSiteLogo1.prototype.setPosicion = iconWebSiteLogo1SetPosicion
function iconWebSiteLogo1SetPosicion() {
	altoPag = parent.rootIWS.getWindowH()
	this.logoFondo.moveTo(null, altoPag-60)
}

// ------------------------------------------------------------------------
