/*
ss_Utiity.js 
consist of collection of functions to support client side scripting changes to page elements css properties  
*/


//get URL and make available for functions to determine site and directory location
 var sFilePath = window.location.pathname;		  
 var sDirectoryPath = sFilePath.split("/");	
 //
 
 
 
 //called from all pages

 if(document.getElementById) 
    {
	window.onLoad =  colSizer();
	}
	
 //set page columns to equal height ------------------------	
function colSizer() 
{ 
     
   if(document.getElementById("pageContent"))
      {		
	    
	  var lcHeight = document.getElementById("leftNav").offsetHeight;
	  var pcHeight =  document.getElementById("pageContent").offsetHeight;   
	  	  
	 
	  if(lcHeight < pcHeight )
	      {	     
            document.getElementById("leftNav").style.height = (document.getElementById("pageContent").offsetHeight ) +"px";
            }
	   
	    if(lcHeight > pcHeight )
		     {	      
              document.getElementById("pageContent").style.height = lcHeight + "px";
             }	   
			 
	   }		   
		   
		   
		   
	    if(document.getElementById("productContent"))
              {		  
	                var lcHeight = document.getElementById("leftNav").offsetHeight;
	                 var pcHeight =  document.getElementById("productContent").offsetHeight;
	 
	           if(lcHeight < pcHeight )
	                 {	    
                        document.getElementById("leftNav").style.height = (document.getElementById("productContent").offsetHeight ) +"px";
                       }
	   
			    if(lcHeight > pcHeight )
				    {	      
		              document.getElementById("productContent").style.height = lcHeight + "px";
		             }	   
	 	       }
	   
   
   if(document.getElementById("pageContentBlueBackground"))
       {   
	   
         var lcHeight = document.getElementById("leftNav").offsetHeight;
	     var pcHeight =  document.getElementById("pageContentBlueBackground").offsetHeight;
   
		    if(lcHeight < pcHeight )
			      {	    
		             document.getElementById("leftNav").style.height = (document.getElementById("pageContentBlueBackground").offsetHeight ) +"px";
		           }
		    
			   if(lcHeight > pcHeight )
				    {	      
		              document.getElementById("pageContentBlueBackground").style.height = lcHeight + "px";
		             }
	             }
             }             

   
    // Header events - add onmouseover - onmouseout - click events to logo 
	 if(document.getElementById("logo"))
	   {
	      document.getElementById("logo").onmouseover = function() {logo();};		   
	      document.getElementById("logo").onclick = function() {window.location.href ="/uk/default.aspx";};	   
	   }		
   
   
   function logo()
    {
	 
	document.getElementById("logo").style.cursor ="pointer";
	document.getElementById("logo").title =" Satori Software ";
	}
	
	
	//left nav arrow swappers 
		
    if(document.getElementById)    {
		 
		 	
		if(document.getElementById("MailRoom ToolKit Family")) 
		    {   
			 document.getElementById("MailRoom ToolKit Family").onmouseover = function() {document.getElementById("arrowMailRoom ToolKit Family").src ="/uk/images/arrow_10_orange.gif";};
             document.getElementById("MailRoom ToolKit Family").onmouseout= function() {document.getElementById("arrowMailRoom ToolKit Family").src ="/uk/images/arrow_10_blue.gif";};		
			}
			
		 if(document.getElementById("Bulk Mailer Family")) 
		    { 
			  document.getElementById("Bulk Mailer Family").onmouseover = function() {document.getElementById("arrowBulk Mailer Family").src ="/uk/images/arrow_10_orange.gif";};
             document.getElementById("Bulk Mailer Family").onmouseout= function() {document.getElementById("arrowBulk Mailer Family").src ="/uk/images/arrow_10_blue.gif";};				
			}
			
			 if(document.getElementById("arrowbm5Item")) 
		    { 
			 document.getElementById("arrowbm5Item").onmouseover = function() {document.getElementById("arrowbm5Item").src ="/uk/images/arrow_10_orange_14x16.gif";};
             document.getElementById("arrowbm5Item").onmouseout= function() {document.getElementById("arrowbm5Item").src ="/uk/images/arrow_10_blue_14x16.gif";};				
			}
			
		
			
		 	      
		}
   
   
   	function arrowSwapper(x) 
			  { 			
			
			  var srcBlueArrow;
				var srcOrangeArrow;
				
			   if(document.all)
			   {
			      srcBlueArrow  = window.location.protocol+"//"+window.location.host +"/uk/images/common/leftNav_Arrow.gif";
			     srcOrangeArrow =  window.location.protocol+"//"+window.location.host +"/uk/images/common/leftNav_Arrow_Hover.gif";
				 
			   } else {
			   
			    srcBlueArrow  = window.location.protocol+"//"+window.location.host +"/uk/images/common/leftNav_Arrow_FF.gif";
			    srcOrangeArrow =  window.location.protocol+"//"+window.location.host +"/uk/images/common/leftNav_Arrow_Hover_FF.gif";
			   }
			  			  
			  
			  
			 if(document.getElementById("arrow_" + x ))
			     {
			  
			  	  if(document.getElementById("arrow_" + x).src ==  srcBlueArrow)
				    { 		
				     			        
				       document.getElementById("arrow_" + x ).src = srcOrangeArrow;		
					     
				     } else {		
					 	   
				     document.getElementById("arrow_" + x).src = srcBlueArrow; 					 		    
				     } 			 	  
				  }
			    
			}  
			
			
			//style changes  for Bulk Mailer Level 3 links and arrows
			
		var strPathName = window.location.pathname;		
		strPathName = strPathName.toLowerCase();		    	 
		 
		 //product selector changes /products/default.aspx

	if(document.getElementById("btnProductSelector")) 
	     {
	      document.getElementById("btnProductSelector").onmouseover = function() {changeProductSelector("on");};
	      document.getElementById("btnProductSelector").onmouseout = function() {changeProductSelector("off");};
		  document.getElementById("btnProductSelector").onclick = function() {window.location.href="/UK/Products/ComparisionChecklist/Default.aspx";};
	     }
		 
	/* change the images for products learn more */	 
	if(document.getElementById("mrtk_learnMore")) 
	   {  
	       document.getElementById("mrtk_learnMore").onmouseover = function() {changeLearnMore("mrtk_learnMore");};	 
		   document.getElementById("mrtk_learnMore").onmouseout = function() {changeLearnMore("mrtk_learnMore");};
		   document.getElementById("mrtk_learnMore").onclick = function() {window.location.href="/uk/Products/MailRoomToolKit/default.aspx";};
		 }	 
		 
		 if(document.getElementById("bm5_learnMore")) 
	   {  
	       document.getElementById("bm5_learnMore").onmouseover = function() {changeLearnMore("bm5_learnMore");};	 
		   document.getElementById("bm5_learnMore").onmouseout = function() {changeLearnMore("bm5_learnMore");};
		    document.getElementById("bm5_learnMore").onclick = function() {window.location.href="/uk/Products/BulkMailer/default.aspx";};
		 }	
		 
		 if(document.getElementById("ncoa_learnMore")) 
	   {  
	       document.getElementById("ncoa_learnMore").onmouseover = function() {changeLearnMore("ncoa_learnMore");};	 
		   document.getElementById("ncoa_learnMore").onmouseout = function() {changeLearnMore("ncoa_learnMore");};
		   document.getElementById("ncoa_learnMore").onclick = function() {window.location.href="/uk/Products/ncoa/Default.aspx";};
		 }	    
		 
		  if(document.getElementById("products_ncoa")) 
	   { 	      
		   document.getElementById("products_ncoa").onmouseover = function() {this.style.cursor="pointer";};
		   document.getElementById("products_ncoa").onclick = function() {window.location.href="/uk/products/data-enhancement/default.aspx";};
		 }	      
		 
		   if(document.getElementById("products_bm5")) 
	   { 	      
		   document.getElementById("products_bm5").onmouseover = function() {this.style.cursor="pointer";};
		   document.getElementById("products_bm5").onclick = function() {window.location.href="/uk/Products/BulkMailer5/default.aspx";};
		 }	      
		 
		  
		   if(document.getElementById("products_mrkt")) 
	   { 	      
		   document.getElementById("products_mrkt").onmouseover = function() {this.style.cursor="pointer";};
		   document.getElementById("products_mrkt").onclick = function() {window.location.href="/uk/Products/MailRoomToolKit/default.aspx";};
		 }	   
		 
		 
		      
		
	function changeProductSelector(x) 
	{ 
		if(x == "on")
		   {		  
			   document.getElementById("btnProductSelector").src = "/uk/images/common/products/View_Checklist_hover.gif" 
			   document.getElementById("btnProductSelector").style.cursor ="pointer"
		    } else {
				document.getElementById("btnProductSelector").src = "/uk/images/common/products/View_Checklist.gif" 
		 }	
	}
	
	//display product link descriptions  - /products/default.aspx - bottom of page 
	
	function displayProductDescription(id) 
	  {	  
	     document.getElementById(id).style.display = "inline";   
		  colSizer() ;
	  }
	  
	  function hideProductDescription(id) 
	  {	
	     document.getElementById(id).style.display = "none"; 
		  colSizer() ;	  
	  }
	  
	  /*------------------------------------*/
	  
	  /* display learn more graphics - products/default.aspx */
	  function changeLearnMore(id)  
	     {		  
		    document.getElementById(id).style.cursor ="pointer";
			
			if(document.getElementById(id).src != window.location.protocol+"//"+window.location.host +   "/uk/images/common/products/LearnMore_hover.gif")
			    { 
		          document.getElementById(id).src = window.location.protocol+"//"+window.location.host +  "/uk/images/common/products/LearnMore_hover.gif" 
		     	} else {
			        document.getElementById(id).src = window.location.protocol+"//"+window.location.host +  "/uk/images/common/products/LearnMore.gif" 		
			    }
		 }
		 
		
		 
		 
		 /* Support/technical-support-packages.aspx &&  support/system-requirements.aspx ---------------------   */
		 	 
		 		 
		 function displayPackages(pid) 
		   {
		       var  p_Check = pid;
		   
			     a_Packages = new Array();
				 
			    a_Packages[0] = document.getElementById("mrkt_Capture");
	            a_Packages[1] = document.getElementById("mrkt_Office");
	            a_Packages[2] = document.getElementById("mrkt_architect");
	            a_Packages[3] = document.getElementById("bm5");
	           
            
			   
			for(i=0; i<a_Packages.length; i++) 
			     { 
                     if(p_Check == a_Packages[i].id && a_Packages[i].style.display !="inline")
			           {  				  
                           a_Packages[i].style.display="inline"; 
						   		                        
			             }  else  { 
					         a_Packages[i].style.display="none";			 
			              }
	                    }  	
					if(strPathName == "/uk/support/system-requirements.aspx")
		                {		
			                document.getElementById("pageContent").style.height =  520 + "px";		
		                  } 	 
						  else
						   { 	
					         document.getElementById("pageContent").style.height =  700 + "px";
					       }
					  colSizer();  
		         } 
				 
				   	
		/* -------------------   /uk/support/downloads.aspx  -------------    */		 
				 
	  function displayDownload(pid) 
		   { 
		  
		       var  d_Check = pid;
		   
			     a_Download= new Array();				 
			    a_Download[0] = document.getElementById("mrtk");	            
	            a_Download[1] = document.getElementById("bm5");
	            
            			   
			for(i=0; i<a_Download.length; i++) 
			     { 
                     if(d_Check == a_Download[i].id && a_Download[i].style.display !="inline")
			           {  				  
                           a_Download[i].style.display="inline"; 
						   		                        
			             }  else  { 
						 
					         a_Download[i].style.display="none";	
							 		 
			              }
	                    }  	
					if(strPathName == "/uk/support/downloads.aspx")
		                {		
			                document.getElementById("pageContent").style.height =  520 + "px";		
		                  } 	 
						  else
						   { 	
					         document.getElementById("pageContent").style.height =  700 + "px";
					       }
					  colSizer();  
		         } 
				 			 
				/* -------------------------------------------------------------------- */ 
				 			 
				/* -------------------------------------------------------------------- */ 
 
      		
				function reSizeCol() 
				   {	
				   		  
				     var lcHeight = document.getElementById("leftNav").offsetHeight;
	                 var pcHeight =  document.getElementById("pageContent").offsetHeight;				 
					 
	 
	              if(lcHeight == pcHeight )
	                  {	   
                        document.getElementById("leftNav").style.height = (document.getElementById("pageContent").offsetHeight  + 310 +"px") ;
						 document.getElementById("pageContent").style.height = lcHeight + 310 + "px";
                       }
	   
	                }
			  
					
					/* right col image swappers */
					if(document.getElementById("btnReseller")) 
					{ 
										 
					document.getElementById("btnReseller").onmouseover = function() {document.getElementById("btnReseller").src  ="/uk/images/common/login_button_hover.gif";};
					document.getElementById("btnReseller").onmouseout= function() {document.getElementById("btnReseller").src ="/uk/images/common/login_button.gif";};				
					}
					
					
					if(document.getElementById("resellerOne")) 
					{ 
					document.getElementById("resellerOne").onmouseover = function() {this.className="rightColActive";}; 
					document.getElementById("resellerOne").onmouseout = function() {this.className="rightCol";};
					}
					
				if(document.getElementById("resellerTwo")) 
					{ 
					document.getElementById("resellerTwo").onmouseover = function() {this.className="rightColActive";}; 
					document.getElementById("resellerTwo").onmouseout = function() {this.className="rightCol";};
					}
					
					
					if(document.getElementById("contactOne")) 
					{ 
					document.getElementById("contactOne").onmouseover = function() {this.className="rightColActive";}; 
					document.getElementById("contactOne").onmouseout = function() {this.className="rightCol";};
					}
					
					if(document.getElementById("contactTwo")) 
					{ 
					document.getElementById("contactTwo").onmouseover = function() {this.className="rightColActive";}; 
					document.getElementById("contactTwo").onmouseout = function() {this.className="rightCol";};
					}
					
					if(document.getElementById("contactThree")) 
					{ 
					document.getElementById("contactThree").onmouseover = function() {this.className="rightColActive";}; 
					document.getElementById("contactThree").onmouseout = function() {this.className="rightCol";};
					}
					
					if(document.getElementById("ncoa_One")) 
					{ 
					document.getElementById("ncoa_One").onmouseover = function() {this.className="rightColActive";}; 
					document.getElementById("ncoa_One").onmouseout = function() {this.className="rightCol";};
					}
					
					if(document.getElementById("ncoa_Two")) 
					{ 
					document.getElementById("ncoa_Two").onmouseover = function() {this.className="rightColActive";}; 
					document.getElementById("ncoa_Two").onmouseout = function() {this.className="rightCol";};
					}
					
					if(document.getElementById("rc_One")) 
					{ 
					document.getElementById("rc_One").onmouseover = function() {this.className="rightColActive";}; 
					document.getElementById("rc_One").onmouseout = function() {this.className="rightCol";};
					}
					
					if(document.getElementById("rc_Two")) 
					{ 
					document.getElementById("rc_Two").onmouseover = function() {this.className="rightColActive";}; 
					document.getElementById("rc_Two").onmouseout = function() {this.className="rightCol";};
					}
					
					if(document.getElementById("rc_Three")) 
					{ 
					document.getElementById("rc_Three").onmouseover = function() {this.className="rightColActive";}; 
					document.getElementById("rc_Three").onmouseout = function() {this.className="rightCol";};
					}
					if(document.getElementById("rc_Four")) 
					{ 
					document.getElementById("rc_Four").onmouseover = function() {this.className="rightColActive";}; 
					document.getElementById("rc_Four").onmouseout = function() {this.className="rightCol";};
					}
					
					if(document.getElementById("rc_Five")) 
					{ 
					document.getElementById("rc_Five").onmouseover = function() {this.className="rightColActive";}; 
					document.getElementById("rc_Five").onmouseout = function() {this.className="rightCol";};
					}
					 
										
				
				 
				 	
		
				
				
				
										
					
					/* --------------------- /uk/product/mailroomtoolkit/default.aspx -------------------------*/
					
			  if(strPathName == "/uk/products/mailroomtoolkit/default.aspx" ) 
			 {		     
		              /* hide pageContent default background */
		             if(document.getElementById("pageContent"))	   {	           
	                   document.getElementById("pageContent").style.backgroundImage = 'url(/images/common/products/MRTK_Family.f)';
	                   }   
						
						   
			   	if(document.getElementById("mrkt_capture")) 
				     { 				
					document.getElementById("mrkt_capture").onmouseover = function() {this.style.cursor= "pointer",document.getElementById("mrkt_capture").src ="/images/common/products/Fam_LearnMore_hover.gif";};					 
					document.getElementById("mrkt_capture").onmouseout= function() {document.getElementById("mrkt_capture").src ="/uk/images/common/products/Fam_LearnMore.gif";};			
                    document.getElementById("mrkt_capture").onclick = function() {window.location.href="/uk/Products/MailRoomToolKit/capture.aspx";};		 
					}		
			   
			   if(document.getElementById("mrkt_office")) 
				 { 				
					document.getElementById("mrkt_office").onmouseover = function() {this.style.cursor= "pointer",document.getElementById("mrkt_office").src ="/images/common/products/Fam_LearnMore_hover.gif";};					 
					document.getElementById("mrkt_office").onmouseout= function() {document.getElementById("mrkt_office").src ="/uk/images/common/products/Fam_LearnMore.gif";};			
                    document.getElementById("mrkt_office").onclick = function() {window.location.href="/uk/Products/MailRoomToolKit/office.aspx";};		 
				  }		
					
			  if(document.getElementById("mrkt_architect")) 
					{ 				
					  document.getElementById("mrkt_architect").onmouseover = function() {this.style.cursor= "pointer",document.getElementById("mrkt_architect").src ="/images/common/products/Fam_LearnMore_hover.gif";};					 
					  document.getElementById("mrkt_architect").onmouseout= function() {document.getElementById("mrkt_architect").src ="/uk/images/common/products/Fam_LearnMore.gif";};			
                      document.getElementById("mrkt_architect").onclick = function() {window.location.href="/uk/Products/MailRoomToolKit/architect.aspx";};		 
					}		
			   
			   if(document.getElementById("familyPageBackground"))
				   {
				    document.getElementById("familyPageBackground").style.backgroundImage = 'url(/uk/images/common/products/MRTK_Family.gif)';
				    document.getElementById("familyPageBackground").style.height ="625px";
					colSizer();				  
				    }	  
			   			   
	       	}							
							
				
			   
			   
	 /* ------------- /uk/solutions/case-studies/bulkmailer-story.aspx ------------------------------------------- */
	 
	    if(strPathName == "/uk/solutions/case-studies/bulkmailer_story.aspx")
		
		 {
		       if(document.getElementById("arrow_BulkMailer5"))
			    {
			      document.getElementById("arrow_BulkMailer5").style.display = "none";
			      }
				  
				   if(document.getElementById("arrow_MailroomToolKit"))
			       {
			      document.getElementById("arrow_MailroomToolKit").style.display = "none";
			        }
					
					  if(document.getElementById("arrow_NCOALinkServices"))
			          {
			           document.getElementById("arrow_NCOALinkServices").style.display = "none";
			            }				 
				  
		  }		
		  
		  
		  /*  / Store/default.aspx */
		 
		   if(strPathName == "/uk/store/default.aspx")		  
		     {  
		 
		 if(document.getElementById("mrtkOffice"))
		      {
		   document.getElementById("mrtkOffice").onmouseover= function() {document.getElementById("mrtkOffice").src ="/uk/store/images/little_go_orange.gif";};		
           document.getElementById("mrtkOffice").onmouseout= function() {document.getElementById("mrtkOffice").src ="/uk/store/images/little_go_grey.gif";};		
		       }
		   		 
		   if(document.getElementById("bm_pro"))
		      {
		   document.getElementById("bm_pro").onmouseover= function() {document.getElementById("bm_pro").src ="/uk/store/images/little_go_orange.gif";};		
           document.getElementById("bm_pro").onmouseout= function() {document.getElementById("bm_pro").src ="/uk/store/images/little_go_grey.gif";};		
		       }
			   
			   
	     if(document.getElementById("bm_standard"))
		      {
		   document.getElementById("bm_standard").onmouseover= function() {document.getElementById("bm_standard").src ="/uk/store/images/little_go_orange.gif";};		
           document.getElementById("bm_standard").onmouseout= function() {document.getElementById("bm_standard").src ="/uk/store/images/little_go_grey.gif";};		
		       }
			   
			    
		 if(document.getElementById("lnk_MrktOffice"))
		      {
		   document.getElementById("lnk_MrktOffice").onmouseover= function() {document.getElementById("mrtkOffice").src ="/uk/store/images/little_go_orange.gif";};		
           document.getElementById("lnk_MrktOffice").onmouseout= function() {document.getElementById("mrtkOffice").src ="/uk/store/images/little_go_grey.gif";};		
		       }
			   
			   	    
		 if(document.getElementById("lnk_bm_standard"))
		      {
		   document.getElementById("lnk_bm_standard").onmouseover= function() {document.getElementById("bm_standard").src ="/uk/store/images/little_go_orange.gif";};		
           document.getElementById("lnk_bm_standard").onmouseout= function() {document.getElementById("bm_standard").src ="/uk/store/images/little_go_grey.gif";};		
		       }
			   
			    if(document.getElementById("lnk_bm_pro"))
		      {
		   document.getElementById("lnk_bm_pro").onmouseover= function() {document.getElementById("bm_pro").src ="/uk/store/images/little_go_orange.gif";};		
           document.getElementById("lnk_bm_pro").onmouseout= function() {document.getElementById("bm_pro").src ="/uk/store/images/little_go_grey.gif";};		
		       }
		   
		}
		
		
		if(strPathName == "/uk/store/mailroom_toolkit_order_form.aspx")		  
		     {  
						
			    if(document.getElementById("pageContentBlueBackground"))
				{
				    document.getElementById("pageContentBlueBackground").style.backgroundImage = 'url(/uk/store/images/MRTK_logo_header.gif)';				
				}				
			 }
			 
			 
			 if(strPathName == "/uk/store/bulkmailer.aspx")		  
		     {  
						
			    if(document.getElementById("pageContentBlueBackground"))
				{
				    document.getElementById("pageContentBlueBackground").style.backgroundImage = 'url(/uk/store/images/BM5_logo_header.gif)';				
				}				
			 }
		  function callColSizer() 
				   {	
				   		 	  
				     var lcHeight = document.getElementById("leftNav").offsetHeight;
	                 var pcHeight =  document.getElementById("pageContentBlueBackground").offsetHeight;				 
					 
	 
	              if(lcHeight == pcHeight )
	                  {	   
                        document.getElementById("leftNav").style.height = (document.getElementById("pageContentBlueBackground").offsetHeight  + 310 +"px") ;
						 document.getElementById("pageContentBlueBackground").style.height = lcHeight + 310 + "px";
                       }
	   
	                }		
		  
		 /* homepage ---- /uk/default.aspx  behaviors ----------------------------------- */		 
		  
		
		 if(strPathName == "/uk/" || strPathName == "/uk/default.aspx")
		     {
			   		
					
				//lright column button behavior		   
			     if(document.getElementById("satori_freeDisc"))
				     { 
					 document.getElementById("satori_freeDisc").onmouseover = function() {this.style.cursor= "pointer",document.getElementById("satori_freeDiscLink").style.color="#DF6020" ;};	
                  document.getElementById("satori_freeDisc").onmouseout = function() {document.getElementById("satori_freeDiscLink").style.color="#666666" ;};	 
                    document.getElementById("satori_freeDisc").onclick = function() {window.location.href="/uk/Products/request-trial.aspx";};				        
				      }
			   
			    if(document.getElementById("satori_checkAddress"))
				     {
						document.getElementById("satori_checkAddress").onmouseover = function() {this.style.cursor=  "pointer",document.getElementById("satori_CheckAddressLink").style.color="#DF6020" ;};
						document.getElementById("satori_checkAddress").onmouseout = function() {document.getElementById("satori_CheckAddressLink").style.color="#666666" ;}; document.getElementById("satori_checkAddress").onclick = function() {window.location.href="/uk/Products/AddressCheck/Default.aspx";};	
						}
			   
			if(document.getElementById("GraphExpo"))
				     {
			         document.getElementById("GraphExpo").onmouseover = function() {this.style.cursor=  "pointer";};
					  document.getElementById("GraphExpo").onclick = function() {window.location.href="/ukCompany/events.aspx";};	
				      }
					  
				if(document.getElementById("satori_viewChecklist"))
				     {
			           document.getElementById("satori_viewChecklist").onmouseover= function() {this.style.cursor="pointer", document.getElementById("satori_viewChecklist").src ="/uk/images/common/view_checklist_over.gif";};		
           	          document.getElementById("satori_viewChecklist").onmouseout= function() {document.getElementById("satori_viewChecklist").src ="/uk/images/common/view_checklist_static.gif";};	
					  document.getElementById("satori_viewChecklist").onclick = function() {window.location.href="/UK/Products/ComparisionChecklist/Default.aspx";};	
				      }	  			  
					  
					  
						  
				if(document.getElementById("img_mrtkCapture"))
				     {
			           document.getElementById("img_mrtkCapture").onmouseover= function() {this.style.cursor="pointer", document.getElementById("img_mrtkCapture").src ="/uk/images/common/little_go_orange.gif";};	
document.getElementById("img_mrtkCapture").onmouseout= function() {this.style.cursor="pointer", document.getElementById("img_mrtkCapture").src ="/uk/images/common/little_go_grey.gif";};		  
					  }
					  
					  if(document.getElementById("img_mrtkOffice"))
				     {
			           document.getElementById("img_mrtkOffice").onmouseover= function() {this.style.cursor="pointer", document.getElementById("img_mrtkOffice").src ="/uk/images/common/little_go_orange.gif";};	
document.getElementById("img_mrtkOffice").onmouseout= function() {this.style.cursor="pointer", document.getElementById("img_mrtkOffice").src ="/uk/images/common/little_go_grey.gif";};		  
					  }
					  
					    if(document.getElementById("img_mrtkArchitect"))
				     {
			           document.getElementById("img_mrtkArchitect").onmouseover= function() {this.style.cursor="pointer", document.getElementById("img_mrtkArchitect").src ="/uk/images/common/little_go_orange.gif";};	
document.getElementById("img_mrtkArchitect").onmouseout= function() {this.style.cursor="pointer", document.getElementById("img_mrtkArchitect").src ="/uk/images/common/little_go_grey.gif";};		  
					  }
					  
					      if(document.getElementById("lnk_mrtkArchitect"))
				     {
			           document.getElementById("lnk_mrtkArchitect").onmouseover= function() { document.getElementById("img_mrtkArchitect").src ="/uk/images/common/little_go_orange.gif";};	
document.getElementById("lnk_mrtkArchitect").onmouseout= function() { document.getElementById("img_mrtkArchitect").src ="/uk/images/common/little_go_grey.gif";};		  
					  }
					  
					  if(document.getElementById("lnk_mrtkOffice"))
				     {
			           document.getElementById("lnk_mrtkOffice").onmouseover= function() { document.getElementById("img_mrtkOffice").src ="/uk/images/common/little_go_orange.gif";};	
document.getElementById("lnk_mrtkOffice").onmouseout= function() { document.getElementById("img_mrtkOffice").src ="/uk/images/common/little_go_grey.gif";};		  
					  }   
					  
					  		  
				if(document.getElementById("lnk_mrtkCapture"))
				     {
			           document.getElementById("lnk_mrtkCapture").onmouseover= function() { document.getElementById("img_mrtkCapture").src ="/uk/images/common/little_go_orange.gif";};	
document.getElementById("lnk_mrtkCapture").onmouseout= function() { document.getElementById("img_mrtkCapture").src ="/uk/images/common/little_go_grey.gif";};		  
					  }
					  
							  

				if(document.getElementById("img_bm5"))
				     { 
			           document.getElementById("img_bm5").onmouseover= function() { document.getElementById("img_bm5").src ="/uk/images/common/little_go_orange.gif";};	
document.getElementById("img_bm5").onmouseout= function() { document.getElementById("img_bm5").src ="/uk/images/common/little_go_grey.gif";};		  
					  }  
					  
					  	if(document.getElementById("lnk_bm5"))
				     {
			           document.getElementById("lnk_bm5").onmouseover= function() { document.getElementById("img_bm5").src ="/uk/images/common/little_go_orange.gif";};	
document.getElementById("lnk_bm5").onmouseout= function() { document.getElementById("img_bm5").src ="/uk/images/common/little_go_grey.gif";};		  
					  }  
					  
					  if(document.getElementById("img_bmbs"))
				     {
			           document.getElementById("img_bmbs").onmouseover= function() { document.getElementById("img_bmbs").src ="/uk/images/common/little_go_orange.gif";};	
document.getElementById("img_bmbs").onmouseout= function() { document.getElementById("img_bmbs").src ="/uk/images/common/little_go_grey.gif";};		  
					  }  
					  
					  	if(document.getElementById("lnk_bmbs"))
				     {
			           document.getElementById("lnk_bmbs").onmouseover= function() { document.getElementById("img_bmbs").src ="/uk/images/common/little_go_orange.gif";};	
document.getElementById("lnk_bmbs").onmouseout= function() { document.getElementById("img_bmbs").src ="/uk/images/common/little_go_grey.gif";};		  
					  }  
					  
					  
					    if(document.getElementById("img_update"))
				     {
			           document.getElementById("img_update").onmouseover= function() { document.getElementById("img_update").src ="/uk/images/common/little_go_orange.gif";};	
document.getElementById("img_update").onmouseout= function() { document.getElementById("img_update").src ="/uk/images/common/little_go_grey.gif";};		  
					  }  
					  
					   	if(document.getElementById("lnk_update"))
				     {
			           document.getElementById("lnk_update").onmouseover= function() { document.getElementById("img_update").src ="/uk/images/common/little_go_orange.gif";};	
document.getElementById("lnk_update").onmouseout= function() { document.getElementById("img_update").src ="/uk/images/common/little_go_grey.gif";};		  
					  }  
					  
					     if(document.getElementById("img_updateCredits"))
				     {
			           document.getElementById("img_updateCredits").onmouseover= function() { document.getElementById("img_updateCredits").src ="/uk/images/common/little_go_orange.gif";};	
document.getElementById("img_updateCredits").onmouseout= function() { document.getElementById("img_updateCredits").src ="/uk/images/common/little_go_grey.gif";};		

  	if(document.getElementById("lnk_updateCredits"))
				     {
			           document.getElementById("lnk_updateCredits").onmouseover= function() { document.getElementById("img_updateCredits").src ="/uk/images/common/little_go_orange.gif";};	
document.getElementById("lnk_updateCredits").onmouseout= function() { document.getElementById("img_updateCredits").src ="/uk/images/common/little_go_grey.gif";};		  
					  }  
					  
					  
					   
					    if(document.getElementById("img_DSup"))
				     {
			           document.getElementById("img_DSup").onmouseover= function() { document.getElementById("img_DSup").src ="/uk/images/common/little_go_orange.gif";};	
document.getElementById("img_DSup").onmouseout= function() { document.getElementById("img_DSup").src ="/uk/images/common/little_go_grey.gif";};		  
					  }  
					  
					   	if(document.getElementById("lnk_DSup"))
				     {
			           document.getElementById("lnk_DSup").onmouseover= function() { document.getElementById("img_DSup").src ="/uk/images/common/little_go_orange.gif";};	
document.getElementById("lnk_DSup").onmouseout= function() { document.getElementById("img_DSup").src ="/uk/images/common/little_go_grey.gif";};		  
					  }   
					  
					  
					    
					  }  //end script block /default.aspx
					  
						   
					  
			if(document.getElementById("mailing_Preparation"))
				      {  
					   document.getElementById("mailing_Preparation").onmouseover= function() {this.style.cursor="pointer", document.getElementById("mailing_Preparation").style.backgroundImage = 'url(/uk/images/common/MainArrow_hover.gif)';};	
                       document.getElementById("mailing_Preparation").onmouseout= function() { document.getElementById("mailing_Preparation").style.backgroundImage = 'url(/uk/images/common/MainArrow_static.gif)';};			
					   document.getElementById("mailing_Preparation").onclick = function() {window.location.href="/uk/Products/MailRoomToolKit/default.aspx";};	
					  }
					  
			if(document.getElementById("address_Quality"))
				      {  
					     document.getElementById("address_Quality").onmouseover= function() {this.style.cursor="pointer", document.getElementById("address_Quality").style.backgroundImage = 'url(/uk/images/common/MainArrow_hover.gif)';};		
                       document.getElementById("address_Quality").onmouseout= function() { document.getElementById("address_Quality").style.backgroundImage = 'url(/uk/images/common/MainArrow_static.gif)';};		
					   document.getElementById("address_Quality").onclick = function() {window.location.href="/uk/Products/MailRoomToolKit/architect.aspx";};	
					  }		
					  		  
			if(document.getElementById("ncoa_Link"))
				      {  
					     document.getElementById("ncoa_Link").onmouseover= function() {this.style.cursor="pointer", document.getElementById("ncoa_Link").style.backgroundImage = 'url(/uk/images/common/MainArrow_hover.gif)';};		
                       document.getElementById("ncoa_Link").onmouseout= function() { document.getElementById("ncoa_Link").style.backgroundImage = 'url(/uk/images/common/MainArrow_static.gif)';};			
					   document.getElementById("ncoa_Link").onclick = function() {window.location.href="/uk/Products/BulkMailer5/default.aspx";};	
					  }		  
					  
			 
			  }  //end home page block
		   
		  
		 /*  tech notes */		 
		 
		 function techNoteColSizer(x) 
		 	{		
			document.getElementById("leftNav").style.height = 292 + "px";	
		     colSizer();		 
		 }
						
				
		    /*    /products/addresscheck.asp */
			// -----------------------------------
	
	function openRapidAddressingWindow(){
  
//purpose: open a child window centered over parent window
 
var x;
var y;
var winl;
var wint;
var scroll;

url = "http://www.satorisoftware.com/UKRapidAddressing/listbox_2.aspx";
windowName = "";
w = 700;
h = 780;
scroll = 0;

//modern browsers
if(document.getElementById){

	//IE browsers
	if(document.all){
	
		x = (screenLeft + document.body.clientWidth/2); 
		winl =  x-(w/2);
		
		y = (screenTop + document.body.clientHeight/2);
		wint = y-(h/2);
	
	}
 
	 //non IE browswers
	 if( !document.all){
	
	 x = (screenX + window.innerWidth/2)
	 winl = x-(w/2);
	 
	 y = (screenY + window.innerHeight/2);
	 wint = y-(h/2);
	 
	 }
 
//old browers - IE4 - NN4
} else {

wint = 0;
winl=  0;

}
 
var settings ='height='+h+',';
settings +='width='+w+',';
settings +='top='+wint+',';
settings +='left='+winl+',';
settings +='scrollbars='+scroll+',';
settings +='resizable=yes';
win=window.open(url,windowName,settings);

if(parseInt(navigator.appVersion) >= 4){
win.window.focus();}

} 

//  image button rollovers 

   if(strPathName == "/uk/products/addresscheck/default.asp" || strPathName == "/uk/products/addresscheck/default_1.asp")		  
		     {  
			    //us
			   if(document.getElementById("Check")) 			   
			       {
				   document.getElementById("Check").onmouseover= function() { document.getElementById("Check").src ="/uk/images/common/verify_address_hover.gif"; };	
                   document.getElementById("Check").onmouseout=   function()   { document.getElementById("Check").src ="/uk/images/common/verify_address.gif";};					   
				   }
	          
			   //ca
			    if(document.getElementById("CACheck")) 
			       {
				   document.getElementById("CACheck").onmouseover= function() { document.getElementById("CACheck").src ="/uk/images/common/certify_address_hover.gif"; };	
                   document.getElementById("CACheck").onmouseout=   function()   { document.getElementById("CACheck").src ="/uk/images/common/certify_address.gif";};					   
				   }
			  
			  //uk
			    if(document.getElementById("UKCheck")) 
			       {
				   document.getElementById("UKCheck").onmouseover= function() { document.getElementById("UKCheck").src ="/uk/images/common/verify_address_hover.gif"; };	
                   document.getElementById("UKCheck").onmouseout=   function()   { document.getElementById("UKCheck").src ="/uk/images/common/verify_address.gif";};					   
				   }
				   
				  //uk rapid addressing rightNav
				  if(document.getElementById("UKRapidAddress")) 
			       {
				   document.getElementById("UKRapidAddress").onmouseover= function() { document.getElementById("UKRapidAddress").src ="/uk/images/common/rapid_address_demo_hover.gif"; };	
                   document.getElementById("UKRapidAddress").onmouseout=   function() { document.getElementById("UKRapidAddress").src ="/uk/images/common/rapid_address_demo.gif";};					   
				   }  
				   
		    //au 		   
			    if(document.getElementById("AUCheck")) 
			       {
				   document.getElementById("AUCheck").onmouseover= function() { document.getElementById("AUCheck").src ="/uk/images/common/certify_address_hover.gif"; };	
                   document.getElementById("AUCheck").onmouseout=   function()   { document.getElementById("AUCheck").src ="/uk/images/common/certify_address.gif"; };					   
				   }
			}
	
	//----------   /uk/Products/MailRoomToolKit/capture.aspx   ----------------------------------------------------------------------------------------------------------------------------------------------
		  
		
	 	 
        if(document.getElementById("captureDrillImg"))
		   {
		    document.getElementById("captureDrillImg").onmouseover = function() {this.style.cursor=  "pointer";};
			document.getElementById("captureDrillImg").onclick = function() {childWindow(this.id);};	
		     }
		  
		  
		    if(document.getElementById("captureMapImg"))
		   {
		    document.getElementById("captureMapImg").onmouseover = function() {this.style.cursor=  "pointer";};
			document.getElementById("captureMapImg").onclick = function() {childWindow(this.id);};	
		     }
		    	
				
				function  childWindow(item)
              {
			 
				url = "viewer.aspx?pid=" + item;
				
				if(item == "captureMapImg")
				{
				  var width = 750;
				  var height = 470;
				  
				   if(document.all)
				   {
				     var width = 700;				 
				     }
				  
				}  else {
				
				 var width = 900;
				 var height = 680;
				 
				   if(document.all)
				   {
				     var width = 800;				 
				     }				 
					
				 
				}
				
				
				    var left = parseInt((screen.availWidth/2) - (width/2));
				    var top = parseInt((screen.availHeight/2) - (height/2));
				    var windowFeatures = "width=" + width + ",height=" + height + ",status,resizable=1,scrollbars=1,left=" + left + ",top=" + top + "screenX=" + left + ",screenY=" + top;
				  window.open(url, "subWind", windowFeatures);
                }
               
               
               	function  demoWindow(item)
              {
				 
				url =  item;				 
				 var width = 900;
				 var height = 680;
				
				    var left = parseInt((screen.availWidth/2) - (width/2));
				    var top = parseInt((screen.availHeight/2) - (height/2));
				    var windowFeatures = "width=" + width + ",height=" + height + ",status,resizable=1,scrollbars=1,left=" + left + ",top=" + top + "screenX=" + left + ",screenY=" + top;
				  window.open(url, "subWind", windowFeatures);
                } 