function sample_code(sub_menu){

var menu_value=sub_menu;

var menu_red1="";
var menu_red2="";
var menu_red3="";
var menu_red4="";
var menu_red5="";
var menu_red7="";
var menu_red8="";

if (menu_value=="1") {
		menu_red1="_red";
	}
else if (menu_value=="2"){
		menu_red2="_red";
	}
else if (menu_value=="3"){
		menu_red3="_red";
	}
else if (menu_value=="4"){
		menu_red4="_red";
	}
else if (menu_value=="5"){
		menu_red5="_red";
	}
else if (menu_value=="7"){
		menu_red7="_red";
	}
else if (menu_value=="8"){
		menu_red8="_red";
	}

document.write('<TABLE width="100%" border="0" cellpadding="3" cellspacing="0">')
document.write('<tr bgcolor="#EEEECC">')
document.write('<td><img src=../../../images/pixel_cream.gif width=10 height=17></td>')

document.write('<td height=17 width=522><center>')
document.write('<TABLE width="522" height=17 border="0" cellpadding="0" cellspacing="0">')
document.write('<tr>')

document.write('<td width=10><img src=../../../images/pixel_cream.gif width=10 height=17></td>')

document.write('<td width=83><A href="../../../design_elements/design_theory/design_theory1to7/design_theory1to7.shtml" onFocus="if(this.blur)this.blur()"><img src=')
document.write("../../../images/design_tutorials" + menu_red1 + ".gif")
document.write(' width=83 height=17 border=0></a></td>')

document.write('<td width=92><A href="../../../design_elements/design_theory/design_theory_beginners1to7/design_theory_beginners1to7.shtml" onFocus="if(this.blur)this.blur()"><img src=')
document.write("../../../images/newbies_tutorials" + menu_red2 + ".gif")
document.write(' width=92 height=17 border=0></a></td>')

document.write('<td width=26><A href="../../../design_elements/css/css1to6/css1to6.shtml" onFocus="if(this.blur)this.blur()"><img src=')
document.write("../../../images/style_sheets" + menu_red3 + ".gif")
document.write(' width=26 height=17 border=0></a></td>')

document.write('<td width=59><A href="../../../sample_code/sample_code/sample_code1to6/sample_code1to6.shtml" onFocus="if(this.blur)this.blur()"><img src=')
document.write("../../../images/java_script" + menu_red4 + ".gif")
document.write(' width=59 height=17 border=0></a></td>')

document.write('<td width=95><A href="../../../photoshop_tutorials/photoshop_tutorials/photoshop_tutorial1to7/photoshop_tutorial1to7.shtml" onFocus="if(this.blur)this.blur()"><img src=')
document.write("../../../images/photoshop" + menu_red5 + ".gif")
document.write(' width=95 height=17 border=0></a></td>')

document.write('<td width=88><A href="../../../photoshop_tutorials/photoshop_intro_tutorials/photoshop_intro_tutorial1to7/photoshop_intro_tutorial1to7.shtml" onFocus="if(this.blur)this.blur()"><img src=')
document.write("../../../images/photoshop_basics" + menu_red7 + ".gif")
document.write(' width=88 height=17 border=0></a></td>')

document.write('<td width=59><A href="../../../html_tutorials/html_tutorials/html_tutorial1to7/html_tutorial1to7.shtml" onFocus="if(this.blur)this.blur()"><img src=')
document.write("../../../images/html" + menu_red8 + ".gif")
document.write(' width=59 height=17 border=0></a></td>')

document.write('<td width=10><img src=../../../images/pixel_cream.gif width=10 height=17></td>')

document.write('</tr>')
document.write('</table>')
document.write('</center></td>')

document.write('<td><img src=../../../images/pixel_cream.gif width=10 height=17></td>')
document.write('</tr>')
document.write('</table>')
}