/* 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="../download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0/#version=7,0,19,0/.class" width="' + width + '" height="' + height + '">\n');
    document.write('<param name="wmode" value="transparent">\n');
   document.write('<param name="movie" value="' + bannerPath + '"' + 'default.htm>\n');
   document.write('<param name="quality" value="high" />\n');
   document.write('<embed src="' + bannerPath + '"' +'quality="high" pluginspage="../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="../www.powershape.com/general/ps_download.asp";
var link2="general/software/exchange/whats_new.asp"
var link3="../www.powermill.com/general/powermill.asp";
//var link3="../www.powermill.com_3A17382/general/PM-RC/index.html";
var link4="../www.artcamexpress.com/default.htm";
var link5="../www.featurecam.com/default.htm";
var link6="../www.powermill.com/releasecentre/index.html";
var link7="../www.delcam.co.uk/rules/mach.pdf";
var link8="news/press_article.asp@releaseId=483";

theImages[0] = path + '../download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0/1.jpg'
theImages[1] = path + '2.jpg'
theImages[2] = path + '3.jpg'
theImages[3] = path + '4.jpg'
theImages[4] = path + '5.jpg'
theImages[5] = path + '6.jpg'
theImages[6] = path + '7.jpg'
theImages[7] = path + '8.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;


theALT[0] = "PowerSHAPE"
theALT[1] = "Delcam Exchange"
theALT[2] = "PowerMILL"
theALT[3] = "ArtCAM Express"
theALT[4] = "FeatureCAM"
theALT[5] = "PowerMILL8 Release Centre"
theALT[6] = "Be a Winner at MACH Competition"
theALT[7] = "WESTEC"

// 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 ){
	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]+'">');
}
}
//-->
//}



