var IR_ITEMS_B = [
	[wrap_tabBlue('IR'), null, null,
		['About Us', '/radweb/modality/ir.jsp?aboutUs'],
		['Scheduling', '/radweb/modality/ir.jsp?scheduling'],
		['Location', '/radweb/modality/ir.jsp?location'],
		['Procedures', '/radweb/modality/ir.jsp?procedures'],
		['IR Patient Satisfaction Survey', "javascript:popup('http://www.zoomerang.com/survey.zgi?p=WEB2272PWQUBJL')", {'tw':'_self'}]
	]
];

var IR_ITEMS_G = [
	[wrap_tabGray('IR'), null, null,
		['About Us', '/radweb/modality/ir.jsp?aboutUs'],
		['Scheduling', '/radweb/modality/ir.jsp?scheduling'],
		['Location', '/radweb/modality/ir.jsp?location'],
		['Procedures', '/radweb/modality/ir.jsp?procedures'],
		['IR Patient Satisfaction Survey', "javascript:popup('http://www.zoomerang.com/survey.zgi?p=WEB2272PWQUBJL')", {'tw':'_self'}]
	]
];

var breast_ITEMS_B =[
	[wrap_tabBlue('Mammo'), null, null,
		['About Us', '/radweb/modality/mammo.jsp?aboutUs'],
		['Ordering Guildelines', "javascript:popup('/radweb/referral/guidelines_BI.pdf')", {'tw':'_self'}],
		['Scheduling', '/radweb/modality/mammo.jsp?scheduling'],
		['Location', '/radweb/modality/mammo.jsp?location'],
		['Procedures', '/radweb/modality/mammo.jsp?procedures'],
		['Preparations', '/radweb/modality/mammo.jsp?preparations']
	]
];

var breast_ITEMS_G =[
	[wrap_tabGray('Mammo'), null, null,
		['About Us', '/radweb/modality/mammo.jsp?aboutUs'],
		['Ordering Guildelines', "javascript:popup('/radweb/referral/guidelines_BI.pdf')", {'tw':'_self'}],
		['Scheduling', '/radweb/modality/mammo.jsp?scheduling'],
		['Location', '/radweb/modality/mammo.jsp?location'],
		['Procedures', '/radweb/modality/mammo.jsp?procedures'],
		['Preparations', '/radweb/modality/mammo.jsp?preparations']
	]
];



var CT_ITEMS_B =[
	[wrap_tabBlue('CT'), null, null,
		['News', '/radweb/modality/ct/news/SOMATOM_Definition.jsp'],
		['About CT', '/radweb/modality/ct.jsp']
	]
];

var CT_ITEMS_G =[
	[wrap_tabGray('CT'), null, null,
		['News', '/radweb/modality/ct/news/SOMATOM_Definition.jsp'],
		['About CT', '/radweb/modality/ct.jsp']
	]
];

var PETCT_ITEMS_B =[
	[wrap_tabBlue('PET/CT'), null, null,
		['About PET/CT', 'petct.jsp'],
		['Nuclear Medicine', "javascript:popup('http://nuc.uclahealth.org')", {'tw':'_self'}]
	]
];

var PETCT_ITEMS_G =[
	[wrap_tabGray('PET/CT'), null, null,
		['About PET/CT', 'petct.jsp'],
		['Nuclear Medicine', "javascript:popup('http://nuc.uclahealth.org')", {'tw':'_self'}]
	]
];

var ultrasound_ITEMS_B =[
	[wrap_tabBlue('Ultrasound'), null, null,
		['About Us', '#'],
		['Scheduling', '#'],
		['Location', '#'],
		['Procedures', '#'],
		['Preparations', '#']
	]
];

var ultrasound_ITEMS_G =[
	[wrap_tabGray('Ultrasound'), null, null,
		['About Us', '#'],
		['Scheduling', '#'],
		['Location', '#'],
		['Procedures', '#'],
		['Preparations', '#']
	]
];

function wrap_tabBlue (text) {
	var res=[];
	for (var i=0; i<3; i++)
		res[i]=['<table width=100% cellpadding="0" cellspacing="0" border="0"><tr><td background="/radweb/images/topMenu/tab_blue_left_25x7.gif" width="7" height="25" border="0">&nbsp;</td><td class="mtagBout">',text, '</td><td background="/radweb/images/topMenu/tab_blue_right_25x7.gif" width="7" height="25" border="0">&nbsp;</td></tr></table>'
		].join('');
	return res;
}


function wrap_tabGray (text) {
	var res=[];
	for (var i=0; i<3; i++)
		res[i]=['<table width=100% cellpadding="0" cellspacing="0" border="0"><tr><td background="/radweb/images/topMenu/tab_gray_left_25x7.gif" width="7" height="25" border="0">&nbsp;</td><td class="mtagGout" onmouseover="this.className=mtagGover" onmouseout="this.className=mtagGout">',text, '</td><td background="/radweb/images/topMenu/tab_gray_right_25x7.gif" width="7" height="25" border="0">&nbsp;</td></tr></table>'
		].join('');
	return res;
}

function popup (url) {
	window.open(url, '_blank', 'height=800,width=800,menubar=1,scrollbars=yes');
}


function wrap_tabGray1 (text) {
	var res=[];
	for (var i=0; i<3; i++)
		res[i]=['<table cellpadding="0" cellspacing="0" border="0"><tr><td background="/radweb/images/topMenu/tab_gray_left_25x7.gif" width="7" height="25" border="0">&nbsp;</td><td background="/radweb/images/topMenu/tab_gray_bg_25x1.gif" style="font-face: arial; font-size: 14px; font-weight: bold; color: #999999; text-align: center" width="183px">',text, '</td><td background="/radweb/images/topMenu/tab_gray_right_25x7.gif" width="7" height="25" border="0">&nbsp;</td></tr></table>'
		].join('');
	return res;
}

function wrap_tabBlue1 (text) {
	var res=[];
	for (var i=0; i<3; i++)
		res[i]=['<table cellpadding="0" cellspacing="0" border="0"><tr><td><img src="img/tab_blue_left_25x7.gif" width="7" height="25" border="0"></td><td background="img/tab_blue_bg_25x1.gif" style="font-face: arial, verdana; font-size: 14px; font-weight: bold; color: #336699; text-align: center" width="100%">',text,'</td><td><img src="img/tab_blue_right_25x7.gif" width="7" height="25" border="0"></td></tr></table>'
		].join('');
	return res;
}

function wrap_blue (text) {
	var res=[];
	for (var i=0; i<3; i++)
		res[i]=['<table cellpadding="0" cellspacing="0" border="0"><tr><td><img src="img/blue',
			(i?2:1),'_l.gif" width="8" height="23" border="0"></td><td background="img/blue',
			(i?2:1),'_m.gif" style="font-face: tahoma, verdana, arial; font-size: 11px; font-weight: bold; color: #105D94" width="100%">',text,'</td><td><img src="img/blue',
			(i?2:1),'_r.gif" width="8" height="23" border="0"></td></tr></table>'
		].join('');
	return res;
}