var menucontent = "";
var sourcedir = "";
menucontent += '<HTML><HEAD><STYLE><!--.generale{ position: absolute; left: -999; top: -999; z-index: 999; cursor: hand; background: basics/bg_menu.jpg; background-color: #2d3840; menu; color: menuText; width: 150;visibility: hidden; border-style: outset; border-width: 2px; height: 190}.components{ font-family: Ms Shell Dlg; font-size: 12px; padding-left: 10px; padding-right: 10px; padding-top: 3px; padding-bottom: 3px }// --></STYLE></HEAD>';
menucontent += '<BODY><OBJECT ID="cerca" CLASSID="clsid:B45FF030-4447-11D2-85DE-00C04FA35C89" HEIGHT="0" WIDTH="0"></OBJECT><DIV ID="right_menu" CLASS="generale">';
menucontent += '<center><b><font color="#FFFFFF" face="Arial" size="2">Miss Armenia 2001</font></b></center><hr>';
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'back\')" STATUSTEXT="">Back</DIV>';
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'forward\')" STATUSTEXT="">Forward</DIV>';
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'reload\')" STATUSTEXT="">Refresh</DIV><HR>';
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'home\')" STATUSTEXT="">Make to Startpage</DIV>';
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'bookmark\')" STATUSTEXT="">Bookmark this Site</DIV><HR>';
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'emaildp\')" STATUSTEXT="">E-Mail to Webmaster</DIV><HR>';
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'info\')" STATUSTEXT="">Info & Copyright</DIV>';
 
menucontent += '</DIV></BODY></HTML>';
if (document.all && window.print) document.write (menucontent);
function light_on (){
if (event.srcElement.className == "components"){
event.srcElement.style.backgroundColor="highlight";
event.srcElement.style.color="highlightText";
if (event.srcElement.STATUSTEXT) {
window.status = event.srcElement.STATUSTEXT;
}
}
}
function light_off (){
if (event.srcElement.className == "components"){
event.srcElement.style.backgroundColor= "menu";
event.srcElement.style.color="menuText";
window.status = "";
}
}
function extension (){
if (event.clientY> 0 && event.clientX >0 && event.clientY<document.body.clientHeight && event.clientX<document.body.clientWidth) {
if (document.body.clientHeight - event.clientY + document.body.scrollTop>document.body.clientHeight / 2){
right_menu.style.top = event.clientY + document.body.scrollTop;
} else {
right_menu.style.top = event.clientY + document.body.scrollTop - 255;
}
if (document.body.clientWidth- event.clientX + document.body.scrollLeft >document.body.clientWidth / 2){
right_menu.style.left = event.clientX + document.body.scrollLeft;
} else {
right_menu.style.left = event.clientX + document.body.scrollLeft - 180;
}
} else {
right_menu.style.top = document.body.scrollTop;
right_menu.style.left = document.body.scrollLeft;
}
right_menu.style.visibility = "visible";
return false;
}
function hide (){
right_menu.style.visibility = "hidden";
right_menu.style.left = -999;
right_menu.style.top = -999;
}
function exe (type){
if (type == "back"){
history.back();
} else if (type == "forward"){
history.forward();
} else if (type == "home"){
document.body.style.behavior='url(#default#homepage)';
document.body.setHomePage('http://www.miss-armenia.ardani.net/');
} else if (type == "bookmark"){
var imgFav= new Image();
imgFav.src= "http://miss-armenia.ardani.net/miss.ico";
window.external.AddFavorite('http://www.miss-armenia.ardani.net', 'Miss Armenia 2001');
} else if (type == "reload"){
self.location.reload();
} else if (type == "emaildp"){
location.href="mailto:info@ardani.net?subject=Miss - Online Contact";
}else if (type == "info"){
alert('Copyright © 2000-2002 by Miss-Armenia.org');
}
}
function cancelproc () { window.event.cancelBubble = true;
window.event.returnValue = false;
}
if (document.all && window.print){
document.oncontextmenu=extension;
document.body.onclick=hide;
right_menu.onmouseover=light_on;
right_menu.onmouseout=light_off;
right_menu.ondragstart=cancelproc;
right_menu.onselectstart=cancelproc;
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function openPictureWindow_Fever(imageName,imageWidth,imageHeight,alt,posLeft,posTop) {
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgproperties="fixed" bgcolor="#2d3840" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+'>'); 
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

