function getUrlPref(id) {
	url = document.getElementById(id).src;
	return url.substr(0, url.indexOf('/js/'));
}
function addPairs(width, profile) {
	var urlpref = getUrlPref("vtCurrencyPairs");
	document.write("<script language='JavaScript' src='"+urlpref+"/pairs.php?profile="+profile+"&width="+width+"&param=js' type='text/javascript'></script>");
}

if (typeof(width)=='undefined')
	width=0;
if (typeof(profile)=='undefined')
	profile=0;
addPairs(width, profile);
