function loadJavascript(scriptFile) {

       var scriptsPath;



       // Builds the correct scripts path

       scriptsPath = "jquery/plugins/"; 

       $(document.createElement('script'))

       .attr('src',  scriptsPath + scriptFile + ".js") 

       .attr('type', 'text/javascript')

       .appendTo('head');
}



$(document).ready(function() { 

        // Dynamically loads a list of javascript files 

        //loadJavascript('jquery.color');

		loadJavascript('jquery.hoverIntent');

		//loadJavascript('jquery.tools.min');

		loadJavascript('jquery.reject');

		//loadJavascript('jquery.alignwith');
		loadJavascript('jquery.jqbrowser');

		//loadJavascript('jquery.autocolumn');

});



/*

Another Brilliant Solution But Doesn't work in shitty ie due to grep.



function loadJavascript(scriptFile) {

       var scriptsPath;



       // Builds the correct scripts path

       scriptsPath = $('script').attr('src'); 

       //console.log(scriptsPath);

       scriptsPath = scriptsPath.replace(/(\w+\.)*\w+\.js$/, '');

	   //console.log(scriptsPath+" \r");

       // Creates the <script> element and appends it to the <head>

       $(document.createElement('script'))

               .attr('src',  scriptsPath + scriptFile + ".js") 

               .attr('type', 'text/javascript')

               .appendTo('head');

        //console.log("loaded: "+scriptsPath + scriptFile + ".js");

}



$(document).ready(function() { 

        // Dynamically loads a list of javascript files 

        loadJavascript('jquery.color');

		loadJavascript('jquery.hoverIntent');

		loadJavascript('jquery.tools.min');

		loadJavascript('jquery.roundCorners-1.1.1');

		loadJavascript('jquery.alignwith');



});*/
