	// Layer Banner Observa.com.uy
	// Luciano Giordano © 2007 [luciano@crudomedia.com]
	
	myLayerCocina = function(id,campaignId,url,src,width,height) {
		this.id = id;
		this.campaignId = id;
		this.url = url;
		this.src = src;
		this.width = 640
		//this.height = 680
		//this.width = (window.innerWidth) ? window.innerWidth : document.body.clientWidth;
		this.height = (window.innerHeight) ? window.innerHeight : document.body.clientHeight;
		if(this.height==0) this.height = 480;
		//if(this.widht==0) this.widht = 600;
	}
	
	myLayerCocina.prototype = {
		set: function() {
			document.write("<div id=\""+this.id+"\" style=\"position: absolute; top:120px; left: 170px; visibility: hidden; width: "+this.width+"; height: "+this.height+"\"></div>");
		},
		write: function() {
			document.getElementById(this.id).innerHTML = this.writeSWF();
			document.getElementById(this.id).style.visibility = 'visible';
		},
		writeSWF: function() {
			var htmlString = "<object type=\"application/x-shockwave-flash\" data=\""+this.src+"\" width=\""+this.width+"\" height=\""+this.height+"\">\n";
			htmlString += "<param name=\"movie\" value=\""+this.src+"\" />\n";
			htmlString += "<param name=\"quality\" value=\"high\" />\n";
			htmlString += "<param name=\"menu\" value=\"false\" />\n";
			htmlString += "<param name=\"scale\" value=\"noscale\" />\n";
			htmlString += "<param name=\"allowScriptAccess\" value=\"always\" />\n";
			htmlString += "<param name=\"wmode\" value=\"transparent\" />\n";
			htmlString += "</object>\n";
			return htmlString;
		},
		jump: function() {
			this.close();
			window.open("http://www.observa.com.uy/adserve/admin/frmRedirectFlash.aspx?id="+this.campaignId+"&lnk="+this.url+"&ref=http://www.observa.com.uy/default.aspx");
		},
		close: function() {
			document.getElementById(this.id).innerHTML = '';
		}
	}