jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=SiteDashBox&cid=26351288-b7f5-439e-86c2-0ed2c3d0c605', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl05_siteDash").append( result); AdjustColumnsHeight();}});
});

jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=picturemenucontrol&cid=f8aaa13b-5881-4709-a51f-a1cd086cd7fd', 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=publication&cid=3278dc4a-5999-42e1-a1a4-275e97c9a7b2&w=180&h=195&recId=52', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl09_divlatestpub").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=owsl&cid=5caa1a7a-e765-4319-9b97-afc84f907fd6', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl10_divContentList").append( result); AdjustColumnsHeight();}});
});

jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=visitor&cid=15d4a437-b455-476e-a79f-b45526d5f45b', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl12_visitorCtrl").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=lastupdateandtime&cid=54368d39-a0b9-4526-b2ee-0e58ac39ffaa', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl13_divContent").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=picturemenucontrol&cid=86637096-74d2-4638-9188-a7e4d3195174', 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=46d4ee19-099f-4718-ad7f-a6ffa883c76d', 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=picturemenucontrol&cid=be3d1665-8b08-4349-8bbd-5b495a025215', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl17_divMenu").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=publication&cid=3da05ccf-928b-41f3-a7f9-da8b7d81df47&w=180&h=195&recId=51', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl18_divlatestpub").append( result); AdjustColumnsHeight();}});
});


jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=weatherBox&cid=edfcaa2c-a31b-4bf5-9788-5a0cb58070c0', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl21_divHtml").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/MSBRArticlesHandler.ashx?t=artAdvancedBox&cid=de6db892-2caa-40b8-847a-535181b8358f&prefix=M1&divWrapper=ctl00_PhCC_ctl01_divWrapper&width=500', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_PhCC_ctl01_divWrapper").append( result);  AdjustColumnsHeight();jQuery("#ctl00_PhCC_ctl01_divWrapper table tr").equalHeights(true); }});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRArticlesHandler.ashx?t=artListFP&cid=5d0fb76f-0153-4ec2-b718-f84c9d8c6fc5&width=500', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_PhCC_ctl02_artboxfp").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRArticlesHandler.ashx?t=category&cid=cf847a56-cdea-407a-a3c3-9710c62964ae&noColumn=2&imgw=80&imgh=80&width=500&Ptype=FP', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_PhCC_ctl03_divContent").append( result); jQuery('.catCtrlContainer .Row').equalHeights(true);}});
});
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();}});
});
