
function getIMG(path, type , lang){

var src = new Array;

/*

src[0]='<a href="products.html" title="Sanyo Plasma"><img src="img_prod/index01.jpg" alt="Sanyo" border="0" width="545" height="231"></a>';
src[1]='<a href="products.html" title="Pic2"><img src="img_prod/index02.jpg" alt="Pic2" border="0" width="545" height="231"></a>';
src[2]='<a href="products.html" title="pic3"><img src="img_prod/index06.jpg" alt="Pic3" border="0" width="545" height="231"></a>';
src[3]='<a href="products.html" title="Pic4"><img src="img_prod/index04.jpg" alt="Pic4" border="0" width="545" height="231"></a>';
src[4]='<a href="products.html" title="Pic5"><img src="img_prod/index06.jpg" alt="?Pic5" border="0" width="545" height="231"></a>';
src[5]='<a href="products.html" title="Pic6"><img src="img_prod/index02.jpg" alt="Pic6" border="0" width="545" height="231"></a>';
src[6]='<a href="products.html" title="Pic7"><img src="img_prod/index06.jpg" alt="Pic7" border="0" width="545" height="231"></a>';
src[7]='<a href="products.html" title="Sanyo Projector"><img src="img_prod/index04.jpg" alt="Sanyo Projector" border="0" width="545" height="231"></a>';
src[8]='<a href="products.html" title="Pic9"><img src="img_prod/index01.jpg" alt="Pic9" border="0" width="545" height="231"></a>';
src[9]='<a href="products.html" title="Pic10"><img src="img_prod/index04.jpg" alt="Pic10" border="0" width="545" height="231"></a>';

var ran = Math.floor(Math.random()*src.length);
document.write(src[ran]);
*/
var strPicturePath = '';



		switch(type)
		{
		case '':	
			if (lang == 'english'){
				strPicturePath = 'main_eng.gif';
			}
			else if( lang == 'simplified_chinese'){
				strPicturePath = 'main_sc.gif';
			}
			else if( lang == 'traditional_chinese'){
				strPicturePath = 'main_tc.gif';
			}		
			break;
		case '29':
		case '30':		
		case '31':		
		case '32':				
		case '33':						
		case '34':								
		case '35':										
		case '39':
		case '45':		
			if (lang == 'english'){
				strPicturePath = 'corporateprofile_eng.gif';
			}
			else if( lang == 'simplified_chinese'){
				strPicturePath = 'corporateprofile_sc.gif';
			}
			else if( lang == 'traditional_chinese'){
				strPicturePath = 'corporateprofile_tc.gif';
			}
			
		  	break   
		case '37':		
			if (lang == 'english'){
				strPicturePath = 'contactus_eng.gif';
			}
			else if( lang == 'simplified_chinese'){
				strPicturePath = 'contactus_sc.gif';
			}
			else if( lang == 'traditional_chinese'){
				strPicturePath = 'contactus_tc.gif';
			}
			
		  	break 			
		case '41':
		case '42':
		case '43':		
		case '44':				
		case '46':				
			if (lang == 'english'){
				strPicturePath = 'inventorrelation_eng.gif';
			}
			else if( lang == 'simplified_chinese'){
				strPicturePath = 'inventorrelation_sc.gif';
			}
			else if( lang == 'traditional_chinese'){
				strPicturePath = 'inventorrelation_tc.gif';
			}
			break	
		case '36':
			if (lang == 'english'){
				strPicturePath = 'ourbusiness_eng.gif';
			}
			else if( lang == 'simplified_chinese'){
				strPicturePath = 'ourbusiness_sc.gif';
			}
			else if( lang == 'traditional_chinese'){
				strPicturePath = 'ourbusiness_tc.gif';
			}
			break				
		}
		
		if ( type != ''){
			document.write('<img border="0" src="templates/joe_testing/images/' + strPicturePath + '"></img />');
		}
		else{
			document.write('<img border="0" src="templates/joe_testing/images/' + strPicturePath + '"></img />');			
			}
		

}


