﻿// JScript File
var Logic = function($){
	/**
	 * private methods and variables
	 */
	var priv = {
	    
	    
	    
	};
	
	/**
	 * public methods
	 */
	return {		

		OnReady	: function(){
            
            //initialize the bannerpool
			var ulBanner = new BannerPool({"container" : $("ul.banner").get(0)});
			//make the elements clickable
			$("ul.banner li").bind("click", 
				function(evt){
					var newloc = $(this).find("a").attr("href");
					if(newloc){
						document.location.href = newloc;
					}
				}
			);
            
            $('#promotion-part-bottom div.list-offers li').hover(
                function(){
                    $(this).addClass('hover');
                },
                function(){
                    $(this).removeClass('hover');
                }
            ).bind('click', function(){
                location.href = $(this).find('a').attr('href');
            });
            
		}
		
	}
}(jQuery);


/**
 * Initiate onload methods and functions
 */
$(document).ready(
	function(){
		Logic.OnReady();
	}
);


