﻿if(document.images){
     // laden van inactive menu items
	pic1off      = new Image(1,1);
   	pic2off      = new Image(1,1);
   	pic3off      = new Image(1,1);
   	pic4off      = new Image(1,1);
   	pic5off      = new Image(1,1);
   	pic6off      = new Image(1,1);
   	pic7off      = new Image(1,1);
   	pic8off      = new Image(1,1);
   	pic9off      = new Image(1,1);
		
	pic1on      = new Image(1,1);
	pic2on      = new Image(1,1);
	pic3on      = new Image(1,1);
	pic4on      = new Image(1,1);
	pic5on      = new Image(1,1);
	pic6on      = new Image(1,1);
	pic7on      = new Image(1,1);
	pic8on      = new Image(1,1);
	pic9on      = new Image(1,1);
	
	pic1click      = new Image(1,1);
	pic2click      = new Image(1,1);
	pic3click      = new Image(1,1);
	pic4click      = new Image(1,1);
	pic5click      = new Image(1,1);
	pic6click      = new Image(1,1);
	pic7click      = new Image(1,1);
	pic8click      = new Image(1,1);
	pic9click      = new Image(1,1);
	
	pic1off.src  = "http://www.oostlandautomobielen.nl/images/button/occasionskop.jpg";
	pic2off.src  = "http://www.oostlandautomobielen.nl/images/button/contactroutekop.jpg";
	pic3off.src  = "http://www.oostlandautomobielen.nl/images/button/homekop.jpg";
	pic4off.src  = "http://www.oostlandautomobielen.nl/images/button/home.png";
	pic5off.src  = "http://www.oostlandautomobielen.nl/images/button/occasions.png";
	pic6off.src  = "http://www.oostlandautomobielen.nl/images/button/zoekopdracht.png";
	pic7off.src  = "http://www.oostlandautomobielen.nl/images/button/overons.png";
	pic8off.src  = "http://www.oostlandautomobielen.nl/images/button/nieuws.png";
	pic9off.src  = "http://www.oostlandautomobielen.nl/images/button/contact.png";

	pic1on.src  = "http://www.oostlandautomobielen.nl/images/button/occasionskop_over.jpg";
	pic2on.src  = "http://www.oostlandautomobielen.nl/images/button/contactroutekop_over.jpg";
	pic3on.src  = "http://www.oostlandautomobielen.nl/images/button/homekop_over.jpg";
	pic4on.src  = "http://www.oostlandautomobielen.nl/images/button/home_over.png";
	pic5on.src  = "http://www.oostlandautomobielen.nl/images/button/occasions_over.png";
	pic6on.src  = "http://www.oostlandautomobielen.nl/images/button/zoekopdracht_over.png";
	pic7on.src  = "http://www.oostlandautomobielen.nl/images/button/overons_over.png";
	pic8on.src  = "http://www.oostlandautomobielen.nl/images/button/nieuws_over.png";
	pic9on.src  = "http://www.oostlandautomobielen.nl/images/button/contact_over.png";
	
	pic1click.src  = "http://www.oostlandautomobielen.nl/images/button/occasionskop_over.jpg";
	pic2click.src  = "http://www.oostlandautomobielen.nl/images/button/contactroutekop_over.jpg";
	pic3click.src  = "http://www.oostlandautomobielen.nl/images/button/homekop_over.jpg";
	pic4click.src  = "http://www.oostlandautomobielen.nl/images/button/home_over.png";
	pic5click.src  = "http://www.oostlandautomobielen.nl/images/button/occasions_over.png";
	pic6click.src  = "http://www.oostlandautomobielen.nl/images/button/zoekopdracht_over.png";
	pic7click.src  = "http://www.oostlandautomobielen.nl/images/button/overons_over.png";
	pic8click.src  = "http://www.oostlandautomobielen.nl/images/button/nieuws_over.png";
	pic9click.src  = "http://www.oostlandautomobielen.nl/images/button/contact_over.png";
	
	CurrOn = 'pic';
}

function LowLight(theImage) {
	if(document.images){
			if (!(CurrOn == theImage)) {
	        	document [theImage].src = eval(theImage + "off.src");
				}
			else {
             document.images[theImage].src = eval(theImage + 'click.src')
             }
       }
     }

function HighLight(theImage) {
	if(document.images){
             document.images[theImage].src = eval(theImage + 'on.src')
             }
       }

function Img_Click(theImage) {
		if (document.images) {
		CurrOn = theImage;
		LowLight("pic1");
		LowLight("pic2");
		LowLight("pic3");
		LowLight("pic4");
		LowLight("pic5");
		LowLight("pic6");
		LowLight("pic7");
		LowLight("pic8");
		LowLight("pic9");
		if (!(theImage == "low")) {document.images[theImage].src = eval(theImage + 'click.src')};
        }
       else
	return;
}

function loadFrames(frame1,page1,frame2,page2,frame3,page3,frame4,page4) {
	eval("parent."+frame1+".location='"+page1+"'");

}

