﻿       function navigationBtn()
       {
       String.prototype.contains = function(t) { return this.indexOf(t) >= 0 ? true : false }


        var sPath = window.location.pathname;
		var sMyVar = new String (sPath);
		//alert(sMyVar.contains('Buy'));

        var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
        sPage = sPage.replace('.aspx','');
        if(sMyVar.contains('Default') & !sMyVar.contains('Download') & !sMyVar.contains('Buy'))
        {
			
			document.getElementById('ctl00_lnkHome').className = 'masterBtnClicked';
            document.getElementById('titleSpan').innerHTML = 'Welcome to STPviewer.com!';
            
        }
        if(sMyVar.contains('WalkThru'))
        {
			document.getElementById('ctl00_lnkWalk').className = 'masterBtnClicked';
            document.getElementById('titleSpan').innerHTML = 'Discover the functions and advantages of STP viewer tool!';
        }
        if(sMyVar.contains('Download'))
        {
			document.getElementById('ctl00_LinkDownload').className = 'masterBtnClicked';
            document.getElementById('titleSpan').innerHTML = 'Download STPviewer and experience the power of confidence!';
        }
        if(sMyVar.contains('Support'))
        {
			document.getElementById('ctl00_LinkSupport').className = 'masterBtnClicked';
            document.getElementById('titleSpan').innerHTML = 'STP viewer support!';
        }
        if(sMyVar.contains('FAQ'))
        {
			document.getElementById('ctl00_lnkFAQ').className = 'masterBtnClicked';
            document.getElementById('titleSpan').innerHTML = 'Frequently Asked Questions';
        }
        
       }
       function helptext(id)
       {
        if(id == 'ctl00_lnkHome')
        {
            document.getElementById('titleSpan').innerHTML = 'Welcome to STPviewer.com!';
        }
        if(id == 'ctl00_lnkWalk')
        {
            document.getElementById('titleSpan').innerHTML = 'Discover the functions and advantages of STPviewer tool!';
        }
        if(id == 'ctl00_LinkDownload')
        {
            document.getElementById('titleSpan').innerHTML = 'Download STPviewer and experience the power of confidence!';
        }
        if(id == 'ctl00_LinkSupport')
        {
            document.getElementById('titleSpan').innerHTML = 'STP Viewer support!';
        }
        if(id == 'ctl00_lnkFAQ')
        {
            document.getElementById('titleSpan').innerHTML = 'Frequently Asked Questions!';
        }
       }

