if (document.images) {
Imagemenu1Over = new Image; 
Imagemenu1Over.src = "../images/menu1a.jpg";
Imagemenu1Over;
Imagemenu1Out = new Image;
Imagemenu1Out.src = "../images/menu1.jpg";
Imagemenu1Out;
}
if (document.images) {
Imagemenu2Over = new Image; 
Imagemenu2Over.src = "../images/menu2a.jpg";
Imagemenu2Over;
Imagemenu2Out = new Image;
Imagemenu2Out.src = "../images/menu2.jpg";
Imagemenu2Out;
}
if (document.images) {
Imagemenu3Over = new Image; 
Imagemenu3Over.src = "../images/menu3a.jpg";
Imagemenu3Over;
Imagemenu3Out = new Image;
Imagemenu3Out.src = "../images/menu3.jpg";
Imagemenu3Out;
}
if (document.images) {
Imagemenu4Over = new Image; 
Imagemenu4Over.src = "../images/menu4a.jpg";
Imagemenu4Over;
Imagemenu4Out = new Image;
Imagemenu4Out.src = "../images/menu4.jpg";
Imagemenu4Out;
}
if (document.images) {
Imagemenu5Over = new Image; 
Imagemenu5Over.src = "../images/menu5a.jpg";
Imagemenu5Over;
Imagemenu5Out = new Image;
Imagemenu5Out.src = "../images/menu5.jpg";
Imagemenu5Out;
}


function ImageOver(ImageName) {//
if (document.images){
document[ImageName].src=eval("Image"+ImageName+"Over.src");
}
}

function ImageOut(ImageName) {
if (document.images) {
document[ImageName].src=eval("Image"+ImageName+"Out.src");
}
}

if (document.images) {
un1 = new Image; 
un1.src = "images/pvh/compl/ob.gif";
un1;
un2 = new Image;
un2.src = "images/pvh/compl/ob1.gif";
un2;
}

function unchange()
{
if(document['unchange1'].src==eval("un1.src"))
	 { document['unchange1'].src = eval("un2.src");}
else
	 {document['unchange1'].src = eval("un1.src");}
}

function changevis()
{
	 lay = document.getElementById('layx');
	 if(lay.style.display=='none')
	 {
		 lay.style.display='';
	 }else{lay.style.display='none';}
}


function changeCol(num){
	numa = document.getElementById(num+'a');
	numa.className='naz3';
	numb = document.getElementById(num+'b');
	numb.className='naz3';
	numc = document.getElementById(num+'c');
	numc.className='naz3';
	numd = document.getElementById(num+'d');
	numd.className='naz3';
	nume = document.getElementById(num+'e');
	nume.className='naz3';	
	nume = document.getElementById(num+'f');
	nume.className='naz3';	

}
function changeCol1(num){
	numa = document.getElementById(num+'a');
	numa.className='naz2';
	numb = document.getElementById(num+'b');
	numb.className='naz2';
	numc = document.getElementById(num+'c');
	numc.className='naz2';
	numd = document.getElementById(num+'d');
	numd.className='naz2';
	nume = document.getElementById(num+'e');
	nume.className='naz2';	
	nume = document.getElementById(num+'f');
	nume.className='naz2';	

}
  function menuhide(menunum)
  {
    var currentmenu = document.getElementById('contdiv' + menunum);

   currentmenu.style.visibility = 'hidden';

  }

  function menushow(menunum)
  {
    var currentmenu = document.getElementById("contdiv" + menunum);
    currentmenu.style.visibility = 'visible';
  }
  
function popUpPic(URL, sizex, sizey) {
  var inc_y = 60;
  var inc_x = 13;
  params = "top=5,left=5,width="+sizex+",height="+sizey+",Status=no,toolbar=no,menubar=no,location=no,directories=no,scrollbars=no,resizable=yes";
  popupWin = window.open("","popupWin",params);
  popupWin.focus(); 
  popupWin.document.open();
  popupWin.document.write("<html><head><title></title></head>");
  popupWin.document.write("<script language = JavaScript>");
  popupWin.document.write("function closeWindow() {");
  popupWin.document.write("parent.window.close();}");
  popupWin.document.write("function resize(){");
//  popupWin.document.write("alert('ok');");
  popupWin.document.write(" if(window.document.images[0].height > (window.screen.height-100))");
  popupWin.document.write(" {q = window.screen.height-100;}");
  popupWin.document.write("else{q = window.document.images[0].height;}");
//  popupWin.document.write("alert(q);");
//  popupWin.document.write("alert(window.screen.height-150);");
  popupWin.document.write("window.resizeTo(window.document.images[0].width+"+inc_x+",q+"+inc_y+");}");
  popupWin.document.write("</scri"+"pt>");
  popupWin.document.write("<body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'><a href=''><img src='"+URL+"' border='0' name='cha1' onClick='closeWindow()' onLoad='resize();' alt=''></a></body></html>");
  popupWin.document.close();
} 

function getimg(URL, sizex, sizey) {
  var inc_y = 38;
  var inc_x = 13;
  params = "top=5,left=5,width="+sizex+",height="+sizey+",Status=no,toolbar=no,menubar=no,location=no,directories=no,scrollbars=no,resizable=yes";
  popupWin = window.open("","popupWin",params);
  popupWin.focus(); 
  popupWin.document.open();
  popupWin.document.write("<html><head><title></title></head>");
  popupWin.document.write("<script language = JavaScript>");
  popupWin.document.write("function closeWindow() {");
  popupWin.document.write("parent.window.close();}");
  popupWin.document.write("function resize(){");
//  popupWin.document.write("alert('ok');");
  popupWin.document.write(" if(window.document.images[0].height > (window.screen.height-100))");
  popupWin.document.write(" {q = window.screen.height-100;}");
  popupWin.document.write("else{q = window.document.images[0].height;}");
//  popupWin.document.write("alert(q);");
//  popupWin.document.write("alert(window.screen.height-150);");
  popupWin.document.write("window.resizeTo(window.document.images[0].width+"+inc_x+",q+"+inc_y+");}");
  popupWin.document.write("</scri"+"pt>");
  popupWin.document.write("<body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'><a href=''><img src='"+URL+"' border='0' name='cha1' onClick='closeWindow()' onLoad='resize();' alt=''></a></body></html>");
  popupWin.document.close();
} 
function right(e) {
var msg = "Извините, контент защищен от копирования.";
if (navigator.appName == 'Netscape' && e.which == 3) {
alert(msg);
return false;
}
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
alert(msg);
return false;
}
else return true;
}

function trap() 
  {
  if(document.images)
    {
    for(i=0;i<document.images.length;i++)
      {
      document.images[i].onmousedown = right;
      document.images[i].onmouseup = right;
      }
    }
  }
// End -->
