Dynamic Javascript link?

I do not write Javascript, so I don’t know how to do this but it must be simple.

function OpenSoundFrame (){
	top.location.href = "[B]http://localhost/testsite/wp-content/themes/twentyten[/B]/sound_frame/"+framecolor+"/FRAME_"+soundloc+"_"+soundframe+".htm" + "?" + window.location.href;

The link in bold up to twentyten is a WordPress theme, instead of spelling it out, how would I add a dynamic link to the theme location . . . or at least, what’s does the format look like? I think WP uses ‘TEMPLATEPATH’.

Thanks for any help.