serverJSLibraryPath = !!serverJSLibraryPath ? serverJSLibraryPath : 'scripts/lib/';
if (typeof library == 'undefined' || library == 'jQuery') {
	document.write('<'+'script type="text/javascript" src="'+ serverJSLibraryPath +'jquery/jquery-1.2.2.pack.js"><'+'/script'+'>');
	document.write('<'+'script type="text/javascript" src="'+ serverJSLibraryPath +'jquery/plugins/jquery.dimensions-1.1.2.js"><'+'/script'+'>');
	document.write('<'+'script type="text/javascript" src="'+ serverSkinURL +'scripts/script-jquery.js"><'+'/script'+'>');
} else if (library == 'Prototype') {
	document.write('<'+'script type="text/javascript" src="'+ serverJSLibraryPath +'jquery/jquery-1.2.2.pack.js"><'+'/script'+'>');
	document.write('<'+'script type="text/javascript" src="'+ serverJSLibraryPath +'jquery/plugins/jquery.dimensions-1.1.2.js"><'+'/script'+'>');
	document.write('<'+'script type="text/javascript" src="'+ serverJSLibraryPath +'prototype/prototype-1.6.0.2-patched.js"><'+'/script'+'>');
	document.write('<'+'script type="text/javascript" src="'+ serverJSLibraryPath +'prototype/scriptaculous-1.8.1/effects.js"><'+'/script'+'>');
	document.write('<'+'script type="text/javascript" src="'+ serverSkinURL +'scripts/script-prototype.js"><'+'/script'+'>');
}
