/*
+------------------------------------------------------------------------------------------+
* COMPANY: Raven Developers 2009
+------------------------------------------------------------------------------------------+
* FILE INFO: Fixes IE (the biggest virus and worms explorer in the world) bugs, the lack of
* support for CSS 3. If IE was a person I would have been the first to execute it in public
* IE SUCKS BIG TIME! MOZILLA ROCKS ALWAYS!
+------------------------------------------------------------------------------------------+
* WEBSITE: http://www.ravendevelopers.com
+------------------------------------------------------------------------------------------+
* Portions created by Anirudh K. Mahant are Copyright of Raven Developers (C) 2009.
+------------------------------------------------------------------------------------------+
* COPYRIGHT NOTICE:
* The original author(s) retain all the copyrights of this file.
* Portions created by Anirudh K. Mahant (original developer) are Copyright of Raven Developers (C) 2009.
* Portions contains JavaScript framework jQuery developed by John Resig and other community members
* http://docs.jquery.com/About
* jQuery LICENSE:
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
+------------------------------------------------------------------------------------------+
*/
function pseudoFix(targetElements, psClass, hoverClass){
	jQuery(targetElements).each(function() {
		jQuery(this).addClass(psClass);
		if (hoverClass){
			jQuery(this).focus(function(){
				jQuery(this).addClass(hoverClass);
			});
			jQuery(this).blur(function(){
				jQuery(this).removeClass(hoverClass);
			});
		};
	});
}
jQuery(document).ready(function() {
	if (jQuery.browser.msie){
		jQuery("a.outline-none").focus(function() {
			jQuery(this).blur();
		});
		jQuery(".outline-none a").each(function() {
			jQuery(this).focus(function() {
				jQuery(this).blur();
			});
		});
		jQuery("div.menu-dropdown table").removeAttr("width");
    jQuery('div.entry a[rel*="lightbox"]').addClass('flt-left');
		pseudoFix("body.home div.maincontent input[type=text]", "iefix1", "iefix1-hover");
		pseudoFix("body.home div.maincontent input[type=password]", "iefix1", "iefix1-hover");
		pseudoFix("body.home div.maincontent textarea", "iefix1", "iefix1-hover");
		pseudoFix("body.home div.maincontent select", "iefix1", "iefix1-hover");
	}
});
