﻿// 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(id) {
  var Fenstr = window.open("http://xpcms.by-experience.com/pages/" + id, "Privacy", "width=800, height=770, left=300, top=100, scrollbars=yes, resizable=yes");
  Fenstr.focus();
}

function xpCMSG(katID, spracheID, page, visible) {
  window.open("http://xpcms.by-experience.com/Default.aspx?page=" + page + "&lng=" + spracheID + "&katID=" + katID + "&vis=" + visible, "xpCMS", "width=800, height=770, left=300, top=100, scrollbars=yes, resizable=yes").focus();
}

function xpCMSM(katID, spracheID, page, modulID, infoID, visible) {
  window.open("http://xpcms.by-experience.com/Default.aspx?page=" + page + "&lng=" + spracheID + "&katID=" + katID + "&modulID=" + modulID + "&infoID=" + infoID + "&vis=" + visible, "xpCMS", "width=800, height=770, left=300, top=100, scrollbars=yes, resizable=yes").focus();
}

function xpCMSB(bildID, spracheID, page, visible) {
  window.open("http://xpcms.by-experience.com/Default.aspx?page=" + page + "&lng=" + spracheID + "&bildID=" + bildID + "&vis=" + visible, "xpCMS", "width=800, height=770, left=300, top=100, scrollbars=yes, resizable=yes").focus();
}

function xpCMSV(menID, spracheID, page) {
  window.open("http://xpcms.by-experience.com/Default.aspx?page=" + page + "&lngID=" + spracheID + "&menID=" + menID, "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();
  
  $('.upload_button').click(function() {
    $('.status_bar').show();
  });

  $("#ticker").imageScroller({ speed: '2000' });
  $('#mycarousel').jcarousel();
  $('#s1').cycle({
    fx: 'fade',
    speed: 1500,
    timeout: 5000
  });
});