﻿// 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 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 Shop(id) {
  var Fenstr = window.open("http://xpcms.by-experience.com/shop.aspx?" + id, "Shop", "width=850, height=770, left=300, top=100, scrollbars=yes, resizable=yes");
  Fenstr.focus();
}

$(function() {
  $('.jBox').colorbox({ iframe: true, width: 510, height: 530 });

  $('.upload_button').click(function() {
    $('.status_bar').show();
  });
});
