version = "incompatible";
browserName = navigator.appName;
browserVer  = parseInt(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 3) 
version = "ok";
else if (browserName == "Microsoft Internet Explorer" && browserVer > 3) 
version = "ok"; 

if (version == "ok")
{
ml1_off=new Image(); ml1_off.src="images/p1-ml-off-01.gif"; ml1_on=new Image(); ml1_on.src="images/p1-ml-on-01.gif";
ml2_off=new Image(); ml2_off.src="images/p1-ml-off-02.gif"; ml2_on=new Image(); ml2_on.src="images/p1-ml-on-02.gif";
ml3_off=new Image(); ml3_off.src="images/p1-ml-off-03.gif"; ml3_on=new Image(); ml3_on.src="images/p1-ml-on-03.gif";
ml4_off=new Image(); ml4_off.src="images/p1-ml-off-04.gif"; ml4_on=new Image(); ml4_on.src="images/p1-ml-on-04.gif";
ml5_off=new Image(); ml5_off.src="images/p1-ml-off-05.gif"; ml5_on=new Image(); ml5_on.src="images/p1-ml-on-05.gif";
ml6_off=new Image(); ml6_off.src="images/p1-ml-off-06.gif"; ml6_on=new Image(); ml6_on.src="images/p1-ml-on-06.gif";
ml7_off=new Image(); ml7_off.src="images/p1-ml-off-07.gif"; ml7_on=new Image(); ml7_on.src="images/p1-ml-on-07.gif";
ml8_off=new Image(); ml8_off.src="images/p1-ml-off-08.gif"; ml8_on=new Image(); ml8_on.src="images/p1-ml-on-08.gif";
ml9_off=new Image(); ml9_off.src="images/p1-ml-off-09.gif"; ml9_on=new Image(); ml9_on.src="images/p1-ml-on-09.gif";
ml10_off=new Image(); ml10_off.src="images/p1-ml-off-10.gif"; ml10_on=new Image(); ml10_on.src="images/p1-ml-on-10.gif";

mr1_off=new Image(); mr1_off.src="images/p1-mr-off-01.gif"; mr1_on=new Image(); mr1_on.src="images/p1-mr-on-01.gif";
mr2_off=new Image(); mr2_off.src="images/p1-mr-off-02.gif"; mr2_on=new Image(); mr2_on.src="images/p1-mr-on-02.gif";
mr3_off=new Image(); mr3_off.src="images/p1-mr-off-03.gif"; mr3_on=new Image(); mr3_on.src="images/p1-mr-on-03.gif";
mr4_off=new Image(); mr4_off.src="images/p1-mr-off-04.gif"; mr4_on=new Image(); mr4_on.src="images/p1-mr-on-04.gif";
mr5_off=new Image(); mr5_off.src="images/p1-mr-off-05.gif"; mr5_on=new Image(); mr5_on.src="images/p1-mr-on-05.gif";
mr6_off=new Image(); mr6_off.src="images/p1-mr-off-06.gif"; mr6_on=new Image(); mr6_on.src="images/p1-mr-on-06.gif";
mr7_off=new Image(); mr7_off.src="images/p1-mr-off-07.gif"; mr7_on=new Image(); mr7_on.src="images/p1-mr-on-07.gif";
mr8_off=new Image(); mr8_off.src="images/p1-mr-off-08.gif"; mr8_on=new Image(); mr8_on.src="images/p1-mr-on-08.gif";
mr9_off=new Image(); mr9_off.src="images/p1-mr-off-09.gif"; mr9_on=new Image(); mr9_on.src="images/p1-mr-on-09.gif";
mr10_off=new Image(); mr10_off.src="images/p1-mr-off-10.gif"; mr10_on=new Image(); mr10_on.src="images/p1-mr-on-10.gif";

photo_0=new Image(); photo_0.src="images/p1-photo-0.jpg";

photo_ml1=new Image(); photo_ml1.src="images/p1-photo-l01.jpg";
photo_ml2=new Image(); photo_ml2.src="images/p1-photo-l02.jpg";
photo_ml3=new Image(); photo_ml3.src="images/p1-photo-l03.jpg";
photo_ml4=new Image(); photo_ml4.src="images/p1-photo-l04.jpg";
photo_ml5=new Image(); photo_ml5.src="images/p1-photo-l05.jpg";
photo_ml6=new Image(); photo_ml6.src="images/p1-photo-l06.jpg";
photo_ml7=new Image(); photo_ml7.src="images/p1-photo-l07.jpg";
photo_ml8=new Image(); photo_ml8.src="images/p1-photo-l08.jpg";
photo_ml9=new Image(); photo_ml9.src="images/p1-photo-l09.jpg";
photo_ml10=new Image(); photo_ml10.src="images/p1-photo-l10.jpg";

photo_mr1=new Image(); photo_mr1.src="images/p1-photo-r01.jpg";
photo_mr2=new Image(); photo_mr2.src="images/p1-photo-r02.jpg";
photo_mr3=new Image(); photo_mr3.src="images/p1-photo-r03.jpg";
photo_mr4=new Image(); photo_mr4.src="images/p1-photo-r04.jpg";
photo_mr5=new Image(); photo_mr5.src="images/p1-photo-r05.jpg";
photo_mr6=new Image(); photo_mr6.src="images/p1-photo-r06.jpg";
photo_mr7=new Image(); photo_mr7.src="images/p1-photo-r07.jpg";
photo_mr8=new Image(); photo_mr8.src="images/p1-photo-r08.jpg";
photo_mr9=new Image(); photo_mr9.src="images/p1-photo-r09.jpg";
photo_mr10=new Image(); photo_mr10.src="images/p1-photo-r10.jpg";
}

function img_on(imgName)
{
        if (version == "ok") 
        {
        imgOn = eval( imgName + "_on.src");
        document [imgName].src = imgOn;
        //alert("photo_" + imgName + ".src");
        photoSrc = eval("photo_" + imgName + ".src");
        document.photo.src = photoSrc;
        }
}

function img_off(imgName)
{
        if (version == "ok") 
        {
        imgOff = eval( imgName + "_off.src");
        document [ imgName].src = imgOff;
        document.photo.src = photo_0.src;
        }
}

function show(name,x,y){
		x = x + 20;
		y = y + 30;
		window.open(name,null,"width="+x+",height="+y+",status=no,toolbar=no,menubar=no,resizable=no,scrollbars=no");
}
