function browser2 () {
	var b = navigator.appName;
	var v = this.version = navigator.appVersion;
	var ua = navigator.userAgent.toLowerCase();	
	this.v = parseInt(v);
	this.safari = ua.indexOf("safari")>-1;	// always check for safari & opera 
	this.opera = ua.indexOf("opera")>-1;	// before ns or ie
	this.ns = !this.opera && !this.safari && (b=="Netscape");
	this.ie = !this.opera && (b=="Microsoft Internet Explorer");
	this.gecko = ua.indexOf('gecko')>-1; // check for gecko engine
	if (this.ns) {
		this.ns4 = (this.v==4);
		this.ns6 = (this.v>=5);	
		this.b = "Netscape";
	}else if (this.ie) {
		this.ie4 = this.ie5 = this.ie55 = this.ie6 = false;
		if (v.indexOf('MSIE 4')>0) {this.ie4 = true; this.v = 4;}
		else if (v.indexOf('MSIE 5')>0) {this.ie5 = true; this.v = 5;}
		else if (v.indexOf('MSIE 5.5')>0) {this.ie55 = true; this.v = 5.5;}
		else if (v.indexOf('MSIE 6')>0) {this.ie6 = true; this.v = 6;}
		this.b = "MSIE";
	}else if (this.opera) {
		this.v=parseInt(ua.substr(ua.indexOf("opera")+6,1)); // set opera version
		this.opera6=(this.v>=6);
		this.opera7=(this.v>=7);
		this.b = "Opera";
	}else if (this.safari) {
		this.ns6 = (this.v>=5);	// ns6 compatible correct?
		this.b = "Safari";
	}
	this.dom = (document.createElement && document.appendChild && document.getElementsByTagName)? true : false;
	this.def = (this.ie||this.dom);
	this.win32 = ua.indexOf("win")>-1;
	this.mac = ua.indexOf("mac")>-1;
	this.other = (!this.win32 && !this.mac);
	this.supported = (this.def||this.ns4||this.ns6||this.opera)? true:false;
};



//////////////////////////

var oChaser = {
	topMargin	: document.all ? 220 : 220,
	callRate	: 75,
	slideTime	: 800,
	maxDiff		: document.all ? document.body.clientHeight : window.innerHeight,
	isIE		: document.all ? true : false,
	chaserDiv	: document.getElementById("contentSkyscrapper")
};
oChaser.main = function( )
{

	if (this.targetY > 220) this.topMargin = 10;
	try
	{
	
		this.currentY	= this.isIE ? this.chaserDiv.style.pixelTop : this.chaserDiv.offsetTop;
		
		this.scrollTop	= this.isIE ? document.body.scrollTop : window.pageYOffset;
		var newTargetY	= this.scrollTop + this.topMargin;
		
		if ( this.currentY != newTargetY ) {
	
			if ( newTargetY != this.targetY ) {
				this.targetY = newTargetY;
				this.slideInit( );
			}
	
			this.slide( )	;
		  }
		this.Centrar();
	}
	catch(ex)
	{alert(ex);}

if (this.targetY <= 220) this.topMargin = 220;
	try
	{
	
		this.currentY	= this.isIE ? this.chaserDiv.style.pixelTop : this.chaserDiv.offsetTop;
		
		this.scrollTop	= this.isIE ? document.body.scrollTop : window.pageYOffset;
		var newTargetY	= this.scrollTop + this.topMargin;
		
		if ( this.currentY != newTargetY ) {
	
			if ( newTargetY != this.targetY ) {
				this.targetY = newTargetY;
				this.slideInit( );
			}
	
			this.slide( )	;
		  }
		this.Centrar();
	}
	catch(ex)
	{alert(ex);}

};
oChaser.slideInit = function( )
{
	var now	= new Date( );
	
	this.A	= this.targetY - this.currentY;
	this.B	= Math.PI / ( 2 * this.slideTime );
	this.C	= now.getTime( );

	if (Math.abs(this.A) > this.maxDiff) {
		this.D = this.A > 0 ? this.targetY - this.maxDiff : this.targetY + this.maxDiff;
		this.A = this.A > 0 ? this.maxDiff : -this.maxDiff;
	} else {
		this.D = this.currentY;
	}
};
oChaser.slide = function( )
{
	var now	= new Date( );
	var newY	= this.A * Math.sin( this.B * ( now.getTime( ) - this.C ) ) + this.D;
	newY		= Math.round( newY );
	
	if (( this.A > 0 && newY > this.currentY ) ||( this.A < 0 && newY < this.currentY )) {
		if ( this.isIE )
			this.chaserDiv.style.pixelTop = newY;
		else
			this.chaserDiv.style.top = newY;
	}
};

oChaser.Centrar = function( )
{
	if ( this.isIE )
		this.chaserDiv.style.pixelLeft = GetRelativeLeft(document.getElementById("barralimpa"));
		
	else
		this.chaserDiv.style.left = GetRelativeLeft(document.getElementById("barralimpa"));
	
};

function initSkyscrapper()
{
	oChaser.chaserDiv = document.getElementById("contentSkyscrapper");
	setInterval("oChaser.main( )", 75);
	oChaser.Centrar();
	balancepagSkyscrapper();
}

function GetRelativeLeft(obj)
{
	try
	{
		if(obj == null)
			return 0;
		return obj.offsetLeft + this.GetRelativeLeft(obj.offsetParent);
	} 
	catch (ex)
	{
		//alert("Bug GetRelativeLeft\n" + ex.message);
	}
}
function balancepagSkyscrapper()
{
	if (oChaser.chaserDiv.innerHTML.match(/embed/)) {
		document.getElementById("barralimpa").style.width = 120;
		document.getElementById("contentSkyscrapper").style.display = 'block';
	}
}
