
function showOption() {
	return document.getElementById('option').style.display = 'block';
}

function closeOption() {
	return document.getElementById('option').style.display = 'none';
}

function showAndHide(hide, show) {
	document.getElementById(hide).style.display = 'none';
	document.getElementById(show).style.display = 'block';
	return true;
}

function newWindow(url, width, height) {
		newwindow = window.open(url, 'editor', 'statusbar=0, toolbar=0, scrollbars=1, resizeable=1, width='+ width +', height='+ height +'');
	if (window.focus) { newwindow.focus(); }
	return false;
}

function m(el)
{
  if (el.defaultValue == el.value) el.value = "";
}

function f(tar, def) {
	if (tar.value == '')
		tar.value = def;
}

/*
 * JQUERY FUNCTIONS
 */

function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });

	jQuery('#mycarousel-next').bind('click', function() {
        carousel.next();
        return false;
    });

    jQuery('#mycarousel-prev').bind('click', function() {
        carousel.prev();
        return false;
    });
};

jQuery(document).ready(function() {
    jQuery('#mycarousel_auto').jcarousel({
        auto: 3,
        scroll: 2,
		animation: 1000,
        wrap: 'last',
        initCallback: mycarousel_initCallback
    });

	jQuery('#mycarousel_manual').jcarousel({
        scroll: 2,
		animation: 500,
        wrap: 'last',
        initCallback: mycarousel_initCallback,
		buttonNextHTML: null,
	    buttonPrevHTML: null
    });
});

{ coded = "Pqq12V@7XX7KPg8.2z"
  key = "7KOAmilYrG4B9k8ozDcJf3w1XSjUFCMenP6s25quxNLIabQ0RVEpHZdvygtWhT"
  shift=coded.length
  link=""
  for (i=0; i<coded.length; i++) {
    if (key.indexOf(coded.charAt(i))==-1) {
      ltr = coded.charAt(i)
      link += (ltr)
    }
    else {     
      ltr = (key.indexOf(coded.charAt(i))-shift+key.length) % key.length
      link += (key.charAt(ltr))
    }
  }
var email = ("<a href='mailto:"+link+"'>office(at)allabout.ch</a>");
var email2 = ("<a href='mailto:"+link+"'>@</a>");
}
