<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function blockHide() {
	MM_showHideLayers('forgingDivisionSub','','hide');
	MM_showHideLayers('forgingDivisionBack','','hide');
	MM_showHideLayers('powerPressesSub','','hide');
	MM_showHideLayers('powerPressesBack','','hide');
	MM_showHideLayers('shearingSub','','hide');
	MM_showHideLayers('shearingBack','','hide');
	MM_showHideLayers('forgingShopSub','','hide');
	MM_showHideLayers('forgingShopBack','','hide');
	MM_showHideLayers('castingSub','','hide');
	MM_showHideLayers('castingBack','','hide')
}
function aboutURL(){
	setTimeout("window.open('aboutus.php','_self')",2500)
}
function contactURL(){
	setTimeout("window.open('contactus.php','_self')",2500)
}
function careersURL(){
	setTimeout("window.open('careers.php','_self')",2500)
}
function forgingAvilBlockURL(){
	setTimeout("window.open('anvil_block.php','_self')",2500)
}
function forgingSketchURL(){
	setTimeout("window.open('technical_sketch.php','_self')",2500)
}
function forgingSlidesURL(){
	setTimeout("window.open('standards_slides.php','_self')",2500)
}
function forgingLiftingURL(){
	setTimeout("window.open('lifting_mechanism.php','_self')",2500)
}
function forgingInfraURL(){
	setTimeout("window.open('infrastructure.php','_self')",2500)
}
function forgingPartsURL(){
	setTimeout("window.open('forging_products.php','_self')",2500)
}
function forgingPWCURL(){
	setTimeout("window.open('anvil_block.php','_self')",2500)
}
function powerHURL(){
	setTimeout("window.open('press_h.php','_self')",2500)
}
function powerCURL(){
	setTimeout("window.open('press_c.php','_self')",2500)
}
function powerVFPURL(){
	setTimeout("window.open('press_vfp.php','_self')",2500)
}
function powerFSPURL(){
	setTimeout("window.open('press_fsp.php','_self')",2500)
}
function shearingBilletURL(){
	setTimeout("window.open('billet_shearing.php','_self')",2500)
}
function shearingEndURL(){
	setTimeout("window.open('end_cutting.php','_self')",2500)
}
function shearingHotURL(){
	setTimeout("window.open('hot_steel_cutting.php','_self')",2500)
}
function shearingScrapURL(){
	setTimeout("window.open('scrap_cutting.php','_self')",2500)
}

function jaiForgingIntroURL(){
	setTimeout("window.open('fs_intro.php','_self')",2500)
}
function jaiForgingPartsURL(){
	setTimeout("window.open('fs_parts.php','_self')",2500)
}
function castingProURL(){
	setTimeout("window.open('ic_process.php','_self')",2500)
}
function castingHisURL(){
	setTimeout("window.open('ic_history.php','_self')",2500)
}
function castingTolURL(){
	setTimeout("window.open('ic_tolerances.php','_self')",2500)
}


function englishURL(){
	setTimeout("window.open('en/index.php','_self')",2500)
}
function germanURL(){
	setTimeout("window.open('de/index.php','_self')",2500)
}
function frenchURL(){
	setTimeout("window.open('fr/index.php','_self')",2500)
}
function italianURL(){
	setTimeout("window.open('it/index.php','_self')",2500)
}
function spanishURL(){
	setTimeout("window.open('es/index.php','_self')",2500)
}
function russianURL(){
	setTimeout("window.open('rs/index.php','_self')",2500)
}

var fromLangURL = "";
var toLangURL = "";
function switchlang(l){
	toLangURL = l;
	var address = location.href;

	if(address.indexOf('/en/') > -1 ) fromLangURL = 'en';
	else if(address.indexOf('/de/') > -1 ) fromLangURL = 'de';
	else if(address.indexOf('/fr/') > -1 ) fromLangURL = 'fr';
	else if(address.indexOf('/it/') > -1 ) fromLangURL = 'it';
	else if(address.indexOf('/es/') > -1 ) fromLangURL = 'es';
	else if(address.indexOf('/rs/') > -1 ) fromLangURL = 'rs';
	else fromLangURL = 'en';
	
	var newURL = address.replace(fromLangURL,toLangURL);
	window.location.href=newURL
}

function chassiL1(){//v2.3
// Copyright 2005, James Carter (www.creativeinsight.co.uk)
var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4,v5,v6,v7,v8,v9,v10,v11,v12,v13,v14,v15,v16,v17,v18,v19,v20=window,v21=navigator;if (v3){v4=parseInt(v1[1]);v5=parseInt(v1[2]);v6=parseInt(v1[3]);v7=(v1.length>4)?parseInt(v1[4]):0;v8=(v1.length>5)?parseInt(v1[5]):0;v9=10;v10=document.layers?v3:v3.style;if (v3.SL1!=null){clearTimeout(v3.SL1);}v11=isNaN(parseInt(v10.left))?v3.offsetLeft:parseInt(v10.left);v12=isNaN(parseInt(v10.top))?v3.offsetTop:parseInt(v10.top);if (v8!=0){if (v8==1){v4=v11-v4;v5=v12;}else if (v8==2){v4=v11+v4;v5=v12;}else if (v8==3){v5=v12-v5;v4=v11;}else {v5=v12+v5;v4=v11;}}v13=v4;v14=v5;if ((v11!=v4)||(v12!=v5)){if (v7>0){v9=v6;v15=v7;v16=v7,v17=Math.abs(v11-v4),v18=Math.abs(v12-v5);if (v17<v18){v16=(v17!=0)?((v18/v17)*v7):v7;}else {v15=(v18!=0)?((v17/v18)*v7):v7;}if (v15>=v17){v15=Math.min(Math.ceil(v15),v7);}if (v16>=v18){v16=Math.min(Math.ceil(v16),v7);}if ((v11<v4)&&(v11+v15<v4)){v4=v11+v15;}if ((v11>v4)&&(v11-v15>v4)){v4=v11-v15;}if ((v12<v5)&&(v12+v16<v5)){v5=v12+v16;}if ((v12>v5)&&(v12-v16>v5)){v5=v12-v16;}}else {v17=((v4-v11)/v6);v18=((v5-v12)/v6);v17=(v17>0)?Math.ceil(v17):Math.floor(v17);v4=v11+v17;v18=(v18>0)?Math.ceil(v18):Math.floor(v18);v5=v12+v18;}v19=((parseInt(v21.appVersion)>4||v21.userAgent.indexOf("MSIE")>-1)&&(!v20.opera))?"px":"";if (v17!=0){v10.left=v4+v19;}if (v18!=0){v10.top=v5+v19;}var v22="chassiL1('"+v2+"',"+v13+","+v14+","+v6+","+v7+",0)";v3.SL1=setTimeout(v22,v9);}else {if (v20.onSlideEnd){onSlideEnd(v2);}}}}
//-->