function dmxSlidingPanelsAction(playerName, actionName, playNumber) { // v1.00
  var slidingPanels = document.getElementById(playerName);
  if (slidingPanels) {
    switch (actionName) {
      case 'play' : slidingPanels.play(); break;
      case 'stop' : slidingPanels.stop(); break;
      case 'goToNextPage' : slidingPanels.nextPage(false); break;
      case 'goToPrevPage' : slidingPanels.prevPage(false); break;
      case 'scrollToNextPage' : slidingPanels.nextPage(true); break;
      case 'scrollToPrevPage' : slidingPanels.prevPage(true); break;      
      case 'goToPage' : slidingPanels.moveToPage(playNumber,false); break;
      case 'scrollToPage' : slidingPanels.moveToPage(playNumber,true); break;
      case 'goToTop' : slidingPanels.scrollTo(0,false); break;
      case 'scrollToTop' : slidingPanels.scrollTo(0,true); break;
      case 'goToAnchor' : slidingPanels.scrollTo(playNumber,false); break;
      case 'scrollToAnchor' : slidingPanels.scrollTo(playNumber,true); break;
      
    }
  } 
  document.MM_returnValue = false; 
}	var scrollSpeed = 50;
	var current = 0;
var direction = 'h';
	function bgscroll(){
    current -= 1;
    $('div#moveback').css("backgroundPosition", (direction == 'h') ? current+"px 0" : "0 " + current+"px");
   
	}
setInterval("bgscroll()", scrollSpeed);	

function openDMXzoneLightbox(arg, options, context) {//v1.2
		context = context || window, options = options || {};
		if (context.DMX && context.DMX.Lightbox) {
			context.DMX.Lightbox.open(options.plugin || "", arg, options);
      document.MM_returnValue = false;
		}
	}
function applyDMXTooltip(trigger) {//v1.5
	if (arguments.length < 3 || !arguments[2]) return true; // ignore empty tooltips
  window.stylesFolderName = 'Styles';
	var arg = {};
	var options = ['contentType', 'dataProvider','showEffect','easing','showAt',
  'showDirection', 'showDuration','showDelay','closeEvent','styleTheme',
	'showCloseBtn','onshow','onhide','mouseOffsetX','mouseOffsetY','x','y','w','h'];
  for (var i = 0; i < options.length && i < arguments.length-1; i++) {
		arg[options[i]] = arguments[i + 1];
	}
	showTooltip(trigger, arg);
}
var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-18779673-1']);
  _gaq.push(['_setDomainName', 'none']);
  _gaq.push(['_setAllowLinker', true]);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
