/*
	Copyright (C) 2000-2010 by Oleg Schneider - All rights reserved
	Website http://www.os-soft.de/

	Bei Nutzung des Scripts muessen alle unsere Copyright-Hinweise und Links in dem Script selbst,
	sowie in der Anzeige/Ausgabe unveraendert bleiben!
	
	D.h., sie duerfen nicht entfernt, umgewandelt, versteckt oder unsichtbar gemacht werden,
	es sei den Sie verlinken http://www.os-soft.de/ mindestens 1 mal
	"suchmaschinenfreundlich" von Ihrer Startseite!
*/

/* ### für Aufklappbare Zeilen ### */
var aktID=false;
var aId=new Array();

function move(id){
	if(aId[id]){
		aId[id]=false;
		document.getElementById(id).className="hide";
		return;
	}
	aId[id]=1;
	document.getElementById(id).className="visib";
return;
}

/* ### für Aufklappbare Zeilen ### */

function insert(theForm, theText) {
   var m = theForm.comment;

   if(m.setActive) m.setActive();
   else            m.focus();

   if(document.selection) {
      SelectedText = theForm.document.selection.createRange();
      SelectedText.text = theText;
   }
   else if(m.selectionStart || m.selectionStart == 0)
      m.value = (m.value).substring(0, m.selectionStart) + theText + (m.value).substring(m.selectionEnd);
   else
      m.value += theText;
}

/* ### für Map ### */
function wo_map_console(url) {
  window.open(url,"wo_map_console","height=650,width=800,toolbar=no,statusbar=no,scrollbars=yes").focus();
}

/* ### für Kommentar Tag ### */
function Tags(theTag) {
   var m = document.commentform.comment;

   if(document.getSelection) {
      theText = (m.value).substring(m.selectionStart, m.selectionEnd);
      if(theText == "") theText = document.getSelection();
   }
   else if(document.selection) theText = document.selection.createRange().text;
   else                        theText = "";

   switch(theTag) {
      case "bold":
         if(theText != null) insert(document.commentform, "<strong>" + theText + "</strong>");
         break;
      case "italic":
         if(theText != null) insert(document.commentform, "<em>" + theText + "</em>");
         break;
      case "under":
         if(theText != null) insert(document.commentform, "<u>" + theText + "</u>");
         break;
      case "quote":
         if(theText != null) insert(document.commentform, "<blockquote>" + theText + "</blockquote>");
         break;
      case "code":
         insert(document.commentform, "<pre>" + theText + "</pre>");
         break;
   }
}

/* ### für vipers-video-quicktags ### */

var vvqflashvars = {};
var vvqparams = { wmode: "opaque", allowfullscreen: "true", allowscriptacess: "always" };
var vvqattributes = {};
var vvqexpressinstall = "http://www.diros.de/wp-content/plugins/vipers-video-quicktags/resources/expressinstall.swf";


