// 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/ona_selfa.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_5").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_5").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/celine.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_5").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '7/'; pageNumber = 7; unloadMapping(); /* Give the path of the video according to the path of the SWF player */ window.setTimeout("insertVideo('../_mode_et_beaute/video/Moncler.flv','top:294px;left:185px;width:385px;height:226px;')",600); }); $j("#tab_page_8").click(function(){ $j("#tabs_slide").animate( { left:"-5740px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_5").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_9").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '9/'; pageNumber = 9; unloadMapping(); }); $j("#tab_page_10").click(function(){ $j("#tabs_slide").animate( { left:"-7380px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_10").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '10/'; pageNumber = 10; unloadMapping(); /* Place on click to an external url */ gotoUrl('http://www.photoslimited.com/default.asp?langue=fr&id_act=103&ths=phot','top:90px;left:145px;width:800px;height:450px;'); }); $j("#tab_page_11").click(function(){ $j("#tabs_slide").animate( { left:"-8200px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_10").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '11/'; pageNumber = 11; unloadMapping(); /* Give the path of the video according to the path of the SWF player */ window.setTimeout("insertVideo('../_mode_et_beaute/video/velours.flv','top:294px;left:185px;width:385px;height:226px;')",600); }); $j("#tab_page_12").click(function(){ $j("#tabs_slide").animate( { left:"-9020px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_10").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_10").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '13/'; pageNumber = 13; unloadMapping(); }); $j("#tab_page_14").click(function(){ $j("#tabs_slide").animate( { left:"-10660px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_10").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '14/'; pageNumber = 14; unloadMapping(); /* Place on click to an external url */ gotoUrl('http://www.photoslimited.com/default.asp?langue=fr&id_act=103&ths=phot','top:90px;left:145px;width:800px;height:450px;'); }); $j("#tab_page_15").click(function(){ $j("#tabs_slide").animate( { left:"-11480px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_10").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '15/'; pageNumber = 15; unloadMapping(); }); $j("#tab_page_16").click(function(){ $j("#tabs_slide").animate( { left:"-12300px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_16").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '16/'; pageNumber = 16; unloadMapping(); }); $j("#tab_page_17").click(function(){ $j("#tabs_slide").animate( { left:"-13120px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_16").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '17/'; pageNumber = 17; unloadMapping(); /* Give the path of the video according to the path of the SWF player */ window.setTimeout("insertVideo('../_mode_et_beaute/video/makingof.flv','top:294px;left:185px;width:385px;height:226px;')",600); }); $j("#tab_page_18").click(function(){ $j("#tabs_slide").animate( { left:"-13940px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_16").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_16").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_16").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_16").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_16").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '22/'; pageNumber = 22; unloadMapping(); /* Place on click to an external url */ gotoUrl('http://www.connaissancedesarts.com/','top:90px;left:568px;width:387px;height:455px;'); gotoUrl('http://www.connaissancedesarts.com/','top:151px;left:189px;width:375px;height:137px;'); }); $j("#tab_page_23").click(function(){ $j("#tabs_slide").animate( { left:"-18040px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_23").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_23").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_23").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '25/'; pageNumber = 25; unloadMapping(); /* Place on click to an external url */ gotoUrl('http://www.hermes.com/','top:490px;left:440px;width:120px;height:20px;'); }); $j("#tab_page_26").click(function(){ $j("#tabs_slide").animate( { left:"-20500px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_23").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '26/'; pageNumber = 26; unloadMapping(); /* Place on click to an external url */ gotoUrl('http://www.boucheron.fr/','top:450px;left:570px;width:120px;height:20px;'); }); $j("#tab_page_27").click(function(){ $j("#tabs_slide").animate( { left:"-21320px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_23").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '27/'; pageNumber = 27; unloadMapping(); /* Place on click to an external url */ gotoUrl('http://www.lesartsdecoratifs.fr/','top:450px;left:460px;width:150px;height:20px;'); }); $j("#tab_page_28").click(function(){ $j("#tabs_slide").animate( { left:"-22140px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_23").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '28/'; pageNumber = 28; unloadMapping(); }); $j("#tab_page_29").click(function(){ $j("#tabs_slide").animate( { left:"-22960px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_29").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '29/'; pageNumber = 29; unloadMapping(); }); $j("#tab_page_30").click(function(){ $j("#tabs_slide").animate( { left:"-23780px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_29").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '30/'; pageNumber = 30; unloadMapping(); }); $j("#tab_page_31").click(function(){ $j("#tabs_slide").animate( { left:"-24600px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_29").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '31/'; pageNumber = 31; unloadMapping(); }); $j("#tab_page_32").click(function(){ $j("#tabs_slide").animate( { left:"-25420px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_29").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '32/'; pageNumber = 32; unloadMapping(); }); $j("#tab_page_33").click(function(){ $j("#tabs_slide").animate( { left:"-26240px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_29").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '33/'; pageNumber = 33; unloadMapping(); }); $j("#tab_page_34").click(function(){ $j("#tabs_slide").animate( { left:"-27060px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_29").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '34/'; pageNumber = 34; unloadMapping(); }); $j("#tab_page_35").click(function(){ $j("#tabs_slide").animate( { left:"-27880px"}, 600 ); $j("#mag_left li a").removeClass("over"); $j("#tab_page_29").toggleClass("over"); currentpage = document.getElementById("currentPage"); currentpage.innerHTML = '35/'; pageNumber = 35; unloadMapping(); /* Give the path of the video according to the path of the SWF player */ window.setTimeout("insertVideo('../_mode_et_beaute/video/femme_auto.flv','top:294px;left:185px;width:385px;height:226px;')",600); }); // --------------------------------------------------------------------------- // 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<35) { pageNumber++; $j("#tab_page_"+pageNumber).click(); } }); // STOP : TABS });