// JavaScript Document // START : GUIDE var pageNumber = 1; var numberOfItems = new Array(); var $j = jQuery.noConflict(); $j(document).ready(function(){ // STOP : GUIDE // START : TABS $j("#tab_page_1").click(function(){ $j("#tabs_slide").animate( { left:"0px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_1").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '1/'; pageNumber = 1; unloadMapping(); }); $j("#tab_page_2").click(function(){ $j("#tabs_slide").animate( { left:"-820px"}, 600 ); $j("#mag_left li a").removeClass("over"); //$j("#tab_page_1").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '2/'; pageNumber = 2; unloadMapping(); }); $j("#tab_page_3").click(function(){ $j("#tabs_slide").animate( { left:"-1640px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_3").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '3/'; pageNumber = 3; unloadMapping(); }); $j("#tab_page_4").click(function(){ $j("#tabs_slide").animate( { left:"-2460px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_3").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '4/'; pageNumber = 4; unloadMapping(); /* Give the path of the video according to the path of the SWF player */ window.setTimeout("insertVideo('../_mode_et_beaute/video/sept_maurizio_galante.flv','top:294px;left:185px;width:385px;height:226px;')",600); }); $j("#tab_page_5").click(function(){ $j("#tabs_slide").animate( { left:"-3280px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_3").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '5/'; pageNumber = 5; unloadMapping(); }); $j("#tab_page_6").click(function(){ $j("#tabs_slide").animate( { left:"-4100px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_3").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '6/'; pageNumber = 6; unloadMapping(); /* Give the path of the video according to the path of the SWF player */ window.setTimeout("insertVideo('../_mode_et_beaute/video/sept_haute_couture.flv','top:294px;left:185px;width:385px;height:226px;')",600); }); $j("#tab_page_7").click(function(){ $j("#tabs_slide").animate( { left:"-4920px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_3").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '7/'; pageNumber = 7; unloadMapping(); }); $j("#tab_page_8").click(function(){ $j("#tabs_slide").animate( { left:"-5740px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_8").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '8/'; pageNumber = 8; unloadMapping(); }); $j("#tab_page_9").click(function(){ $j("#tabs_slide").animate( { left:"-6560px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_8").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '9/'; pageNumber = 9; unloadMapping(); /* Give the path of the video according to the path of the SWF player */ window.setTimeout("insertVideo('../_mode_et_beaute/video/sept_defile_dior.flv','top:294px;left:185px;width:385px;height:226px;')",600); }); $j("#tab_page_10").click(function(){ $j("#tabs_slide").animate( { left:"-7380px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_8").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '10/'; pageNumber = 10; unloadMapping(); }); $j("#tab_page_11").click(function(){ $j("#tabs_slide").animate( { left:"-8200px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_8").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '11/'; pageNumber = 11; unloadMapping(); }); $j("#tab_page_12").click(function(){ $j("#tabs_slide").animate( { left:"-9020px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_12").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '12/'; pageNumber = 12; unloadMapping(); }); $j("#tab_page_13").click(function(){ $j("#tabs_slide").animate( { left:"-9840px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_12").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '13/'; pageNumber = 13; unloadMapping(); /* Give the path of the video according to the path of the SWF player */ window.setTimeout("insertVideo('../_mode_et_beaute/video/sept_eva_mendes.flv','top:294px;left:185px;width:385px;height:226px;')",600); }); $j("#tab_page_14").click(function(){ $j("#tabs_slide").animate( { left:"-10660px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_14").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '14/'; pageNumber = 14; unloadMapping(); }); $j("#tab_page_15").click(function(){ $j("#tabs_slide").animate( { left:"-11480px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_14").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '15/'; pageNumber = 15; unloadMapping(); /* Give the path of the video according to the path of the SWF player */ window.setTimeout("insertVideo('../_mode_et_beaute/video/sept_tendance_mode_orange.flv','top:294px;left:185px;width:385px;height:226px;')",600); }); $j("#tab_page_16").click(function(){ $j("#tabs_slide").animate( { left:"-12300px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_14").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '16/'; pageNumber = 16; unloadMapping(); /* Give the path of the video according to the path of the SWF player */ window.setTimeout("insertVideo('../_mode_et_beaute/video/sept_tendance_mode_ecossais.flv','top:294px;left:185px;width:385px;height:226px;')",600); }); $j("#tab_page_17").click(function(){ $j("#tabs_slide").animate( { left:"-13120px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_14").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '17/'; pageNumber = 17; unloadMapping(); }); $j("#tab_page_18").click(function(){ $j("#tabs_slide").animate( { left:"-13940px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_14").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '18/'; pageNumber = 18; unloadMapping(); }); $j("#tab_page_19").click(function(){ $j("#tabs_slide").animate( { left:"-14760px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_19").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '19/'; pageNumber = 19; unloadMapping(); }); $j("#tab_page_20").click(function(){ $j("#tabs_slide").animate( { left:"-15580px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_19").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '20/'; pageNumber = 20; unloadMapping(); }); $j("#tab_page_21").click(function(){ $j("#tabs_slide").animate( { left:"-16400px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_19").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '21/'; pageNumber = 21; unloadMapping(); }); $j("#tab_page_22").click(function(){ $j("#tabs_slide").animate( { left:"-17220px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_19").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '22/'; pageNumber = 22; unloadMapping(); /* Place on click to an external url */ gotoUrl('http://www.guerlain.com','top:492px;left:580px;width:120px;height:15px;'); }); $j("#tab_page_23").click(function(){ $j("#tabs_slide").animate( { left:"-18040px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_19").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '23/'; pageNumber = 23; unloadMapping(); /* Place on click to an external url */ gotoUrl('http://www.hermes.com','top:492px;left:185px;width:120px;height:15px;'); }); $j("#tab_page_24").click(function(){ $j("#tabs_slide").animate( { left:"-18860px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_19").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '24/'; pageNumber = 24; unloadMapping(); }); $j("#tab_page_25").click(function(){ $j("#tabs_slide").animate( { left:"-19680px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_19").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '25/'; pageNumber = 25; unloadMapping(); }); $j("#tab_page_26").click(function(){ $j("#tabs_slide").animate( { left:"-20500px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_19").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '26/'; pageNumber = 26; unloadMapping(); }); $j("#tab_page_27").click(function(){ $j("#tabs_slide").animate( { left:"-21320px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_19").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '27/'; pageNumber = 27; unloadMapping(); /* Place on click to an external url */ gotoUrl('http://www.momu.be','top:488px;left:185px;width:96px;height:14px;'); }); $j("#tab_page_28").click(function(){ $j("#tabs_slide").animate( { left:"-22140px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_19").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '28/'; pageNumber = 28; unloadMapping(); /* Place on click to an external url */ gotoUrl('http://www.cartier.fr','top:463px;left:195px;width:110px;height:15px;'); }); $j("#tab_page_29").click(function(){ $j("#tabs_slide").animate( { left:"-22960px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_19").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '29/'; pageNumber = 29; unloadMapping(); }); // --------------------------------------------------------------------------- // Flips back to previous page accoring to global var pageNumber $j("#prevPage").click(function(){ if(pageNumber>1) { pageNumber--; $j("#tab_page_"+pageNumber).click(); } }); // Flips back to previous page accoring to global var pageNumber $j("#nextPage").click(function(){ if(pageNumber<29) { pageNumber++; $j("#tab_page_"+pageNumber).click(); } }); // STOP : TABS });