/**
 * SunWeb E-Commerce Panel administracyjny
 *
 * @author Paweł Przybyś (pawel.przybys@gmail.com)
 * @version 1.00 2008/04/28
 */

var Panel = {

	start: function() {
		this.nav();
    this.inputs();
	},
	
	nav: function() {
    if($.browser.msie) {
		  $('#nav').each(function() {
			  var $this = $(this);
			  var $submenu = $this.find('.level1 .submenu')
			  $submenu.bind('mouseover', function() {
				  $(this).addClass('hover');
			  })
			  $submenu.bind('mouseout', function() {
				  $(this).removeClass('hover');
			  })
        $submenu.append('<iframe></iframe>');
		  });
    }
	},

  inputs: function() {
		$('input[type="text"]').each(function() {		  
		  $(this).addClass('text');
		});
    $('input[type="password"]').each(function() {		  
		  $(this).addClass('password');
		});
    $('input[type="checkbox"]').each(function() {		  
		  $(this).addClass('checkbox');
		});
    $('input[type="radio"]').each(function() {		  
		  $(this).addClass('radio');
		});
    if($.browser.opera) {
      $('input.btn').each(function() {		  
		    $(this).css('padding-top', '38px');
		});
    } 
	}
}

$(function() {
	Panel.start();
})
