var myMooFlowPage = {
    start: function(){
        var mf = new MooFlow($('MooFlow'), {
        reflection: 0.5,
        heightRatio: 0.15,
        offsetY: -300,
        interval: 6000,
        factor: 50,
        bgColor: "transparent",
        'onEmptyinit': function(){
            this.loadJSON('index.php?eID=tx_cfamooflow_pi1&damcat=&sortinstruction=sorting');
        },

    'onStart': function(){
    this.autoPlay = this.auto.periodical(this.options.interval, this);
    this.isAutoPlay = true;
    this.fireEvent('autoPlay');
    },
    'onClickView':function(obj){
    myMooFlowPage.link(obj);
     }
 });
 },
 link: function(result){

 //if(result.target == "_blank") {
// window.open(result.href);
// } else {
 //document.location = result.href;
// }

 }
 };

 window.addEvent('domready', myMooFlowPage.start);


