﻿// 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 xpCMSBM(bildID, spracheID, page, modulID, visible) {
  window.open("http://xpcms.by-experience.com/Default.aspx?page=" + page + "&lng=" + spracheID + "&bildID=" + bildID + "&modulID=" + modulID + "&vis=" + visible, "xpCMS", "width=800, height=770, left=300, top=100, scrollbars=yes, resizable=yes").focus();
}

function xpCMSB(bildID, spracheID, page) {
  window.open("http://xpcms.by-experience.com/Default.aspx?page=" + page + "&lng=" + spracheID + "&bildID=" + bildID, "xpCMS", "width=800, height=770, left=300, top=100, scrollbars=yes, resizable=yes").focus();
}

function xpCMSBlog(blogeintragID, spracheID, page, blogUserID) {
  window.open("http://xpcms.by-experience.com/Default.aspx?page=" + page + "&lng=" + spracheID + "&bID=" + blogeintragID + "&bUserID=" + blogUserID, "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() {
  //  function formatText(index, panel) {
  //    return index + "";
  //  }

  //  $('.anythingSlider').anythingSlider({
  //    easing: "easeInOutExpo",     // Anything other than "linear" or "swing" requires the easing plugin
  //    autoPlay: true,              // This turns off the entire FUNCTIONALY, not just if it starts running or not.
  //    delay: 5000,                 // How long between slide transitions in AutoPlay mode
  //    startStopped: false,         // If autoPlay is on, this can force it to start stopped
  //    animationTime: 600,          // How long the slide transition takes
  //    hashTags: true,              // Should links change the hashtag in the URL?
  //    buildNavigation: true,       // If true, builds and list of anchor links to link to each slide
  //    pauseOnHover: true,          // If true, and autoPlay is enabled, the show will pause on hover
  //    startText: "Go",             // Start text
  //    stopText: "Stop",            // Stop text
  //    navigationFormatter: formatText       // Details at the top of the file on this use (advanced use)
  //  });

  //  $("#slide-jump").click(function() {
  //    $('.anythingSlider').anythingSlider(6);
  //  });

  $('.zeiger').click(function() {
    return false;
  });

  $("#myController").jFlow({
    slides: "#slides",
    controller: ".jFlowControl", // must be class, use . sign
    slideWrapper: "#jFlowSlide", // must be id, use # sign
    selectedWrapper: "jFlowSelected",  // just pure text, no sign
    auto: true, 	//auto change slide, default true
    width: "960px",
    height: "330px",
    duration: 600,
    prev: ".jFlowPrev", // must be class, use . sign
    next: ".jFlowNext" // must be class, use . sign
  });
});