<!-- IVW VERSION="1.5" -->
<!-- <![CDATA[//
var currentPage = window.location.pathname;
var ivwCategory="uncategorized";
var IVW="http://comedy.ivwbox.de/cgi-bin/ivw/CP/";

//remove start and slashs
if(currentPage.lastIndexOf("/")==currentPage.length-1){ 
	currentPage = currentPage.substr(1, currentPage.length-2);
}else{
	currentPage = currentPage.substr(1, currentPage.length-1);
}

if (currentPage.length == 0) {
	ivwCategory="home";
}else{ 
	var urlItems = currentPage.toLowerCase().split('/');
	switch(urlItems[0]){
	case 'video':ivwCategory="videos_home";break;
	case 'info':switch(urlItems[1]){
				case 'impressum':ivwCategory='impressum';break;
				case 'kontakt':ivwCategory='kontakt';break;
				case 'agb':ivwCategory='AGB';break;
				case 'datenschutz':ivwCategory='datenschutz';break;
				case 'soempfangensiecomedycentral':ivwCategory='empfang';break;
				};
				break;
	case 'win': if(urlItems.length>1){ivwCategory="win";}else{ivwCategory="win_home";};break;
	case 'news': ivwCategory = "news";break;
	case 'shows': 	if(urlItems.length==1){
						ivwCategory="shows_home";
					}else{
						if(urlItems[1]=='tv-guide'){
							ivwCategory="tvguides";
						}else{
							//must be a show or show video
							if(urlItems.length<=3){
								ivwCategory="shows";
							}else{
								ivwCategory="videos";
							}
						}
					};
					break;
	default: ivwCategory="uncategorized";
	}//switch
}//if currentPage

//set the AGOF param
try{
	var scriptBlock="<!--SZMFRABO VERSION=\"1.2\" -->\n";
	scriptBlock+="<script type=\"Text/Javascript\">\n";
	scriptBlock+="<!--\n";
	scriptBlock+="var szmvars=\"comedy//cp//"+ivwCategory+"\";\n";
	scriptBlock+="// -->\n";
	scriptBlock+="</script>\n";
	scriptBlock+="<script src=\"http://comedy.ivwbox.de/2004/01/survey.js\"></script>\n";
	scriptBlock+="<!-- /SZMFRABO -->\n";
	if(ivwCategory!="home") document.write(scriptBlock);
}catch(ex){}

IVW=IVW+ivwCategory;
document.write("<img style=\"display: none;\" src=\""+IVW+"?r="+escape(document.referrer) +"&d="+(Math.random()*100000)+"\"width=\"0\" height=\"0\" alt=\"\" />");
    // ]]> -->
<!-- /IVW -->

