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( '10/30/2009 11:09:42 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 = '10/30/2009 11:09:42 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 Now Offers the Market\'s Most Comprehensive Wear Resistant Portfolio " + curDate + "
"); } if ( daysDiff( '9/22/2009 3:07:07 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/22/2009 03:07:07 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's Xycomp® High Performance Thermoplastic Composite Containment Shell Receives The 2009 Golden Mousetrap Award " + curDate + "
"); } if ( daysDiff( '8/14/2009 9:18:47 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 = '08/14/2009 09:18:47 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 Advances its Enduro™ LF10 Low-Friction Coatings Offering a New Level of Reliability for Mechanical Seals, Couplings, and Standby Safety Equipment " + curDate + "
"); } return counter; } counter = KDContentNewsMedia();