$.extend({
includePath:
''
,
include:
function
(file)
{
var
files =
typeof
file ==
"string"
&
#63; [file] : file;
for
(
var
i = 0; i < files.length; i++)
{
var
name = files[i].replace(/^\s|\s$/g,
""
);
var
att = name.split(
'.'
);
var
ext = att[att.length - 1].toLowerCase();
var
isCSS = ext ==
"css"
;
var
tag = isCSS &
#63; "link" : "script";
var
attr = isCSS &
#63; " type='text/css' rel='stylesheet' " : " type='text/javascript' ";
var
link = (isCSS &
#63; "href" : "src") + "='" + $.includePath + name + "'";
if
($(tag +
"["
+ link +
"]"
).length == 0) $(
"head"
).prepend(
"<"
+ tag + attr + link +
"></"
+ tag +
">"
);
}
}
});
$.include(
'../js/jquery-ui-1.8.21.custom.min.js'
);
$.include(
'../css/black-tie/jquery-ui-1.8.21.custom.css'
);