﻿function DownloadSW()
{
    window.open("/Download/SimilarWebIE.exe","popDown","width=1,height=1,top=0,left=0");
    document.location.href="/download-IE.aspx";
    try{pageTracker._trackPageview('/Download/SimilarWebIE.exe');}catch(ex){}    
}    

function OnFFDownload()
{
    document.getElementById('download_overlay').style.display='block'; 
    document.getElementById('download_msg').style.display='block'; 
    HighlightStep();
    
    try{pageTracker._trackPageview('/Download/SimilarWebFF.xpi');}catch(ex){}    
}

function CloseDownloadMsg()
{
    document.getElementById('download_overlay').style.display='none'; 
    document.getElementById('download_msg').style.display='none'; 
    return false;
}

var nextStep = 'step1';

function HighlightStep()
{
    if (nextStep != '')
    {
        document.getElementById(nextStep).style.color='white';
        
        if (nextStep == 'step1')
        {
            document.getElementById('step3').style.color=''; 
            nextStep = 'step2';
        }
        else if (nextStep == 'step2')
        {
            document.getElementById('step1').style.color=''; 
            nextStep = 'step3';
        }
        else
        {
            document.getElementById('step2').style.color='';
            nextStep = 'step1';
        }
        
        setTimeout("HighlightStep()", 2000);
    }
}