// JavaScript Document

function jump(form) {
 var order = form.gs_quicklinks.selectedIndex;
 if (form.gs_quicklinks.options[order].value != 0)
 {
	window.open(form.gs_quicklinks.options[order].value,"","");
 } 
  form.gs_quicklinks.selectedIndex = 0;
}

function filter_news(form) {
	var order = form.newsfilter.selectedIndex;
	if (form.newsfilter.options[order].value != 'x')
	{
		// location = document.URL.split("?")[0] + '?tx_ttnews[cat]=' + form.newsfilter.options[order].value + '&no_cache=1';
		//if (document.URL.search('/select_category/') > 0) url = document.URL.split('/select_category/')[0] + '/'
		// else url = document.URL;
		
		var url = '';
		url = document.URL.split('/select_category/')[0];
		if (url.charAt(url.length-1) != '/') {
			url = url + '/';
		}
		if (form.newsfilter.options[order].value != '') location = url + 'select_category/' + form.newsfilter.options[order].value
		else location = url;
		
	} 
}

// Idea by:  Nic Wolfe
// This script and many more are available free online at
// The JavaScript Source!! http://javascript.internet.com

function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=700,height=600,left = 290,top = 212');");
}

// Google+ Script
window.___gcfg = {lang: 'de'};

(function() {
	var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
	po.src = 'https://apis.google.com/js/plusone.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
