jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=picturemenucontrol&cid=a9c2e19e-561e-4462-a684-ac8986637979', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl05_divMenu").append( result); AdjustColumnsHeight();}});
});

jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=picturemenucontrol&cid=f5953547-fcf4-47de-bd44-e91a9a073fdf', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl07_divMenu").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=owsl&cid=f1fc26c7-e75a-4ab9-8eb6-f18d3e779cd3', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl08_divContentList").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=visitor&cid=0bff0f84-1594-4660-9b81-63ca3133fbb9', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl09_visitorCtrl").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=lastupdateandtime&cid=fac2a8ac-a06e-4b57-b496-5118861c255c', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl10_divContent").append( result); AdjustColumnsHeight();}});
});

jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=weatherBox&cid=70a3c8dd-dcc4-4c59-98b7-95547a9a7a89', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl12_divHtml").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=SiteDashBox&cid=e9eb33bd-41c8-4783-ace6-643beb3a2534', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl13_siteDash").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=picturemenucontrol&cid=09f33326-91ce-46d4-a485-bbb63bf9a105', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl14_divMenu").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=picturemenucontrol&cid=27837873-39cc-4566-866b-66a2cde680d7', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl15_divMenu").append( result); AdjustColumnsHeight();}});
});



jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=publication&cid=40e0d315-e657-46a0-9f25-d37383c81758&w=180&h=195&recId=2', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl19_divlatestpub").append( result); AdjustColumnsHeight();}});
});
/* ------------------------------------------------------------------------
s3Slider
	
Developped By: Boban Karišik -> http://www.serie3.info/
CSS Help: Mészáros Róbert -> http://www.perspectived.com/
Version: 1.0
	
Copyright: Feel free to redistribute the script/modify it, as
long as you leave my infos at the top.
------------------------------------------------------------------------- */

var t = jQuery.noConflict();
(function(jQuery) {

    jQuery.fn.s3Slider = function(vars) {

        var element = this;
        var timeOut = (vars.timeOut != undefined) ? vars.timeOut : 4000;
        var current = null;
        var timeOutFn = null;
        var faderStat = true;
        var mOver = false;
        if( element.length <= 0 )
            return;
        var items = jQuery("#" + element[0].id + "Content ." + element[0].id + "Image");
        var itemsSpan = jQuery("#" + element[0].id + "Content ." + element[0].id + "Image span");

        items.each(function(i) {

            jQuery(items[i]).mouseover(function() {
                mOver = true;
            });

            jQuery(items[i]).mouseout(function() {
                mOver = false;
                fadeElement(true);
            });

        });

        var fadeElement = function(isMouseOut) {
            var thisTimeOut = (isMouseOut) ? (timeOut / 2) : timeOut;
            thisTimeOut = (faderStat) ? 10 : thisTimeOut;
            if (items.length > 0) {
                timeOutFn = setTimeout(makeSlider, thisTimeOut);
            } else {
                console.log("Poof..");
            }
        }

        var makeSlider = function() {
            current = (current != null) ? current : items[(items.length - 1)];
            var currNo = jQuery.inArray(current, items) + 1
            currNo = (currNo == items.length) ? 0 : (currNo - 1);
            var newMargin = jQuery(element).width() * currNo;
            if (faderStat == true) {
                if (!mOver) {
                    jQuery(items[currNo]).fadeIn((timeOut / 6), function() {
                        if (jQuery(itemsSpan[currNo]).css('bottom') == 0) {
                            jQuery(itemsSpan[currNo]).slideUp((timeOut / 6), function() {
                                faderStat = false;
                                current = items[currNo];
                                if (!mOver) {
                                    fadeElement(false);
                                }
                            });
                        } else {
                            jQuery(itemsSpan[currNo]).slideDown((timeOut / 6), function() {
                                faderStat = false;
                                current = items[currNo];
                                if (!mOver) {
                                    fadeElement(false);
                                }
                            });
                        }
                    });
                }
            } else {
                if (!mOver) {
                    if (jQuery(itemsSpan[currNo]).css('bottom') == 0) {
                        jQuery(itemsSpan[currNo]).slideDown((timeOut / 6), function() {
                            jQuery(items[currNo]).fadeOut((timeOut / 6), function() {
                                faderStat = true;
                                current = items[(currNo + 1)];
                                if (!mOver) {
                                    fadeElement(false);
                                }
                            });
                        });
                    } else {
                        jQuery(itemsSpan[currNo]).slideUp((timeOut / 6), function() {
                            jQuery(items[currNo]).fadeOut((timeOut / 6), function() {
                                faderStat = true;
                                current = items[(currNo + 1)];
                                if (!mOver) {
                                    fadeElement(false);
                                }
                            });
                        });
                    }
                }
            }
        }

        makeSlider();

    };

})(jQuery);

t(document).ready
(
    
    function() {
    
        t('#slider').s3Slider
      (
        {
            timeOut: 5000
        }
      );
    }
);


jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=picturemenucontrol&cid=40fa1cfb-9e5b-4464-88b8-d44cb2d1965d', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_PhCC_ctl01_divMenu").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRArticlesHandler.ashx?t=artFP&cid=cd540d70-f91c-4a29-9f1e-8db776c605f4&width=700', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_PhCC_ctl02_LstContainer").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRArticlesHandler.ashx?t=MainTicker&cid=none', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl03_dvOut").append( result); AdjustColumnsHeight();}});
});
