/*********************************************************

	BargainShopper Base Object
	
	@author Rafael G.
	LM: 09-15-09

**********************************************************/
jQuery(function ($) {
	
	$.root = $(document);	
//	var window = window,
var
		undefined,
		uri = window.location.href,
		t = function (_s) { return $.trim(_s); },
		byId = function (_id) {return document.getElementById(_id);};
	
		
	var __temporaryFixForSubmenuOverflowOnFashionTab = function () { // font resizer
		var $sub = $('#sub_1');
		if ($sub.text().indexOf('Lingerie & Sleepwear') < 0) {return;}
		$sub.css('fontSize', '10px');
	};
	
	var privates = {
		bodyClassHack : function () {
			var $body = $(document.body),
				browser = Ttow.Browser;
			/*@cc_on
				$body.addClass('ie');
				if (browser.msie6) {$body.addClass('ie6 ie67 ie68 ie69');}
				else if (browser.msie7) {$body.addClass('ie7 ie67 ie78 ie79');}
				else if (browser.msie8) {$body.addClass('ie8 ie68 ie78 ie89');}
				else if (browser.msie9) {$body.addClass('ie9');}					
				return;
			@*/							
			if (document.addEventListener) {
				if (browser.mozilla) {$body.addClass('moz');}
				else if (browser.chrome) {$body.addClass('chrome');}
				else if (browser.safari) {$body.addClass('safari');}
				else if (browser.opera) {$body.addClass('opera');}
				else if (browser.ff2) {$body.addClass('ff2');}
			}			
		}
	};


	window.BargainShopper = {
		init : function () {
			privates.bodyClassHack();
			__temporaryFixForSubmenuOverflowOnFashionTab(); // should be removed...
		}
	};
	

	BargainShopper.init(); 
});

