linkArray = new Array('about.php','procedures.php','qa.php','http://www.lasermedskinclinic.mojoring.com/Static/Newsletter/.aspx','http://www.lasermedskinclinic.mojoring.com/Static/AppointmentRequest/.aspx','ba.php','lib.php','contact.php');
imgOffArray = new Array('about_off.gif','procedures_off.gif','qa_off.gif','news_off.gif','appts_off.gif','banda_off.gif','lib_off.gif','contact_off.gif');
imgOnArray = new Array('about_on.gif','procedures_on.gif','qa_on.gif','news_on.gif','appts_on.gif','banda_on.gif','lib_on.gif','contact_on.gif');

function drawBlackLine() {
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td bgcolor="#000000"><img src="img/clr.gif"></td></tr></table>');
}

function writeMenu(num) {
	str = '<table border="0" cellpadding="0" cellspacing="0"><tr><td><img src="img/clr.gif" height="1" width="7"></td>';
	for (i = 0; i < linkArray.length; i++) {
		str += '<td>';
		str += '<a href="' + linkArray[i] + '" ';
		str += ' onmouseover="flipImage(' + i + ',imgOnArray[' + i + ']);"';
		str += ' onmouseout="flipImage(' + i + ',imgOffArray[' + i + ']);"';
		str += '>';
		str += '<img name="img' + i + '" border="no" src="img/' + imgOffArray[i] + '">';
		str += '</a></td>';
	}
	str += '</tr></table>';
	document.write(str);
}

function flipImage(n,toSrc) {
	document.images[('img' + n)].src = 'img/' + toSrc;
}

var timer_id;
function scroll_iframe(frm,inc,dir) {
  if (timer_id) clearTimeout(timer_id);
  if (window.frames[frm]) {
    if (dir == "v") window.frames[frm].scrollBy(0, inc);
    else window.frames[frm].scrollBy(inc, 0);
    timer_id = setTimeout("scroll_iframe('" + frm + "'," + inc + ",'" + dir + "')", 20);
  }
}

function stopScroll() { if (timer_id) clearTimeout(timer_id); }

function buildSubMenu1(n) {
	document.write('<tr><td bgcolor="#3E8EB3" width="15%" align="center"><img src="img/ba.gif"></td><td bgcolor="#3E8EB3" width="85%" class="copyText" align="right" style="color: white; font-weight: bold;">' + n + '&nbsp;&nbsp;</td></tr>');
}
function spacer() {
	document.write('<tr><td><img src="img/clr.gif" width="1" height="3"></td></tr>');
}

function buildSubMenu2(n,l) {
	buildSubMenu(n,l,'65B33E');
}
function buildSubMenu3(n,l) {
	buildSubMenu(n,l,'1080B4');
}
function buildSubMenu4(n,l) {
	buildSubMenu(n,l,'B33E48');
}
function buildSubMenu5(n,l) {
	buildSubMenu(n,l,'3E52B3');
}
function buildSubMenu6(n,l) {
	buildSubMenu(n,l,'A9B33E');
}
function buildSubMenu7(n,l) {
	buildSubMenu(n,l,'1080B4');
}
function buildSubMenu8(n,l) {
	buildSubMenu(n,l,'8025CC');
}

function buildSubMenu(n,l,bg) {
	document.write('<tr style="cursor: hand; " onclick="swapDiv(\'\',\'' + l + '\');">');
	document.write('<td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="darkBorder" style="FILTER: Alpha(Opacity=100, FinishOpacity=70, Style=1); "><tr>');
	document.write('<td bgcolor="#'+bg+'" width="*" class="copyText" align="left" style="font-size: 12px; color: white; font-weight: bold;" nowrap>' + n + '&nbsp;&nbsp;</td>');
	document.write('<td bgcolor="#'+bg+'" width="10" align="center"><img src="img/ba.gif"></td>');
	document.write('</tr></table></td></tr>');
}