/*	
Tasmanian Batteries Javascript

Bosweb Systems.2011.

Table Of Contents
-------------------------
[00] - Plugins
[01] - Engine
[02] - Init
*/

/*[00] - Plugins */


/*[01] - Engine */
jQuery(function(jQuery){
	
	var Engine = {
		utilities:{
			slider: function(){
			}
		},
		ui:{
			buttons: function(){
				jQuery(".rollover").hover(function(){
					var this_src = jQuery(this).attr("src").split(".");
					jQuery(this).attr("src",this_src[0] + "-on." + this_src[1]);					
				},
				function(){
					var this_src = jQuery(this).attr("src").split(".");
					var this_path = this_src[0].substr(0,this_src[0].length - 3);
					jQuery(this).attr("src",this_path + "." + this_src[1]);
				});
			}
		},
		fixes:{
			ie: function(){
				if(!jQuery.browser.msie){
					return;
				}
				if(parseInt(jQuery.browser.version,10) < 9){
					jQuery("div > ul > li.selected").hover(function(){
						jQuery("ul",this).show();
					},function(){
						jQuery("ul",this).hide();
					});
					if (window.PIE) {
						jQuery('.css3').each(function() {
							PIE.attach(this);
						});
					}
				}
			}
		},
		misc:{
		}		
	}
	
	/*[02] - Init */
Engine.ui.buttons();
	Engine.fixes.ie();
});
