/***********************************************************************************
* (c) Ger Versluis 2000 version 5.411 24 December 2001 (updated Jan 31st, 2003 by Dynamic Drive for Opera7)
* For info write to menus@burmees.nl              *
* You may remove all comments for faster loading            *   
***********************************************************************************/
function PopUp(ref,wt,ht)
{ 
  var strFeatures="toolbar=no,status=no,menubar=no,location=no"
  //strFeatures=strFeatures+",scrollbars=yes,resizable=yes,height=320,width=500"
  strFeatures=strFeatures+",scrollbars=yes,resizable=no"
  if (wt!=null && ht!=null)
  {
    strFeatures=strFeatures+",height="+ht+",width="+wt
  }
  
  //newWin = window.open(ref,"TellObj",strFeatures);
  //newWin = window.open(ref,"_blank",strFeatures);
  newWin = window.open(ref,"_blank","");

    newWin.opener = top;
}

function PopUp1(ref,wt,ht)
{ 
  var strFeatures="toolbar=no,status=no,menubar=no,location=no"
  //strFeatures=strFeatures+",scrollbars=yes,resizable=yes,height=320,width=500"
  strFeatures=strFeatures+",scrollbars=yes,resizable=no"
  if (wt!=null && ht!=null)
  {
    strFeatures=strFeatures+",height="+ht+",width="+wt
  }
  
  newWin = window.open(ref,"TellObj",strFeatures);
  //newWin = window.open(ref,"_blank",strFeatures);
  //newWin = window.open(ref,"_blank","");

    newWin.opener = top;
}

function getHostName() {
  var strReturn = window.location.hostname;
  var strPort = window.location.port;
  if(strPort.length > 0) strPort = ":"+strPort;


  if (strReturn=='apache.wizwerx.com')
  {
    return('http://apache.wizwerx.com'+strPort+'/icipaints');
  }
 
  if (strReturn.indexOf('icipaints.com') > 0)
  {
    return('http://'+strReturn);
  }
  if (strReturn.indexOf('') > 0)
  {
    return('');
  }
  return("http://" + strReturn);
}

  var HostName = getHostName();

  // var NoOffFirstLineMenus=5;      // Number of first level items
  var LowBgColor='';     // Background color when mouse is not over
  var LowSubBgColor='#ffffff';      // Background color when mouse is not over on subs
  var HighBgColor='';      // Background color when mouse is over
  var HighSubBgColor='#EBEAE6';     // Background color when mouse is over on subs
  var FontLowColor='#48222F';     // Font color when mouse is not over
  var FontSubLowColor='#000000';      // Font color subs when mouse is not over
  var FontHighColor='#780000';      // Font color when mouse is over
  var FontSubHighColor='#3C3C89';     // Font color subs when mouse is over
  
  var BorderColor='#FF0000';      // Border color
  
  var BorderSubColor='#C5C5C3';     // Border sub color for subs
  var BorderWidth=0;        // Border sub width
  var BorderBtwnElmnts=1;     // Border sub between elements 1 or 0
  
  
  var FontFamily="arial,comic sans ms,technical"  // Font family menu items
  var FontSize=9;       // Font size menu items
  var FontBold=0;       // Bold menu items 1 or 0
  var FontItalic=0;       // Italic menu items 1 or 0
  var MenuTextCentered='left';      // Item text position 'left', 'center' or 'right'
  var MenuCentered='left';      // Menu horizontal position 'left', 'center' or 'right'
  var MenuVerticalCentered='top';   // Menu vertical position 'top', 'middle','bottom' or static
  var ChildOverlap=.19;        // horizontal overlap child/ parent
  var ChildVerticalOverlap=0;      // vertical overlap child/ parent
  var StartTop=-1;       // Menu offset x coordinate
  var StartLeft=0;        // Menu offset y coordinate
  var VerCorrect=0;       // Multiple frames y correction
  var HorCorrect=0;       // Multiple frames x correction
  var LeftPaddng=10;       // Left padding
  var TopPaddng=2;        // Top padding
  var FirstLineHorizontal=1;      // SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL
  var MenuFramesVertical=1;     // Frames in cols or rows 1 or 0
  var DissapearDelay=800;      // delay before menu folds in
  var TakeOverBgColor=1;      // Menu frame takes over background color subitem frame
  var FirstLineFrame='';     // Frame where first level appears
  var SecLineFrame='';     // Frame where sub levels appear
  var DocTargetFrame='';     // Frame where target documents appear
  var TargetLoc='MenuPos';        // span id for relative positioning
  var HideTop=0;        // Hide first level when loading new document 1 or 0
  var MenuWrap=1;       // enables/ disables menu wrap 1 or 0
  var RightToLeft=0;        // enables/ disables right to left unfold 1 or 0
  var UnfoldsOnClick=0;     // Level 1 unfolds onclick/ onmouseover
  var WebMasterCheck=0;     // menu tree checking on or off 1 or 0
  var ShowArrow=0;        // Uses arrow gifs when 1
  var KeepHilite=1;       // Keep selected path highligthed
  var tt_inputs = new Array();

function BeforeStart(){return}
function AfterBuild(){return}
function BeforeFirstOpen(){return}
function AfterCloseAll(){return}

// alert('TargetLoc: ' + TargetLoc);

// Menu tree
//  MenuX=new Array(Text to show, Link, background image (optional), number of sub elements, height, width);
//  For rollover images set "Text to show" to:  "rollover:Image1.jpg:Image2.jpg"

  // Menu tree
  //  MenuX=new Array(Text to show, Link, background image (optional), number of sub elements, height, width);
  //  For rollover images set "Text to show" to:  "rollover:Image1.jpg:Image2.jpg"
  
 
  var NoOffFirstLineMenus=4;     // Number of first level items

  Menu1=new Array("rollover;../img/dropdownmenu/catalogs.gif;../img/dropdownmenu/catalogs_over.gif","../colorcatalogs/colourfamilies.jsp","",6,21,129,'#FF00FF','#FF00FF','#FF00FF','#FF00FF','#FF00FF');
    Menu1_1=new Array("All-Time Favourites","" + HostName + "/colorcatalogs/alltimefavourites.jsp","",0,21,150);
    Menu1_2=new Array("2010 Lifestyle Theme","" + HostName + "/colorcatalogs/lifestylethemes2010.jsp","",0,21,150,'#FF00FF','#FF00FF','#FF00FF','#FF00FF','#FF00FF');
    Menu1_3=new Array("2009 Lifestyle Theme","" + HostName + "/colorcatalogs/lifestylethemes2009.jsp","",0,21,150,'#FF00FF','#FF00FF','#FF00FF','#FF00FF','#FF00FF');
    Menu1_4=new Array("2008 Lifestyle Theme","" + HostName + "/colorcatalogs/lifestylethemes2008.jsp","",0,21,150,'#FF00FF','#FF00FF','#FF00FF','#FF00FF','#FF00FF');
    Menu1_5=new Array("Colour Families","" + HostName + "/colorcatalogs/colourfamilies.jsp","",0,21,150);
    Menu1_6=new Array("Colour Inspirations","" + HostName + "/colorcatalogs/colourinspirations.jsp","",0,21,150);
    

  Menu2=new Array("rollover;../img/dropdownmenu/counselor.gif;../img/dropdownmenu/counselor_over.gif","" + HostName + "/paintconsult/paintorganiser.jsp","",5,21,178);
    Menu2_1=new Array("My Paint Organiser","" + HostName + "/paintconsult/paintorganiser.jsp","",0,21,150);
    Menu2_2=new Array("Mouse Painter","javascript:PopUp('"+HostName+"/painterintro/painter.html');","",0,21,150);
    Menu2_3=new Array("Paint Calculator","javascript:PopUp1('"+HostName+"/paintcalculator/paintcalculator.jsp',600,800);","",0,21,150);
    Menu2_4=new Array("Colour Chemistry Test","" + HostName + "/paintconsult/colorchemist.jsp","",0,21,150);
    Menu2_5=new Array("Painting Tips","" + HostName + "/paintconsult/paintingtips.jsp","",0,21,150);
  
  Menu3=new Array("rollover;../img/dropdownmenu/products.gif;../img/dropdownmenu/products_over.gif","../products/surfaces.jsp","",4,21,177);
    Menu3_1=new Array("Paint for Interior Surfaces","" + HostName + "/products/interior.jsp","",0,21,200);
    Menu3_2=new Array("Paint for Exterior Surfaces","" + HostName + "/products/exterior.jsp","",0,21,200);
    Menu3_3=new Array("Online Paint Store","" + HostName + "/products/onlinepaintstore.jsp","",0,21,200);
    Menu3_4=new Array("Sustainable Solutions","#","",2,21,200);
      Menu3_4_1=new Array("All Green","" + HostName + "/eventsnpromos/allgreen.jsp","",0,21,200);
      Menu3_4_2=new Array("Low Odour","" + HostName + "/eventsnpromos/lowodour.jsp","",0,21,200);
    

   Menu4=new Array("rollover;../img/dropdownmenu/events.gif;../img/dropdownmenu/events_over.gif","../eventsnpromos/allgreen.jsp","",5,21,196);
    Menu4_1=new Array("Dulux Preferred Designers","" + HostName + "/idpainters/listidpainters.jsp","",0,21,185);
    Menu4_2=new Array("2009 iNSiDE Preferred Designers Collection", "/eventsnpromos/inside2009.jsp","",0,39,185);
  //Menu4_3=new Array("Preferred Designers Lucky Draw","" + HostName + "/eventsnpromos/luckydraw.jsp","",0,35,185);
    Menu4_3=new Array("2010 Lucky Horoscopes Colours by Way OnNet Group","" + HostName + "/eventsnpromos/wayonnet.jsp","",0,39,185);  
    Menu4_4=new Array("Painting Packages and Colour Consultation","" + HostName + "/eventsnpromos/paintingpackages.jsp","",0,39,185);
  //Menu4_6=new Array("Colour Consultation","" + HostName + "/eventsnpromos/colourconsultancy.jsp","",0,21,185);
  //Menu4_6=new Array("Chinese New Year Promotion","" + HostName + "/eventsnpromos/cnypromo.jsp","",0,21,185);
  //Menu4_7=new Array("Colour Futures Event","" + HostName + "/eventsnpromos/colorfuturesevent.jsp","",0,21,185);
  //Menu4_7=new Array("Colour Awards 2007","" + HostName + "/homedecor/homedecor.jsp","",0,21,185);
    Menu4_5=new Array("Homeowners Testimonials","" + HostName + "/eventsnpromos/testimonials.jsp","",0,21,185);

    
