
var _getPath = getPath();

document.write('<link rel="Stylesheet" type="text/css" href="' + _getPath + 'css/'+'jquery.lightbox-0.5.css" />');

function LoadScript(url){
	document.write( '<scr' + 'ipt type="text/javascript" src="' + url + '"><\/scr' + 'ipt>' ) ;
}

function getPath(){
    var scripts = document.getElementsByTagName("script");
    var regex = /(.*jquery\/).*/i;
    for(var i=0; i<scripts.length; i++)
    {
        var currentScriptSrc = scripts[i].src;
        if (currentScriptSrc.match(regex))
        return currentScriptSrc.match(regex)[1];
    }
    
    return null;
}

LoadScript("http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js");
LoadScript(_getPath + "image-swap.js");
LoadScript(_getPath + "jquery.lightbox-0.5.js");
LoadScript(_getPath + "jquery.lightbox-init.js");

