

function LoadBanner(){

	//////////////////////////////////////////////
	// set the category here

	category = "CAT02";
	
	/////////////////////////////////////////////
	
	banner = 1 + (Math.floor(Math.random()*5));
	placeholder = "";
	if ( banner < 10 ) {
		placeholder = "0";
	}
	finalurl = category + "ADV" + placeholder + banner;
	
	displayban.src = "../../ads/" + category + "/" + finalurl + ".gif";
	document ["displayban"].src = displayban.src;
	setTimeout ('LoadBanner() ',6000);
}

function OpenAd(){

	window.open("http://www.outsmartmagazine.com/cgi-local/jumpto.cgi?" + finalurl,"advertisement","width=400,height=400,toolbar=yes,scrollbars=yes,resizable=yes,location=yes,status=yes,menubar=yes")
}



version = "ramotalaets";

displayban = new Image();



browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

        if (browserName == "Netscape" && browserVer >= 3) version = "n3";
            if (browserName == "Microsoft Internet Explorer" && browserVer >= 3) version = "n3";
        if (version == "n3")
        {

                menu1on = new Image();
                menu1on.src = "../../shimages/i1r.gif";
                menu1off = new Image();
                menu1off.src = "../../shimages/i1.gif";

                menu2on = new Image();
                menu2on.src = "../../shimages/i2r.gif";
                menu2off = new Image();
                menu2off.src = "../../shimages/i2.gif";

                menu3on = new Image();
                menu3on.src = "../../shimages/i3r.gif";
                menu3off = new Image();
                menu3off.src = "../../shimages/i3.gif";

                menu4on = new Image();
                menu4on.src = "../../shimages/i4r.gif";
                menu4off = new Image();
                menu4off.src = "../../shimages/i4.gif";
                
                menu5on = new Image();
                menu5on.src = "../../shimages/i5r.gif";
                menu5off = new Image();
                menu5off.src = "../../shimages/i5.gif";
                
                menu6on = new Image();
                menu6on.src = "../../shimages/i6r.gif";
                menu6off = new Image();
                menu6off.src = "../../shimages/i6.gif";
                
                menu7on = new Image();
                menu7on.src = "../../shimages/i7r.gif";
                menu7off = new Image();
                menu7off.src = "../../shimages/i7.gif";
                
                menu8on = new Image();
                menu8on.src = "../../shimages/i8r.gif";
                menu8off = new Image();
                menu8off.src = "../../shimages/i8.gif";
                
            
                //changout photo
                
                menuchoff = new Image();
                menuchoff.src = "../../shimages/changeout.gif";
                
                menu1chon = new Image();
                menu1chon.src = "../../shimages/changeout1.gif";
                
                menu2chon = new Image();
                menu2chon.src = "../../shimages/changeout2.gif";
                
                menu3chon = new Image();
                menu3chon.src = "../../shimages/changeout3.gif";
                
                menu4chon = new Image();
                menu4chon.src = "../../shimages/changeout4.gif";
                
                menu5chon = new Image();
                menu5chon.src = "../../shimages/changeout5.gif";
                
                menu6chon = new Image();
                menu6chon.src = "../../shimages/changeout6.gif";
                
                menu7chon = new Image();
                menu7chon.src = "../../shimages/changeout7.gif";
                
                menu8chon = new Image();
                menu8chon.src = "../../shimages/changeout8.gif";
                
                
                
               

        }



function img_act(imgName)
        {
        if (version == "n3")
                {
                        //regular rollovers
                        imgOn = eval(imgName + "on.src");
                        document [imgName].src = imgOn;
                        //changeout photo
                        chimgOn = eval(imgName + "chon.src");
                        chimgName = "changeout";
                        document [chimgName].src = chimgOn;
                }
        }


function img_inact(imgName)
        { 
        if (version == "n3")
                {
                        //regular rollovers
                        imgOff = eval(imgName + "off.src");
                        document [imgName].src = imgOff;
                        //changeout photo
                        chimgName = "changeout";
                        document [chimgName].src = menuchoff.src;
                        
                }
        }
        
       function hideme(whichone) {
       	for (whichonecount=1;whichonecount<=8;whichonecount++) {
   			obj=document.getElementById('droptable'+whichonecount);
   			obj.style.display='none';
   			//obj2=document.getElementById('tdcell'+whichonecount);
   			//obj2.style.color='#FFFFCC';
   			}
}

function showme(whichone) {
   menuitem =document.getElementById('locator'+whichone);   			
   obj=document.getElementById('droptable'+whichone);
   obj.style.top = getpos('Top',menuitem)+5;
   obj.style.left = getpos('Left',menuitem);
   obj.style.display="inline";
   }
   
   
   			
   		function getpos(posrequest,whichobj) {
   			var theposition = 0;
   			if (posrequest == 'Left') { justobj = whichobj.y; }
   			else { justobj = whichobj.x; }
			if (whichobj.offsetParent) {
				while (whichobj.offsetParent) {
					eval('theposition += whichobj.offset'+posrequest);
					whichobj = whichobj.offsetParent;
					}
				}
			else if (justobj) { theposition += justobj; }
			return theposition;
   			}


        
