// JavaScript Document

function MakeArray()
    {
    this.length = MakeArray.arguments.length
    for (var i = 0; i < this.length; i++)
    this[i+1] = MakeArray.arguments[i]
    }
//Stress Defence    
    var stressDefence = new MakeArray("Select Product",
                                "Line Smoothing Complex S8 Double Intensity Night Cream",
                                "Line Smoothing Complex S8 Super Hydrator",
                                "Line Smoothing Complex S8 Eye Recovery Complex",
                                "Line Smoothing Complex S8 Triple-Action Day Defence",
                                "Line Smoothing Complex High Potency Treatment Mask",
                                "Line Smoothing Complex Corrective Line Filler"
                               );

    var stressUrl = new MakeArray("",
				"/products/actual-products/line-smoothing-complex-double-intensity.html",
                                "/products/actual-products/line-smoothing-complex-hydrator.html",
                                "/products/actual-products/line-smoothing-complex-eye-cream.html",
                                "/products/actual-products/line-smoothing-complex-serum.html",
                                "http://www.drlewinns.co.uk/index.php?id=102",
                                "http://www.drlewinns.co.uk/index.php?id=103"
                                
								);
							
 function stressPage(form) {
			i = form.stressMenu.selectedIndex;
			if (i == 0) return;
			window.location.href = stressUrl[i+1];
		}
		

//******************Men**************************//

function menMakeArray()
    {
    this.length = menMakeArray.arguments.length
    for (var i = 0; i < this.length; i++)
    this[i+1] = menMakeArray.arguments[i]
    }
    
    var men = new menMakeArray("Select Product",                               
                                "Men Face Scrub",
                                "Men Shaving Cream",
                                "Men After Shave Fluid",
				"Men Day Moisturiser SPF 15",
				"Men Eye Cream"							
                               );

    var menUrl = new menMakeArray("",
				"/products/actual-products/men-face-scrub.html",
                                "/products/actual-products/men-shaving-cream.html",
                                "/products/actual-products/men-after-shave-fluid.html",
                                "/products/actual-products/men-day-moisturiser-spf-15.html",
                                "/products/actual-products/men-eye-cream.html"								
								);
							
 function menPage(form) {
			i = form.menMenu.selectedIndex;
			if (i == 0) return;
			window.location.href = menUrl[i+1];
		}
