function installJuice(){
	var agent=window.navigator.userAgent;
	var url="https://addons.mozilla.org/en-US/firefox/downloads/latest/9488";
	if(!agent.match(/Mozilla\/5.*(Firefox|Shiretoko|Minefield)\/3/g)){
		window.alert("Sorry! Juice currently only supports Firefox 3");
		return false;
	}
	/*if(agent.indexOf("Firefox/3")<=0 && agent.indexOf("Shiretoko/3.1b3pre")<=0)
	{
		window.alert("Sorry! Juice currently supports Firefox 3.0 and up to 3.5b4");
		return false;
	}*/
	/*
	else if(agent.indexOf("Firefox/3")<=0)
	{
		window.alert("Sorry! Juice currently supports Firefox 3.0 and up to 3.5b4");
		return false;
	}*/
	g_onloadHeight = window.innerHeight;
	installClicked = true;
	InstallBarCheck();
	InstallTrigger.install({
		"Juice": { URL: url,
			IconURL: "/img/icon_32.png",
			toString : function() { return this.URL; } } });
	try{
	pageTracker._trackPageview('/download/install_button');			
	}catch(ex){}
	return false;	
	}
var g_onloadHeight = window.innerHeight;
var step = 0;
var installBarTriggered = 0;
var creep = false;
var installClicked = false;
var installBandDown = false;
function InstallBarCheck() {
	if (g_onloadHeight -15 > window.innerHeight) {
		if (!installBandDown && installClicked)
		{
			installClicked = false;
			installBarTriggered++;
			bringDownInstallBand(5);
		}
	} else if (installBarTriggered % 3 == 1) {
		installBarTriggered++;
	}
	setTimeout(function() {InstallBarCheck();}, 500);
}
var divInstallBand = false;
var darkening = false;
var nonInstallerBody = false;
function bringDownInstallBand(val)
{
	if (val > 120) return;
	installBandDown = true;
	if (!divInstallBand)
	{
		divInstallBand   = document.getElementById("installer");
		darkening        = document.getElementById("darken");
		nonInstallerBody = document.getElementById("noinstaller");
	}
	divInstallBand.style.display='block';
	darkening.style.display = "block";
	if( document.body.offsetWidth ) {
		darkening.style.width = document.body.offsetWidth+'px';
		if( window.screen.availHeight )
		darkening.style.height =window.screen.availHeight+'px';
		else
		darkening.style.height = document.body.offsetHeight+'px';
	} 
	else if( document.body && ( document.body.scrollWidth || document.body.scrollHeight ) ) {
		darkening.style.width = document.body.scrollWidth+'px';
		darkening.style.height = (document.body.scrollHeight+120)+'px';
	} else {
		darkening.style.width='100%';
		darkening.style.height='100%';
	}   
	darkening.style.MozOpacity= (0.8) ;    
	divInstallBand.style.marginTop =  '0px';
	// if (!val) val = 5;
	// bringDownInstallBandAnimate(val);
}
function bringDownInstallBandAnimate(val)
{
	if (val > 120) return;          
	if (val < 80) darkening.style.MozOpacity= (val/100) ;   
	divInstallBand.style.marginTop = (val - 110) + 'px';
	//nonInstallerBody.style.marginTop= val + 'px';
	setTimeout("bringDownInstallBandAnimate("+ ( val + 25 ) +")", 40);
}
function closeUpInstallBandAnimate(val)
{
	if (val > 120) return closeUpInstallBand();
	if (val < 80) darkening.style.MozOpacity= ((80-val)/100) ;      
	divInstallBand.style.marginTop = (0-val) + 'px';
	// nonInstallerBody.style.marginTop= (120-val) + 'px';
	setTimeout("closeUpInstallBandAnimate("+ ( val + 5 ) +")", 30);            
}
function closeUpInstallBand()
{
	divInstallBand.style.display='none';
	darkening.style.display = "none";
	installBandDown = false;
	//location.href = unescape(window.location.pathname);
	return false;
}
function closeInstaller()
{
	closeUpInstallBand();
	//closeUpInstallBandAnimate(3);
}