if (typeof jQuery == 'undefined') {
	function dhtmlLoadObjects(libs) {
		counter = (typeof counter == 'undefined' ? 0 : counter);
		var libsarr = (typeof libs == 'string' ? [libs] : libs);
		for (var i = 0; i < libsarr.length; i++) {
		  var file = libsarr[i];
		  var fileref = "";
	      if (file.indexOf(".js")!=-1){ //If object is a js file
	    	document.write("\u003Cscript src='"+file+"' type='text/javascript'>\u003C/script>");
		  }
	      else if (file.indexOf(".css")!=-1){ //If object is a css file
			fileref=document.createElement("link");
			fileref.setAttribute("rel", "stylesheet");
			fileref.setAttribute("type", "text/css");
			fileref.setAttribute("href", file);
	      }
		  if (fileref!=""){
			document.getElementsByTagName("head").item(0).appendChild(fileref);
		  }
		}
	  }

  var proto = (("https:" == document.location.protocol) ? "https://" : "http://");

  dhtmlLoadObjects (proto+'ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js');
  dhtmlLoadObjects ([proto+'ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/jquery-ui.min.js', proto+'ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/themes/'+((typeof(uiTheme) != 'undefined' && uiTheme != '') ? uiTheme : 'blitzer')+'/jquery-ui.css']);
  dhtmlLoadObjects (proto+'ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js');
  dhtmlLoadObjects ([proto+'ajax.microsoft.com/ajax/jquery.validate/1.9/jquery.validate.min.js', '/js/jquery.validate.'+((typeof(lang) != 'undefined' && lang != '') ? lang.toLowerCase() : 'hu')+'.js']);
  dhtmlLoadObjects ('/js/jquery.cycle.lite.1.0.js');
  dhtmlLoadObjects ('/js/jquery.mailme.js');
  dhtmlLoadObjects (['/js/jquery.url.js', '/js/jquery.youtube.js', '/js/jquery.media.js']);
  dhtmlLoadObjects ('/js/jquery.wtooltip.min.js');
  dhtmlLoadObjects ('/js/jquery.theater.js');
}
