
	function FormularAnzeigen(formID){
		 	 obj = document.getElementById(formID);
		 	 if (obj.style.display == "none")
		 	 {
	 		 	 obj.style.display = 'block';
	 		 }
	 		 else
	 		 {
	 		 	 obj.style.display = 'none';
	 		 }
	}
	
	//ExpandCollapse
	total=0; 
	function drop(id){  
		if(document.getElementById){
			var elt=document.getElementById(id);
			if(total != 1){ 
					elt.style.display = "block";
					total=1;
					document.stm.src="/images/default/_forum/boxclose.gif";
			}else{
					elt.style.display = "none";
					total=0;
					document.stm.src="/images/default/_forum/boxopen.gif";
			}
		}
	}

	//___________________________________________________________________________________________________________________________________

	function MM_swapImgRestore() { //v3.0
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}

	//___________________________________________________________________________________________________________________________________


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

	//___________________________________________________________________________________________________________________________________


	function MM_findObj(n, d) { //v4.01
	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=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
	}

	//___________________________________________________________________________________________________________________________________

	function MM_swapImage() { //v3.0
	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}
	//-->

	function MM_findObj(n, d) { //v4.01
	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=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
	}
	
	//___________________________________________________________________________________________________________________________________


//Print
	function printWindow() {
	bV = parseInt(navigator.appVersion);
	if (bV >= 4) window.print();
	}
	

//Open Browser Window
	
	function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
	}

// Toggle ExtraInfo Filmdatenbank/Details

	function togglecomments (id1,id2) {

	var obj1 = document.getElementById(id1);
	var obj2 = document.getElementById(id2);
	(obj1.className=="commentshown") ? obj1.className="commenthidden" : obj1.className="commentshown"; 
	(obj1.className=="commentshown") ? obj2.innerHTML="[&ndash;]" : obj2.innerHTML="[+]"; 

	}

//
	function MM_goToURL() { //v3.0
	var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
	for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
	}
	
//ADD TO FAVORITES

	var bookmarkurl="http://www.kinkats.com" 
	var bookmarktitle="Sexy SubStyle Community" 
	
	function addbookmark(){ 
	if (document.all) 
	window.external.AddFavorite(bookmarkurl,bookmarktitle) 
	}
	
//

	function openPopup(theURL,winName,winX,winY) {
	posX=(screen.width/2)-(winX/2);
	posY=(screen.height/2)-(winY/2)-30;
	if (posY < 0){posY = 0;}
	winFeatures='width='+winX+', height='+winY+',innerHeight=580,innerWidth=0, left='+posX+', screenX='+posX+', top='+posY+', screenY='+posY+', toolbar=0, location=0, directories=0, status=0, menuBar=0, resizable=1, scrollbars=yes';
	win = window.open(theURL,winName,winFeatures);
	win.focus();
	}
	
	
	
	function MM_jumpMenu(targ,selObj,restore){ //v3.0
	  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	  if (restore) selObj.selectedIndex=0;
	}
	
	function MM_findObj(n, d) { //v4.01
	  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=MM_findObj(n,d.layers[i].document);
	  if(!x && d.getElementById) x=d.getElementById(n); return x;
	}
	
	function MM_jumpMenuGo(selName,targ,restore){ //v3.0
	  var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
}

//Close Adv.

	function HideFloatingAd() {
	bState=document.getElementById('Content').style.display;
	if (bState == 'none') {
	document.getElementById('Content').style.display = 'block';
	show_text('Interne Hinweise zeigen', 'hinweiseinterntext');
	} else {
	document.getElementById('Content').style.display = 'none';
	show_text('Interne Hinweise ausblenden', 'hinweiseinterntext');
		}
	}
	
//Show More

	function show_form() {
	bState=document.getElementById('form').style.display;
	if (bState == 'none') {
	document.getElementById('form').style.display = 'block';
	show_text('Zeigen', 'formtext');
	} else {
	document.getElementById('form').style.display = 'none';
	show_text('Verbergen', 'formtext');
		}
	}
	
//Popup Smilies

	function emoticon(text)
	{
	  if (opener.document.posting.text.createTextRange && opener.document.posting.text.caretPos)
	  {
	    var caretPos = opener.document.posting.text.caretPos;
	    caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
	    opener.document.posting.message.focus();
	    location.href = location.href;
	  }
	  else
	  {
	    opener.document.posting.text.value  += text;
	    opener.document.posting.text.focus();
	    location.href = location.href;
	  }
	}

//FlickrLikeMenu

	function showMenu(id_menu){
	var my_menu = document.getElementById(id_menu);
	if(my_menu.style.display=="none" || my_menu.style.display==""){
		my_menu.style.display="block";
		} else { 
		my_menu.style.display="none";
		}
	}
	function swapImage(idStatus){
		if(idStatus==0){
			document.arrow_profile.src ="/images/default/misc/arrow_over.gif";
		} else if(idStatus==1){
			document.arrow_profile.src ="/images/default/misc/arrow_over.gif";
		} else if(idStatus==2){
			document.arrow_profile.src ="/images/default/misc/arrow_def.gif";
		}

	}

//ShowHide More Smilies

	function ShowHide(id) {
	    obj = document.getElementsByTagName("div");
	    if (obj[id].style.visibility == 'visible'){
	    obj[id].style.visibility = 'hidden';
	    }
	    else {
	    obj[id].style.visibility = 'visible';
	    }
	}
	
//ClickTroughGallery

var currentGalleryLink = new Array();
var currentGalleryUrl= new Array();

function LoadPicture(pictureName,imageFile,captionID,captionText,altID,altText,linkID,linkURL,aboutID,aboutText)
{
	document.getElementById(pictureName).src = imageFile;
	document.getElementById(captionID).innerHTML=captionText;
	document.getElementById(altID).innerHTML=altText;
	document.getElementById(linkID).innerHTML=linkURL;
	document.getElementById(aboutID).innerHTML=aboutText;
	document.getElementById('imglink').href = "/kinkats/User_ProfilGalerieBilder/"+linkURL;
	
	// Which link is currently selected?
	for (i=0; i<document.links.length;i++)
	{
	   	var l=document.links[i];
	   	var n=l.getAttributeNode('onclick');
		if (n)
		{
			var onclick = n.value;
	   		if ((onclick) &&
	   			(onclick.indexOf(pictureName) > 0) &&
	   			(onclick.indexOf(imageFile) > 0))
	   		{
			    currentGalleryLink[pictureName] = i;
			    currentGalleryUrl[pictureName] = linkURL;
			    break;
			}
		}
	}
}
function LoadPrev(pictureName)
{
	var current = currentGalleryLink[pictureName];
	
	if (current == null) current = document.links.length+1;
	var alt = null;
	for (i=document.links.length-1;i>=0;i--)
	{
		var link=document.links[i];
		var node = link.getAttributeNode('onclick');
		if (node)
		{
			var onclick = node.nodeValue;
			if ((onclick) &&
				(onclick.indexOf('LoadPicture') >= 0) &&
				(onclick.indexOf(pictureName) > 0))
			{
				if (i < current)
				{
					eval(onclick);
					return;
				} else if (alt == null)
					alt = onclick;
			}
		}
	}
	if (alt) eval(alt);
}
function LoadNext(pictureName)
{
	var current = currentGalleryLink[pictureName];
	
	if (current == null) {
		currentGalleryLink[pictureName]=-1;
		LoadNext(pictureName);
		current = currentGalleryLink[pictureName];
	}
	var alt = null;
	for (i=0;i<document.links.length;i++) {
		var link = document.links[i];
		var node = link.getAttributeNode('onclick');
		if (node)
		{
			var onclick = node.value;
			if ((onclick) &&
				(onclick.indexOf('LoadPicture') >= 0) &&
				(onclick.indexOf(pictureName) > 0))
			{
				if (i > current)
				{
					eval(onclick);
					return;
				} else if (alt == null)
					alt = onclick;
			}
		}
	}
	if (alt) {
		eval(alt);
	}
}