	var kbrtec = {
		versao			: '1.0',
		pluginsLoaded	: 0,
		ssl				: false,
		pluginCore		: function( pPluginName ) {
			document.write( pPluginName );
		},
		
		load		: {
			
			funcoes		: function() {
				return kbrtec.loadCore( [ 'funcoes/funcoes.js' ], null );
			},
			html5	: function() {
				return kbrtec.loadCore( [ 'html5.js' ] , null );
			},
			highslide	: function() {
				return kbrtec.loadCore( [ 'plugins/highslide/highslide.js' ] , null );
			},
			png		: function() {
				return kbrtec.loadCore( [ 'DD_belatedPNG_0.0.8a-min.js' ], null );
			},
			
			jquery : {
				alerts			: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.alerts/jquery.alerts.js', 'plugins/jquery.alerts/jquery.ui.draggable.js' ], [ 'plugins/jquery.alerts/jquery.alerts.css' ] ).jquery;
				},								
				ancora			: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.ancora/jquery.ancora.js' ], null ).jquery;
				},
				autocomplete	: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.autocomplete/jquery.autocomplete.js' ], [ 'plugins/jquery.autocomplete/jquery.autocomplete.css' ] ).jquery;
				},
				autotab			: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.autotab/jquery.autotab.js' ], null ).jquery;
				},
				corner			: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.corner/jquery.corner.js' ], null ).jquery;
				},
				colorpicker		: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.colorpicker/jquery.colorpicker.js' ], null ).jquery;
				},
				cycleall		: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.cycleall/jquery.cycleall.js' ], null ).jquery;
				},
				formajax		: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.formajax/jquery.formajax.js' ], null ).jquery;
				},
				highslide		: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.highslide/highslide.js' ], null ).jquery;
				},
				highlight		: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.highlight/jquery.highlight.js' ], null ).jquery;
				},
				imagesloaded	: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.imagesloaded/jquery.imagesloaded.js' ], null ).jquery;
				},
				inputurl	: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.inputurl/jquery.inputurl.js' ], null ).jquery;
				},
				jcarousellite	: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.formajax/jcarousellite_1.0.1.min.js' ], null ).jquery;
				},
				jeditable		: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.jeditable/jquery.jeditable.js' ], null ).jquery;
				},
				jqplugin		: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.jqplugin/jquery.jqplugin.1.0.2.min.js' ], null ).jquery;
				},
				maskinput		: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.maskinput/jquery.maskinput.js' ], null ).jquery;
				},
				mask			: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.mask/jquery.mask-1.3.min.js' ], null ).jquery;
				},
				maxlength		: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.maxlength/jquery.maxlength.js' ], null ).jquery;
				},
				metadata		: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.metadata/jquery.metadata.js' ], null ).jquery;
				},
				paginaimpressao	: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.paginaimpressao/jquery.paginaimpressao.js' ], null ).jquery;
				},
				priceformat		: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.priceformat/jquery.priceformat.1.3.js' ], null ).jquery;
				},
				progressbar		: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.progressbar/js/jquery.progressbar.js' ], null ).jquery;
				},
				scrollto		: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.scrollTo/jquery.scrollTo-1.4.2-min.js' ], null ).jquery;
				},
				shadowbox		: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.shadowbox/shadowbox.js' ], [ 'plugins/jquery.shadowbox/shadowbox.css' ] ).jquery;
				},
				tabelaordenada	: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.tabelaordenada/js/jquery.tabelaordenada.js' ], null ).jquery;
				},
				uniform		: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.uniform/jquery.uniform.js' ], ['plugins/jquery.uniform/uniform.default.css'] ).jquery;
				},		
				uploadify		: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.uploadify/swfobject.js', 'plugins/jquery.uploadify/jquery.uploadify.v2.1.4.js' ], [ 'plugins/jquery.uploadify/uploadify.css' ] ).jquery;
				},
				uplprogress		: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.uplProgress/jquery.uplProgress.js' ], null ).jquery;
				},
				valign			: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.valign/jquery.valign.js' ], null ).jquery;
				},
				valignimages	: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.valignimages/jquery.valignimages.js' ], null ).jquery;
				},
				valorpadrao		: function() {
					return kbrtec.loadCore( [ 'plugins/jquery.valorpadrao/jquery.valorpadrao.js' ], null ).jquery;
				}				
		
				
			}
			
		},
		
		loadCore		: function( pArrayJS, pArrayCss ) {
			
			if ( pArrayJS != undefined ) {
				if ( pArrayJS != null ) {
					for( i = 0; i < pArrayJS.length; i++ ) {
						document.write( kbrtec.modelos.script( pArrayJS[i] ) );
					}
				}
			}
			
			if ( pArrayCss != undefined ) {
				if ( pArrayCss != null ) {
					for( i = 0; i < pArrayCss.length; i++ ) {
						document.write( kbrtec.modelos.css( pArrayCss[i] ) );
					}
				}
			}
			return kbrtec.load;
			
		},
		
		modelos : {
			script	: function( pPath ) {
				return '<scr' + 'ipt type="text/javasc' + 'ript" src="' + kbrtec.baseUrl() + pPath + '"></sc' + 'ript' + '>';
			},
			css		: function( pPath ) {
				return '<' + 'li' + 'nk rel="sty' + 'lesheet" type="text' + '/css" href="' + kbrtec.baseUrl() + pPath + '" /' + '>';
			}
		},
		
		url		: ( window.location.hostname ),
		baseUrl	: function() {
			return ( ( this.ssl ? 'https://' : 'http://' ) + this.url  + ( this.ssl ? '/hotelcosmopolitan/js/' : '/js/' ) );
		}
		
	}
