So i have some javascript....
JavaScript
functionswitchContent(obj){obj=(!obj)?'sub1':obj;varcontentDivs=document.getElementById('container').getElementsByTagName('div');for(vari=0,contentDiv;contentDiv=contentDivs[i];i++){if(contentDiv.id&&contentDiv.id.indexOf('sub')!=-1){contentDiv.className='hide';}}document.getElementById(obj).className='';createCookie('whichContent',obj,365)}
And after the first click my divs just stack on top of each other and it breaks.