[eluser]breaddes[/eluser]
the thig is that i don't want to load a bunch of html modules by default. i want to load them just in time, when they're needed.
Code:
window.onload = function(){
$('login').onclick = function(){
//here is where want to load a certain view actually
fadein('dialog', 1);
fadein('overlay', 0.8);
}
}