//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="Function Disabled!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")
var theColor = "#CC3300";
var theColor2 = "#CC3300";
var theLinks = new Array(new Array("t1", "realItem", "./default.html", "Home Page", "#FFFFFF", "FFB700"), 
	new Array("t2", "realItem", "./info.html", "About Rafat", "#DDDDFF", theColor),
	new Array("t3", "realItem", "./pics.html", "Artwork", "#7777DD", "#FFFFFF"),
	new Array("t7", "realItem", "./exhibit.html", "Art Shows", theColor, "#FFFFFF"),
	new Array("t4", "realItem", "./purchInfo.html", "Purchase Artwork", theColor, "#FFFFFF")
);


document.writeln("		<style>");
document.writeln("		<!--");
document.writeln("              .helpB {position:absolute; visibility: hidden; width: 150; border-style: plain; border-color: 000000; background-color: EEE8AA; layer-background-color: EEE8AA; }\n");
document.writeln("		body {font-size: 12pt}");
document.writeln("		a {text-decoration:none; color: "+theColor2+"}");
document.writeln("		a:visited {color: "+theColor2+"}");
document.writeln("              .plain {color:000000}");
document.writeln("		.para {text-indent: 15pt; width:650; text-align:justify; font-size: 12pt}");
document.writeln("		.theTitle {font-size:30pt; font-family: times new roman, roman; color: FFFFFF}");
document.writeln("		.subTitle {font-size:15pt; font-family: times new roman, roman; color: FFFFFF; width: 300}");
document.writeln("		.item {position:absolute; width:120; left:0; font-size: 16px; border-width: 1px; border-color: #FFFFFF;background-color: #FFFFFF;layer-background-color: #FFFFFF;line-height: normal;}");
document.writeln("		.realItem {text-align: center; font-family: times new roman, garamond; width:120; font-size: 16px;}");
document.writeln("		-->");
document.writeln("		</style></head>");

document.writeln("	");
document.writeln("	<body marginheight=\"0\" marginwidth=\"0\" leftmargin=\"0\" topmargin=\"0\" bgColor=\"ffffff\" text=\"000000\" style=\"margin-left:0;margin-right:0\">");
document.writeln("		<TABLE width=100% cellspacing=0 cellpadding=0 border=0>");
document.writeln("			<TR>");
document.writeln("			<TD valign=\"top\" colspan=" + theLinks.length + " style=\"background-image:url('./pics/logo2.jpg'); background-repeat: no-repeat;\" bgcolor=\"" + theColor+"\" height=72>");
document.writeln("				&nbsp;");
document.writeln("			</TD>");
document.writeln("		</TR><tr>");


for (var i=0; i < theLinks.length; i++) 
{
//	document.writeln("<td bgcolor=\"" + theLinks[i][4] +"\"><center><div id=\"" + theLinks[i][0]+ "\" class=\"" +theLinks[i][1]+ "\"><a href=\"" + theLinks[i][2] +"\" sty"+"le=\"color:"+ theLinks[i][5] +"\"><b>"+theLinks[i][3] + "</b></a></div></center></td>");
	document.writeln("<td background=\"./pics/tdBg.jpg\"><center><div id=\"" + theLinks[i][0]+"\" class=\""+ theLinks[i][1] +"\"><a href=\"" + theLinks[i][2]+ "\"><b>"+theLinks[i][3] + "</b></a></div></center></td>");
}

document.writeln("</tr></table>");
document.writeln("<hr>");


function loadEnd() {
	document.writeln("<br><center><hr>");
	
	for (var i=0; i < theLinks.length; i++) {
	
		document.writeln("<a href=\""+theLinks[i][2]+"\">"+ theLinks[i][3] + "</a>");
		if (i != theLinks.length-1) document.writeln(" | ");
	}
document.writeln("<br><a href=\"copyright.html\"><font size=-2>&copy; Copyright Rafat 2010</font></a>");
}

