function MM_openBrWindow(theURL,winName,features) { //v2.0
	if (window.focus) {
		window.open(theURL,winName,features).focus();
	} else {
		window.open(theURL,winName,features);
	}
}
function imagePicker(dir,target,imagex,imagey) {
	MM_openBrWindow('/_php/imagePicker.php?dir='+escape(dir)+'&target='+escape(target)+'&imagex='+escape(imagex)+'&imagey='+escape(imagey))
}
function setCookie(c_name,value,exdays) {
	var exdate=new Date();
	exdate.setDate(exdate.getDate() + exdays);
	var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
	document.cookie=c_name + "=" + c_value;
}
$(document).ready(function(){
	// No quick menu for MSIE 5 and older
	if (!jQuery.browser.msie || (jQuery.browser.msie && parseInt(jQuery.browser.version) > 5)) {
		$('div#quickMenuBG').css({width : $(window).width(), height : $(window).height()}).hide();
		$('div#quickMenu').css({top : ($('div#head').offset().top + 20), left :($('div#head').offset().left + 800)}).load('/_php/_quickMenu.php').mouseover(function() {
			$('div#quickMenuBG').show();
			$('div#quickMenu div.menuTop').css('background-position', '0 -19px');
			$(this).css('height', '400px');
		}).mouseout(function() {
			$('div#quickMenuBG').hide();
			$('div#quickMenu div.menuTop').css('background-position', '0 0');
			$(this).css('height', '19px');
		});
	}
	$('table.trMarker tbody tr').mouseover(function(){
		$(this).addClass('trOn');
	}).mouseout(function(){
		$(this).removeClass('trOn');
	});
	$('a.popup').click(function () { 
  	MM_openBrWindow($(this).attr('href'), 'popup', 'scrollbars=yes,resizable=yes,width=420,height=500'); 
		return false;
  });
	$('a.popupBig').click(function () { 
  	MM_openBrWindow($(this).attr('href'), 'popup', 'scrollbars=yes,resizable=yes,width=800,height=600'); 
		return false;
  });
});
