I would like to change the logo of a website based on which menu is currently activated/seen by the user browsing the website. 

For instance I have www.urltowebsite.com/menu1 = Header Logo 1
And then I have www.urltowebsite.com/menu2 = Header Logo 2

And on top of this I want to add an else statement stating that: If any other menu is selected, use header logo 3.

How can I make this possible with Python? I cant seem to wrap my head around what to define where and how to call up the different functions on the HTML website. 

Oh and I insist doing this with Python. And preferably without any framework such as Django. But if needs be I can install web.py 

EDIT: 

Am I forced to go with php then? I would like to once and for all start utilizing Python on my web projects. 
The website is made in simple HTML as I said first. The Javascript functions are only used to serve the HTML menu's through AJAX. Again this does not matter much for what I am trying to do, as menu's have classes and I can define those in php and thus change my logo/header. 
What I want to do is to use Python in this instance. Here is a code snippet from the site: 

```
<div id="header">
    <span class="title"><img src="http://www.url.com/subfolder/images/logo.png"/>
        </span>
    </div>

```

And some more relevant to this: 

```
<div id="menu">
<ul>
<li><a href="#slider" id="menu_slider">001</a></li>
<li><a href="#about" id="menu_about">002</a></li>
<li><a href="#application" id="menu_portfolio">003</a></li>
<li><a href="#about" id="menu_contact">004</a></li>
<li><a href="#contact" id="menu_reel">005</a></li>
<li><a href="#contactresell" id="menu_awards">006</a></li>
<li><a href="#handel" id="link">007</a></li>
<li><a href="#faq" id="menu_faq">008</a></li>
</ul>
</div>

```

So can I use python here?