<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript">
vorigehash = 'Nog geen window.location.hash of nog niet gestart.';
function ST(){
setTimeout( "ST()", 1000 );
if(window.location.hash){
if(window.location.hash != vorigehash){
O(window.location.hash.substring(1));
vorigehash = window.location.hash;
}
}
}
ST();
function O(aflevering){
if (window.XMLHttpRequest) xmlhttp=new XMLHttpRequest();
else xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4){
document.getElementById("kijk").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","kijken.php?a="+aflevering,true);
xmlhttp.send();
_gaq.push(['_trackPageview'], '#'+aflevering);
document.title = 'Kijken: Wie is de Mol? '+aflevering+' op wieisdemolgemist.nl';
}
function T(table){
if (window.XMLHttpRequest) xmlhttp=new XMLHttpRequest();
else xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4 && xmlhttp.status==200){
document.getElementById("table").innerHTML=xmlhttp.responseText;
}
else{
original = document.getElementById("table").innerHTML;
text = 'Stap: '+xmlhttp.readyState+'/4, status: '+xmlhttp.status+'<br>';
document.getElementById("table").innerHTML=original+text;
}
}
xmlhttp.open("GET","table.php?t="+table,true);
xmlhttp.send();
document.getElementById("table").innerHTML='<br>Bezig met laden, een moment geduld aub.<br><br>';
_gaq.push(['_trackPageview'], '#T'+table);
}
</script>
</head>
<body>
<p id="table">
<!-- hier staat dan een tabel waar je een aflevering kunt kiezen, met als voorbeeld:
<td><a href='#0301'>1</a></td> -->
<p id="kijk">
Selecteer eerst een aflevering</div>
</body>
</html>