<!--

function getImage(image,width,height,number) {

shadowwidth=width-2
shadowheight=height-2
shadownumber=1

if (document.layers) {
	document.mainimgshadowDiv.visibility="hide";
	document.maintxtDiv.visibility="hide";
	document.moreiconDiv.visibility="hide";
	
	// writes an appropriate image
	document.mainimgDiv.document.open();
	document.mainimgDiv.document.write ("<img src='images/"+image+"' width='"+width+"' height='"+height+"' alt='"+image+"' onload='onShadow()'>");
	document.mainimgDiv.document.close();
	
	// resizes the shadow
	document.mainimgshadowDiv.clip.top=0
	document.mainimgshadowDiv.clip.right=shadowwidth;
	document.mainimgshadowDiv.clip.bottom=shadowheight;
	document.mainimgshadowDiv.clip.left=0
	
	if (width>200) {
		newheight=height-"-110"
		moreleft=width-"-140"
		//alert (width+"---"+moreleft)
		txtwidth=window.innerWidth-220;
		document.maintxtDiv.left=121;
		document.maintxtDiv.top=newheight;
		document.maintxtDiv.right=txtwidth;
		//alert(document.maintxtDiv.right)
		
		document.moreiconDiv.left=moreleft;
		document.moreiconDiv.top=82;
	
	}
	else {
		document.maintxtDiv.left=360;
		document.maintxtDiv.top=82;
		txtwidth=window.innerWidth-430;
		
		moreheight=height-"-100"
		document.moreiconDiv.left=121;
		document.moreiconDiv.top=moreheight;
	}
	
	// writes in the description
	writedesc(number,txtwidth);
	
	document.maintxtDiv.visibility="show";
	document.moreiconDiv.visibility="show";

}

else if (document.all) {
	mainimgshadowDiv.style.visibility="hidden";
	maintxtDiv.style.visibility="hidden";
	moreiconDiv.style.visibility="hidden";
	document.all.mainimgDiv.innerHTML = "<img src='images/"+image+"' width='"+width+"' height='"+height+"' alt='"+image+"' onload='onShadow()'>"
	
	mainimgshadowDiv.style.clip="rect(0px "+shadowwidth+"px "+shadowheight+"px 0px)";
	
	if (width>200) {
		newheight=height-"-110"
		moreleft=width-"-140"
		txtwidth=document.body.clientWidth-220;
			
		// ************* added document.all
		document.all.maintxtDiv.style.left=121;
		document.all.maintxtDiv.style.top=newheight;
		document.all.maintxtDiv.style.right=txtwidth;
		//alert(maintxtDiv.style.right)
		
		document.all.moreiconDiv.style.left=moreleft;
		document.all.moreiconDiv.style.top=82;		
	}
	
	else {
		txtwidth=document.body.clientWidth-430;

		document.all.maintxtDiv.style.left=360;
		document.all.maintxtDiv.style.top=82;
		
		// *********** This line is new 
		document.all.maintxtDiv.style.right=txtwidth;
			
		//alert(document.all.maintxtDiv.style.top);
		moreheight=height-"-100"
		document.all.moreiconDiv.style.left=121;
		document.all.moreiconDiv.style.top=moreheight;	
	}
	
	// writes in the description
	writedesc(number,txtwidth);
	
	maintxtDiv.style.visibility="visible";
	moreiconDiv.style.visibility="visible";
}

// Netscape 6 or other DOM compliant browsers
else {
	document.getElementById('mainimgshadowDiv').style.visibility="hidden";
	document.getElementById('maintxtDiv').style.visibility="hidden";
	document.getElementById('moreiconDiv').style.visibility="hidden";
	document.getElementById('mainimgDiv').innerHTML = "<img src='images/"+image+"' width='"+width+"' height='"+height+"' alt='"+image+"' onload='onShadow()'>"
	
	document.getElementById('mainimgshadowDiv').style.clip="rect(0px "+shadowwidth+"px "+shadowheight+"px 0px)";
	
	if (width>200) {
		newheight=height-"-110"
		moreleft=width-"-140"
		txtwidth=window.innerWidth-220;
			
		// ************* added document.all
		document.getElementById('maintxtDiv').style.left=121;
		document.getElementById('maintxtDiv').style.top=newheight;
		document.getElementById('maintxtDiv').style.right=txtwidth;
		
		document.getElementById('moreiconDiv').style.left=moreleft;
		document.getElementById('moreiconDiv').style.top=82;		
	}
	
	else {
		txtwidth=window.innerWidth-430;

		document.getElementById('maintxtDiv').style.left=360;
		document.getElementById('maintxtDiv').style.top=82;
		
		// *********** This line is new 
		document.getElementById('maintxtDiv').style.right=txtwidth;
			
		//alert(document.all.maintxtDiv.style.top);
		moreheight=height-"-100"
		document.getElementById('moreiconDiv').style.left=121;
		document.getElementById('moreiconDiv').style.top=moreheight;	
	}
	
	// writes in the description
	writedesc(number,txtwidth);
	
	document.getElementById('maintxtDiv').style.visibility="visible";
	document.getElementById('moreiconDiv').style.visibility="visible";
}


curSect=getChip("thework","section")
setChip("thework",curSect+"item",number)

//alert(getChip("thework",curSect+"item"))




}


function onShadow () {
if (document.layers) document.mainimgshadowDiv.visibility="show";
else if (document.all) mainimgshadowDiv.style.visibility="visible";
else document.getElementById('mainimgshadowDiv').style.visibility="visible";
}


//-->
