//var root = "http://priwo.nz.dlr.de/myhp_new";
var root = "http://murkel.johannes-hermsdorf.de";
var lang = 1;
var fading = 0;
//surround
//var buttoncolor = "#0080FF";
//var fontcolor = "#FFFFFF";
/*var thumbsend_1 = "_t.jpg";
var thumbsendgr_1 = "_t_gr.jpg";
var picend_1 = ".jpg";
var borderwidth = "2px";
var font = "Verdana";
var fontsize = 14;
var bordercolor = "#FFFFFF";
*/
//surround


var cook = 1;
//var GB_ROOT_DIR = "http://mydomain.com/greybox/";
var GB_ROOT_DIR = "scripting/greybox/";
//Mouseposition
var IE = window.document.all?true:false
// If NS -- that is, !IE -- then set up for mouse capture
if (!IE) window.document.captureEvents(Event.MOUSEMOVE)

var tempX = 0
var tempY = 0



if (navigator.cookieEnabled == false) {
	var cook = 0;
	//var meldge ="Für eine dauerhafte Sprachumschaltung müssen Sie Cookies erlauben!";
	//var melden ="For a durable language change-over Your Browser must allow Cookies!";
	//alert(meldge + '\n' + melden);
	}
//bordertop = 15;
//borderleft = 60;

/*
   name - name of the cookie
   value - value of the cookie
   [expires] - expiration date of the cookie
     (defaults to end of current session)
   [path] - path for which the cookie is valid
     (defaults to path of calling document)
   [domain] - domain for which the cookie is valid
     (defaults to domain of calling document)
   [secure] - Boolean value indicating if the cookie transmission requires
     a secure transmission
   * an argument defaults when it is assigned null as a placeholder
   * a null placeholder is not required for trailing omitted arguments
*/

function setCookie(name, value, expires, path, domain, secure) {
  var curCookie = name + "=" + escape(value) +
      ((expires) ? "; expires=" + expires.toGMTString() : "") +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      ((secure) ? "; secure" : "");
  document.cookie = curCookie;
}


/*
  name - name of the desired cookie
  return string containing value of specified cookie or null
  if cookie does not exist
*/

function getCookie(name) {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  if (begin == -1) {
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
  } else
    begin += 2;
  var end = document.cookie.indexOf(";", begin);
  if (end == -1)
    end = dc.length;
  return unescape(dc.substring(begin + prefix.length, end));
}


/*
   name - name of the cookie
   [path] - path of the cookie (must be same as path used to create cookie)
   [domain] - domain of the cookie (must be same as domain used to
     create cookie)
   path and domain default if assigned null or omitted if no explicit
     argument proceeds
*/

function deleteCookie(name, path, domain) {
  if (getCookie(name)) {
    document.cookie = name + "=" +
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    "; expires=Thu, 01-Jan-70 00:00:01 GMT";
  }
}

// date - any instance of the Date object
// * hand all instances of the Date object to this function for "repairs"

function fixDate(date) {
  var base = new Date(0);
  var skew = base.getTime();
  if (skew > 0)
    date.setTime(date.getTime() - skew);
}

var mon = new Date();
var monat = mon.getMonth();
monat = monat +1;
if(monat < 10){monat = "0" + monat}
var day = new Date();
var tag = day.getDate();
if(tag < 10){tag = "0" + tag}

var dat = monat + "" + tag;
//dat = 1224;

dat = parseInt(dat);
//alert(dat);
if (dat >= 321){season = 1}
if (dat >= 621){season = 2}
if (dat >= 923){season = 3}
if (dat >= 1015){season = 4}
if (dat >= 1221){season = 6}
if (dat >= 1230){season = 5}
if (dat < 321){season = 5}

var lastupdate = "30.11.2011";

sblangen={
	code:"en",
	of:"of",
	loading:"loading",
	cancel:"Cancel",
	next:"Next",
	previous:"Previous",
	play:"Play",
	pause:"Pause",
	close:"Close",
	errors:{single:'You must install the <a href="{0}">{1}</a> browser plugin to view this content.',
	shared:'You must install both the <a href="{0}">{1}</a> and <a href="{2}">{3}</a> browser plugins to view this content.',
	either:'You must install either the <a href="{0}">{1}</a> or the <a href="{2}">{3}</a> browser plugin to view this content.'}
};

