//No rc
if (window.Event)
  document.captureEvents(Event.MOUSEUP);
function nocontextmenu()
{
	event.cancelBubble = true
	event.returnValue = false;
	return false;
}
function norightclick(e)
{
	if (window.Event)
	{
		if (e.which == 2 || e.which == 3)
			return false;
	}
	else
		if (event.button == 2 || event.button == 3)
		{
			event.cancelBubble = true
			event.returnValue = false;
			return false;
		}
}
document.oncontextmenu = nocontextmenu;
document.onmousedown = norightclick;
// BM
 var urlAddress = "http://www.missasiauniverse.com";
 var pageName = "MissAsiaUniverse.Com";

 function addToFavorites()
 {
  if (window.external)
  {
   window.external.AddFavorite(urlAddress,pageName)
  }
  else
  { 
   alert("Sorry! Your browser doesn't support this function.");
  }
 }

// display photos

function popWin(imgUrl, pageWidth, pageHeight) {
	pageWidth=pageWidth+100; pageHeight=pageHeight+100;
	win=window.open('','win','width='+pageWidth+',height='+pageHeight+',status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes');
	win.document.open();
	win.document.write("<html><head><title>Larger Image - [Click on the photo to Close]<\/title><META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\"><META HTTP-EQUIV=\"Expires\" CONTENT=\"-1\"><\/head>");
	win.document.write("<body topmargin=\"100\" BGCOLOR=\"#FFFFFF\" text='#000000' leftmargin=2 background=\"../../images/model_bg.jpg\" style=\"background-position:Center Middle; background-repeat:repeat\"><center>");

	win.document.write("<a href=\"javascript:window.close();\"><font size=1 face=tahoma color=#000000>Click on the photo to Close<\/font><\/a><br>");

	win.document.write("        <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"1%\"> ");
	win.document.write("          <tr> ");
	win.document.write("		<td width=\"3\">");
	win.document.write("		<img border=\"0\" src=\"../../images/box/corner_top_left.gif\" width=\"3\" height=\"3\"></td>");
	win.document.write("		<td background=\"../../images/box/box_top.gif\">");
	win.document.write("		<img border=\"0\" src=\"../../images/box/box_top.gif\" width=\"1\" height=\"3\"><\/td>");
	win.document.write("		<td width=\"3\">");
	win.document.write("		<img border=\"0\" src=\"../../images/box/corner_top_right.gif\" width=\"3\" height=\"3\"><\/td>");
	win.document.write("	<\/tr>");
	win.document.write("	<tr>");
	win.document.write("		<td width=\"3\" background=\"../../images/box/box_left.gif\">");
	win.document.write("		<img border=\"0\" src=\"../../images/box/box_left.gif\" width=\"3\" height=\"1\"><\/td>");
	win.document.write("		<td>");
// Large photo
	win.document.write("<a href=\"javascript:window.close();\"><img border=0 alt=\"Close this window\" src=" + imgUrl + "><\/a><br>");
// End Large Photo
	win.document.write("        <\/td>");
	win.document.write("		<td width=\"3\" background=\"../../images/box/box_right.gif\">");
	win.document.write("		<img border=\"0\" src=\"../../images/box/box_right.gif\" width=\"3\" height=\"1\"><\/td>");
	win.document.write("	<\/tr>");
	
	win.document.write("		<tr>");
	win.document.write("		<td width=\"3\">");
	win.document.write("		<img border=\"0\" src=\"../../images/box/corner_bottom_left.gif\" width=\"3\" height=\"3\"><\/td>");
	win.document.write("		<td background=\"../../images/box/box_bottom.gif\">");
	win.document.write("		<img border=\"0\" src=\"../../images/box/box_bottom.gif\" width=\"1\" height=\"3\"><\/td>");
	win.document.write("		<td width=\"3\">");
	win.document.write("		<img border=\"0\" src=\"../../images/box/corner_bottom_right.gif\" width=\"3\" height=\"3\"><\/td>");
	win.document.write("	<\/tr>");
	win.document.write("<\/table>");
	
	win.document.write("<a href=\"javascript:window.close();\"><font size=1 face=tahoma color=#000000>Close<\/font><\/a>");

	win.document.write("<\/center><\/body><\/html>");
	win.document.focus();
}

