//Funktion ist nur für die NON-AJAX-Version
function dropdownCategories(pid,cat_id,eventdateselect,genre){
	location='index.php?id='+pid+'&category_id='+cat_id+'&eventdateselect='+eventdateselect+'&genre='+escape(genre)+'';
}


function openPopup(image_path,breite,hoehe){
	var titel = "test-title";
	var image_path;
	var breite;
	var hoehe; 
	
	var fenster = window.open('','neu','width='+breite+',height='+hoehe+'');
	if (fenster!=null) {
		fenster.document.open();
		fenster.document.write("<body leftmargin=\"0\" topmargin=\"5\" marginwidth=\"0\" marginheight=\"0\"><html>");
		fenster.document.write("<a href=\"javascript:window.close()\"><img src=\""+image_path+"\" border=\"0\" alt=\"Fenster schliessen\">");
		fenster.document.write("</body></html>");
		fenster.document.close();
	}
}


/* SlideShow JS*/

function test(imageLink){
	window.open(imageLink,'','width=400,height=400');
}
var images = new Array();

function slideshow()
	{
		NAV++;
		if(NAV>=rot_images.length)NAV=0;
		show(NAV);
		Timer = setTimeout("slideshow()",1000*TIMER);
		
}

function show(){
	document.getElementById('rotateImage').src=rot_images[NAV];
	/*if(rot_images_link[NAV] == "") {
		document.getElementById("image_name").innerHTML= rot_images_name[NAV];
	}
	else{
		document.getElementById("image_name").innerHTML= "<a href=\"http://"+rot_images_link[NAV]+"\" target=\"_blank\">"+rot_images_name[NAV]+"</a>";
	}
	*/
	//document.getElementById("image_name").innerHTML= rot_images_name[NAV];
	//document.getElementById("image_link").innerHTML=rot_images_link[NAV];
}

function openNewPopup(k){
	var titel = "test-title";
	var breite = rot_images_big_w[k];
	var hoehe = rot_images_big_h[k];
	
	var fenster = window.open('','neu','width='+breite+',height='+hoehe+'');
	if (fenster!=null) {
		fenster.document.open();
		fenster.document.write("<body leftmargin=\"0\" topmargin=\"5\" marginwidth=\"0\" marginheight=\"0\"><html>");
		fenster.document.write("<a href=\"javascript:window.close()\"><img src=\""+rot_images_big[k]+"\" border=\"0\" alt=\"Fenster schliessen\">");
		fenster.document.write("</body></html>");
		fenster.document.close();
	}
											
	
}
