function showPopup(id,type,height,width,ext){if(height==null)var height="500";if(width==null)var width="663";if(ext==null)ext="";if(type!="login")tabList="settings,/admin/component.php?module="+type+"_frontend&id="+id+"|advanced settings,/admin/component.php?module="+type+"_settings_frontend&parent="+id;else
tabList="";var win=new Window({className:'alphacube',draggable:false,height:height,width:width,tabList:tabList,minimizable:false,maximizable:false,showEffectOptions:{duration:0.1},destroyOnClose:true,recenterAuto:true,url:'/admin/component.php?module='+type+'_frontend&id='+id});win.show(true);win.showCenter();WindowCloseKey.init();}function confirmAction(action,url){if(confirm(action))document.location=url;else
return false;}$(document).ready(function(){$('a[rel="external"]').each(function(){$(this).attr('target','_blank').addClass('external');});if($.browser.msie){$(".javelin_moduleBarOptions li, .javelin_dropDown li").hoverClass("javelin_sfHover");$(".javelin_moduleBarOptions li ul, .javelin_dropDown li ul").hoverClass("javelin_sfHover");var zIndexNumber=1000;$('div').not('#javelin_adminBar div').each(function(){$(this).css('zIndex',zIndexNumber);zIndexNumber-=10;});}});$.fn.hoverClass=function(c){return this.each(function(){$(this).hover(function(){$(this).addClass(c);},function(){$(this).removeClass(c);});});};
var loginFocued = false;
function javbar_login() {
	$('#javelintoolbar_wrap').show('fast');
	if (!loginFocued) {
		loginFocued = true;
		$('#javelintoolbar_wrap input[name="username"]').focus();
		$('#javelintoolbar_wrap input[name="username"]').val("");
	}
}