﻿// JScript-Datei
function xpCMS(reportID, spracheID, page, katID, visible) {
  if (katID == "undefined") {
    katID = 0;
  }

  if (visible == "undefined") {
    visible = 0;
  }

  window.open("http://xpcms.by-experience.com/Default.aspx?page=" + page + "&repID=" + reportID + "&lng=" + spracheID + "&katID=" + 0 + "&vis=" + visible, "xpCMS", "width=800, height=770, left=300, top=100, scrollbars=yes, resizable=yes").focus();
}

function fenster(page) {
  var Fenstr = window.open(page, "Sonngart", "width=512, height=360, left=300, top=100, scrollbars=yes, resizable=yes");
  Fenstr.focus();
}

function xpCMSG(katID, spracheID, page) {
  window.open("http://xpcms.by-experience.com/Default.aspx?page=" + page + "&lng=" + spracheID + "&katID=" + katID, "xpCMS", "width=800, height=770, left=300, top=100, scrollbars=yes, resizable=yes").focus();
}

function xpCMSM(katID, spracheID, page, modulID, infoID) {
  window.open("http://xpcms.by-experience.com/Default.aspx?page=" + page + "&lng=" + spracheID + "&katID=" + katID + "&modulID=" + modulID + "&infoID=" + infoID, "xpCMS", "width=800, height=770, left=300, top=100, scrollbars=yes, resizable=yes").focus();
}

function Statistik(url, query, seite) {
  var Fenstr = window.open("http://xpsitemanager.by-experience.com/statistik.aspx?s=" + seite, "Statistik", "width=800, height=770, left=300, top=100, scrollbars=yes, resizable=yes");
  Fenstr.focus();
}

$(function() {
  $(document).pngFix();

  $('.lightbox1').lightBox({
    fixedNavigation: false
  });

  $('.lightbox2').lightBox({
    fixedNavigation: false
  });

  $('.lightbox3').lightBox({
    fixedNavigation: false
  });

  $('.lightbox4').lightBox({
    fixedNavigation: false
  });

  $('.lightbox5').lightBox({
    fixedNavigation: false
  });

  $('.lightbox6').lightBox({
    fixedNavigation: false
  });

  $('.lightbox7').lightBox({
    fixedNavigation: false
  });
	
	$('.lightbox8').lightBox({
    fixedNavigation: false
  });

  //Bilder faden
  $('#s1').cycle({
    fx: 'fade',
    speed: 900,
    timeout: 5000
  });
});