

                                function pageselectCallback(page_index, jq) {
                                   var new_content = jQuery('#NewsWrapperShortHiddenresult div.NewsWrapperShort:eq(' + page_index + ')').clone();
                                   $('#NewsWrapperShortPagingResults').empty().append(new_content);
                                   return false;
                               }

                               /** 
                               * Initialisation function for pagination
                               */
                               function initPagination() {
                                   // count entries inside the hidden content
                                   var num_entries = jQuery('#NewsWrapperShortHiddenresult div.NewsWrapperShort').length;
                                   // Create content inside pagination element
                                   $("#NewsWrapperShortPagination").pagination(num_entries, {
                                       callback: pageselectCallback,
                                       items_per_page: 1 // Show only one item per page
                                   });
                               }

                               // When document is ready, initialize pagination

                            

                                function animateResults() {
                                    $("div.poll-chart img").each(function () {
                                        var percentage = $(this).attr("val");
                                        $(this).css({ width: "0%" }).animate({ width: percentage }, 'slow');
                                    });
                                }

                                $(document).ready(function () {

                        $.ajaxSetup({
                            cache: false
                        });
                        var zones = new Array("1","2","3","4","5","6","8","9","10","11","12","13");
                        var ajax_load = "<img class='loading' src='/images/load.gif' alt='loading...' />";
                        var widgetUrl = "/pages/widget.ashx";

                        $.each(zones, function (index, value) {
                            // $("div#zone-" + value).ajaxStart(function(){
                                $("div#zone-" + value).html(ajax_load);
                           // });
                        });
                        $.each(zones, function (index, value) {
                            $.get(widgetUrl,
                            { zoneID: value },
                            function (data) {
                                $("div#zone-" + value).html(data);

                            });

                        });






                    });

                                (function($){
                                  $.fn.list_ticker = function(options){
    
                                    var defaults = {
                                      speed:4000,
	                                  effect:'slide'
                                    };
    
                                    var options = $.extend(defaults, options);
    
                                    return this.each(function(){
      
                                      var obj = $(this);
                                      var list = obj.children();
                                      list.not(':first').hide();
      
                                      setInterval(function(){
        
                                        list = obj.children();
                                        list.not(':first').hide();
        
                                        var first_li = list.eq(0)
                                        var second_li = list.eq(1)
		
		                                if(options.effect == 'slide'){
			                                first_li.slideUp();
			                                second_li.slideDown(function(){
				                                first_li.remove().appendTo(obj);
			                                });
		                                } else if(options.effect == 'fade'){
			                                first_li.fadeOut(function(){
				                                obj.css('height',second_li.height());
				                                second_li.fadeIn();
				                                first_li.remove().appendTo(obj);
			                                });
		                                }
                                      }, options.speed)
                                    });
                                  };
                                })(jQuery);

                                $(document).ready(function(){
		                            $('#ticker').list_ticker({
			                            speed:6000,
			                            effect:'slide'
		                            });
	                            })



                                
                               function openShadowbox() {
                                    //http://www.shadowbox-js.com/assets/demo.js
                                    Shadowbox.open({
                                     content:    '/pages/traffic.htm', 
                                     player:     'iframe', 
                                     title:        'Κίνηση στους δρόμους', 
                                     width:      '1200px',
                                     options:{onOpen: removeVideoContainer ,onClose: showVideoContainer } 
                                    });
                                }


                                function removeVideoContainer()
                                {
                                   //alert( $("#videoContainer").html());
                                   $("#videoContainer").hide();
                                }  
                                 
                                function showVideoContainer()
                                {
                                   $("#videoContainer").show();
                                } 
                                    
                                Shadowbox.init({overlayOpacity: 0.8});
                                

                                                function openEortologio()
                                                {
                                                        Shadowbox.open({
                                                        content:    '<div style="text-align:left;background:#fff;padding:10px;height:280px;"><b>Σήμερα (22-02-2012):</b> Ανθούσα, Ανθούση, Θαλάσσιος, Θαλάσσης, Θαλασσία, Θάλασσα, Θαλασσινή <br/><br/><b>Αύριο (23-02-2012):</b> Πολύκαρπος, Πολυκάρπης, Πολυκαρπία, Πολυκάρπη, Πολυκαρπίτσα, Πολυκαρπούλα, Πολυχρόνιος, Πολυχρόνης, Χρόνης, Πολυχρονία, Πολυχρονούλα <br/><br/><b>Μεθαύριο (24-02-2012):</b> 123 <br/></div>', 
                                                        player:     'html', 
                                                        title:        'Γιορτάζουν:', 
                                                        height:     300,
                                                        width:      400,
                                                        options:{onOpen: removeVideoContainer ,onClose: showVideoContainer } 
                                                    });
                                                }


                                                
                               function openStocks() {
                                    Shadowbox.open({
                                     content:    '/pages/stocks.aspx', 
                                     player:     'iframe', 
                                     title:        'Χρηματιστήριο', 
                                     width:      '1000px', 
                                    height:     '1000px', 
                                     options:{onOpen: removeVideoContainer ,onClose: showVideoContainer } 
                                    });
                                }

                                            

                               function opencontactFormBig() {
                                    Shadowbox.open({
                                     content:    '/pages/ContactForm.aspx', 
                                     player:     'iframe', 
                                     title:        'Επικοινωνία αναγνωστών', 
                                     width:      '900px', 
                                    height:     '600px', 
                                    scrolling: 'no',
                                     options:{onOpen: removeVideoContainer ,onClose: showVideoContainer } 
                                    });
                                }

                                            
                                            $(function () {  
                                                try{{          
                                                    $('#articleComments').accordion({ clearStyle: true });
                                                   }}
                                                catch(err)
                                                   {{
                                                        if(typeof console!= "undefined")
                                                        {{
                                                          window.console.log('accordionComments Error!!');
                                                        }}
                                                   }}
                                            });
                                                
                                            var DefaultSize =12;
                                            var setFontSize = 12;
                                            function makebigger() {
                                                setFontSize = setFontSize+1;
                                                if (setFontSize > 17) {setFontSize = 17;};
                                                setSize();
                                            }
                                            function makesmaller() {
                                                setFontSize = setFontSize-1;
                                                if (setFontSize < 11) {setFontSize = 11;};
                                                setSize();
                                            }
                                            function setSize() {
                                                document.getElementById("Articletext").style.fontSize = setFontSize+"px";
            
                                                saveSize();
                                            }

                                            function resetSize()
                                            {
                                                document.getElementById("Articletext").style.fontSize = DefaultSize+"px";
                                            }

                                            function saveSize() {
                                                document.cookie=" setFontSize = "+setFontSize+"; path=/; expires=Mon, 17 Jul 2017 23:59:59 UTC;  ";
                                            }
                                            function loadSize() {
                                                myfontSize = document.cookie.split(";");        
                                                for (tA = 0; tA < myfontSize.length; tA++) {
                                                    if (myfontSize[tA].indexOf('setFontSize') > -1) {
                                                        fontValue = myfontSize[tA].split("=")
                                                        setFontSize = parseInt(fontValue[1]);
                                                    }
                                                }
                                                //if (document.getElementById("changeSize")) {
                                                if (document.getElementById("Articletext")) {
                                                    setSize();
                                                }
                                            }
