var nStyle=new Array;var hStyle=new Array;var nLayer=new Array;var hLayer=new Array;var NSLayerCW=0;var NSLayerCH=0;var LastNSCmd;var cLayer=''; var l=ll='';var t=lt='';var w=lw='';var h=lh='';var ParentMenu='';var LastMenu='';var AnimStep=0;var as=0;var DoFormsTweak=true; var fx=3; var BrowserVersion=parseInt(navigator.appVersion);var IsMac=(navigator.userAgent.indexOf("Mac")!=-1)?true:false;var Opera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;NS=(document.layers && (BrowserVersion=4) && !IsMac)?true:false;NS6=(document.layers && (BrowserVersion>=6) && !IsMac)?true:false;IE=((document.all && (BrowserVersion>=4) && !IsMac) || NS6)?true:false; nStyle[0]="border: none; font-family: Tahoma; font-size: 9pt; font-weight: none; font-style: none; color: #000000; cursor: hand";hStyle[0]="border: none; font-family: Tahoma; font-size: 9pt; font-weight: none; font-style: none; color: #FFFFFF; background-color: #0000FF; cursor: hand;";nStyle[1]=nStyle[0];hStyle[1]=hStyle[0];nStyle[2]=nStyle[0];hStyle[2]=hStyle[0];nStyle[3]=nStyle[0];hStyle[3]=hStyle[0];nStyle[4]=nStyle[0];hStyle[4]=hStyle[0];nStyle[5]=nStyle[0];hStyle[5]=hStyle[0];nStyle[6]=nStyle[0];hStyle[6]=hStyle[0];nStyle[7]=nStyle[0];hStyle[7]=hStyle[0];nStyle[8]=nStyle[0];hStyle[8]=hStyle[0];nStyle[9]=nStyle[0];hStyle[9]=hStyle[0];nStyle[10]=nStyle[0];hStyle[10]=hStyle[0];nStyle[11]=nStyle[0];hStyle[11]=hStyle[0];nStyle[12]=nStyle[0];hStyle[12]=hStyle[0];nStyle[13]=nStyle[0];hStyle[13]=hStyle[0];nStyle[14]=nStyle[0];hStyle[14]=hStyle[0];nStyle[15]=nStyle[0];hStyle[15]=hStyle[0];nStyle[16]=nStyle[0];hStyle[16]=hStyle[0];nStyle[17]=nStyle[0];hStyle[17]=hStyle[0];nStyle[18]=nStyle[0];hStyle[18]=hStyle[0];nStyle[19]=nStyle[0];hStyle[19]=hStyle[0];nStyle[20]=nStyle[0];hStyle[20]=hStyle[0];nStyle[21]=nStyle[0];hStyle[21]=hStyle[0];nStyle[22]=nStyle[0];hStyle[22]=hStyle[0];nStyle[23]=nStyle[0];hStyle[23]=hStyle[0]; function HoverSel(mode, imgName) { var mc=event.srcElement;while(mc.id == "") mc=mc.parentElement;var img=new Image;var imgRsc=new Image; with(mc) { if(mode) { style.cssText=nStyle[id];if(imgName!=''){imgRsc=eval(imgName+"Off");}} else { style.cssText=hStyle[id];if(imgName!=''){imgRsc=eval(imgName+"On");}}}if(imgName!='') { img=eval("document.images."+imgName);img.src=imgRsc.src;}} function NSHoverSel(dLayer, mode, n, bcolor, w, h) { cNSCmd=dLayer; if(dLayer.parentLayer.name!=LastMenu && (LastNSCmd!=cNSCmd)) Hide(LastMenu); if(mode) var LayerHTM=nLayer[n];else var LayerHTM=hLayer[n]; if(LastNSCmd!=cNSCmd || mode) { cNSCmd.document.open();cNSCmd.document.write(LayerHTM);cNSCmd.document.close();if(!mode) cNSCmd.bgColor=bcolor;else if(dLayer.parentLayer.background.src!="") cNSCmd.bgColor=null;else cNSCmd.bgColor=bcolor;cNSCmd.resizeTo(w,h);} if(LastNSCmd!=cNSCmd) LastNSCmd=cNSCmd;} function Hide(menuId) { if(menuId != ParentMenu && menuId != '') { if(IE) var Menu=document.all(menuId).style; if(NS) var Menu=document.layers[menuId]; with(Menu) { visibility="hidden";left=0;top=0;}if(ParentMenu!='') { LastMenu=ParentMenu='';l=ll; ll='';t=lt; lt='';w=lw; lw='';h=lh; lh='';}}} function HideAll() { if(!as) { Hide('Code_Articles');Hide('Newest_and_Best');Hide('Community');Hide('Other');Hide('Goto');Hide('Jobs');} } function ShowMenu(menuId, x, y, isCascading, pMenu) { if(as) { window.clearTimeout(as);as=0;}if(isCascading) { Hide(LastMenu);LastMenu=menuId;ParentMenu=pMenu;ll=l;lt=t;lw=w;lh=h;} else { ParentMenu='';LastMenu='';HideAll();}if(IE) { var Menu=document.all(menuId).style;if(typeof(pMenu)!="undefined") var subMenu=document.all(pMenu).style;with(Menu) { left=x;top= y;l=left;t=top;w=width;h=height;if(!IsMac) clip="rect(0 0 0 0)";}}if(NS) { var Menu=document.layers[menuId];var subMenu=document.layers[pMenu];with(Menu.clip) { NSLayerCW=width;NSLayerCH=height;}if(isCascading) { x=subMenu.left+subMenu.clip.width;y=subMenu.top+LastNSCmd.top;} else { x=parseInt(x);y=parseInt(y);}Menu.moveToAbsolute(x,y);}Menu.visibility="visible";if(isCascading) { Menu.zIndex=(subMenu.zIndex*1)+1;}if(IE && !IsMac) { var fcn="Animate('"+menuId+"')"; as=window.setTimeout(fcn, 10);}FormsTweak("hidden");} function Animate(menuId) { var fcn="Animate('"+menuId+"')";var r='';var nw=nh=0;switch(fx) { case 1: if(IE) {r="0 "+AnimStep+"% "+AnimStep+"% 0";}if(NS) {nw=AnimStep; nh=AnimStep;}break;case 2: if(IE) {r="0 100% "+AnimStep+"% 0";}if(NS) {nw=100; nh=AnimStep;}break;case 3: if(IE) {r="0 "+AnimStep+"% 100% 0";}if(NS) {nw=AnimStep; nh=100;}break;case 0: if(IE) {r="0 100% 100% 0";}if(NS) {nw=100; nh=100;}break;}if(IE) {document.all(menuId).style.clip= "rect("+r+")";}if(NS) { with(document.layers[menuId].clip) { width=NSLayerCW*(nw/100);height=NSLayerCH*(nh/100);}}AnimStep += 20;if(AnimStep<=100) as=window.setTimeout(fcn,25);else { window.clearTimeout(as);as=0;AnimStep=0;}} function chkLayer(e) { var OverLayer=FindLayer(e.pageX, e.pageY);if(OverLayer!=null) cLayer=OverLayer.name;} function FindLayer(x, y) { for (var i=0; idocument.layers[i].left+document.layers[i].clip.left) && (x<((document.layers[i].left+document.layers[i].clip.left)+document.layers[i].clip.width)) && (y>document.layers[i].top+document.layers[i].clip.top) && (y<((document.layers[i].top+document.layers[i].clip.top)+ document.layers[i].clip.height)) ) { return (document.layers[i]);}return (null);} function HideMenus(force) { if((event.srcElement.tagName=="IMG") || ((event.srcElement.tagName=="TD") && (event.srcElement.id!=""))) return true;if(!force) { var x1=parseInt(l);var y1=parseInt(t);var x2=parseInt(w)+x1;var y2=parseInt(h)+y1;var cx=event.clientX+document.body.scrollLeft;var cy=event.clientY+document.body.scrollTop;if(cx<=x1 || cy<=y1 || cx>=x2 || cy>=y2) { if(ParentMenu!='') { if(!as) { Hide(LastMenu);HideMenus(false);}} else { HideAll();}if(!as) FormsTweak("");}} else { HideAll();}} function GetLeftPos(menuId) { var x='';if(IE) { with(document.all(menuId).style) { x=left;return x.substr(0,x.indexOf('px'))*1;}}if(NS) { with(document.layers[menuId]) { return left;}}} function FormsTweak(str) { if(DoFormsTweak) for(var i=0; i <= (document.forms.length-1); i++) document.forms[i].style.visibility=str;} function execURL(url) { window.setTimeout("execURL2('"+url+"')", 100);} function execURL2(url) { var tmp;tmp=url.split("\x1E");url=tmp.join("'");tmp=url.split("\x1D");url=tmp.join("\x22");tmp=url.split("\x1C");url=tmp.join(",");if(url.indexOf("javascript")!=url.indexOf("vbscript")) eval(url);else location.href=url;} if(IE) { document.open();document.write("
Categories
Advanced Search

Articles & Tutorials

Recommended Reading

Upload
Newest Code/Tutorials
Newest Product Reviews
Code of the Month
Code of the Day
All Time Hall of Fame
Coding Contest
Ask A Pro Discussion Forum
Live Chat
Feedback
Customize My Info

How To Link To Us

Awards/Reviews/Raves!
Advertising/Media Kit
About the Site
World Home
Site Home
Other Sites
Search for a Job
Post a Job
");document.close();} if(NS) { window.captureEvents(Event.MOUSEMOVE);onmousemove=chkLayer;}document.onmouseover=HideMenus;