<!--

function CreateBookmarkLink(title,url) {
	if (window.sidebar) {
		window.sidebar.addPanel(title, url,"");
	} else if( window.external ) {
		window.external.AddFavorite( url, title);
	}
	return false;
}

function open_function(url,width,height,options)
  {
    self.msgWindow = open(url, "Window", "width=" + width + ",height=" + height
      + ",screenX=" + (screen.width-width)/2
      + ",screenY=" + (screen.height-height)/2
      + ",dependent=yes"
      + ",left=" + (screen.width-width)/2
      + ",top=" + (screen.height-height)/2
      + options
      );
    if (self.msgWindow) {
      self.msgWindow.focus();
      if (self.msgWindow.opener == null) self.msgWindow.opener = self;
    }
  }
function get_url (url, k0 ,v0 ,k1 ,v1 ,k2 ,v2 ,k3 ,v3 ,k4 ,v4 ) 
{
  if (k0 && v0) url += "?" + k0 + "=" + escape(v0);
  if (k1 && v1) url += "&" + k1 + "=" + escape(v1);
  if (k2 && v2) url += "&" + k2 + "=" + escape(v2);
  if (k3 && v3) url += "&" + k3 + "=" + escape(v3);
  if (k4 && v4) url += "&" + k4 + "=" + escape(v4);
  return url;
}

var expDays = 1;
var exp = new Date();
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name)
{
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {

var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function SetCookie (name, value)
{
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : exp;
var path = (argc > 3) ? argv[3] : '/';
var domain = (argc > 4) ? argv[4] : 'www.time-warp.de';
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}

function opensound(){
var sound = GetCookie('sound');
  //alert(sound);
if(sound == null) {
   
   soundWin = window.open('/sounds/new_player/mp3player.html','soundfenster','width=260,height=371,scrollbars=no,dependent=yes,menubar=no,resizable=no,status=no,toolbar=no');
if(soundWin.closed==true){
SetCookie('sound','off',exp,'/',"www.lovefamilypark.de");
} else {
SetCookie('sound','on',exp,'/',"www.lovefamilypark.de");

}
} 
}
function clickopensound(){
	var sound = GetCookie('sound');
//	alert(sound);
	if((sound == null || sound=='off') ) {
   
   		var soundWin = window.open('/sounds/new_player/mp3player.html','soundWin','width=260,height=371,scrollbars=no,dependent=yes,menubar=no,resizable=no,status=no,toolbar=no');
   		soundWin.focus();
		if(soundWin.closed==true){
			SetCookie('sound','off',exp,'/',"www.lovefamilypark.de");
		} else {
			SetCookie('sound','on',exp,'/',"www.lovefamilypark.de");
		}
	}  else if(sound == 'on' && typeof(soundWin)==undefined) {
   		var soundWin = window.open('/sounds/new_player/mp3player.html','soundWin','width=260,height=371,scrollbars=no,dependent=yes,menubar=no,resizable=no,status=no,toolbar=no');
   		soundWin.focus();   		
		SetCookie('sound','on',exp,'/',"www.lovefamilypark.de");
	}


	return false;
}
//-->