function getVirtualDirectory() { 
var vDir = document.location.pathname.split('/'); 
return '/' + vDir[1] + '/'; 
} 

function include_jQueryFilesToPage() { 
var siteAddress = location.protocol + '//' + document.location.hostname + getVirtualDirectory(); 
var jqGOOgleapyPath = 'https://www.google.com/jsapi?key=ABQIAAAAaY7CS6FW6uKBRhgnRUhJ0BTsHJu-FhQ1abCbBD3KcZKP3fR8ZRTjVRJ8PFyyauslHZxt5n_lngAENQ';
var jqCoreRetweetPath = 'http://js.biovallarta.com/jquery.retweet.js'; 
var jqCSSFilePath = 'http://www.biovallarta.com/css/jqueryui/jquery-ui-1.8.4.custom.css'; 
var jqCoreFilePath = 'https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js'; 
var jqUIFilePath = 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js'; 
var jqATwitterPath = 'http://platform.twitter.com/anywhere.js?id=LBtqpfqH7xjqfduay4cVw&v=1';
var jqPHPFullPath = 'http://js.biovallarta.com/php.full.min.js';
var jqAjaxUPloadPath = 'http://js.biovallarta.com/ajaxupload.js';
var jqJQtransformPath = 'http://js.biovallarta.com/jquery.jqtransform.min.js';
var jqJQRTEPath = 'http://js.biovallarta.com/jquery.rte.js';
var jqJQCookiePath = 'http://js.biovallarta.com/jquery.cookie.js';
var jqJQDynaCloudPath = 'http://js.biovallarta.com/jquery.dynacloud.js';
var jqJQCarouselPath = 'http://js.biovallarta.com/jquery.jcarousel.min.js';
var jqJQGallerifficPath = 'http://js.biovallarta.com/jquery.galleriffic.js';
var jqJQOpacityrolloverPath = 'http://js.biovallarta.com/jquery.opacityrollover.js';
var jqJQCyclePath = 'http://js.biovallarta.com/jquery.cycle.all.min.js';
var jqMD5Path = 'http://js.biovallarta.com/md5.js';
var jqJQeasingPath = 'http://js.biovallarta.com/jquery.fancybox/jquery.mousewheel-3.0.4.pack.js';
var jqJQFancyboxPath = 'http://js.biovallarta.com/jquery.fancybox/jquery.fancybox-1.3.4.pack.js';
var jqJQAutocompletePath = 'http://js.biovallarta.com/jquery.autocomplete/jquery.autocomplete.js';
var jqJQTimepickerPath = 'http://js.biovallarta.com/jquery.timepicker.js';
var jqSWFobjectPath = 'http://js.biovallarta.com/swfobject.js';
var jqGOOGLEplusonePath = 'http://apis.google.com/js/plusone.js';
var head = document.getElementsByTagName('head')[0]; 

// jQuery CSS jnclude 
// you could encode the css path itself to generate id. 
//var jqCSS = 'cssIDJQ'; if (!document.getElementById(jqCSS)) { var link = document.createElement('link'); link.id = jqCSS; link.rel = 'stylesheet'; link.type = 'text/css'; link.href = jqCSSFilePath; link.media = 'all'; head.appendChild(link); } 
// Google jsApi
var jgAPI="jqGOOgleapyPathIDJQ"; if (!document.getElementById(jgAPI)) document.write('<scr'+'ipt type="text/javascript" id="'+jgAPI+'" src="'+jqGOOgleapyPath+'"></scr'+'ipt>');
// Core jQuery include
var jqc="coreFileRefIDJQ"; if (!document.getElementById(jqc)) document.write('<scr'+'ipt type="text/javascript" id="'+jqc+'" src="'+jqCoreFilePath+'"></scr'+'ipt>');
// Core jQuery Retweet
var jcr="coreRetweetIDJQ"; if (!document.getElementById(jcr)) document.write('<scr'+'ipt type="text/javascript" id="'+jcr+'" src="'+jqCoreRetweetPath+'"></scr'+'ipt>');
// jQueryUI include
var jqUI="uiFileRefIDJQ"; if (!document.getElementById(jqUI)) document.write('<scr'+'ipt type="text/javascript" id="'+jqUI+'" src="'+jqUIFilePath + '"></scr'+'ipt>');
// jqATwitterPath include
var jqAT="jqATwitterIDJQ"; if (!document.getElementById(jqAT)) document.write('<scr'+'ipt type="text/javascript" id="'+jqAT+'" src="'+jqATwitterPath + '"></scr'+'ipt>');
// jqPHPFullPath include
var jqPH="jqPHPFullPathIDJQ"; if (!document.getElementById(jqPH)) document.write('<scr'+'ipt type="text/javascript" id="'+jqPH+'" src="'+jqPHPFullPath + '"></scr'+'ipt>');
// jqAjaxUPloadPath include
var jqAU="jqAjaxUPloadPathIDJQ"; if (!document.getElementById(jqAU)) document.write('<scr'+'ipt type="text/javascript" id="'+jqAU+'" src="'+jqAjaxUPloadPath + '"></scr'+'ipt>');
// jqJQtransformPath include
var jqTR="jqJQtransformPathIDJQ"; if (!document.getElementById(jqTR)) document.write('<scr'+'ipt type="text/javascript" id="'+jqTR+'" src="'+jqJQtransformPath + '"></scr'+'ipt>');
// jqJQRTEPath include
var jqRT="jqJQRTEPathIDJQ"; if (!document.getElementById(jqRT)) document.write('<scr'+'ipt type="text/javascript" id="'+jqRT+'" src="'+jqJQRTEPath + '"></scr'+'ipt>');
// jqJQCookiePath include
var jqCO="jqJQCookiePathIDJQ"; if (!document.getElementById(jqCO)) document.write('<scr'+'ipt type="text/javascript" id="'+jqCO+'" src="'+jqJQCookiePath + '"></scr'+'ipt>');
// jqJQDynaCloudPath include
var jqDC="jqJQDynaCloudPathIDJQ"; if (!document.getElementById(jqDC)) document.write('<scr'+'ipt type="text/javascript" id="'+jqDC+'" src="'+jqJQDynaCloudPath + '"></scr'+'ipt>');
// jqJQCarouselPath include
var jqCR="jqJQCarouselPathIDJQ"; if (!document.getElementById(jqCR)) document.write('<scr'+'ipt type="text/javascript" id="'+jqCR+'" src="'+jqJQCarouselPath + '"></scr'+'ipt>');
// jqJQCyclePath include
var jqCY="jqJQCyclePathIDJQ"; if (!document.getElementById(jqCY)) document.write('<scr'+'ipt type="text/javascript" id="'+jqCY+'" src="'+jqJQCyclePath + '"></scr'+'ipt>');
// jqMD5Path include
var jqMD="jqMD5PathIDJQ"; if (!document.getElementById(jqMD)) document.write('<scr'+'ipt type="text/javascript" id="'+jqMD+'" src="'+jqMD5Path + '"></scr'+'ipt>');
// jqJQeasingPath include
var jqEA="jqJQeasingPathIDJQ"; if (!document.getElementById(jqEA)) document.write('<scr'+'ipt type="text/javascript" id="'+jqEA+'" src="'+jqJQeasingPath + '"></scr'+'ipt>');
// jqJQFancyboxPath include
var jqFB="jqJQFancyboxPathIDJQ"; if (!document.getElementById(jqFB)) document.write('<scr'+'ipt type="text/javascript" id="'+jqFB+'" src="'+jqJQFancyboxPath + '"></scr'+'ipt>');
// jqJQAutocompletePath include
var jqAC="jqJQAutocompletePathfIDJQ"; if (!document.getElementById(jqAC)) document.write('<scr'+'ipt type="text/javascript" id="'+jqAC+'" src="'+jqJQAutocompletePath + '"></scr'+'ipt>');
// jqJQTimepickerPath include
var jqTP="jqJQTimepickerPathIDJQ"; if (!document.getElementById(jqTP)) document.write('<scr'+'ipt type="text/javascript" id="'+jqTP+'" src="'+jqJQTimepickerPath + '"></scr'+'ipt>');
// jqJQGallerifficPath include
var jqGF="jqJQGallerifficPathIDJQ"; if (!document.getElementById(jqGF)) document.write('<scr'+'ipt type="text/javascript" id="'+jqGF+'" src="'+jqJQGallerifficPath + '"></scr'+'ipt>');
// jqJQOpacityrolloverPath include
var jqOR="jqJQOpacityrolloverPathIDJQ"; if (!document.getElementById(jqOR)) document.write('<scr'+'ipt type="text/javascript" id="'+jqOR+'" src="'+jqJQOpacityrolloverPath + '"></scr'+'ipt>');
// jqSWFobjectPath include
var jqSW="jqSWFobjectPathIDJQ"; if (!document.getElementById(jqSW)) document.write('<scr'+'ipt type="text/javascript" id="'+jqSW+'" src="'+jqSWFobjectPath+'"></scr'+'ipt>');
// jqSWFobjectPath include
var jqGP="jqGOOGLEplusonePathIDJQ"; if (!document.getElementById(jqGP)) document.write('<scr'+'ipt type="text/javascript" id="'+jqGP+'" src="'+jqGOOGLEplusonePath+'"></scr'+'ipt>');
}
include_jQueryFilesToPage();
