$j.Avaya.Tout = function(params){
	var settings = $j.extend({
		
	},params);
	
	var 
		tout = params.tout,
		img = tout.find("img").get(0),
		src = img.src;
	
	//preload second image
	var largeImg = new Image();
	largeImg.src = src.replace("visual", "visual2");
	
	
	tout.click(function(e){
		e.preventDefault();
		var href = tout.find('a').attr('href');
		
		window.location = href;
		
	}).hover(function(){
		img.src = largeImg.src;
		tout.addClass('hover');
	},function(){
		img.src = src;
		tout.removeClass('hover');
	});
}

$j(function() {
	$j.Avaya.SifrConfig.masterReplace($j.Avaya.SifrConfig.gothamLight,{
	   selector: '#content h1',
	   css: {
			'.sIFR-root': { 
				'color': '#ffffff', 
				'font-size': 23
			}
	   },
	   selectable: false
	});

	$j.Avaya.SifrConfig.masterReplace($j.Avaya.SifrConfig.gothamLight,{
	   selector: '#toutArea.fourTouts h2',
	   css: {
			'.sIFR-root': { 
				'color': '#404040', 
				'font-size': 15,
				'cursor' : 'pointer'
			},
			'a': { 'text-decoration': 'none' },
			'a:link': { 'color': '#404040' },
			'a:hover': { 'color': '#404040' },
			'strong, em, b, i': {
				'font-weight': 'normal',
				'font-style': 'normal'
			}
	   },
	   selectable: false
	});
	
	$j.Avaya.SifrConfig.masterReplace($j.Avaya.SifrConfig.gothamLight,{
	   selector: '.fourTouts .moreInfo',
	   css: {
			'.sIFR-root': { 
				'color': '#404040', 
				'font-size': 15,
				'cursor' : 'pointer'
			},
			'a': { 'text-decoration': 'none' },
			'a:link': { 'color': '#404040' },
			'a:hover': { 'color': '#404040' },
			'strong, em, b, i': {
				'font-weight': 'normal',
				'font-style': 'normal'
			}
	   },
	   forceSingleLine: true,
	   selectable: false
	});
	
	$j.Avaya.SifrConfig.masterReplace($j.Avaya.SifrConfig.gothamLight,{
	   selector: '.threeTouts .moreInfo',
	   css: {
			'.sIFR-root': { 
				'color': '#404040', 
				'font-size': 17,
				'cursor' : 'pointer'
			},
			'a': { 'text-decoration': 'none' },
			'a:link': { 'color': '#404040' },
			'a:hover': { 'color': '#404040' },
			'strong, em, b, i': {
				'font-weight': 'normal',
				'font-style': 'normal'
			}
	   },
	   selectable: false
	});
	
	$j.Avaya.SifrConfig.masterReplace($j.Avaya.SifrConfig.gothamLight,{
	   selector: '#toutArea.threeTouts h2',
	   css: {
			'.sIFR-root': { 
				'color': '#404040', 
				'font-size': 17,
				'cursor' : 'pointer'
			},
			'a': { 'text-decoration': 'none' },
			'a:link': { 'color': '#404040' },
			'a:hover': { 'color': '#404040' },
			'strong, em, b, i': {
				'font-weight': 'normal',
				'font-style': 'normal'
			}
	   },
	   selectable: false
	});
	
	
	$j('#toutArea.threeTouts div.box').not("div.nav").each(function(){
		new $j.Avaya.Tout({tout:$j(this)});														
	});

});
