var headerVisible = 0; //flag for SearchLineTradeSHow to determine if a News and Events header was displayed function dateInfo( sDate ) { //Start Date pos = sDate.indexOf( "/" ); sMth = sDate.substring( 0, pos ); sDate = sDate.substring( pos + 1 ); pos = sDate.indexOf( "/"); sDay = sDate.substring( 0, pos ); sDate = sDate.substring( pos + 1 ); sYr = sDate; pos = sYr.indexOf( " "); if ( pos != -1 ) { sYr = sDate.substring( 0, pos ); // Get rid of time if it appeared after the year. } if ( sMth.substr(0, 1) == "0" ) { sMth = sMth.substr(1, 1); } if ( parseInt( sYr ) < 2000 ) { sYr = toString( ( parseInt( sYr ) + 2000 ) ); } var aryInfo = new Array(2); aryInfo[ 0 ] = sMth; aryInfo[ 1 ] = sDay; aryInfo[ 2 ] = sYr; return aryInfo; } /*====================*/ function daysDiff( sDate ) { //Convert passed date into mont, day , and year values var dateAry = dateInfo( sDate ); var Mth = parseInt( dateAry[ 0 ] ); var Day = parseInt( dateAry[ 1 ] ); var Yr = parseInt( dateAry[ 2 ] ); //Set the two dates today=new Date(); var curDate =new Date( Yr, Mth - 1, Day ); //Month is 0-11 in JavaScript var one_day=1000*60*60*24; //Set 1 day in milliseconds //Calculate difference btw the two dates, and convert to days //return # days beyond publish date return Math.ceil(( curDate.getTime()-today.getTime())/(one_day)); } /*====================*/ function getBusGrp( busGrpKey ) { var busGrp = ""; var busGrpName = ""; var pos = 0; var businessGroup = [ "AS=Aerospace", "AR=Aerospace", "BT=Biotechnology", "DF=Defense", "FH=PetroChem & Power", "IN=Industrial", "MB=Medical & Biotechnology", "MD=Medical", "OF=Oilfield", "SC=Semiconductor", "PH=Pharmaceutical", "TK=Technologies", "General=General" ] for ( var i = 0 ; i < businessGroup.length; i++ ) { pos = businessGroup[ i ].indexOf( "=" ); busGrp = businessGroup[ i ].substring( 0, pos ); busGrpName = businessGroup[ i ].substring( pos + 1 ); if ( busGrp == busGrpKey ) { return busGrpName ; } } } /* ==== End getBusGrp ===*/ var aryMonths = [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ]; function KDContentNewsMedia() { var counter = 0;if ( daysDiff( '7/9/2010 10:23:48 AM' ) > -30 ) { if ( counter == 0 ) { document.write("
" + getLangText("NewsAndEvents") + ""); counter =+ 1; headerVisible = 1; // used to indicate header was displayed. The trade show line layout will produce a header if this variable is zero. } var curDate = '07/09/2010 10:23:48 AM'; var curMth = curDate.substr( 0, 2); var curDay = curDate.substr( 3, 2); var curYear = curDate.substr( 6, 4); if ( curMth.substr(0, 1) == "0" ) { curMth = curMth.substr(1, 1); } curDate = "(" + curDay + " " + aryMonths[ parseInt( curMth ) - 1 ] + " " + curYear + ")"; document.write( "
• Enabling the Next Generation of Semiconductor & Solar Solutions Utilizing OpTegra™ Integrated Solutions " + curDate + "
"); } if ( daysDiff( '7/8/2010 11:17:52 AM' ) > -30 ) { if ( counter == 0 ) { document.write("
" + getLangText("NewsAndEvents") + ""); counter =+ 1; headerVisible = 1; // used to indicate header was displayed. The trade show line layout will produce a header if this variable is zero. } var curDate = '07/08/2010 11:17:52 AM'; var curMth = curDate.substr( 0, 2); var curDay = curDate.substr( 3, 2); var curYear = curDate.substr( 6, 4); if ( curMth.substr(0, 1) == "0" ) { curMth = curMth.substr(1, 1); } curDate = "(" + curDay + " " + aryMonths[ parseInt( curMth ) - 1 ] + " " + curYear + ")"; document.write( "
• Expanding the Benefits of Integrated Solutions with ProTechna® Encapsulation for Critical Semiconductor & Solar Applications " + curDate + "
"); } if ( daysDiff( '9/17/2009 12:01:21 PM' ) > -30 ) { if ( counter == 0 ) { document.write("
" + getLangText("NewsAndEvents") + ""); counter =+ 1; headerVisible = 1; // used to indicate header was displayed. The trade show line layout will produce a header if this variable is zero. } var curDate = '09/17/2009 12:01:21 PM'; var curMth = curDate.substr( 0, 2); var curDay = curDate.substr( 3, 2); var curYear = curDate.substr( 6, 4); if ( curMth.substr(0, 1) == "0" ) { curMth = curMth.substr(1, 1); } curDate = "(" + curDay + " " + aryMonths[ parseInt( curMth ) - 1 ] + " " + curYear + ")"; document.write( "
• Greene, Tweed Announces an Expanded Enduro™ Coatings Platform " + curDate + "
"); } if ( daysDiff( '9/15/2009 11:00:21 AM' ) > -30 ) { if ( counter == 0 ) { document.write("
" + getLangText("NewsAndEvents") + ""); counter =+ 1; headerVisible = 1; // used to indicate header was displayed. The trade show line layout will produce a header if this variable is zero. } var curDate = '09/15/2009 11:00:21 AM'; var curMth = curDate.substr( 0, 2); var curDay = curDate.substr( 3, 2); var curYear = curDate.substr( 6, 4); if ( curMth.substr(0, 1) == "0" ) { curMth = curMth.substr(1, 1); } curDate = "(" + curDay + " " + aryMonths[ parseInt( curMth ) - 1 ] + " " + curYear + ")"; document.write( "
• Chemraz® XPE Provides Superior O2 Plasma Resistance for Maximized Chip Production " + curDate + "
"); } if ( daysDiff( '7/2/2009 9:30:50 AM' ) > -30 ) { if ( counter == 0 ) { document.write("
" + getLangText("NewsAndEvents") + ""); counter =+ 1; headerVisible = 1; // used to indicate header was displayed. The trade show line layout will produce a header if this variable is zero. } var curDate = '07/02/2009 09:30:50 AM'; var curMth = curDate.substr( 0, 2); var curDay = curDate.substr( 3, 2); var curYear = curDate.substr( 6, 4); if ( curMth.substr(0, 1) == "0" ) { curMth = curMth.substr(1, 1); } curDate = "(" + curDay + " " + aryMonths[ parseInt( curMth ) - 1 ] + " " + curYear + ")"; document.write( "
• Greene, Tweed Offers Innovative Solutions for the Solar Industry " + curDate + "
"); } if ( daysDiff( '4/17/2009 8:30:19 AM' ) > -30 ) { if ( counter == 0 ) { document.write("
" + getLangText("NewsAndEvents") + ""); counter =+ 1; headerVisible = 1; // used to indicate header was displayed. The trade show line layout will produce a header if this variable is zero. } var curDate = '04/17/2009 08:30:19 AM'; var curMth = curDate.substr( 0, 2); var curDay = curDate.substr( 3, 2); var curYear = curDate.substr( 6, 4); if ( curMth.substr(0, 1) == "0" ) { curMth = curMth.substr(1, 1); } curDate = "(" + curDay + " " + aryMonths[ parseInt( curMth ) - 1 ] + " " + curYear + ")"; document.write( "
• GT Offers Superior Quality Quartz for the Semiconductor and Solar Markets " + curDate + "
"); } if ( daysDiff( '4/3/2009 9:23:48 AM' ) > -30 ) { if ( counter == 0 ) { document.write("
" + getLangText("NewsAndEvents") + ""); counter =+ 1; headerVisible = 1; // used to indicate header was displayed. The trade show line layout will produce a header if this variable is zero. } var curDate = '04/03/2009 09:23:48 AM'; var curMth = curDate.substr( 0, 2); var curDay = curDate.substr( 3, 2); var curYear = curDate.substr( 6, 4); if ( curMth.substr(0, 1) == "0" ) { curMth = curMth.substr(1, 1); } curDate = "(" + curDay + " " + aryMonths[ parseInt( curMth ) - 1 ] + " " + curYear + ")"; document.write( "
• GT Offers Rapid Prototyping for the Semiconductor & Solar Industries " + curDate + "
"); } if ( daysDiff( '3/24/2009 1:34:38 PM' ) > -30 ) { if ( counter == 0 ) { document.write("
" + getLangText("NewsAndEvents") + ""); counter =+ 1; headerVisible = 1; // used to indicate header was displayed. The trade show line layout will produce a header if this variable is zero. } var curDate = '03/24/2009 01:34:38 PM'; var curMth = curDate.substr( 0, 2); var curDay = curDate.substr( 3, 2); var curYear = curDate.substr( 6, 4); if ( curMth.substr(0, 1) == "0" ) { curMth = curMth.substr(1, 1); } curDate = "(" + curDay + " " + aryMonths[ parseInt( curMth ) - 1 ] + " " + curYear + ")"; document.write( "
• Greene, Tweed & Co., Inc. Partners with Petrus Industries LTD to Offer High Quality Quartz Solutions to the Semiconductor and Solar Markets " + curDate + "
"); } if ( daysDiff( '2/24/2009 12:00:05 PM' ) > -30 ) { if ( counter == 0 ) { document.write("
" + getLangText("NewsAndEvents") + ""); counter =+ 1; headerVisible = 1; // used to indicate header was displayed. The trade show line layout will produce a header if this variable is zero. } var curDate = '02/24/2009 12:00:05 PM'; var curMth = curDate.substr( 0, 2); var curDay = curDate.substr( 3, 2); var curYear = curDate.substr( 6, 4); if ( curMth.substr(0, 1) == "0" ) { curMth = curMth.substr(1, 1); } curDate = "(" + curDay + " " + aryMonths[ parseInt( curMth ) - 1 ] + " " + curYear + ")"; document.write( "
• GT Develops New Perfluoro Line for Solar & FPD Markets " + curDate + "
"); } return counter; } counter = KDContentNewsMedia();