﻿		var text  = new Array ("<b>The welding measurement system</b> is to-the-point, providing what is needed and \
            expected by quality control professionals in any professional \
             welding environment. Set-up and measuring has never been so easy. \
            <br/><br/><b>The welding system</b> offers a flat glass surface onto which \
            your cut and polished samples are placed. A dedicated internal LED \
            ring light provides bright even illumination for the remote CCD \
            camera, ensuring a crisp and high contrast image for all \
            measurements. <br/><br/><b>Welding-Expert</b> also provides \
            Auto-calibration and Auto-focus zoom lens offering the operator \
            maximum flexibility in selecting a perfect field of view for all \
            measurements. <br/><br/><b>Welding-Expert</b> measurement software is \
            straight forward and intuitive. A description of each part and its \
            acceptance criteria are input into a simple form. When a part is \
            ready for welding control, it is selected from a dropdown list and \
            its parameters automatically loaded. " 
            ,
            
            "<b>Welding system technical specification</b><br/><br/>The Welding system allows \
							instant measurements of prepared samples from ¼\" to 2\" with accuracy up to 10 µm  \
							depending on the field of view. The system can be factory configured for larger  \
							samples. <br/><br/><b>Metrology System Administration</b><br/><br/>A complete description of the welding  \
							part and the weld bead acceptance criteria are registered and protected by  \
							password. All parameters are automatically loaded and processed during  \
							measurements achieved by operators. "
							,
							
					    "<b>Weld beads measurement</b><br/> \
					 	<br/>Weld beads measurement results are viewed as red or green \
						quickly indicating welds that are in or out of tolerance. During measurement, a \
						handy viewer window is available where an image of the part drawing can be \
						displayed helping to eliminate the need for external documentation. \
						Welding-Expert offers standard System Administrator access and password \
						authorization control for all users. Welding Expert allows measurement of \
						samples ranging from 50mm to 4mm, with accuracy down to 60um. Measurement \
						results can be saved into Excel spreadsheets."
						,
						"<b>Weld beads Reports</b><br/>  \
						<br>For single as well as multiple weld bead  \
						measurements a report can be created. Reports offer the option for a weld bead with  \
						the measurements to be included. Export to Excel is featured. All welding parts  \
						measurements are saved into global files for statistical purpose." 
						,
						"<b>Weld beads Statistics</b><br/><br/> \
						The welding measurement software includes an Excel macro command \
						module for the qualitative monitoring of weld beads and parts: Evolution of weld \
						bead in time, distribution, variance, standard deviation, etc. Statistical tools \
						are provided to ensure a complete tracking of the welding process." 
					 ); 
	 
		var ImOff = new Array (	 "images/welding-control-station1.jpg"
														,"images/welding-control-administrat1.jpg" 
														,"images/Weld-bead-measurment1.jpg" 
														,"images/Welding-control-reports1.jpg"
														,"images/Welding-control-statistics1.jpg"
													);
			var ImOn = new Array ( "images/welding-control-station.jpg"
														,"images/welding-control-administrat.jpg" 
														,"images/Weld-bead-measurment.jpg" 
														,"images/Welding-control-reports.jpg"
														,"images/Welding-control-statistics.jpg"
													);
	
				var snapshot = new Array ( "images/weldingbox.jpg"
														,"images/administration.jpg" 
														,"images/measurement.jpg" 
														,"images/reports.jpg"
														,"images/statistics.jpg"
													);
	
			if ( !document.getElementById && document.all)
					document.getDocumentById = function(id){
					return document.all[id] ;
				}
			var lastObj ;
			var lastIm ; 
			var lastNum  ;

			function  init() 
			{ 
			
				lastObj = document.getElementById("1");
				lastIm  = document.getElementById("Img1");
				lastNum = 0 ;
				show(1,'Img1');
			}
			function show(num, im)
			{
			
			 var obj		= document.getElementById("1");
			 var image  =  document.getElementById(im);
			 if ( obj ) 
			 {
			 
			   num -= 1 ;
			   lastIm.src=ImOff[lastNum];
			   lastIm.style.border = "none white 3px" ;
			   image.src=ImOn[num];
			   image.style.border = "solid blue 3px" ;

			   obj.innerHTML = text[num] ;
			   
			   
			   lastIm=image;
			   lastNum = num ;
			   show_illustration( num);
			 }
			}
			
			function  logos()
			{
			  var name , str_ ;
			  var nbImages = 32 ;
			  var col = 0 ;
				var obj_		= document.getElementById("logo");
				str_ = "<table class='diaporama'><tr>" ;
				for ( i = 1 ; i <= nbImages ; i ++ )
				{
				 name = "logos/im" + i + ".jpg"  
				 str_ += "<td class='logostyle' ><img width='78' src='" + name +"'/></td>" ;
				 col ++ ;
				 if ( col == 5 ) 
				 {
				  col = 0 ; 
				  str_ += "</tr>" ;
				 }
				 
				}
				if ( col > 0 ) str_ += "</tr>" ;
				 str_+= "</table>" ;
				 obj_.innerHTML = str_ ;
			}
			
			function  showdiap ( n_ )
			{
			   var obj1_		= document.getElementById("big_im");
         if ( obj1_ ) obj1_.innerHTML = "<img width='300px' src='images/im" + n_ + "_big.jpg'/>" ;
			}
			
			function  diaporama() 
			{
			  var name , str_ ;
			  var nbImages = 43 ;
			  var col = 0 ;
				var obj_		= document.getElementById("diapos");
				
				str_ = "<table class='diaporama'><tr>" ;
				//alert( str_);
				for ( i = 1 ; i <= nbImages ; i ++ )
				{
				 name = "images/im" + i + "_small.jpg"  
				 str_ += "<td><img width='78' src='" + name + "' onmouseover='showdiap(" + i + ");'/></td>" ;
				 //alert ( str_ ) ;
				 col ++ ;
				 if ( col == 6 ) 
				 {
				  col = 0 ; 
				  str_ += "</tr>" ;
				 }
				 
				}
				if ( col > 0 ) str_ += "</tr>" ;
				//alert( str_);
				 str_+= "</table>" ;
				 obj_.innerHTML = str_ ;
         var obj1_		= document.getElementById("big_im");
         if ( obj1_ ) obj1_.innerHTML = "<img width='300px' src='images/im1_big.jpg' />" ;
			}
			function show_illustration( num )
			{
				var obj		= document.getElementById("illustration");
				if ( obj )
	          obj.src=snapshot[num];
	
			}
			var bigOn = false, smallOn=false ;
			var timerID ,timerID1;
			var incr = 0, inp ;
			function playBig  ( ) 
			{  
			  if ( bigOn == true ||smallOn==true ) return ;
			  bigOn=true; 
			  inp = 150; 
			  incr = 0 ; 
			  timerID = setInterval("bigimage()", 10);
		  }
			function playSmall( ) 
			{  
				if ( bigOn == true ||smallOn==true ) return ;

			  incr = 150; 
			  timerID1 = setInterval("smallimage()", 10); 
			}
			
			function bigimage ( )
			{
			 
		 	 var objtd		= document.getElementById("ill");
			 var illtable = document.getElementById("illtable");
			 var obj_		  = document.getElementById("illustration");
			 if ( obj_ && objtd && illtable)
			 {
			   if ( obj_.width > 380 ) 
			   {
			   
			     clearInterval ( timerID );
			     bigOn = false ;
			     return ;
			   }
			   incr += 10 ;
			   w_ = 235 + incr ;
			   ratio = obj_.width / obj_.height ;
			   
			   newh = (w_ / ratio) ;
			   delath = newh - obj_.height ;
			   inp -=  delath ;
			   var str = inp + "px" ;
			   var mleft = 162 - incr;
			   
				 illtable.style.marginLeft = mleft  + "px";
		     objtd.style.height = str ;
			   obj_.style.width = w_ + "px" ;
			 }
			 
			}
			function smallimage(  )
			{
			
			var objtd		  = document.getElementById("ill");
			var illtable = document.getElementById("illtable");
			var obj_		= document.getElementById("illustration");
			 if ( obj_ && objtd && illtable)
			 {
			   if ( obj_.width < 240 ) 
			   {
			   
			     clearInterval ( timerID1 );
			     smallOn = false ;
			     return ;
			   }
			   incr -= 10 ;
			   w_ = 235 + incr ;
			   ratio = obj_.width / obj_.height ;
			   
			   newh = (w_ / ratio) ;
			   delath = obj_.height - newh  ;
			  
			  
			   inp +=  delath ;
			   var str = inp + "px" ;
			   var mleft = 162 - incr;
			   
				 illtable.style.marginLeft = mleft  + "px";
		     objtd.style.height = str ;
			   obj_.style.width = w_ + "px" ;
			 }
			}
	
	

