sc = {};
sc.hashScroll = function(o) {
	if(hash == '#') return;
	var hash = o.hash;
	var $target = jQuery(hash == '#top' ? 'body' : hash);
	if($target.size()) {
		jQuery(o).blur();
		jQuery.scrollTo($target, 300, {easing:'swing', onAfter:function(){ if(hash != '#questions' && hash != '#top') $target.effect("highlight", {}, 1000) }});
	}
}


//OpenWindow
function windowOpen(file,wx,wy){
	var x,y,no;
	if(wy == "100%") wy = window.screen.height - 150;
	x=(screen.width - wx)/2;
	y=(screen.height - wy)/2;
	if(no= "") no = 1;
	window.open(file,no,"left=0,top=0,width="+wx+",height="+wy+",scrollbars=yes,location=no,menubar=yes,status=yes,resizable=yes,toolbar=yes");
	no++;
}
