jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=SiteDashBox&cid=bb56e6af-28e0-4947-bcb8-bfc518955f37', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl04_siteDash").append( result); AdjustColumnsHeight();}});
});



jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=flashcontrol&cid=feda6098-97dc-4065-a07a-f0a14cdd2040', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl08_divut").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=picturemenucontrol&cid=2fe61608-3f69-4154-9ebb-458b7b5761a6', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl09_divMenu").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=flashcontrol&cid=c13b07aa-b29c-4b0b-818f-615a184de41c', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl10_divut").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=visitor&cid=bd0fe591-0e99-4dea-9209-0687198f217b', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl11_visitorCtrl").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=picturemenucontrol&cid=8e0db673-812a-4bad-863f-7964776da36d', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl12_divMenu").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=picturemenucontrol&cid=aa08edc5-c5d2-4cb5-8e97-904591c24e45', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl13_divMenu").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=picturemenucontrol&cid=708b3896-6c1b-40a7-8ee2-6c534148ba06', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl16_divMenu").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=picturemenucontrol&cid=bfaf8f74-b910-42e0-aa7e-0404645b5e32', 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=picturemenucontrol&cid=5227180d-eb56-4894-b995-3ed770301267', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl18_divMenu").append( result); AdjustColumnsHeight();}});
});

jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=flashcontrol&cid=13af459d-8cf8-423a-b27f-cae99294987c', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_ctl20_divut").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=weatherBox&cid=bd67bd37-754e-42ad-a505-dcd39e6c03ca', 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/MSBRDataHandler.ashx?t=picturemenucontrol&cid=3d2a017e-d3c7-4095-ba95-5959edbbb227', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_PhCC_ctl02_divMenu").append( result); AdjustColumnsHeight();}});
});


jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRArticlesHandler.ashx?t=artAdvancedBox&cid=a6dad350-5860-471f-b7f2-90393c22644c&prefix=M5&divWrapper=ctl00_PhCC_ctl05_divWrapper&width=500', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_PhCC_ctl05_divWrapper").append( result);  AdjustColumnsHeight();jQuery("#ctl00_PhCC_ctl05_divWrapper table tr").equalHeights(true); }});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=picturemenucontrol&cid=a290ba5d-0271-4777-8b22-ba1457f86739', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_PhCC_ctl06_divMenu").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=picturemenucontrol&cid=26edbd61-86eb-4d22-8c10-e76b46e39a33', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_PhCC_ctl07_divMenu").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRDataHandler.ashx?t=picturemenucontrol&cid=12c59b0e-01dd-4a69-a8b1-4ff055c52567', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_PhCC_ctl08_divMenu").append( result); AdjustColumnsHeight();}});
});
jQuery(document).ready( function () {
jQuery.ajax({cache: false,  url: 'handlers/MSBRArticlesHandler.ashx?t=category&cid=df4e7b6d-563d-47a4-b5db-7d7fbf04f35f&noColumn=3&imgw=60&imgh=60&width=500&Ptype=FP', error: function() { alert('error getting Categories'); }, success: function( result) { jQuery("#ctl00_PhCC_ctl09_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();}});
});
