
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_ctl05_visitorCtrl").append( result); AdjustColumnsHeight();}});
});


jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=owsl&cid=5f678041-09f8-4b02-a484-32051343c1ed', 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=SiteDashBox&cid=d70169a1-a483-473a-81e7-0e53002fb30e', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl13_siteDash").append( result); AdjustColumnsHeight();}});
});
function ShowResults(id, isvote, cid)
{
var ans = -1;
if (isvote==true)
{
ans = getradiovalue();  
if (ans != -1)
{
var dd = document.getElementById(cid) ;
if (dd != null && dd != undefined)
dd.disabled=true;
}
}
window.open("ViewPollResult.aspx?pollID=" + id + "&selected=" + ans,'','height=400,width=600,left=' + (screen.availWidth-600)/2 + ',top= '+(screen.availHeight-400)/2+',toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no ,modal=yes');
return false;
}
function getradiovalue()
{
var radio_choice = false;
var g2 = document.getElementsByName('g1');
for (counter = 0; counter < g2.length; counter++)
{
if (g2[counter].checked)
{
return (g2[counter].value);
}
}
return (-1);
}


jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=weatherBox&cid=6ae9eba6-440a-4eab-9708-5b392d07fdf8', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl16_divHtml").append( result); AdjustColumnsHeight();}});
});

jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=lastupdateandtime&cid=216262d9-8233-4d34-9e88-23b50a1d9137', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl18_divContent").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=flashcontrol&cid=b2f2557a-2da3-4c7a-87e3-82e719a1358e', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_PhCC_ctl01_divut").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRArticlesHandler.ashx?t=artFP&cid=7adcb6e7-ffae-4367-9083-6fe236f5570a&width=500', 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=artListFP&cid=382d1c13-80dc-4b35-84f3-cbecace51ec8&width=500', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_PhCC_ctl04_artboxfp").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=picturemenucontrol&cid=b073b6be-9c0e-402d-a273-9886145733a9', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_PhCC_ctl05_divMenu").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();}});
});
