//--------------------------------------------------------------------------------

//

//    File name   : dynamicTemplate.js

//    Project     : UWS Dynamic Template

//    Description : This js file used to display the Dynamic template menus 

//                  ,footer and tools js file loading process.

//    version     : 1.0 

//--------------------------------------------------------------------------------





//--------------------------------------------------------------------------------

// Dynamic Template server (Do not customoize)

// Server - http://www.honeywell.com

// Note: For testing, we have given staging server URL in the below.

//--------------------------------------------------------------------------------



var dtServer = "http://www51.honeywell.com";



//--------------------------------------------------------------------------------

//--------------------------------------------------------------------------------
//	Specifying the siteLanguage 
//--------------------------------------------------------------------------------
var siteLanguage = "deutsch";
//--------------------------------------------------------------------------------

//--------------------------------------------------------------------------------
// Contact Us page 
//--------------------------------------------------------------------------------
// Set the variable is to "Yes" if site is COMPLETELY secure and "No" if site is partially secure
var siteSecure="No";

// Set the Path of the Pages without any parameters
// For example:
// URL http://www.honeywell.com/sample/sample.html?c=41 should be entered into the array as
// /sample/sample.html

var secureList=[
'/hga/technik-sub/infomaterial.html',
'/hga/kontakt.html',
'/hga/newsevents-sub/newsletter-sub/hier-anmelden.html',
'/hga/technik-sub/vdi-selktor-best.html',
'/hga/technik-sub/unters-sub/faq_haustechnik.html',
'/hga/newsevents-sub/newsletter-sub/hier_abmelden.html'
];

if(siteSecure=="Yes") {
	// Site is completely secure
	if(window.location.protocol!="https:") {
		// Change the protocol from http -> https
	   	var secure_url = location.href;
	    	secure_url = "https://" + secure_url.substring(secure_url.indexOf('http://')+7, secure_url.length);
	    	window.location = secure_url;
  	}
} else {
	// Site may be completely insecure or partially secure
	var currURL = location.href;
	var currURLPath = location.pathname;
	var currURLProtocol = location.protocol;

	doesURLExist = false;
	for(index=0;index<secureList.length;index++) {
		if(currURLPath==secureList[index])	{
			doesURLExist = true;
			if(window.location.protocol!="https:") {
				// Redirect http to https protocol
			   	var secure_url = location.href;
			    secure_url = "https://" + secure_url.substring(secure_url.indexOf('http://')+7, secure_url.length);
	    		window.location = secure_url;
	  		}
	  		break;
		}
	}

	if(!doesURLExist) {
		if(window.location.protocol!="http:") {
			// Redirect https to http protocol
			var secure_url = location.href;
		  	secure_url = "http://" + secure_url.substring(secure_url.indexOf('https://')+8, secure_url.length);
    		window.location = secure_url;
    	}
	}
}

if (window.location.protocol!="http:") {
	dtServer = "https://www51.honeywell.com";
} else {
	dtServer = "http://www51.honeywell.com";
}


//----------------------------------------------------------------------------------



//  Color palettes are defined in the UWS Style Guide and different colors 

//  are typically aligned with different business units.

//   

//  Possible colours

//       - green

//       - navy

//       - indigo

//       - brightblue

//       - red

//       - darktan

//--------------------------------------------------------------------------------



var uws_palette = 'red';



//--------------------------------------------------------------------------------

var site = 'mysite';

//--------------------------------------------------------------------------------



//--------------------------------------------------------------------------------

//   N1N2 Menu controlling variable   

//        -  uws (menus will be loaded from the uws server)

//        -  custom (menus will be loaded from the n1n2filepath value) 

//---------------------------------------------------------------------------------



var menuType = "custom";  



//-------------------------------------------------------------------------------------

//  File path of the N1N2 menu variable.This value is needed if menuType set as 'own' 

//-------------------------------------------------------------------------------------



var n1n2filepath = '/hga/common/scripts/N1N2_menu.js';   



//--------------------------------------------------------------------------------

//  N1N2 Menu site id: Based on this value menus will be displayed.

//    Possible values

//          - honeywell (Honeywell)

//          - sm        (Specialty Material)

//          - em        (Electronic Material)

//          - rlss      (Research and Life science solutions)

//          - bandj     (Burdick & Jackson)

//          - gen       (Genetron® Refrigerants)

//          - genesolv  (Genesolv® Solvents)

//          - acs       (Automation and Control Solutions)

//          - aero      (Aerospace)

//          - turbo     (Turbo Technologies)       

//          - enovate   (Enovate® 3000)       

//--------------------------------------------------------------------------------



var n1n2MenuSiteID = 'honeywell';  





//--------------------------------------------------------------------------------

//

//  Breadcrumb type. 

//        -  uws (Breadcrumb will be loaded from the uws server.uws_breadcrumb must needed)

//        -  custom (Breadcrumb will be loaded from the n1n2filepath value) 

//

//--------------------------------------------------------------------------------



var breadcrumbType = 'uws';



//--------------------------------------------------------------------------------

//

//  UWS Breadcrumb

//          - honeywell (Honeywell)

//          - sm        (Specialty Material)

//          - em        (Electronic Material)

//          - rlss      (Research and Life science solutions)

//          - bandj     (Burdick & Jackson)

//          - gen       (Genetron® Refrigerants)

//          - genesolv  (Genesolv® Solvents)

//          - acs       (Automation and Control Solutions)

//          - aero      (Aerospace)

//          - turbo     (Turbo Technologies)       

//          - enovate   (Enovate® 3000)       

//  Custom Breadcrumb

//          - siteID ( Site id of your website)

//--------------------------------------------------------------------------------



var uws_breadcrumb = 'honeywell_de';



//--------------------------------------------------------------------------------

//

//  Custom Breadcrumb 

//

//  custom_taxonomy_bc = { 'siteID' : ['ParentSiteID','mySiteURL','ImageFileWithSiteName'] };

//

//--------------------------------------------------------------------------------



var custom_taxonomy_bc = { 

          

          'parent' : ['honeywell','http://www.myserver.com','images/txt_mySite.gif'] ,

          'mysite' : ['parent','http://www.myserver.com/mysite/','images/txt_mySite.gif'] 

          

          };





//--------------------------------------------------------------------------------

// eMetrics enabling field.value can be true or false.(can be customize)

//--------------------------------------------------------------------------------



var use_eMetrics = true;



//--------------------------------------------------------------------------------

// loading N1N2 menu code  (Do not customoiz)

//--------------------------------------------------------------------------------




function hideDropDown(val){

	var loc = window.location.href;
	var flag = 0;
	if(loc.indexOf('index.html')!=-1 || (loc.indexOf('/hga/') == ((loc.length)-9)))
	{
		flag=1;
	}
	
	if(document.getElementById("search_module") != null && val==5 && flag!=1)
	document.getElementById("search_module").style.visibility="hidden";
}


function showDropDown(val){

	var loc = window.location.href;
	var flag = 0;
	// comparing for index page
	if(loc.indexOf('index.html')!=-1 || (loc.indexOf('/hga/') == (loc.length-9)))
	{
		flag=1;
	}
	// inner pages
	if(document.getElementById("search_module") != null && val==5 && flag!=1)
	document.getElementById("search_module").style.visibility="visible";
}


document.write("<script language='JavaScript' src='"+dtServer+"/common/scripts/serverprops.js'></script>");

document.write("<script language='JavaScript' src='"+dtServer+"/hfl/inc/webtrends/dcs_tag.js'></script>");



if(menuType == "uws")

document.write("<script language='JavaScript' src='"+dtServer+"/common/scripts/dt/"+n1n2MenuSiteID+"_N1N2.js'></script>");

else

document.write("<script language='JavaScript' src='"+n1n2filepath+"'></script>");

document.write("<script language='JavaScript' src='"+dtServer+"/common/scripts/uws_main.js'></script>");

document.write("<script language='JavaScript' src='"+dtServer+"/common/scripts/hw_bc_taxonomy.js'></script>");



//--------------------------------------------------------------------------------



//--------------------------------------------------------------------------------

// loading tools code (Path can be customize)

//--------------------------------------------------------------------------------



function uws_tools(Login,Search,Download)

{   

    

   if(Login)                                                                                            

   	document.write('<script language="JavaScript" src=""></script>');                

   if(Search)

   	document.write('<script language="JavaScript" src="/hga/common/scripts/search.js"></script>'); 

   if(Download)

   	document.write('<script language="JavaScript" src="/hga/common/scripts/download.js"></script>');      

}



//--------------------------------------------------------------------------------

// Region selector (can be customized)

//--------------------------------------------------------------------------------



// No ofRegions 

var noOfRegions = 14;



// Based on this value drop list will display.(If noOfRegions less than 7 this value is needed)

var region_name_url = [

	['United States','http://www.honeywell.com'] ,

	['India', 'http://www.honeywell.com/sites/htsl'],

	['Austria', 'http://www.honeywell.at/'],

	['China', 'http://www.honeywell.com/sites/china'],

	['Finland', 'http://www.honeywell.com/sites/fi'],

	['Germany', 'http://www.honeywell.com/sites/de'],

	['France', 'http://www.honeywell.com/sites/fr'],

	['Poland', 'http://www.honeywell.com.pl/'],

	['South Africa', 'http://www.honeywell.com/sites/za'],

	['United Kingdom ', 'http://www.honeywell.com/sites/uk'],

	['Denmark', 'http://www.honeywell.dk/'],

	['Canada', 'http://www.honeywell.ca/'],

	['Belgium', 'http://www.honeywell.be/'],

	['Czech Republic', 'http://www.honeywell.com/sites/cz']

];



if(noOfRegions < 8)

noOfRegions = region_name_url.length;



// Region selector page url (if noOfRegions greater than 7 this value is needed)

var region_selector_url = 'http://www.honeywell.com/sites/portal?smap=honeywell&page=honeywellglobal&theme=T8';



//--------------------------------------------------------------------------------



//--------------------------------------------------------------------------------

// Region selector (can be customized)

//--------------------------------------------------------------------------------



// Based on this value language drop down list will display.

var language_url = [

	['English','http://www.honeywell.com?ln=en'] ,

	['German','http://www.honeywell.com?ln=gr'] 

];



//--------------------------------------------------------------------------------







//--------------------------------------------------------------------------------

// Footer code (can be customized)

//--------------------------------------------------------------------------------



// For providing the sitemap link in the footer

var sitemapURL = '/hga/sitemap.html';
var privacyURL = '/privacy/de.html';
var englishprivacyURL = '/privacy/en.html';



// For providing the advance search in the footer

//var advanceSearchURL = 'http://search.honeywell.com/search?restrict=genesolv&q=&site=wwwhony&output=xml_no_dtd&client=wwwhony&proxystylesheet=http://ie10-amrit%2FGenesolv%2Fcommon%2FDocuments%2FGENESOLV.xsl&proxycustom=<ADVANCED/>';

  var advanceSearchURL = 'http://search.honeywell.com/search?site=honeywell&q=&output=xml_no_dtd&client=ecm_en_frontend&proxystylesheet=ecm_en_frontend&proxycustom=<ADVANCED/>&baseSite=hga';



function uws_getFooterAndGlobalLinks(showRegion, showTranslate) {

	var sOut = '';



	sOut += '<form name="footerForm"><div id="footer">';

	sOut += '<table border="0" cellpadding="0" cellspacing="0" width="760" id="footrule">';

	sOut += '<tr class="footrule">';

	sOut += '<td><img src="/common/images/c.gif" width="1" height="4" border="0"></td>';

	sOut += '</tr><tr>';

	sOut += '<td><img src="/common/images/c.gif" width="1" height="4" border="0"></td>';

	sOut += '</tr></table>';

	sOut += '<table border="0" cellpadding="0" cellspacing="0" width="760" id="footnav">';

	sOut += '<tr class="footer" height="25">';

	sOut += '<td class="footer" height="20" colspan="7" >';

	sOut += '<div class="marg16">';

	sOut += '<a href="http://www.honeywell.com/sites/de/Impressum.htm" target="_blank"><font color="#333333">Impressum</font></a> | ';
	
	sOut += '<a href="http://www.honeywell.com/sites/de/Haftungsausschluss.htm" target="_blank"><font color="#333333">Haftungsausschluss</font></a> | ';
	
	sOut += '<a href="http://www.honeywell.com/sites/de/Copyright.htm" target="_blank"><font color="#333333">Copyright</font></a> | ';

	if(privacyURL != '')
	sOut += '<a target="_blank" href="'+dtServer+privacyURL+'"><font color="#333333">Datenschutz</font></a>';
	//sOut += '<a href="http://www.honeywell.com/privacy/de.html" target="_blank"><font color="#333333">Datenschutz </font></a> | ';

	sOut += ' | <a target="_blank" href="'+dtServer+englishprivacyURL +'"><font color="#333333">Allgemeine Gesch&#228;ftsbedingungen</font></a>';	

	if(sitemapURL != '')

	sOut += ' | <a href="'+dtServer+sitemapURL+'"><font color="#333333" target="_blank">Site Map</font></a>';

	if(advanceSearchURL != '')

	sOut += ' | <a href="'+advanceSearchURL+'"><font color="#333333" target="_blank">Detailsuche</font></a>';
	
	sOut += ' | <a href="/hga/technik-sub/unters-sub/servicepartner.html?c=53"><font color="#333333">Partner Login</font></a>';

	sOut += '</div></td>';

	sOut += '<TD width="100" align="right"><table border="0" cellpadding="0" cellspacing="0"><tr><td></td>';		 



	if (showRegion) {	

		sOut += '<TD class="bgwhite" width="3"><IMG src="/common/images/c.gif" width="3" height="24" border="0"></TD>';		

		if(parseInt(noOfRegions) > 7)

		{		    

		    sOut += '<TD width="40"><DIV class="marg16" id="flag"><A';

		    sOut += ' href="'+region_selector_url+'"><IMG height=14 src="/common/images/icon_flag_usa.gif" width="20" border="0"></A></DIV></TD><TD class="footer" width="150"><A';

		    sOut += ' class="region" href="'+region_selector_url+'">Choose Your Region/Country</A></div>';	 	    

	        } else

	        {	        

	    	    sOut += '<td width="5"><IMG src="/common/images/c.gif" height="1" width="5"></td><TD class="footer" width="170">';

	    	    sOut += '<select size="1" name="showRegion" class="footerRegion" onChange="javascript:openWindow(document.footerForm.showRegion);">';

	    	    sOut += '<option value="#"> Choose Your Region/Country ';    

		    for(var i=0;i<noOfRegions;i++)


		    {

			sOut += '<option value="'+region_name_url[i][1]+'">'+region_name_url[i][0];    

		    }

	            sOut += '</select>';

	        }	        		

      	        sOut += '</TD><td width="5"><IMG src="/common/images/c.gif" height="1" width="5"></td>';

         }                                         

        

	 if (showTranslate) {	 

	     sOut += '<TD class=bgwhite width="3"><IMG src="/common/images/c.gif" width="3" height="1" border="0"></TD>';

	     sOut += '<td width="5"><IMG src="/common/images/c.gif" height="1" width="5"></td>';

	     sOut +='<td class="footer" width="135"><select class="lang" name="language" onChange="javascript:openWindow(document.footerForm.language);">';

	     sOut += '<option value="">Select Your Language';

	     for(var i=0;i<language_url.length;i++)

	     {

	     sOut += '<option value="'+language_url[i][1]+'">'+language_url[i][0];

	     }

	     sOut += '</select></td>';

	     sOut += '<td width="15"><IMG src="/common/images/c.gif" height="1" width="15"></td>';

	 } 	



	sOut += '</tr></table></td></tr></table>';

	

	sOut += '<table border="0" cellpadding="0" cellspacing="0" width="760">';

	sOut += '<tr><td height="3"><img src="/common/images/c.gif" height="3"></td></tr>';

	sOut += '<tr><td align="center">';

	sOut += '&#169; Copyright Honeywell International Inc 2004-2009';

	sOut += '</td></tr>';

	sOut += '<tr><td height="3"><img src="/common/images/c.gif" height="3"></td></tr>';

	sOut += '</table>';	

	

	sOut += '</div></form>';



	document.write(sOut);

}



function openWindow(opt)

{

	if(opt.options.selectedIndex != -1 && opt.options.selectedIndex != 0)

	{

		window.open(opt.options[opt.options.selectedIndex].value);		

	}

}

//--------------------------------------------------------------------------------





function getLeftSpace(preLeftSpace,charLength)

{

	var emptySpace = (preLeftSpace + (eval(parseInt(charLength)*fontWidth)+21));

	if(is_nav4)

	emptySpace = emptySpace - nav4Buff;	

	return emptySpace;		

}







function loadN2()

{	

	if(n1_popup_menus[currsection] != undefined && (n1_popup_menus.length == undefined || n1_popup_menus.length > 0))

	{	

		for(var i=1;i<n1_popup_menus[currsection].length;i++)	

 		menulist2[i-1] = n1_popup_menus[currsection][i];

 		

 				if(currsection == 1 ){

                	n2_empty_pixels =371;

                }else if(currsection == 2){

	                n2_empty_pixels =497;

                }else if(currsection == 3){

                	n2_empty_pixels =502;

                }else if(currsection == 4){

                	n2_empty_pixels =360;

                }else if(currsection == 5){
                	n2_empty_pixels =400;
				}
                   else if(currsection == 6){
                	n2_empty_pixels =270;
				}
				else {

	                n2_empty_pixels =300;

                }

 		//calN2emptySpace();

	}

}



function calculateN1_empty()

{

  var totalLength = 0;

  var tp = 0;

  var j = 0;

  for(var i=0;i<menulist.length;i++)

  {

	   j = menulist[i][0].search('&');

       if(j!=-1)

      	  tp = tp + 2;

      totalLength = totalLength + 20 + eval(parseInt(menulist[i][0].length)*fontWidth)+2;

  }   

  if(totalLength < 760)

     n1_empty_pixels = 760 - totalLength;

 n1_empty_pixels = n1_empty_pixels - tp;



}



function calN2emptySpace()

{

	var n2LeftSpace = 0;

	for(var i=0;i<menulist2.length;i++)

	{

  		n2LeftSpace = eval(parseInt(n2LeftSpace) + 10) + eval(parseInt(menulist2[i][0].length)*fontWidth);	
	

	}

     	if(n2LeftSpace < 760)

       	n2_empty_pixels = 760 - n2LeftSpace;	

}



function setCurrsection()

{

	var strURL = new String(location.href);

	var splitStr = strURL.split('/');

	var len = splitStr.length;

	len = len - 1;

	var link = splitStr[len];

	var strn = link.substring(0,4);

	strn = strn.toLowerCase();

	var menulen = menulist.length;

	var sturl = location.search;

	lc1 = sturl.indexOf("c=");

	var j;

	if(lc1>0){

		lc1 = lc1 + 2;

		lc2 = lc1 + 2;

		stc = sturl.substring(lc1,lc2);

		c1 = stc.substring(0,1);

		c2 = stc.substring(1,2);

		if(stc!=''){

			currsection=c1;

			currsection2=c2;

		}

	}

	else{

	k = location.href;

	k = k.substring(0,k.indexOf(".html"));

	for(i=0;i<menulen;i++)

	{

		if(menulist[i][1]!='.html'){

			k = k + '.html';

			j = k.search(menulist[i][1]);

		}

		else

			j = k.search(menulist[i][1]);

		if(j!=-1){

			currsection = menulist[i][2];

			break;

		}

	}

}

}



function setCurrsection2()

{

	if(currsection!=''){

		if(n1_popup_menus[currsection]==undefined)

			currsection2='';

		else{

			var sturl = location.search;

			lc1 = sturl.indexOf("c=");

			if(lc1>0){

				lc1 = lc1 + 2;

				lc2 = lc1 + 2;

				stc = sturl.substring(lc1,lc2);

				c1 = stc.substring(0,1);

				c2 = stc.substring(1,2);

				if(stc!=''){

					currsection=c1;

					currsection2=c2;

				}

			}

			else

				currsection2='-11';

		}

	}

	else {

	var strURL = new String(location.href);

	//strURL = strURL.substring(0,strURL.indexOf(".html"));

	var splitStr = strURL.split('/');

	var len = splitStr.length;

	len = len - 1;

	var link = splitStr[len];

	len = len - 1;

	var str_news = splitStr[len];

	var strn = link.substring(0,4);

	str_news = str_news.toLowerCase();

	var menulen = menulist.length;

	var keylen = n1_keys.length;

	if(str_news=='news')

	{

		for(i=0;i<menulen;i++){

			tmp = menulist[i][0].toLowerCase();

			j = tmp.search(str_news);

			if(j!=-1){

				currsection = menulist[i][2];			

				if(n1_popup_menus[currsection]!=undefined)

					currsection2 = '1';

			}

		}

		

	}

	else {

	outer_loop:

	for(var m=1;m<keylen;m++){

		if(n1_popup_menus[m]==undefined){

		currsection2='';

	}

	else {

	if(n1_popup_menus[m] != undefined && (n1_popup_menus.length == undefined || n1_popup_menus.length > 0))

		{	

			for(var i=1;i<n1_popup_menus[m].length;i++){

				menu2 = new String(n1_popup_menus[m][i]);

				dr = menu2.split(',');

				tp_dr = dr[1].split('/');

				len = tp_dr.length;

				len = len - 1;

				if(tp_dr[len]==link){

					currsection = m;

					currsection2 = dr[2];

					break outer_loop;

				}

				else{

					currsection2='';

				}

			}

 		}	

	     }

           }

          }

       }

}





function setCurrsection3()

{
	
	var sturl = location.search;

	lc1 = sturl.indexOf("c=");

	lc1 = lc1 + 2;

	lc2 = lc1 + 2;

	lc3 = lc2 + 2;

	stc = sturl.substring(lc1,lc2);

	c1 = stc.substring(0,1);

	c2 = stc.substring(1,2);

	stc1 = sturl.substring(lc2,lc3);
	
	c3 = stc1.substring(0,1);
	
	c4 = stc1.substring(1,2);

	if(stc!=''){

		currsection=c1;

		currsection2=c2;

		
		if(stc1!='')
		{
			currsection3 = c3;
			currsection4 = c4;
		}
		else
		{
		
		
			sturl = location.href;

			out_loop:

			for(i=0;i<menulist3.length;i++)

			{	

				j = sturl.search(menulist3[i][1]);

				if(j!=-1){

					currsection3 = menulist3[i][2];

					break out_loop;

				}

				if(n4_menus[menulist3[i][2]]!=undefined){

					m4 = n4_menus[menulist3[i][2]];

					out_loop1:

					for(k=0;k<m4.length;k++){

						j = sturl.search(m4[k][1]);

						if(j!=-1){

							currsection3 = menulist3[i][2];

							currsection4 = m4[k][2];

							break out_loop1;

						}

					}

				}

			}
		}

	}

}


	

//

// MSDS Drop downs //



// ----------------------------------------------------------------------------------

// contains the html and style code for the download box.  

//                 

//   Note:

//      Business logic is not implemented. Please implement it before using.       

// ----------------------------------------------------------------------------------

function showDoc(){

	var selObj = document.search.pdflistbox;

	if(selObj.selectedIndex==0){

		alert("Please select a document you wish to download.");

		return;

	}

	//Opening a new window where the document gets downloaded.

	window.open(selObj.options[selObj.selectedIndex].value, "win1", "width=700, height=600, location=no, menubar=no, status=no, toolbar=yes, scrollbars=yes, resizable=yes");

}	



function populate(){

	if(MSDS!=undefined && MSDS.length>0){

document.write('<table cellpadding="0" cellspacing="0" border="0" width="161" class="bgwhite" id="searchmod3">');

document.write('<tr><td rowspan="5" width="1" class="search_outerrule"><img src="/common/images/c.gif" alt="" width="1" height="1" border="0"></td>');

document.write('<td rowspan="4" width="1"><img src="/common/images/c.gif" alt="" width="1" height="1" border="0"></td>');

document.write('<td colspan="4"><img src="/common/images/c.gif" alt="" width="1" height="1" border="0"></td>');

document.write('<td rowspan="4" width="1"><img src="/common/images/c.gif" alt="" width="1" height="1" border="0"></td>');

document.write('<td rowspan="4" width="1" class="search_innerrule"><img src="/common/images/c.gif" alt="" width="1" height="1" border="0"></td>');

document.write('<td rowspan="5" width="1" class="search_outerrule"><img src="/common/images/c.gif" alt="" width="1" height="1" border="0"></td>');

document.write('</tr><tr><td colspan="4" style="vertical-align :top;" class="search_innerrule">');

document.write('<table cellpadding="0" cellspacing="0" border="1" width="158" bordercolor="#606060" class="searchbg" id="searchmod3a">');

document.write('<tr><td><div class="searchhdr1"><img vpsace="2" src="/common/images/download-docs.gif" alt="Download Technical Docs" title="Download Technical Docs" height="8" border="0"></div></td>');

document.write('<td width="15"><div id="docplus"><a onClick=\'showMod("doc","downloadCookie");\'><img src="/common/images/but_plus_gray.gif" alt="+" width="15" height="15" border="0"></a></div><div id="docminus"><a onClick=\'hideMod("doc","downloadCookie");\'><img src="/common/images/but_minus_gray.gif" alt="-" width="15" height="15" border="0"></a></div></td>');

document.write('</tr></table>');

document.write('<table cellpadding="0" cellspacing="0" border="0" width="158" id="searchmod3b">');

document.write('<tr class="bgwhite"><td><img src="/common/images/c.gif" alt="" width="1" height="2" border="0"></td></tr>');

document.write('<tr><td class="search"><form name="search"><div class="search" id="doc">');

document.write('<table cellpadding="0" cellspacing="0" border="0"><tr><td>');

document.write('<select name="pdflistbox" class="search"><option value="">Select a Document</option>');

for(i=0;i<MSDS.length;i++){

	document.write('<option value="'+MSDS[i][0]+'">');

	document.write(MSDS[i][1]);

	document.write('</option>');

}

document.write('</select></td><td rowspan="2"></td>');

document.write('<td class="search"><a href="javascript:showDoc();"><img src="/common/images/icon_arrow_circ.gif" width="14" height="14" alt="Download Technical Docs" title="Download Technical Docs" border="0"/></a></td></tr>');

document.write('</table></div></form></td></tr></table></td></tr>');

document.write('<tr><td colspan="8"><img src="/common/images/c.gif" alt="" width="1" height="1" border="0"></td></tr>');

document.write('<tr><td colspan="8" class="search_innerrule"><img src="/common/images/c.gif" alt="" width="1" height="1" border="0"></td></tr>');

document.write('<tr><td colspan="8" class="search_outerrule"><img src="/common/images/c.gif" alt="" width="1" height="1" border="0"></td></tr>');

document.write('</table>');

}







}

