/* display the flash banners without the dotted line appearing in IE*/
/*also includes param name=wmode and wmode=transparent to stop drop down menu appearing behind*/
function displayBanner(bannerPath,width,height){
	
   document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 				  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + width + '" height="' + height + '">\n');
    document.write('<param name="wmode" value="transparent">\n');
   document.write('<param name="movie" value="' + bannerPath + '"' + '/>\n');
   document.write('<param name="quality" value="high" />\n');
   document.write('<embed src="' + bannerPath + '"' +'quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" width="' + width + '" height="' + height + '"></embed>\n');
   document.write('</object>\n');
   
}

/*function to display the home page images at random*/
function displayHomePgBanners(){

	<!-- 
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

var theLinks = new Array() 
var theALT = new Array() 

var path= '/images/home_imgs/';
var link1="http://www.powershape.com/general/ps_download.asp";
var link2="http://www.delcam.com/general/software/exchange/whats_new.asp"
var link3="http://www.powermill.com/general/powermill.asp";
var link4="http://www.artcamexpress.com";
var link5="http://www.featurecam.com";
//var link6="http://www.powermill.com/releasecentre/index.html";
var link7="http://www.artcamjewelsmith.com";
var link9="http://www.delcam.com/jimtof/";
var link10="http://www.delcam.com/euromold/";
var link11="http://rp.delcam.com/";
var link12="http://www.powershape.com";

theImages[0] = path + '1.jpg'
theImages[1] = path + '2.jpg'
theImages[2] = path + 'powermill9_comingsoon.jpg'
theImages[3] = path + '4.jpg'
theImages[4] = path + '5.jpg'
//theImages[5] = path + '6.jpg'
theImages[5] = path + '7.jpg'
theImages[6] = path + 'JIMTOF-web-banner.jpg'
theImages[7] = path + 'EUROMOLD-web-banner.jpg'
theImages[8] = path + 'rp_bureau.jpg'
theImages[9] = path + 'powershape.jpg'

theLinks[0] = link1;
theLinks[1] = link2;
theLinks[2] = link3;
theLinks[3] = link4;
theLinks[4] = link5;
//theLinks[5] = link6;
theLinks[5] = link7;
//theLinks[7] = link8;
//theLinks[7] = link8;
theLinks[6] = link9;
theLinks[7] = link10;
theLinks[8] = link11;
theLinks[9] = link12;

theALT[0] = "PowerSHAPE"
theALT[1] = "Delcam Exchange"
theALT[2] = "PowerMILL 9 Coming Soon"
theALT[3] = "ArtCAM Express"
theALT[4] = "FeatureCAM"
//theALT[5] = "PowerMILL8 Release Centre"
theALT[5] = "ArtCAM JewelSmith"
//theALT[7] = "IMTS Exhibition - click here for more details"
//theALT[8] = "IWF Exhibition - click here for more details"
theALT[6] = "JIMTOF Exhibition - click here for more details"
theALT[7] = "EUROMOLD Exhibition - click here for more details"
theALT[8] = "Rapid Prototyping Bureau - click here for more details"
theALT[9] = "PowerSHAPE 8 - click here for more details"

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
//function showImage(){

//for artcam website open the link in a blank page
//if (whichImage==3 | whichImage==2){
if (whichImage==3 | whichImage==5 | whichImage==6 | whichImage==7  | whichImage==8 | whichImage==9 | whichImage==10 | whichImage==11){
	document.write('<a href=" '+ theLinks[whichImage] +' " target="_blank"><img src="'+theImages[whichImage]+'" border=0 alt="'+theALT[whichImage]+'"></a>');
}
else{

document.write('<a href=" '+ theLinks[whichImage] +' "><img src="'+theImages[whichImage]+'" border=0 alt="'+theALT[whichImage]+'"></a>');
//document.write('<img src="'+theImages[whichImage]+'">');
}
}
//-->

/*function to display the home page images at random*/
function displayHomePgBanners2(){

	<!-- 
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

var theLinks = new Array() 
var theALT = new Array() 

var path= '/images/home_imgs2/';
var link1="http://www.powermill.com/general/powermill.asp";
var link2="http://www.powershape.com"
var link3="http://www.artcaminsignia.com/demo/index.htm"
var link4="http://www.artcamexpress.com/demo/index.html"
var link5="http://www.artcam.com/"
var link6="http://rp.delcam.com/"
var link7="http://www.delcam.com/general/software/exchange.asp"
var link8="http://www.featurecam.com/general/software/latest_version.asp"

//repeat the banners for more coverage
var link9="http://www.powermill.com/general/powermill.asp";
var link10="http://www.powershape.com"
var link11="http://www.featurecam.com/general/software/latest_version.asp"
var link12="http://www.partmaker.com/news/press_article.asp?releaseId=617"
var link13="http://www.partmaker.com/news/press_article.asp?releaseId=617"



var link14="http://www.delcam.com/emo";
var link15="http://www.delcam.com/simac";
var link16="http://www.delcam.com/euromold";


theImages[0] = path + 'PM9_outnow.jpg'
theImages[1] = path + 'powershape.jpg'
theImages[2] = path + 'artcaminsigdemo.jpg'
theImages[3] = path + 'artcamexpdemo.jpg'
theImages[4] = path + 'artcam2009.jpg'
theImages[5] = path + 'rprototyping.jpg'
theImages[6] = path + 'exchange.jpg'
theImages[7] = path + 'featurecam.jpg'

//repeat the banners for more coverage
theImages[8] = path + 'PM9_outnow.jpg'
theImages[9] = path + 'powershape.jpg'
theImages[10] = path + 'featurecam.jpg'
theImages[11] = path + 'partmaker9.jpg'
theImages[12] = path + 'partmaker9.jpg'


theImages[13] = path + 'emo.jpg'
theImages[14] = path + 'simac.jpg'
theImages[15] = path + 'euromold.jpg'

theLinks[0] = link1;
theLinks[1] = link2;
theLinks[2] = link3;
theLinks[3] = link4;
theLinks[4] = link5;
theLinks[5] = link6;
theLinks[6] = link7;
theLinks[7] = link8;
theLinks[8] = link9;
theLinks[9] = link10;
theLinks[10] = link11;
theLinks[11] = link12;
theLinks[12] = link13;
theLinks[13] = link14;
theLinks[14] = link15;
theLinks[15] = link16;


theALT[0] = "PowerMILL 9 Out Now  - Click here for more details"
theALT[1] = "PowerSHAPE 8 Available Now"
theALT[2] = "Download Your Free Trial of ArtCAM Insignia - click here for more details"
theALT[3] = "Download Your Free Trial of ArtCAM Express - click here for more details"
theALT[4] = "ArtCAM 2009 Now Available - click here for more details"
theALT[5] = "Rapid Prototyping Bureau - click here for more details"
theALT[6] = "Delcam Exchange 5.9 - click here for more details"
theALT[7] = "FeatureCAM 2009 Out Now - click here for more details"

//repeat the banners for more coverage
theALT[8] = "PowerMILL 9 Out Now  - Click here for more details"
theALT[9] = "PowerSHAPE 8 Available Now"
theALT[10] = "FeatureCAM 2009 Out Now - click here for more details"
theALT[11] = "PartMaker 9 Out Now"
theALT[12] = "PartMaker 9 Out Now"


theALT[13] = "Visit Delcam at EMO - Click here for more details"
theALT[14] = "Visit Delcam at SIMAC - Click here for more details"
theALT[15] = "Visit Delcam at EUROMOLD - Click here for more details"


// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
//function showImage(){

//for artcam website open the link in a blank page
//if (whichImage==3 | whichImage==2){
if (whichImage==2 | whichImage==3 | whichImage==4 | whichImage==5 ){
	document.write('<a href=" '+ theLinks[whichImage] +' " target="_blank"><img src="'+theImages[whichImage]+'" border=0 alt="'+theALT[whichImage]+'"></a>');
}
else{

document.write('<a href=" '+ theLinks[whichImage] +' "><img src="'+theImages[whichImage]+'" border=0 alt="'+theALT[whichImage]+'"></a>');
//document.write('<img src="'+theImages[whichImage]+'">');
}
}
//-->

/*function to display the home page images at random for the GERMAN website*/
function displayHomePgBanners_de(){

	<!-- 
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

var theLinks = new Array() 
var theALT = new Array() 

var path= '/images/home_imgs2/de/';
var link1="http://www.delcam.com/languages/de";
//var link2="http://www.delcam.com/languages/de/euromold"

theImages[0] = path + 'delcamgeneral.jpg'
//theImages[1] = path + 'amb.jpg'

theLinks[0] = link1;
//theLinks[1] = link2;

theALT[0] = "Willkommen bei Delcam"
//theALT[1] = "Besuchen Sie Delcam auf der AMB"

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
//function showImage(){

//for artcam website open the link in a blank page
//if (whichImage==3 | whichImage==2){
if (whichImage==0 ){
	document.write('<a href=" '+ theLinks[whichImage] +' " target="_blank"><img src="'+theImages[whichImage]+'" border=0 alt="'+theALT[whichImage]+'"></a>');
}
else{

document.write('<a href=" '+ theLinks[whichImage] +' "><img src="'+theImages[whichImage]+'" border=0 alt="'+theALT[whichImage]+'"></a>');
//document.write('<img src="'+theImages[whichImage]+'">');
}
}


/*function to display the home page images at random for the UK website*/
function displayHomePgBanners_uk(){

	<!-- 
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

var theLinks = new Array() 
var theALT = new Array() 

var path= '/images/home_imgs/uk/';
var link1="http://www.delcam.co.uk/mazak";
//var link2="http://www.signuk.com/";

theImages[0] = path + 'quantitive_easing_that_works.jpg'
//theImages[1] = path + 'signuk.jpg'

theLinks[0] = link1;
//theLinks[1] = link2;

theALT[0] = "Quantitative Easing that Works - Click here for more information"
//theALT[1] = "Visit Delcam at Sign & Digital UK  - NEC Birmingham - Delcam Stand C32"

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
//function showImage(){

//for artcam website open the link in a blank page
//if (whichImage==3 | whichImage==2){
if (whichImage==0){
	document.write('<a href=" '+ theLinks[whichImage] +' " target="_blank"><img src="'+theImages[whichImage]+'" border=0 alt="'+theALT[whichImage]+'"></a>');
}
else{

document.write('<a href=" '+ theLinks[whichImage] +' "><img src="'+theImages[whichImage]+'" border=0 alt="'+theALT[whichImage]+'"></a>');
//document.write('<img src="'+theImages[whichImage]+'">');
}
}


/*function to display the home page images at random for the PowerMILL website*/
function displayHomePgBanners_pmill(){

	<!-- 
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

var theLinks = new Array() 
var theALT = new Array() 

var path= '/images/home_imgs/';
var link1="http://www.powermill.com/general/powermill.asp";
var link2="http://www.powermill.com/RC9/";

theImages[0] = path + 'PM9_outnow.jpg'
theImages[1] = path + 'PM9_RC.jpg'

theLinks[0] = link1;
theLinks[1] = link2;

theALT[0] = "PowerMILL 9 OUT NOW - Click here for more information"
theALT[1] = "PowerMILL 9 Release Centre Now Online - click here for more details"

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
//function showImage(){

//for artcam website open the link in a blank page
//if (whichImage==3 | whichImage==2){
if (whichImage==1){
	document.write('<a href=" '+ theLinks[whichImage] +' " target="_blank"><img src="'+theImages[whichImage]+'" border=0 alt="'+theALT[whichImage]+'"></a>');
}
else{

document.write('<a href=" '+ theLinks[whichImage] +' "><img src="'+theImages[whichImage]+'" border=0 alt="'+theALT[whichImage]+'"></a>');
//document.write('<img src="'+theImages[whichImage]+'">');
}
}


/*function to display the home page images at random for the PowerSHAPE website*/
function displayHomePgBanners_pshape(){

	<!-- 
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

var theLinks = new Array() 
var theALT = new Array() 

var path= '/images/home_imgs/';
var link1="http://www.powershape.com/releasecentre";
var link2="http://www.powershape.com/releasecentre";

theImages[0] = path + 'powershape.jpg'
theImages[1] = path + 'pshape8-rc.jpg'

theLinks[0] = link1;
theLinks[1] = link2;

theALT[0] = "PowerSHAPE 8 Available Now"
theALT[1] = "PowerSHAPE 8 Release Centre Now Open - click here to enter"

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
//function showImage(){

//for artcam website open the link in a blank page
//if (whichImage==3 | whichImage==2){
if (whichImage==0 | whichImage==1){
	document.write('<a href=" '+ theLinks[whichImage] +' " target="_blank"><img src="'+theImages[whichImage]+'" border=0 alt="'+theALT[whichImage]+'"></a>');
}
else{

document.write('<a href=" '+ theLinks[whichImage] +' "><img src="'+theImages[whichImage]+'" border=0 alt="'+theALT[whichImage]+'"></a>');
//document.write('<img src="'+theImages[whichImage]+'">');
}
}

/*function to display the home page images at random for the PartMaker website*/
function displayHomePgBanners_part(){

	<!-- 
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

var theLinks = new Array() 
var theALT = new Array() 

var path= '/images/home_imgs/';
var link1="http://www.partmaker.com/news/press_article.asp?releaseId=617";
var link2="http://www.partmaker.com/demo/";

theImages[0] = path + 'partmaker9.jpg'
theImages[1] = path + 'PartMaker-banner.jpg'

theLinks[0] = link1;
theLinks[1] = link2;

theALT[0] = "PartMaker 9 Out Now"
theALT[1] = "Book your free demonstration - Click here"

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
//function showImage(){

//for artcam website open the link in a blank page
//if (whichImage==3 | whichImage==2){
if (whichImage==0 | whichImage==1){
	document.write('<a href=" '+ theLinks[whichImage] +' " target="_blank"><img src="'+theImages[whichImage]+'" border=0 alt="'+theALT[whichImage]+'"></a>');
}
else{

document.write('<a href=" '+ theLinks[whichImage] +' "><img src="'+theImages[whichImage]+'" border=0 alt="'+theALT[whichImage]+'"></a>');
//document.write('<img src="'+theImages[whichImage]+'">');
}
}

/*function to display the home page images at random for the PartMaker.com website*/
function displayHomePgBanners_partcom(){

	<!-- 
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

var theLinks = new Array() 
var theALT = new Array() 

var path= '/images/home_imgs/';
var link1="http://www.partmaker.com/news/press_article.asp?releaseId=617";
var link2="http://www.partmaker.com/demo/";

theImages[0] = path + 'partmaker9.jpg'
theImages[1] = path + 'PartMaker-banner.jpg'

theLinks[0] = link1;
theLinks[1] = link2;

theALT[0] = "PartMaker 9 Out Now"
theALT[1] = "Book your free demonstration - Click here"

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
//function showImage(){

//for artcam website open the link in a blank page
//if (whichImage==3 | whichImage==2){
if (whichImage==0 | whichImage==1){
	document.write('<a href=" '+ theLinks[whichImage] +' " target="_blank"><img src="'+theImages[whichImage]+'" border=0 alt="'+theALT[whichImage]+'"></a>');
}
else{

document.write('<a href=" '+ theLinks[whichImage] +' "><img src="'+theImages[whichImage]+'" border=0 alt="'+theALT[whichImage]+'"></a>');
//document.write('<img src="'+theImages[whichImage]+'">');
}
}

/*function to display the home page images at random for the PartMaker.com website*/
function displayHomePgBanners_featurecam(){

	<!-- 
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

var theLinks = new Array() 
var theALT = new Array() 

var path= '/images/home_imgs/';
var link1="http://www.featurecam.com/general/software/latest_version.asp";
var link2="http://releasecentre.featurecam.com/";

theImages[0] = path + 'fc2009.jpg'
theImages[1] = path + 'featurecam_releasecentre.jpg'

theLinks[0] = link1;
theLinks[1] = link2;

theALT[0] = "FeatureCAM 2009 Out Now"
theALT[1] = "FeatureCAM Release Centre - Click here"

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
//function showImage(){

//for artcam website open the link in a blank page
//if (whichImage==3 | whichImage==2){
if (whichImage==1){
	document.write('<a href=" '+ theLinks[whichImage] +' " target="_blank"><img src="'+theImages[whichImage]+'" border=0 alt="'+theALT[whichImage]+'"></a>');
}
else{

document.write('<a href=" '+ theLinks[whichImage] +' "><img src="'+theImages[whichImage]+'" border=0 alt="'+theALT[whichImage]+'"></a>');
//document.write('<img src="'+theImages[whichImage]+'">');
}
}

/*function to display the home page images at random for the Dental website*/
function displayHomePgBanners_dental(){

	<!-- 
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

var theLinks = new Array() 
var theALT = new Array() 

var path= '/images/home_imgs/';
var link1="http://www.dental-cadcam.com/";
var link2="http://www.dental-cadcam.com/demo";

theImages[0] = path + 'dental_banner.jpg'
theImages[1] = path + 'dental-demo.jpg'

theLinks[0] = link1;
theLinks[1] = link2;

theALT[0] = "The Complete Dental CADCAM Solution "
theALT[1] = "Dental Solutions - Click here to book your free demonstration"

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
//function showImage(){

//for artcam website open the link in a blank page
//if (whichImage==3 | whichImage==2){
if (whichImage==1){
	document.write('<a href=" '+ theLinks[whichImage] +' " target="_blank"><img src="'+theImages[whichImage]+'" border=0 alt="'+theALT[whichImage]+'"></a>');
}
else{

document.write('<a href=" '+ theLinks[whichImage] +' "><img src="'+theImages[whichImage]+'" border=0 alt="'+theALT[whichImage]+'"></a>');
//document.write('<img src="'+theImages[whichImage]+'">');
}
}




//used on the prod info page
function WinOpen(url, targetname, xsize, ysize)
    {
      open(url, targetname,
           "toolbar=no,directories=no,menubar=no," +
           "status=no,scrollbars=no,resizable=yes," +
           "location=0,copyhistory=0," +
			  "width=" + xsize +
           ",height=" + ysize);
    }


//used in /news/news pages
function changeYear(this_value){
	var id = this_value.options[this_value.options.selectedIndex].value;
	var currUrl = window.location.href
	splitUrl = currUrl.split("?")
		window.location.href =  splitUrl[0] + '?year=' + id;
}


//used in /news/newsletters pages to hide and show divs
function toggle(obj) {
var sibling;
if(obj.nextSibling.nodeType==3) {
    sibling=obj.nextSibling.nextSibling;
    }
else {
    sibling=obj.nextSibling;
    }
sibling.style.display=(sibling.style.display=='none')? 'block' : 'none';
}


//used in toolmaking-cadcam.com checks version of flash 
function MM_CheckFlashVersion(reqVerStr,msg){
  with(navigator){
    var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
    if (!isIE || !isWin){  
      var flashVer = -1;
      if (plugins && plugins.length > 0){
        var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
        desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
        if (desc == "") flashVer = -1;
        else{
          var descArr = desc.split(" ");
          var tempArrMajor = descArr[2].split(".");
          var verMajor = tempArrMajor[0];
          var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
          var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
          flashVer =  parseFloat(verMajor + "." + verMinor);
        }
      }
      // WebTV has Flash Player 4 or lower -- too low for video
      else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;

      var verArr = reqVerStr.split(",");
      var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
  
      if (flashVer < reqVer){
        if (confirm(msg))
          window.location = "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
      }
    }
  } 
}

/* ================================================================ 
This copyright notice must be untouched at all times.

The original version of this scriptt and the associated (x)html
is available at http://www.stunicholls.com/menu/mini-tabbed-pages.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This script and the associated (x)html may be modified in any 
way to fit your requirements.
=================================================================== */

clickMenu = function(menu) {
	var getEls = document.getElementById(menu).getElementsByTagName("LI");
	var getAgn = getEls;
	for (var i=0; i<getEls.length; i++) {
			getEls[i].onclick=function() {
				for (var x=0; x<getAgn.length; x++) {
				getAgn[x].className=getAgn[x].className.replace("click", "");
				}
				this.className+=" click";
				}
			}
		}
		
/* ================================================================ 
Hide show function
=================================================================== */
function toggle2(obj) {
var sibling;
if(obj.nextSibling.nodeType==3) {
    sibling=obj.nextSibling.nextSibling;
   }
else {
    sibling=obj.nextSibling;
    }

sibling.style.display=(sibling.style.display=='none')? 'block' : 'none';
}


<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

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_jumpMenuGo(selName,targ,restore){ //v3.0
  var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
}
//-->


/*function to display the home page images at random*/
function displayHomePgBanners2_it(){

	<!-- 
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

var theLinks = new Array() 
var theALT = new Array() 

var path= '/images/home_imgs2/it/';
var link1="http://www.delcam.com/languages/it/emo/index.asp";
var link2="http://www.delcam.com/languages/it/simac/index.asp"

theImages[0] = path + 'emo.jpg'
theImages[1] = path + 'simac.jpg'


theLinks[0] = link1;
theLinks[1] = link2;

theALT[0] = "Visita Delcam in EMO 2009 - Clicca qui per ulteriori dettagli ..."
theALT[1] = "Visita Delcam in SIMAC 2009 - Clicca qui per ulteriori dettagli ..."


// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
//function showImage(){

//for artcam website open the link in a blank page
//if (whichImage==3 | whichImage==2){
if (whichImage==3 | whichImage==4 ){
	document.write('<a href=" '+ theLinks[whichImage] +' " target="_blank"><img src="'+theImages[whichImage]+'" border=0 alt="'+theALT[whichImage]+'"></a>');
}
else{

document.write('<a href=" '+ theLinks[whichImage] +' "><img src="'+theImages[whichImage]+'" border=0 alt="'+theALT[whichImage]+'"></a>');
//document.write('<img src="'+theImages[whichImage]+'">');
}
}
//-->
/*function to display the home page images at random for the PowerMILL website*/
function displayHomePgBanners_pmill_it(){

	<!-- 
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

var theLinks = new Array() 
var theALT = new Array() 

var path= '/images/home_imgs/';
var link1="http://www.powermill.com/languages/it/general/powermill.asp";
var link2="http://www.powermill.com/RC9/";

theImages[0] = path + 'PM9_outnow.jpg'
theImages[1] = path + 'PM9_RC.jpg'

theLinks[0] = link1;
theLinks[1] = link2;

theALT[0] = "PowerMILL 9 OUT NOW - Click here for more information"
theALT[1] = "PowerMILL 9 Release Centre Now Online - click here for more details"

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
//function showImage(){

//for artcam website open the link in a blank page
//if (whichImage==3 | whichImage==2){
if (whichImage==1){
	document.write('<a href=" '+ theLinks[whichImage] +' " target="_blank"><img src="'+theImages[whichImage]+'" border=0 alt="'+theALT[whichImage]+'"></a>');
}
else{

document.write('<a href=" '+ theLinks[whichImage] +' "><img src="'+theImages[whichImage]+'" border=0 alt="'+theALT[whichImage]+'"></a>');
//document.write('<img src="'+theImages[whichImage]+'">');
}
}







