<!--
var url="http://www.fdp-thueringen.de/"
var title="FDP Thüringen online"
function bookmark()
{
window.external.AddFavorite(url,title)
}
;
//-->

<!--Hide Script
function PrintDate1() {
var x = new Date();
day=new Array(7);
day[0]="So.";
day[1]="Mo.";
day[2]="Di.";
day[3]="Mi.";
day[4]="Do.";
day[5]="Fr.";
day[6]="Sa.";
month = new Array(12);
month[0] = "Januar";
month[1] = "Februar";
month[2] = "März";
month[3] = "April";
month[4] = "Mai";
month[5] = "Juni";
month[6] = "Juli";
month[7] = "August";
month[8] = "September";
month[9] = "Oktober";
month[10] = "November";
month[11] = "Dezember";
document.write('<font size="1" face="arial" color="#F7F3E7" class="unten"><b>');
document.write(day[x.getDay()]+', ');
document.write(x.getDate()+'. ');
document.write(month[x.getMonth()]+' ');
document.write(x.getYear());
document.write('<br />');
document.write(x.getHours() +':'+ x.getMinutes() + ' Uhr');
}
function PrintDate() {
var x = new Date();
var date = x.getDate();
if (date < 10) {
date = '0' + date;
}
var minutes = x.getMinutes();
if (minutes < 10) {
minutes = '0' + minutes;
}
month = new Array(12);
month[0] = "01.";
month[1] = "02.";
month[2] = "03.";
month[3] = "04.";
month[4] = "05.";
month[5] = "06.";
month[6] = "07.";
month[7] = "08.";
month[8] = "09.";
month[9] = "10.";
month[10] = "11.";
month[11] = "12.";
document.write('<font size="1" face="arial" color="#F7F3E7" class="unten"><b>');
document.write(date+'.');
document.write(month[x.getMonth()]);
if (x.getYear()<=1900)
document.write(x.getYear()+1900);
else
document.write(x.getYear());
document.write(' ' +x.getHours() +':'+ minutes + ' Uhr');
}
//end hide --->

function copy_smiley(text) 
	{
	text = ' ' + text + ' ';
	if (document.post.message.createTextRange && document.post.message.caretPos) 
		{
		var caretPos = document.post.message.caretPos;
		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
		document.post.message.focus();
		} 
	else 	
		{
		document.post.message.value  += text;
		document.post.message.focus();
		}
	}

function FT_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

function FT_preloadImages() { 
  var d=document; if(d.images){ if(!d.FT_p) d.FT_p=new Array();
    var i,j=d.FT_p.length,a=FT_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.FT_p[j]=new Image; d.FT_p[j++].src=a[i];}}
}

function FT_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=FT_findObj(n,d.layers[i].document); return x;
}

function FT_swapImage() { 
  var i,j=0,x,a=FT_swapImage.arguments; document.FT_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=FT_findObj(a[i]))!=null){document.FT_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function FT_swapImage2() { 
  var i,x,a=document.FT_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
 //-->


  function openWindow (nameurl, namewindow, width, height){

    x = (640 - width)/2, y = (480 - height)/2;
    scrollb = 'no';
    res = 'no';
    if (screen) {

        y = (screen.availHeight - height)/2;

        x = (screen.availWidth - width)/2;

    }
    if ((namewindow == 'big') || (namewindow == 'highscore')) {
    	scrollb = 'yes';
	res = 'yes';
    }

    var prevwin = window.open(nameurl,namewindow,'width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x+',scrollbars='+scrollb+',resizable='+res);
    prevwin.focus();
  }


$(document).ready(function()
	{
	$("a[rel^='prettyPhoto']").prettyPhoto();
	});

function CycleRefs() 
	{
	$('#nachrichtenticker').cycle(
		{ 
    		fx:     'scrollLeft', 
    		xspeed:   2400, 
    		timeout: 6000,
    		delay: -1000,
    		pause:   1,
    		xsync: 1
 		});
	} 

function onBefore() 
	{ 
    
	}
 
function onAfter() 
	{ 
    
	}

$(document).ready( function()
	{ 
  	CycleRefs();
	});
