var agt=navigator.userAgent.toLowerCase();var bsr=navigator.appName;var ver=parseInt(navigator.appVersion);var is_mac=(agt.indexOf("mac")!=-1);var is_major=parseInt(navigator.appVersion);var is_ie=((agt.indexOf("msie")!=-1)&&(agt.indexOf("opera")==-1));var is_ie3=(is_ie&&(is_major<4));var is_ie4=(is_ie&&(is_major==4)&&(agt.indexOf("msie 5")==-1)&&(agt.indexOf("msie 6")==-1)&&(agt.indexOf("msie 7")==-1));var is_safari=(agt.indexOf("safari")!=-1);var ns6=false;var ns7=false;if(bsr=="Netscape"&&ver>=5){ns6=true;}if(bsr=="Netscape"&&agt.indexOf("netscape/7")!=-1){ns7=true;}window.name="CONTENT";var currenturl;var currenturl_nav="";var currenturl_pagetype="";var currenturl_args=new Object();var currenturl_query=document.location.search;var currenturl_pairs1=currenturl_query.split("?");var referrerurl;var referrerstr="";var manage_referrerstr="";if(currenturl_pairs1!=""){var currenturl_pairs=currenturl_pairs1[1].split("&");for(var i=0;i<currenturl_pairs.length;i++){var currenturl_pos=currenturl_pairs[i].indexOf('=');if(currenturl_pos==-1){continue;}var currenturl_argname=currenturl_pairs[i].substring(0,currenturl_pos);var currenturl_value=currenturl_pairs[i].substring(currenturl_pos+1);currenturl_args[currenturl_argname.toLowerCase()]=unescape(currenturl_value);}var currenturl_pagetype;var currenturl_nav;if(currenturl_args["c"]!=null||currenturl_args["C"]!=null){currenturl_pagetype="?c="+currenturl_args["c"];}else if(currenturl_args["s"]!=null||currenturl_args["S"]!=null){currenturl_pagetype="?s="+currenturl_args["s"];}else if(currenturl_args["l"]!=null||currenturl_args["L"]!=null){currenturl_pagetype="?l="+currenturl_args["l"];}else{currenturl_pagetype="";}if(currenturl_args["nav"]){currenturl_nav="&nav="+currenturl_args["nav"];}else{currenturl_nav="";}if(currenturl_args["referrer"]!=null){referrerurl=currenturl_args["referrer"];referrerstr="&amp;referrer="+unescape(referrerurl);manage_referrerstr="&amp;referrer="+escape(referrerurl);}}if(currenturl_pagetype=="?s=8945"){currenturl="http://"+document.location.hostname;}else{currenturl="http://"+document.location.hostname+document.location.pathname+currenturl_pagetype+currenturl_nav;}if(currenturl_args["targetadstag"]!=null){targetadtag=currenturl_args["targetadstag"];}if(currenturl_args["targetadstag"]!=null){g_AdTag=currenturl_args["targetadstag"];}var WNG_URLPOS=0,WNG_NAMEPOS=1,WNG_PROPERTYPOS=2;function OpenWin(props){var lsProperties,myWin,lsURLPrefix;if(props.split){lsProperties=props.split("|");}else{lsProperties=OldBrowserSplit(props,"|");}if(lsProperties[WNG_URLPOS]!=null){if(lsProperties[WNG_NAMEPOS]==null){lsProperties[WNG_NAMEPOS]="";}if(lsProperties[WNG_PROPERTYPOS]==null){lsProperties[WNG_PROPERTYPOS]="";}lsURLPrefix="";if(lsProperties[WNG_URLPOS].substring(0,4)!="http"){if(lsProperties[WNG_URLPOS].substring(0,1)!="/"){lsURLPrefix="http://";}}myWin=window.open(lsURLPrefix+lsProperties[WNG_URLPOS],lsProperties[WNG_NAMEPOS],lsProperties[WNG_PROPERTYPOS]);}}function OldBrowserSplit(OrigStr,tok){var it=new Array();var counter=0;var cur=0;var prev=0;var str=OrigStr;cur=str.indexOf(tok,prev);while(cur!=-1){it[counter]=str.substring(prev,cur);counter+=1;str=str.substring(cur+1);prev=0;cur=str.indexOf(tok);}it[counter]=str.substring(prev);return it;}function checkFrame(){}if(!window.wng_emptyAds){var wng_emptyAds=new Object();}function refreshAds(){var saf_iframe;if(is_safari==true){var frames;var adUBound;var adifrmcnt;frames=document.getElementsByTagName("iframe");adUBound=frames.length;adifrmcnt=adarray.length;for(var i=0;i<adUBound;i++){for(var n=1;n<adifrmcnt;n++){if(frames[i].id==adarray[n]){var wrapperid="wrapper_"+frames[i].id;var wrapper=document.getElementById(wrapperid);if(wrapper){wrapper.style.display="none";}else{frames[i].height=0;frames[i].width=0;}}}}}else if((bsr!="Netscape")||(ns6)){if(ns6){var ns6Iframe=document.getElementById("iframeads");var refIframe=ns6Iframe.src;}else{var refIframe=document.all.iframeads.src;}var adIframe=window.frames["iframeads"];var adUBound=adarray.length;for(i=1;i<adUBound;i++){var iframename=adarray[i];var adformname="adform"+i;if(window.frames[iframename]){if(ns6&&is_safari==false){var bd=new String(adIframe.document.forms[iframename].elements[0].value);var brsrc=bd.search(/WN\snoad\S\SYes/gi);var wrapperid="wrapper_"+iframename;var wrapper=document.getElementById(wrapperid);if(brsrc==-1){if(wrapper){wrapper.style.display="";}if(iframename=="wnsz_45"&&ns7){document.getElementById("1sttopstorywrap").style.display="block";document.getElementById("1sttopstory").style.display="none";}var adIframeDoc=window.frames[iframename].document;var tpwDisplay=0;if(document.getElementById("1sttopstorywrap")){tpwDisplay=document.getElementById("1sttopstorywrap").style.display=="block"?1:0;}if(adIframeDoc&&!(tpwDisplay&&iframename=="wnsz_1")){try{document.getElementById(iframename).style.display="";adIframeDoc.open();adIframeDoc.write(adIframe.document.forms[iframename].elements[0].value);adIframeDoc.close();}catch(e){if(wrapper){wrapper.style.display="none";}else{document.getElementById(iframename).style.display="none";}}}else{adstr_st=coreadcall.indexOf(iframename);adstr_sub=coreadcall.substr(adstr_st);adstr_end=coreadcall.substr(adstr_st).indexOf('&sz');adstr=adstr_sub.substring(0,adstr_end);document.getElementById(iframename).src="http://"+g_BaseURL+"/global/ad.asp?type=single&sz1="+adstr;document.getElementById(iframename).style.visibility="visible";}}else{if(wrapper){wrapper.style.display="none";}else{var adiframe=document.getElementById(iframename);adiframe.height=0;adiframe.width=0;}wng_emptyAds[iframename]=true;}}else{try{window.frames[iframename].document.body.innerHTML=adIframe.document.forms[iframename].elements[0].value;}catch(e){var wrapperid="wrapper_"+iframename;var wrapper=document.getElementById(wrapperid);if(wrapper){wrapper.style.display="none";}else{document.all[iframename].style.display="none";}wng_emptyAds[iframename]=true;}}}}}wnCollapseColumns();}function wnCollapseColumns(){try{if(wng_emptyAds.wnsz_20){var storyBox=document.getElementById('wnStoryBox');if(storyBox){var storyBoxTRLen=0;var childNode=storyBox.firstChild;while(childNode){if(childNode.nodeName=='TBODY'){childNode=childNode.firstChild;}if(childNode.nodeName=='TR'){storyBoxTRLen++;}childNode=childNode.nextSibling;}if(storyBoxTRLen<2){storyBox.style.display='none';}}}}catch(e){}}function checkad(p_adID){var wrapperid="wrapper_"+p_adID;var wrapper=document.getElementById(wrapperid);if(bsr=="Netscape"&&parseInt(ver)>=5){var bd=new String(window.frames[p_adID].document.getElementById("AdHolder").innerHTML);var brsrc=bd.search(/WN\snoad\S\SYes/gi);var adiframe=document.getElementById(p_adID);if(brsrc!=-1){wng_emptyAds[p_adID]=true;adiframe.height=0;adiframe.width=0;}else{if(wrapper){if(p_adID=="wnsz_41"||p_adID=="wnsz_46"){wrapper.style.width="978px";}wrapper.style.display="";}adiframe.style.visibility="visible";}}else if(bsr=="Netscape"&&parseInt(ver)<5){}else{var iebd=new String(window.frames[p_adID].document.all.AdHolder.innerHTML);var iebdck=iebd.search(/WN\snoad.*Yes/g);if((iebdck!=-1)||(iebd=="")){if(wrapper){wrapper.style.display="none";}else{document.all[p_adID].style.display="none";}wng_emptyAds[p_adID]=true;}else{if(wrapper){wrapper.style.display="";}document.all[p_adID].style.visibility="visible";}}}var adcnt=0;var randadno=Math.random();var adarray=new Array();function coreAdsCreate(sz,owner,splitpct){adcnt++;coreadcall+="&sz"+adcnt+"="+sz+"&cls"+adcnt+"="+targetadtag+"&src"+adcnt+"="+owner+"&frm"+adcnt+"="+sz+"&spct"+adcnt+"="+splitpct;adarray[adcnt]=sz;}function GetCookie(name){if(document.cookie.length>0){var arg=name+"=";var alen=arg.length;var clen=document.cookie.length;var i=0;while(i<clen){var j=i+alen;if(document.cookie.substring(i,j)==arg){return getCookieVal(j);}i=document.cookie.indexOf(" ",i)+1;if(i==0){break;}}return null;}}function getCookieVal(offset){var endstr=document.cookie.indexOf(";",offset);if(endstr==-1){endstr=document.cookie.length;}return unescape(document.cookie.substring(offset,endstr));}function setCookie(name,value,expires,path,domain,secure){if(document.cookie.length>0){document.cookie=name+"="+escape(value)+((expires)?"; expires="+expires.toGMTString():"")+((path)?"; path="+path:"")+((domain)?"; domain="+domain:"")+((secure)?"; secure":"");}}function delCookie(name,path,domain){if(GetCookie(name)){document.cookie=name+"="+((path==null)?"":"; path="+path)+((domain==null)?"":"; domain="+domain)+"; expires=Thu, 01-Jan-1970 00:00:01 GMT";}}var multiple_entries_cookie_val;var multiple_entries_update=false;var multiple_entries=unescape(GetCookie("multipleentries"));var multiple_entries_exp=new Date();multiple_entries_exp.setDate("1");multiple_entries_exp.setMonth("0");multiple_entries_exp.setYear("2010");multiple_entries_exp.setHours("0");multiple_entries_exp.setMinutes("0");var complete_cookie_delete=false;var complete_cookie=GetCookie("completeditems");var profile=GetCookie("FirstName");if(profile!=null){profile=profile.replace(/(\+)/g," ");}else{var profile_complete=GetCookie("EmailAddress");if(profile_complete!=null){var profile_index=profile_complete.indexOf("@");profile=profile_complete.substring(0,profile_index);}}function popProfile(){var memcenter="<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=1 WIDTH='100%' CLASS='memberCenter'>";var loginmsg="Log Out";var acctmsg="Manage Account";if((!is_mac)&&(!is_ie3)&&(!is_ie4)&&(bsr!="Netscape"||ns6)){if(profile==null){acctmsg="Create Account";loginmsg="Log In";if(membercenterloc==1||membercenterloc==2){memcenter+="<TR><TD>&nbsp;<B>MEMBER CENTER:</B>&nbsp;<A HREF='/global/link.asp?L="+reglinkno+"&amp;function=manageprofile&amp;mode=create"+"&amp;referrer="+escape(currenturl)+"'>"+acctmsg+"</A>&nbsp;|&nbsp;<A HREF='/global/link.asp?L="+reglinkno+"&amp;function=manageprofile&amp;mode=login"+"&amp;referrer="+escape(currenturl)+"'>"+loginmsg+"</A></TD></TR>";}else{memcenter+="<TR><TD><B>MEMBER CENTER:</B></TD></TR>";memcenter+="<TR><TD><LI><A HREF='/global/link.asp?L="+reglinkno+"&amp;function=manageprofile&amp;mode=create"+"&amp;referrer="+escape(currenturl)+"'>"+acctmsg+"</A></LI><LI><A HREF='/global/link.asp?L="+reglinkno+"&amp;function=manageprofile&amp;mode=login"+"&amp;referrer="+escape(currenturl)+"'>"+loginmsg+"</A></LI></TD></TR>";}}else{if(membercenterloc==1||membercenterloc==2){memcenter+="<TR><TD>&nbsp;<B>Welcome, "+profile+"!</B>&nbsp;<A HREF='/global/link.asp?L="+reglinkno+"&amp;function=manageprofile"+"&amp;referrer="+escape(currenturl)+"'>"+acctmsg+"</A>&nbsp;|&nbsp;<A HREF='/global/pm/registration.asp?function=logout"+"&amp;referrer="+escape(currenturl)+"'>"+loginmsg+"</A></TD></TR>";}else{memcenter+="<TR><TD><B>Welcome, "+profile+"!</B></TD></TR>";memcenter+="<TR><TD><LI><A HREF='/global/link.asp?L="+reglinkno+"&amp;function=manageprofile"+"&amp;referrer="+escape(currenturl)+"'>"+acctmsg+"</A></LI><LI><A HREF='/global/pm/registration.asp?function=logout"+"&amp;referrer="+escape(currenturl)+"'>"+loginmsg+"</A></LI></TD></TR>";}}memcenter+="</TABLE>";if(g_ContID!=reglinkno){document.write(memcenter);}else{memcenterdiv=document.getElementById("membercenter");if(memcenterdiv!=null){memcenterdiv.innerHTML=memcenter;}}}}function wnMaxHeight(idName,heightVal){var element=document.getElementById(idName);if(element&&element.offsetHeight>heightVal){element.style.height=heightVal+'px';}}var WNG_OBJTYPE_EMBED='WNEmbed';if(typeof(WNEmbedHandler)=='undefined'){WNEmbedHandler=new Object();WNEmbedHandler.embed=function(props){var embedObj=new WNEmbedObject(props);embedObj.write();}}function WNEmbedObject(props){this.objParams=new Object();this.objAttrs=new Object();this.embedAttrs=new Object();if(props){props=this.setAutoProperties(props);this.distributeProperties(props);}}WNEmbedObject.prototype.objectType=WNG_OBJTYPE_EMBED;WNEmbedObject.prototype.distributeProperties=function(props){if(typeof props=="object"){var propValue;for(var propName in props){propValue=props[propName];switch(propName){case 'file':this.objAttrs.data=propValue;this.embedAttrs.src=propValue;break;case 'type':case 'width':case 'height':this.objAttrs[propName]=propValue;this.embedAttrs[propName]=propValue;break;case 'codebase':case 'classid':case 'id':case 'class':case 'style':this.objAttrs[propName]=propValue;break;case 'name':case 'pluginspage':this.embedAttrs[propName]=propValue;break;case 'fileParamName':this.objParams[propValue]=props.file;break;default:this.objParams[propName]=propValue;this.embedAttrs[propName]=propValue;}}}};WNEmbedObject.prototype.setAutoProperties=function(props){if(props&&props.file){var autoProps=new Object();var fileName=props.file.toLowerCase();var extensionStart=fileName.lastIndexOf('.');var extension;if(extensionStart!=-1){extension=fileName.substr(extensionStart+1,fileName.length);if(extension.match('swf')){autoProps.type='application/x-shockwave-flash';autoProps.allowscriptaccess='samedomain';autoProps.wmode='transparent';autoProps.classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000';autoProps.codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab';autoProps.fileParamName='movie';autoProps.pluginspage='http://www.adobe.com/go/getflashplayer';}else if(extension.match('wm')){autoProps.type='video/x-ms-wm';autoProps.windowlessvideo='true';autoProps.classid='clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6';autoProps.fileParamName='url';autoProps.pluginspage='http://www.microsoft.com/windows/windowsmedia/player/download/';}else if(extension.match('asx')||extension.match('asf')){autoProps.type='video/x-ms-asf';autoProps.windowlessvideo='true';autoProps.classid='clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6';autoProps.fileParamName='url';autoProps.pluginspage='http://www.microsoft.com/windows/windowsmedia/player/download/';}else if(extension.match('qtif')){autoProps.type='image/x-quicktime';autoProps.classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B';autoProps.codebase='http://www.apple.com/qtactivex/qtplugin.cab';autoProps.fileParamName='src';autoProps.pluginspage='http://www.apple.com/quicktime/download/';}else if(extension.match('avi')||extension.match('mov')||extension.match('qt')){autoProps.type='video/quicktime';autoProps.classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B';autoProps.codebase='http://www.apple.com/qtactivex/qtplugin.cab';autoProps.fileParamName='src';autoProps.pluginspage='http://www.apple.com/quicktime/download/';}else if(extension.match('mp3')){autoProps.type='audio/mpeg';autoProps.classid='clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6';autoProps.fileParamName='url';autoProps.pluginspage='http://www.apple.com/quicktime/download/';}else if(extension.match('mp')){autoProps.type='video/mpeg';autoProps.classid='clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6';autoProps.fileParamName='url';autoProps.pluginspage='http://www.apple.com/quicktime/download/';}else if(extension.match('ra')||extension.match('rm')||extension.match('rpm')){autoProps.type='audio/x-pn-realaudio';autoProps.classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA';autoProps.fileParamName='src';autoProps.pluginspage='http://www.real.com/player/';}else if(extension.match('dcr')||extension.match('dir')||extension.match('dxr')){autoProps.type='application/x-director';autoProps.classid='clsid:166B1BCA-3F9C-11CF-8075-444553540000';autoProps.codebase='http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab';autoProps.fileParamName='src';autoProps.pluginspage='http://www.adobe.com/shockwave/download/';}else if(extension.match('wav')){autoProps.type='audio/wav';autoProps.classid='clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6';autoProps.fileParamName='url';autoProps.pluginspage='http://www.apple.com/quicktime/download/';}}for(var autoPropName in autoProps){if(!props[autoPropName]){props[autoPropName]=autoProps[autoPropName];}}}return props;};WNEmbedObject.prototype.write=function(){var objectAttributes=this.objAttrs;var objectParameters=this.objParams;var embedAttributes=this.embedAttrs;var htmlString='<object';for(var i in objectAttributes){htmlString+=" "+i+'="'+objectAttributes[i]+'"';}htmlString+='>';for(var i in objectParameters){htmlString+='<param name="'+i+'" value="'+objectParameters[i]+'">';}htmlString+='<embed';for(var i in embedAttributes){htmlString+=" "+i+'="'+embedAttributes[i]+'"';}htmlString+='></embed></object>';document.write(htmlString);};function validateSearchTerm(theForm,minChars){var plural='';if(minChars>1){plural='s';}if(theForm.qu.value.length<minChars){alert("You must enter a search term with at least "+minChars+" character"+plural+"!");return false;}}
