appName = navigator.appName;
appVer = parseInt(navigator.appVersion);

if (appName == "Netscape" && appVer >= 4) ver = "n4";
else if (appName == "Netscape" && appVer == 3) ver = "n3";
else if (appName == "Netscape" && appVer == 2) ver = "n2";
else if (appName == "Microsoft Internet Explorer" && appVer >= 4) ver = "e4";
else if (appName == "Microsoft Internet Explorer" && appVer >= 2) ver = "e3";

if (ver == "n3" || ver == "n4" || ver == "e4") {

        initialiseimages();

}else{
        able = false;
}

function initialiseimages(){

		copyoff=new Image();
        copyoff.src="/common_files/porschecommon/buttons/copy.gif";
        copyon=new Image();
        copyon.src="/common_files/porschecommon/buttons/copy_.gif";


	
	lastclick = "none"		
	able = true;


}

function changeOn(name){
        if (able){
                document.images[name].src=eval(name + "on").src;
                window.status='';
        }
        return(true);
}

function changeOff(name){
        if (able){
			if ( name != lastclick && name != "none" ) { document.images[name].src=eval(name + "off").src }
                window.status='';
        return(true);
        }
		
}

