Advertisement
Guest User

Admin Booking HTML Mechanize

a guest
Apr 16th, 2015
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 23.81 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"><![endif]-->
  4. <!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
  5. <!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
  6. <!--[if gt IE 8]><!--><html class="no-js" lang="en" data-lang="xu"><!--<![endif]-->
  7.  
  8.     <head>
  9.  
  10.         <script>
  11.             (function( win, doc ) {
  12.  
  13.                 var token                = '' || 'empty-token',
  14.                     eventCompliant       = typeof win.addEventListener === 'function',
  15.                     builder              = win.XMLHttpRequest || new win.ActiveXObject( 'Microsoft.XMLHTTP' ),
  16.                     isBuilderConstructor = builder.prototype && builder.prototype.send,
  17.                    send                 = isBuilderConstructor ? builder.prototype.send : builder.send;
  18.  
  19.                 if ( isBuilderConstructor ) {
  20.  
  21.                     builder.prototype.send = sendWrapper;
  22.  
  23.                 } else {
  24.  
  25.                     try {
  26.                         builder.send = sendWrapper;
  27.                     } catch ( e ) {}
  28.  
  29.                 }
  30.  
  31.                 if ( eventCompliant ) {
  32.  
  33.                     doc.addEventListener( 'submit', injectToken );
  34.  
  35.                 } else if ( doc.attachEvent ) {
  36.  
  37.                     doc.attachEvent( 'onmouseup', injectToken );
  38.                     doc.attachEvent( 'onkeydown', injectToken );
  39.  
  40.                 }
  41.  
  42.                 function sanitizeEvent( evt ) {
  43.  
  44.                     return evt || win.event;
  45.  
  46.                 }
  47.  
  48.                 function eventType( evt ) {
  49.  
  50.                     var e = sanitizeEvent( evt );
  51.  
  52.                     return ( evt.type || '' ).toLowerCase();
  53.  
  54.                 }
  55.  
  56.                 function eventTarget( evt ) {
  57.  
  58.                     var e = sanitizeEvent( evt );
  59.  
  60.                     return e.target || e.srcElement;
  61.  
  62.                 }
  63.  
  64.                 function eventKeyCode( evt ) {
  65.  
  66.                     var e = sanitizeEvent( evt );
  67.  
  68.                     return e.keyCode || e.which;
  69.  
  70.                 }
  71.  
  72.                 function isEnterPressed( evt ) {
  73.  
  74.                     return eventKeyCode( evt ) === 13;
  75.  
  76.                 }
  77.  
  78.                 function isSubmitButton( target ) {
  79.  
  80.                     var isElement       = target && target.nodeName,
  81.                        isInputOrButton = isElement && /input|button/.test( target.nodeName.toLowerCase() );
  82.  
  83.                     return isInputOrButton && target.type === 'submit';
  84.  
  85.                 }
  86.  
  87.                 function isForm( target ) {
  88.  
  89.                     var isElement = target && target.nodeName;
  90.  
  91.                     return isElement && target.nodeName.toLowerCase() === 'form';
  92.  
  93.                 }
  94.  
  95.                 function appendToken( form ) {
  96.  
  97.                     var input;
  98.  
  99.                     if (
  100.  
  101.                         form &&
  102.                        form.method &&
  103.                        form.method.toLowerCase() === 'post' &&
  104.                        typeof form.elements.csrf_token === 'undefined'
  105.  
  106.                    ) {
  107.  
  108.                        input       =  doc.createElement( 'input' );
  109.                         input.name  = 'csrf_token';
  110.                         input.type  = 'hidden';
  111.                         input.value =  token;
  112.  
  113.                         form.appendChild( input );
  114.  
  115.                     }
  116.  
  117.                 }
  118.  
  119.                 function closestForm( target ) {
  120.  
  121.                     var elem = target;
  122.  
  123.                     while ( elem && ! isForm( elem ) ) {
  124.                        elem = elem.parentNode;
  125.                     }
  126.  
  127.                     return elem;
  128.  
  129.                 }
  130.  
  131.                 function injectToken( evt ) {
  132.  
  133.                     var type   = eventType( evt ),
  134.                         target = eventTarget( evt ),
  135.  
  136.                         actions = {
  137.  
  138.                             submit: function() {
  139.  
  140.                                 appendToken( target );
  141.  
  142.                             },
  143.  
  144.                             mouseup: function() {
  145.  
  146.                                 if ( isSubmitButton( target ) ) {
  147.                                     appendToken( closestForm( target ) );
  148.                                 }
  149.  
  150.                             },
  151.  
  152.                             keydown: function() {
  153.  
  154.                                 if ( isEnterPressed( evt ) ) {
  155.                                     appendToken( closestForm( target ) );
  156.                                 }
  157.  
  158.                             }
  159.  
  160.                         };
  161.  
  162.                     ( actions[ type ] || Function() )();
  163.  
  164.                     return true;
  165.  
  166.                 }
  167.  
  168.                 function sendWrapper() {
  169.  
  170.                     this.setRequestHeader( 'X-Booking-CSRF', token );
  171.                     send.apply( this, [].slice.apply( arguments ) );
  172.  
  173.                 }
  174.  
  175.             })( this, this.document );
  176.  
  177.         </script>
  178.  
  179.         <meta charset="utf-8">
  180.         <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  181.  
  182.         <title>Log in &#0183; Booking.com</title>
  183.  
  184.         <meta name="description" content="">
  185.         <meta name="author" content="">
  186.         <meta name="HandheldFriendly" content="True">
  187.         <meta name="MobileOptimized" content="320">
  188.         <meta name="viewport" content="width=device-width, initial-scale=1.0">
  189.         <meta http-equiv="cleartype" content="on">
  190.  
  191.         <!-- Stylesheets go here -->
  192.         <link rel="stylesheet" href="/hotel/hoteladmin/c/footer.v2557v.css">
  193.         <link rel="stylesheet" href="/hotel/hoteladmin/c/faq_footer_hacks.v2557v.css">
  194.         <link rel="stylesheet" href="/hotel/hoteladmin/css/header-notifications.v2557v.css">
  195.        
  196.  
  197.    
  198.         <link rel="stylesheet" href="/style/jquery.ui/1.8.11/bookings/jquery-ui.v2557v.css">
  199.         <link rel="stylesheet" href="/hotel/hoteladmin/c/master.v2557v.css">
  200.         <link rel="stylesheet" href="/hotel/hoteladmin/css/login.css?lang=xu&ses=c34e3a8ada77c3c0d32def5610e610d1">
  201.  
  202.  
  203.  
  204.         <script>
  205.     /** Adapted apps/comp/filter/load_times.fjs **/
  206.         var booking = booking || {};
  207.  
  208.         booking.pageLoadTimer = booking.pageLoadTimer || {};
  209.         booking.pageLoadTimer.start = (new Date()).getTime();
  210. </script>
  211.  
  212.         <script src="/error_catcher?2557"></script>
  213. <script>
  214.     var booking = booking || {};
  215.     booking.PAGEVIEW_ID = "ae50653af83701cc";
  216. </script>
  217.  
  218.  
  219.         <!--[if lt IE 7]>
  220.            <link rel="stylesheet" href="/hotel/hoteladmin/c/ie6.v2557v.css">
  221.            <script src="/hotel/hoteladmin/j/vendor/DD_belatedPNG_0.0.8a-min.v2557v.js"></script>
  222.        <![endif]-->
  223.  
  224.         <script src="/hotel/hoteladmin/j/vendor/modernizr.min.v2557v.js"></script>
  225.     </head>
  226.  
  227.     <body class="
  228. login">
  229.         <div id="wrap">
  230.  
  231.             <div class="container-fluid">
  232.                 <div class="row-fluid">
  233.  
  234.                     <section class="content span12">
  235.                        
  236.                        
  237.  
  238.  
  239.  
  240.  
  241. <img class="logo" src="i/BookingLogotype0.png" alt="Booking.com">
  242.  
  243. <section id="hotel_admin_login">
  244.  
  245.     <form class="form-horizontal" action="/hotel/hoteladmin/login.html" method="post" name="myform" autocomplete="off">
  246.         <div class="hidden">
  247.             <input type="hidden" id="ses" name="ses" value="c34e3a8ada77c3c0d32def5610e610d1"/>
  248.  
  249.         </div>
  250.  
  251.         <div class="control-group">
  252.             <label class="control-label" for="loginname">Login name </label>
  253.             <div class="controls">
  254.                 <input type="text" id="loginname" name="loginname" value="" maxlength="40" autofocus="autofocus">
  255.             </div>
  256.         </div>
  257.  
  258.         <div class="control-group">
  259.             <label class="control-label" for="password">Password </label>
  260.             <div class="controls">
  261.                 <input type="password" id="password" name="password" autocomplete="off">
  262.             </div>
  263.         </div>
  264.  
  265.         <div class="control-group">
  266.             <label class="control-label" for="lang">Language </label>
  267.             <div class="controls">
  268.                 <select name="lang" onChange="document.location='?lang='+this.value">
  269.                     <option value="ar">العربية</option>
  270.                     <option value="bg">Български</option>
  271.                     <option value="ca">català</option>
  272.                     <option value="cs">čeština</option>
  273.                     <option value="da">dansk</option>
  274.                     <option value="de">Deutsch</option>
  275.                     <option value="el">Ελληνικά</option>
  276.                     <option value="en">English</option>
  277.                     <option value="xu" selected="selected">American English</option>
  278.                     <option value="es">Español</option>
  279.                     <option value="et">Eesti</option>
  280.                     <option value="fi">Suomi</option>
  281.                     <option value="fr">français</option>
  282.                     <option value="he">עברית</option>
  283.                     <option value="hr">Hrvatski</option>
  284.                     <option value="hu">Magyar</option>
  285.                     <option value="id">Indonesia</option>
  286.                     <option value="is">íslenska</option>
  287.                     <option value="it">Italiano</option>
  288.                     <option value="ja">日本語</option>
  289.                     <option value="ko">한국어</option>
  290.                     <option value="lt">Lietuvių</option>
  291.                     <option value="lv">Latviešu</option>
  292.                     <option value="ms">Melayu</option>
  293.                     <option value="nl">Nederlands</option>
  294.                     <option value="no">Norsk</option>
  295.                     <option value="pl">polski</option>
  296.                     <option value="xb">Português do Brasil</option>
  297.                     <option value="pt">Português</option>
  298.                     <option value="ro">română</option>
  299.                     <option value="ru">Русский</option>
  300.                     <option value="sk">Slovenčina</option>
  301.                     <option value="sl">slovenščina</option>
  302.                     <option value="sr">srpski</option>
  303.                     <option value="sv">Svenska</option>
  304.                     <option value="th">ไทย</option>
  305.                     <option value="tl">Filipino</option>
  306.                     <option value="tr">Türkçe</option>
  307.                     <option value="uk">Українська</option>
  308.                     <option value="vi">Tiếng Việt</option>
  309.                     <option value="zh">中文</option>
  310.                     <option value="xt">繁體中文</option>
  311.                 </select>
  312.             </div>
  313.         </div>
  314.  
  315.         <div class="form-actions">
  316.             <input class="btn btn-primary" type="submit" name="login" value="Login ">
  317.             <a href="#forgot-password-modal" data-toggle="modal" class="btn btn-link">Forgot your password?</a>
  318.         </div>
  319.  
  320.     </form>
  321.  
  322.  
  323.  
  324.  
  325. </section>
  326.  
  327.  
  328. <script>
  329.  
  330.     var lang = "xu";
  331.  
  332. </script>
  333.  
  334.  
  335.  
  336. <section id="security_ups">
  337.     <h1>We're committed to protecting your security</h1>
  338.     <dl>
  339.         <dt>Keep your login details confidential.</dt>
  340.         <dd>Because you have access to sensitive guest information, we ask that you please keep your username and password strictly confidential.</dd>
  341.     </dl>
  342.     <dl>
  343.         <dt>Access our site securely.</dt>
  344.         <dd>Regardless if you're using Chrome, Firefox, Internet Explorer or any other browser, your URL should always read <strong>https://admin.booking.com</strong>.</dd>
  345.  
  346.     </dl>
  347.     <dl>
  348.         <dt>Take extra security precautions.</dt>
  349.         <dd>Depending on your browser, you might notice extra security notifications, like your address bar changing to green or a lock appearing.</dd>
  350.         <dd><img src="img/ssl_url_safari.jpg"  /></dd>
  351.     </dl>
  352. </section>
  353. <section class="footer-links">
  354.     <a href="/hotel/hoteladmin/privacy.html?lang=xu" class="privacy-link btn btn-link" target="_blank">Privacy and Cookies</a>
  355. </section>
  356.  
  357.  
  358.  
  359.  
  360. <form class="modal login-page hide" id="forgot-password-modal">
  361.     <a href="#" class="close-button" data-dismiss="modal">Close window</a>
  362.  
  363.     <h2>Forgot your password?</h2>
  364.     <p>Enter your Property ID</p>
  365.  
  366.     <input type="text" name="login" autofocus/>
  367.     <a href="#cant-reset-modal" data-dismiss="modal" data-toggle="modal">I forgot my Property ID</a>
  368.  
  369.     <input type="submit" class="btn btn-primary" value="Reset my password">
  370. </form>
  371.  
  372.  
  373. <form class="modal login-page hide" id="confirm-email-modal">
  374.     <a href="#" class="close-button" data-dismiss="modal">Close window</a>
  375.  
  376.     <h2>Confirm your email address</h2>
  377.  
  378.     <p>We have the following details on file:</p>
  379.     <p class="email-style"></p>
  380.     <a href="#cant-reset-modal" data-toggle="modal" data-dismiss="modal">I no longer have access to this email</a>
  381.  
  382.     <input type="submit" class="btn btn-primary" value="Confirm">
  383. </form>
  384.  
  385.  
  386. <div class="modal login-page hide" id="cant-reset-modal">
  387.     <h2>Something went wrong</h2>
  388.     <a href="#" class="close-button" data-dismiss="modal">Close window</a>
  389.     <p>
  390.         <strong>We can't reset your password this way.</strong>
  391.     </p>
  392.     <p>Please <a href="http://www.booking.com/general.en-us.html?tmpl=docs/offices_worldwide" class="text-link" target="_blank">contact your local team</a> for assistance.</p>
  393. </div>
  394.  
  395.  
  396. <div class="modal login-page hide" id="email-sent-modal">
  397.     <h2>Password email sent</h2>
  398.     <a href="#" class="close-button" data-dismiss="modal">Close window</a>
  399.     <p>
  400.         An email with further instructions has been sent to the email address you confirmed
  401.     </p>
  402.     <button class="btn btn-primary" data-dismiss="modal">OK</button>
  403. </div>
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.                     </section>
  411.  
  412.                 </div>
  413.  
  414.             </div>
  415.  
  416.             <div id="push"></div>
  417.  
  418.         </div> <!-- /wrap -->
  419.  
  420.  
  421.         <!-- JavaScript files go here -->
  422.  
  423.        
  424.  
  425.    
  426. <script type="text/javascript">
  427.  
  428.     var $u = {
  429.  
  430.         tag:         '7e86e29dbeb0f20ec2c57af35b01f0a3401e65f8',
  431.         js_data:      {"url_arguments":{"lang":"xu","ses":"c34e3a8ada77c3c0d32def5610e610d1"},"config":{"visitor_country":"us"},"_rules":{"args":{}},"translation_data":{},"months":["January","February","March","April","May","June","July","August","September","October","November","December"]},
  432.         application:  {"application":"hoteladmin"},
  433.         page:        'login',
  434.         common:      {},
  435.         base_url:    '',
  436.         relative_url: function (url, params) {
  437.             params = params || {};
  438.             var default_params = $u.js_data.url_arguments,
  439.                 params_string_components = [];
  440.             for (var param_name in default_params)
  441.                 if (typeof params[param_name] === 'undefined')
  442.                     params[param_name] = default_params[param_name];
  443.  
  444.             for (var param_name in params)
  445.                 if (typeof params[param_name] !== 'undefined') {
  446.                     params_string_components.push(
  447.                         encodeURIComponent(param_name)
  448.                             + "="
  449.                             + encodeURIComponent( params[param_name] )
  450.                     );
  451.                 }
  452.  
  453.             return url + '?' + params_string_components.join("&");
  454.         },
  455.         url : function ( url, params ) {
  456.             url = $u.relative_url(url, params);
  457.  
  458.             if ($u.base_url && !url.match(/^(\/|\.\.)/)) {
  459.                url = $u.base_url + url;
  460.             }
  461.  
  462.             url = url.replace( /^\/hoteladmin\//, '/hotel/hoteladmin/' );
  463.  
  464.             if (url[0] !== '/'
  465.                 && !url.match(/^https?:/)
  466.                && window.console
  467.                && typeof window.console.error === 'function') {
  468.                window.console.error(
  469.                    "Ultranet URL is not starting with a slash '" + url + "'"
  470.                );
  471.             }
  472.  
  473.             return url;;
  474.         },
  475.         _rules: {}
  476.     };
  477.  
  478.     (function() {
  479.  
  480.         var win = Function( 'return this;' )(),
  481.             doc = win.document,
  482.  
  483.             foo = doc.createElement( 'div' ),
  484.  
  485.             support = {
  486.  
  487.                 touch: ( 'ontouchstart' in win ) || win.DocumentTouch && doc instanceof DocumentTouch || win.navigator.msMaxTouchPoints
  488.  
  489.            },
  490.  
  491.            env = {
  492.  
  493.                support:     support,
  494.                isMobile:    /mobi/i.test( navigator.userAgent ) && support.touch,
  495.                isCompliant: typeof foo.addEventListener === 'function' &&
  496.                             typeof foo.querySelector    === 'function' &&
  497.                             typeof win.getComputedStyle === 'function'
  498.  
  499.            };
  500.  
  501.         $u.env = env;
  502.  
  503.     })();
  504.  
  505. </script>
  506.  
  507.  
  508.  
  509.  
  510. <script src="/jscript/jquery-1.8.2.min.v2557v.js" type="text/javascript"></script>
  511. <script type="text/javascript">
  512.     if(window.jQuery === undefined) {
  513.         document.write(unescape("%3Cscript src='//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));
  514.     }
  515. </script>
  516. <script src="/jscript/jquery/jquery-ui-1.9.1.min.v2557v.js" type="text/javascript"></script>
  517. <script type="text/javascript">
  518.     if(window.jQuery.ui === undefined) {
  519.         document.write(unescape("%3Cscript src='//ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js' type='text/javascript'%3E%3C/script%3E"));
  520.     }
  521. </script>
  522. <script src="/hotel/hoteladmin/j/base.v2557v.js" type="text/javascript"></script>
  523. <script src="../../jscript/bootstrap.min.v2557v.js" type="text/javascript"></script>
  524. <script src="jscript/admin_login.v2557v.js" type="text/javascript"></script>
  525. <script src="extranet_ng/static/js/modules/cookie.warning.v2557v.js" type="text/javascript"></script>
  526. <script src="jscript/jquery.cookie.v2557v.js" type="text/javascript"></script>
  527. <script src="/hotel/hoteladmin/ec/ec.v2557v.js" type="text/javascript"></script>
  528. <script src="/hotel/hoteladmin/ec/ui.json" type="text/javascript"></script>
  529.  
  530.        
  531.  
  532.  
  533.  
  534.         <script>
  535.  
  536.             if (typeof _gaq != 'undefined') {
  537.                 // clicks on the headers (to sort)
  538.                 $('#footer_faq_list a').click(function () {
  539.  
  540.                     var aClasses = this.className.split(' ');
  541.                         var iSection = 0;
  542.                         var iQuestion = 0;
  543.                         for (sClass in aClasses) {
  544.                             var sCheckClass = aClasses[sClass];
  545.                             if (sCheckClass.indexOf('section') > -1) {
  546.                                 iSection = sCheckClass.split('_')[1];
  547.                             }
  548.                             if (sCheckClass.indexOf('question') > -1) {
  549.                                 iQuestion = sCheckClass.split('_')[1];
  550.                             }
  551.                         }
  552.                     /* call google analytics here with iSection and iQuestion */
  553.                     _gaq.push(['_trackEvent', 'Clicks on the FAQ questions', 'Click', 'section: '+iSection+', question: '+iQuestion]);
  554.                 });
  555.             }
  556.  
  557.         </script>
  558.  
  559.         <script>
  560.     /** Adapted apps/comp/filter/load_times.fjs **/
  561.     $(document).ready(function () {
  562.         booking.pageLoadTimer.document_ready = (new Date()).getTime();
  563.     });
  564.     $(function(){
  565.         booking.pageLoadTimer.window_load = (new Date()).getTime();
  566.         $('body').append(
  567.              '<pre id="pageload_times" style="display:none">'
  568.              + 'jquery ready   : ' +(booking.pageLoadTimer.document_ready - booking.pageLoadTimer.start) + " ms\n"
  569.              + 'window on load : ' +(booking.pageLoadTimer.window_load - booking.pageLoadTimer.start) + " ms\n"
  570.              + 'pid            : ae50653af83701cc\n'
  571.              + '</pre>'
  572.         );
  573.         $.ajax({
  574.             url: '/load_times?lang=xu&ses=c34e3a8ada77c3c0d32def5610e610d1',
  575.            type: 'GET',
  576.            data: {
  577.                jquery_ready : booking.pageLoadTimer.document_ready - booking.pageLoadTimer.start,
  578.                window_onload : booking.pageLoadTimer.window_load - booking.pageLoadTimer.start,
  579.                pid : 'ae50653af83701cc'
  580.            }
  581.        });
  582.     });
  583.     /** End from apps/comp/filter/load_times.fjs **/
  584.     /** Adapted apps/comp/filter/navigation_times.fjs **/
  585.     (function(){
  586.         var callback = function() {
  587.             var performance = window.performance || window.mozPerformance || window.msPerformance || window.webkitPerformance || {};
  588.             var navigation = performance.navigation;
  589.             var timing = performance.timing;
  590.  
  591.             if ( !navigation || !timing )
  592.                 return;
  593.  
  594.             // make sure we get the last event
  595.             if ( timing.loadEventEnd == 0 ) {
  596.                 setTimeout(callback, 1000);
  597.                 return;
  598.             }
  599.  
  600.             // keep the list ordered to stay compatible
  601.             (new Image()).src = '/navigation_times?pid=ae50653af83701cc&nts='
  602.                + navigation.type + ','
  603.                + navigation.redirectCount + ','
  604.                + timing.navigationStart + ','
  605.                + timing.unloadEventStart + ','
  606.                + timing.unloadEventEnd + ','
  607.                + timing.redirectStart + ','
  608.                + timing.redirectEnd + ','
  609.                + timing.fetchStart + ','
  610.                + timing.domainLookupStart + ','
  611.                + timing.domainLookupEnd + ','
  612.                + timing.connectStart + ','
  613.                + timing.connectEnd + ','
  614.                + timing.secureConnectionStart + ','
  615.                + timing.requestStart + ','
  616.                + timing.responseStart + ','
  617.                + timing.responseEnd + ','
  618.                + timing.domLoading + ','
  619.                + timing.domInteractive + ','
  620.                + timing.domContentLoadedEventStart + ','
  621.                + timing.domContentLoadedEventEnd + ','
  622.                + timing.domComplete + ','
  623.                + timing.loadEventStart + ','
  624.                + timing.loadEventEnd + ','
  625.                + '&first=' // Not used on intranet/extranet
  626.                + '&cdn='  // Not used (yet) on intranet/extranet
  627.                + '&dc=4'
  628.                + '&lang=xu'
  629.                + '&aid=0' // Not used on intranet/extranet
  630.                + '&route=0'
  631.                + '&ch=e'
  632.            ;
  633.         };
  634.  
  635.         if ( window.addEventListener )
  636.             window.addEventListener("load", callback, 0);
  637.         else if ( typeof window.attachEvent != "undefined" )
  638.             window.attachEvent("onload", callback);
  639.         })();
  640.         /** End from apps/comp/filter/navigation_times.fjs **/
  641. </script>
  642.  
  643. <script>
  644. $(document).ready(function () {
  645.     var content_height = $('#content').height() + 150;
  646.     var leftnav_height = $('#leftnav').height() + 150;
  647.  
  648.     $('#footer_tabs #faq_tab').click( function() {
  649.       $('#video_tutorials').hide();
  650.       $('#footer_faq_list').show();
  651.       $('#footer .footer_faq_viewall').show();
  652.       $('#footer_tabs .active_block').removeClass('active_block');
  653.       $(this).addClass('active_block');
  654.     });
  655.  
  656.     $('#footer_tabs #video_tab').click( function() {
  657.       $('#footer_faq_list').hide();
  658.       $('#footer .footer_faq_viewall').hide();
  659.       $('#video_tutorials').show();
  660.       $('#footer_tabs .active_block').removeClass('active_block');
  661.       $(this).addClass('active_block');
  662.     });
  663.  
  664.     // handling the lightbox with the videos in the R&A pages
  665.    $('#video_tutorials .video_link').click (function() {
  666.      var linkName = $(this).attr('id').replace('_video', '');
  667.  
  668.       $('#footer .modal-backdrop').show();
  669.       $('#'+linkName+'_box').show();
  670.  
  671.       return false;
  672.     });
  673.  
  674.     $('#footer .lightbox .close').click (function(){
  675.       $('#footer .modal-backdrop').hide();
  676.       $('#footer .lightbox').hide();
  677.  
  678.       return false;
  679.     });
  680. });
  681. </script>
  682.  
  683.  
  684.     </body>
  685.  
  686. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement