//sIFR.debug.ratios({ src: '/assets/fonts/avenir.swf', selector: 'h2' });

function getElement(id)
{
	id = parseInt(id.slice(4));
	if(id || id==0)
	{
		var element = $('#categoryId-'+id);
	}
	
	return element;
}

sIFR.replace(avenir, {
  selector: '#navigation span'
  ,css: [
	'.sIFR-root { color: #cccccc; }'
	,'a { text-decoration: none; color: #cccccc; }'
	,'.active { text-decoration: none; color: #FFFFFF; }'
	,'a:hover { color: #FFFFFF; }'
  ]
  ,offsetTop:'-2'
  ,tuneHeight:'-6'
  ,forceSingleLine:true
  ,selectable:false
  ,tuneWidth:'6'
  ,wmode:'transparent'
  ,thickness:'-200'
  ,onRollOver: function(cb) 
  { 
  	cb.changeCSS('a { text-decoration: none; color: #FFFFFF; },a:hover { text-decoration: none; color: #FFFFFF; },.active { text-decoration: none; color: #FFFFFF; }');
	if(!expanding && getElement(cb.getFlashElement().parentNode.id)) getElement(cb.getFlashElement().parentNode.id).find('.color-container').animate({height:'60px'},200);
  } 
  ,onRollOut: function(cb) 
  { 
  	cb.changeCSS('a { text-decoration: none; color: #cccccc; },a:hover { text-decoration: none; color: #FFFFFF; },.active { text-decoration: none; color: #FFFFFF; }'); 
	if(!expanding && getElement(cb.getFlashElement().parentNode.id)) getElement(cb.getFlashElement().parentNode.id).find('.color-container').animate({height:'29px'},200);
  }
  ,onRelease: function(cb) 
  { 
  	//cb.changeCSS('.sIFR-root { color: #ffffff; }'); 
	//var thisElement = cb.getFlashElement();
	//var alt = cb.getAlternate();
	var catId = parseInt(cb.getFlashElement().parentNode.id.slice(4));
	if(catId || catId==0)
	{
		var index = $('#products>div').index($('#categoryId-'+catId));
		loadNewCategory(catId,index);
	}
  } 
  ,ratios: [8, 1.41, 9, 1.33, 12, 1.35, 14, 1.29, 15, 1.3, 19, 1.28, 20, 1.27, 28, 1.26, 29, 1.24, 30, 1.25, 40, 1.24, 43, 1.23, 44, 1.24, 64, 1.23, 72, 1.22, 73, 1.23, 106, 1.22, 107, 1.21, 115, 1.22, 116, 1.21, 120, 1.22, 121, 1.21, 1.22]
});

sIFR.replace(avenir, {
  selector: 'h1'
  ,css: [ 
	'.sIFR-root { color: #000000; leading: -4; }'
	,'a { color: #ffffff; text-decoration: none; }'
	,'a:hover { color: #ffffff; }'
	,'.blueText { color: #52b2e4; }'
	,'.greenText { color: #89a321; }'
  ]
  ,offsetTop:'-2'
  ,tuneHeight:'-4'
  ,thickness:'-170'
  ,wmode: 'transparent'
  ,ratios: [8, 1.41, 9, 1.33, 12, 1.35, 14, 1.29, 15, 1.3, 19, 1.28, 20, 1.27, 28, 1.26, 29, 1.24, 30, 1.25, 40, 1.24, 43, 1.23, 44, 1.24, 64, 1.23, 72, 1.22, 73, 1.23, 106, 1.22, 107, 1.21, 115, 1.22, 116, 1.21, 120, 1.22, 121, 1.21, 1.22]
});

sIFR.replace(avenir, {
  selector: 'h2.blueText'
  ,css: [ 
	'.sIFR-root { color: #52b2e4; leading: -4; }'
	,'a { color: #52b2e4; text-decoration: none; }'
	,'a:hover { color: #52b2e4; }'
	,'.blueText { color: #52b2e4; }'
	,'.greenText { color: #89a321; }'
  ]
  ,offsetTop:'-2'
  ,tuneHeight:'-4'
  ,thickness:'-150'
  ,wmode: 'transparent'
  ,ratios: [8, 1.41, 9, 1.33, 12, 1.35, 14, 1.29, 15, 1.3, 19, 1.28, 20, 1.27, 28, 1.26, 29, 1.24, 30, 1.25, 40, 1.24, 43, 1.23, 44, 1.24, 64, 1.23, 72, 1.22, 73, 1.23, 106, 1.22, 107, 1.21, 115, 1.22, 116, 1.21, 120, 1.22, 121, 1.21, 1.22]
});

sIFR.replace(avenir, {
  selector: 'h2.greenText'
  ,css: [ 
	'.sIFR-root { color: #89a321; leading: -4; }'
	,'a { color: #89a321; text-decoration: none; }'
	,'a:hover { color: #89a321; }'
	,'.blueText { color: #52b2e4; }'
	,'.greenText { color: #89a321; }'
  ]
  ,offsetTop:'-2'
  ,tuneHeight:'-4'
  ,wmode: 'transparent'
  ,thickness:'-150'
  ,ratios: [8, 1.41, 9, 1.33, 12, 1.35, 14, 1.29, 15, 1.3, 19, 1.28, 20, 1.27, 28, 1.26, 29, 1.24, 30, 1.25, 40, 1.24, 43, 1.23, 44, 1.24, 64, 1.23, 72, 1.22, 73, 1.23, 106, 1.22, 107, 1.21, 115, 1.22, 116, 1.21, 120, 1.22, 121, 1.21, 1.22]
});

sIFR.replace(avenir, {
  selector: 'h2'
  ,css: [ 
	'.sIFR-root { color: #ffffff; leading: -4; }'
	,'a { color: #ffffff; text-decoration: none; }'
	,'a:hover { color: #ffffff; }'
	,'.blueText { color: #52b2e4; }'
	,'.greenText { color: #89a321; }'
  ]
  ,offsetTop:'-2'
  ,tuneHeight:'-4'
  ,thickness:'-150'
  ,wmode: 'transparent'
  ,ratios: [8, 1.41, 9, 1.33, 12, 1.35, 14, 1.29, 15, 1.3, 19, 1.28, 20, 1.27, 28, 1.26, 29, 1.24, 30, 1.25, 40, 1.24, 43, 1.23, 44, 1.24, 64, 1.23, 72, 1.22, 73, 1.23, 106, 1.22, 107, 1.21, 115, 1.22, 116, 1.21, 120, 1.22, 121, 1.21, 1.22]
});

sIFR.replace(avenir, {
  selector: '.tree h3'
  ,css: [ 
	'.sIFR-root { color: #89a321; }'
  ]
  ,offsetTop:'-2'
  ,tuneHeight:'-4'
  ,wmode: 'transparent'
	,thickness:'-100'
  ,ratios: [8, 1.41, 9, 1.33, 12, 1.35, 14, 1.29, 15, 1.3, 19, 1.28, 20, 1.27, 28, 1.26, 29, 1.24, 30, 1.25, 40, 1.24, 43, 1.23, 44, 1.24, 64, 1.23, 72, 1.22, 73, 1.23, 106, 1.22, 107, 1.21, 115, 1.22, 116, 1.21, 120, 1.22, 121, 1.21, 1.22]
});

sIFR.replace(avenir, {
  selector: 'h3'
  ,css: [ 
	'.sIFR-root { color: #333333; }'
	,'.blueText { color: #52b2e4; }'
	,'.greenText { color: #89a321; }'
  ]
  ,offsetTop:'-2'
  ,tuneHeight:'-4'
  ,wmode: 'transparent'
	,thickness:'-150'
  ,ratios: [8, 1.41, 9, 1.33, 12, 1.35, 14, 1.29, 15, 1.3, 19, 1.28, 20, 1.27, 28, 1.26, 29, 1.24, 30, 1.25, 40, 1.24, 43, 1.23, 44, 1.24, 64, 1.23, 72, 1.22, 73, 1.23, 106, 1.22, 107, 1.21, 115, 1.22, 116, 1.21, 120, 1.22, 121, 1.21, 1.22]
});

sIFR.replace(avenir, {
  selector: 'h4'
  ,css: '.sIFR-root { color:#333333; }'
  ,offsetTop:'-2'
  ,tuneHeight:'-4'
  ,thickness:'-150'
  ,wmode: 'transparent'
  ,ratios: [8, 1.41, 9, 1.33, 12, 1.35, 14, 1.29, 15, 1.3, 19, 1.28, 20, 1.27, 28, 1.26, 29, 1.24, 30, 1.25, 40, 1.24, 43, 1.23, 44, 1.24, 64, 1.23, 72, 1.22, 73, 1.23, 106, 1.22, 107, 1.21, 115, 1.22, 116, 1.21, 120, 1.22, 121, 1.21, 1.22]
});

/*
  ,onRollOver: function(cb) { cb.changeCSS('.sIFR-root { color: #ffffff; }'); } 
  ,onRollOut: function(cb) { cb.changeCSS('.sIFR-root { color: #cccccc; }'); }
*/