jQuery(function(){
	jQuery("#image-carousel").carouFredSel({
		auto : {
			play: 			true,
			pauseDuration: 	5000,
			pauseOnHover:	true
		},
		scroll : {
			easing : "easeOutSine",
			duration: 1000
		},
		items: 1,
		direction: "left",
		prev : {   
			button  : "#web-image-carousel-prev"
		},
		next : {
			button  : "#web-image-carousel-next"
		}
	});	
});


jQuery(function(){
	jQuery.fn.supersized.options = {  
		startwidth: 2000,  
		startheight: 1250,
		slideshow: 1,
		slide_counter: 1,
		slide_interval: 7000,
		autoplay : 1,
		start_slide : 1,
		transition : 1,
		new_window : 0,
		pause_hover : 1,
		keyboard_nav : 1,
		performance : 1,
		min_width : 2000,
		min_height : 1250,
		vertical_center : 0,
		horizontal_center : 1,
		fit_portrait : 0,
		fit_landscape : 0,
		navigation : 1,
		thumbnail_navigation : 0,
		slide_captions : 1
	};
	//alert('a');
	jQuery('#web-supersize').supersized();
});

jQuery('body.body').css('background', 'none');



jQuery(function(){
	//alert(jQuery.browser.msie)
	if(jQuery.browser.msie){
		//alert('a');
		jQuery('#click-banner').css('background','url(http://static.gateway.com/up/Static/shim.gif)');
	}	
		//jQuery('#web-supersize > a').click(function() {return false;})
		jQuery('#click-banner').click(function(event){
			//alert('a')
			if(event.currentTarget == event.target){
				var c = jQuery("div.activeslide");
				if(c){
					if(c.attr("target")=="_blank"){
						window.open(c.attr("href"),'h_pop');
					} else {

						if (c.attr("href").indexOf("http://") != -1)
							document.location.href = c.attr("href");
						else
							document.location.href = BASEURI + c.attr("href");
					}
					return false;
				}
			}
		});
	//}

});

//jQuery('.bgmenu-middle-middle').each(function () {window.console.log(jQuery(this).css('background-image'))})

if(jQuery.browser.msie && jQuery.browser.version < 9)
	jQuery('.bgmenu-middle-middle, .bgmenu-top-middle ').css('background-image', 'url(http://static.gateway.com/up/Resource/templateLibraries/Gateway/images/bg_submenu_center.gif)');
