﻿window.addEvent('domready', function() {
				
          pic1= new Image(23,24); 
          pic1.src="/img/btn-info-off.gif"; 

          pic2= new Image(23,24); 
          pic2.src="/img/btn-info-on.gif"; 
          
          pic3= new Image(24,24); 
          pic3.src="/img/btn-dwnld-off.gif"; 

          pic4= new Image(24,24); 
          pic4.src="/img/btn-dwnld-on.gif"; 
          
          pic5= new Image(24,24); 
          pic5.src="/img/btn-lghtbx-off.gif"; 

          pic6= new Image(24,24); 
          pic6.src="/img/btn-lghtbx-on.gif"; 

          pic7= new Image(24,24); 
          pic7.src="/img/btn-delete-off.gif"; 

          pic8= new Image(24,24); 
          pic8.src="/img/btn-delete-on.gif"; 

	
		
		    document.id('login').setStyle('height','auto');
	        var mySlide = new Fx.Slide('login').hide();  //starts the panel in closed state
         
            try
            {
            //Show-Hide login panel when you click the link "Login" on top of the page
            document.id('toggleLogin').addEvent('click', function(e){
		        e = new Event(e);
		        mySlide.toggle(); //show-hide login panel
		        e.stop();
	        });
	        }
	        catch (errrrrr)
	        {
	        
	        }
         
            /*Hide login panel when you click the button close on the upper-right corner of the login panel
            $('closeLogin').addEvent('click', function(e){
		        e = new Event(e);
		        mySlide.slideOut(); //Hide login panel
		        e.stop();
	        });*/

		
		    /* Tips */
            var myTips = new Tips($$('.Tips'), {
	            showDelay: 400,
	            hideDelay: 400,
	            fixed: true
            });
            
            try
            {
                // Construct (arguments are optional)
                var box = new CeraBox({
	                animation: 'ease',
	                group: false,
	                errorLoadingMessage:	'The requested content cannot be loaded. Please try again later.',
	                // Optional event callbacks to fire for all items added
	                events: {
		                onClose: function(currentItem, collection) {
			                this._log('default close');
		                },
		                onChange: function(currentItem, collection) {
			                this._log('default change');
		                },
		                onOpen: function(currentItem, collection) {		            
			                this._log('default open');
		                }
	                }
                });
                
                // Collection (ease animation)
                box.addItems('.boxedimg a');
                
                // Collection (ease animation)
                box.addItems('.boxed a', {
                    width: 650,
	                displayTitle: false,
	                ajax: {
		                type: 'post',
		                data: ''
	                }
                });
	        }
	        catch (errrrrrrr)
	        {
	        }
	        
	        //new FormCheck('aspnetForm');
	        	        	     
	        try
	        {   
	        var hor = new Ticker('TickerVertical', {
              speed : 500, delay : 5000, direction : 'vertical'});
            }
	        catch (errrrrrrrr)
	        {
	            //alert(errrrrrrrr);
	        }
        });
        
        function ecmPopUpWindow(url, hWind, nWidth, nHeight, nScroll, nResize) {
            var popupwin, cToolBar;
            cToolBar = 'toolbar=0,location=0,directories=0,status=' + nResize + ',menubar=0,scrollbars=' + nScroll + ',resizable=' + nResize + ',width=' + nWidth + ',height=' + nHeight;
            popupwin = window.open(url, hWind, cToolBar);
            return popupwin;
        }
