



// preload images:
if (document.images) {
z =new Image(115,195); z.src =    "images/index_r6_c20.gif";
a =new Image(115,195); a.src =    "images/2.gif";
b = new Image(115,95); b.src = "images/3.gif";
c = new Image(115,95); c.src = "images/4.gif";
d = new Image(115,95); d.src = "images/5.gif";


z2 =new Image(115,195); z2.src =    "images/index_r12_c23.gif";
a2 =new Image(115,195); a2.src =    "images/22.gif";
b2 = new Image(115,95); b2.src = "images/33.gif";
c2 = new Image(115,95); c2.src = "images/44.gif";
d2 = new Image(115,95); d2.src = "images/55.gif";

}

function hiLite(imgName,imgObjName) {
if (document.images) {
  document.images[imgName].src = eval(imgObjName + ".src");
}}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if (document.images) {  // If the image object exists    

      // Preload images

        off = new Array(8)

        on = new Array(8)


        //screenon = new Array(12)

    on[1] = new Image();          

    on[1].src = "images/index_r7-2_c22.gif";       

    on[2] = new Image(); 

    on[2].src = "images/index_r8-2_c22.gif";   

    on[3] = new Image();          

    on[3].src = "images/index_r10-2_c22.gif";     
    
    on[4] = new Image();          

    on[4].src = "images/index_r11-2_c22.gif";       

   
    off[1] = new Image();          

    off[1].src = "images/index_r7_c22.gif";       

    off[2] = new Image(); 

    off[2].src = "images/index_r8_c22.gif";   

    off[3] = new Image();          

    off[3].src = "images/index_r10_c22.gif";     
    
    off[4] = new Image();          

    off[4].src = "images/index_r11_c22.gif";
    /////////////////////////
    
    on[5] = new Image();          

    on[5].src = "images/index_r13-2_c20.gif";       

    on[6] = new Image(); 

    on[6].src = "images/index_r14-2_c20.gif";   

    on[7] = new Image();          

    on[7].src = "images/index_r15-2_c20.gif";     
    
    on[8] = new Image();          

    on[8].src = "images/index_r16-2_c20.gif";       

   
    off[5] = new Image();          

    off[5].src = "images/index_r13_c20.gif";       

    off[6] = new Image(); 

    off[6].src = "images/index_r14_c20.gif";   

    off[7] = new Image();          

    off[7].src = "images/index_r15_c20.gif";     
    
    off[8] = new Image();          

    off[8].src = "images/index_r16_c20.gif";              

    
} 

    function buttonOn(buttonName,num) {  

      if (document.images) { // If the image object exists   

          // Change images on the page

         document[buttonName].src = on[num].src;

       //   document.screen.src = screenon[num].src;

      }

   }



    function buttonOff(buttonName,num) {  

        if (document.images) { // If the image object exists   

          // Change images on the page

          document[buttonName].src = off[num].src;

       //   document.screen.src = "imag/bg2.jpg";

        }

    }


/////////////-----------------------------------------------/////////////////////////////////////////////////////////////
//+++Check feedback form validation+++//

function CheckPass()
{

if (formCheck.name.value=="")
{
alert ("Please, enter the First name");
document.formCheck.name.focus;
return false;
}
if (formCheck.last_name.value=="")
{
alert ("Please, enter the last  name");
document.formCheck.last_name.focus;
return false;
}


if (formCheck.email2.value == "" )
	{
	alert ("Please enter your email");
	document.formCheck.email2.focus();
	return false;
	}


		
StrMail= document.formCheck.email2.value;
 p=StrMail.indexOf('@');	
 
 if (p==-1)
 {
 alert (" Email must contain an e-mail address");
 document.formCheck.email2.focus();
 return false;
 }

}
/////////////-----------------------------------------------/////////////////////////////////////////////////////////////

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) { //v4.01
  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);
  if(!x && d.getElementById) x=d.getElementById(n); 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 NewWindow(mypage,myname,w,h,scroll,resizable){
	var win = null;
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2-30 : 0;
	settings =
	'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=no'
	win = window.open(mypage,myname,settings)
}