/**
 * Class: CommonClass
 * @author Charles Peter
 */

;(function($) {
	$.CommonClass = function() {
		this.construct();
	};
	
	$.extend($.CommonClass.prototype, {
		construct: function() {
			this.loadSecondaryCss();
		},
		
		loadSecondaryCss: function() {
			if ($.browser.webkit) {
				var default_css_link = $('link[rel="stylesheet"]:eq(0)');
				$(default_css_link).after('<link rel="stylesheet" href="http://dubaieye1038.com/wordpress/wp-content/themes/dubaieye/style.webkit.css" type="text/css" media="screen" />');
			}
			
			if ($.browser.msie) {
				var default_css_link = $('link[rel="stylesheet"]:eq(0)');
				$(default_css_link).after('<link rel="stylesheet" href="http://dubaieye1038.com/wordpress/wp-content/themes/dubaieye/style.msie.css" type="text/css" media="screen" />');
			}
			
			if ($.browser.opera) {
				var default_css_link = $('link[rel="stylesheet"]:eq(0)');
				$(default_css_link).after('<link rel="stylesheet" href="http://dubaieye1038.com/wordpress/wp-content/themes/dubaieye/style.opera.css" type="text/css" media="screen" />');
			}
		}
	});
	
	$(document).ready(function() {
		if (typeof $.Common === 'undefined') {
			$.Common = new $.CommonClass();
		}
	});
})(jQuery);

