/*
// Description : this function is used for SCMP transaction AppModule
// Remark      :
// Author      : Christine Koo, Connie Chan, Ryan
// Date        : xx/07/2003
//
// Major Functions  : Web util menu bar
//
// 03/02/2004  : Christine Koo modify the menu and add the new items
// 26/10/2004  : Christine Koo add new item to menu bar
// 15/11/2004  : Christine Koo comment out the "about us" and "FAQ" item to menu bar
*/

var NoOffFirstLineMenus=9;               // Number of first level items
var LowBgColor='WHITE';                 // Background color when mouse is not over
var LowSubBgColor='WHITE';              // Background color when mouse is not over on subs
var HighBgColor='WHITE';                // Background color when mouse is over
var HighSubBgColor='WHITE';             // Background color when mouse is over on subs
var FontLowColor='BLACK';                // Font color when mouse is not over
var FontSubLowColor='BLACK';            // Font color subs when mouse is not over
var FontHighColor='#ff9933';              // Font color when mouse is over
var FontSubHighColor='#ff9933';            // Font color subs when mouse is over
var BorderColor=null;                    // Border color
var BorderSubColor="#a9a9a9";                 // Border color for subs
var BorderWidth=1;                       // Border width
var BorderBtwnElmnts=0;                  // Border between elements 1 or 0
var FontFamily="Verdana"                 // Font family menu items
var FontSize=7;                          // 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=.2;                     // horizontal overlap child/ parent
var ChildVerticalOverlap=.2;             // vertical overlap child/ parent
var StartTop=210;                         // Menu offset x coordinate
var StartLeft=130;                         // Menu offset y coordinate
var VerCorrect=0;                        // Multiple frames y correction
var HorCorrect=0;                        // Multiple frames x correction
var LeftPaddng=2;                        // 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=200;                  // delay before menu folds in
var TakeOverBgColor=1;                   // Menu frame takes over background color subitem frame
var FirstLineFrame='navig';              // Frame where first level appears
var SecLineFrame='space';                // Frame where sub levels appear
var DocTargetFrame='space';              // Frame where target documents appear
var TargetLoc='';                        // 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 Arrws=['tri.gif',5,10,'tridown.gif',10,5,'trileft.gif',5,10];      // Arrow source, width and height

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

var domainRoot="/";
var adminDomain = "/";
var curURL = window.location + "";
var gHTTPURL = "http://photo.scmp.com/";
var gHTTPSURL = "https://register.scmp.com/photo/";
//var gHTTPSURL = "https://archive.scmp.com/photo/";


// 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"
Menu1=new Array("rollover:images/nav_home.gif:images/nav_home_over.gif",gHTTPURL+"index.php","",0,15,64);

Menu2=new Array("rollover:images/nav_highlights.gif:images/nav_highlights_over.gif",gHTTPURL+"current.php","",0,15,69);
 //           Menu2_1=new Array("Hong Kong",gHTTPURL+"curr_galleries.php?galleryid=1380&parentgalid=1404","",0,20,175);
 //           Menu2_2=new Array("China",gHTTPURL+"curr_galleries.php?galleryid=1311&parentgalid=1404","",0);
 //           Menu2_3=new Array("Personalities",gHTTPURL+"curr_galleries.php?galleryid=1381&parentgalid=1404","",0);

Menu3=new Array("rollover:images/nav_galleries.gif:images/nav_galleries_over.gif",gHTTPURL+"galsearch.php","",0,15,69);
//            Menu3_1=new Array("Galleries",gHTTPURL+"galsearch.php","",0,20,175);
//            Menu3_2=new Array("Advanced Search",gHTTPURL+"advsearch.php","",0);

Menu4=new Array("rollover:images/nav_registration.gif:images/nav_registration_over.gif",gHTTPURL+"registration.php","",2,15,82);
            Menu4_1=new Array("Commercial/Professional Use",gHTTPSURL+"profregistration.php","",0,20,177);
            Menu4_2=new Array("Personal Use",gHTTPSURL+"genregistration.php","",0);

Menu5=new Array("rollover:images/nav_pricing.gif:images/nav_pricing_over.gif",gHTTPURL+"price_terms.php","",5,15,154);
      			Menu5_1=new Array("Copyright Clearance Service Leaflet",gHTTPSURL+"CopyClearance-eng.pdf","",0,30,175);
      			Menu5_2=new Array("Order Form",gHTTPURL+"eform.php","",0,20,175);
            Menu5_3=new Array("Pricing",gHTTPURL+"pricing.php","",0,20,175);
            Menu5_4=new Array("Terms & Conditions",gHTTPURL+"terms.php","",0,20,175);
            Menu5_5=new Array("Refund & Return Policy",gHTTPURL+"refund.php","",0,25,175);
        //    Menu5_2=new Array("Publishing Purposes",gHTTPURL+"pricing.php#professional","",0);

Menu6=new Array("rollover:images/nav_aboutus.gif:images/nav_aboutus_over.gif",gHTTPURL+"aboutus.php","",0,15,69);

//Menu7=new Array("rollover:images/nav_faq.gif:images/nav_faq_over.gif",gHTTPURL+"faq.php","",0,15,64);

Menu7=new Array("rollover:images/nav_privacypolicy.gif:images/nav_privacypolicy_over.gif",gHTTPURL+"privacypolicy.php","",0,15,82);

Menu8=new Array("rollover:images/nav_sitemap.gif:images/nav_sitemap_over.gif",gHTTPURL+"sitemap.php","",0,15,75);

Menu9=new Array("rollover:images/nav_contactus.gif:images/nav_contactus_over.gif",gHTTPURL+"contactus.php","",0,15,69);

