/*****************************************************************************
* IE 6 and IE 7 specific style fixes                                         *
******************************************************************************
*     $Author: villek $ 
*       $Date: 2010-05-07 09:08:28 $ 
*   $Revision: 1.6 $ 
******************************************************************************
* COPYRIGHT NOTICE                                                           *
* Copyright 2008-2009 Matrix Science Limited  All Rights Reserved.           *
*                                                                            *
* This program may be used and modified within the licensee's organisation   *
* provided that this copyright notice remains intact. Distribution of this   *
* program or parts thereof outside the licensee's organisation without the   *
* prior written consent of Matrix Science Limited is expressly forbidden.    *
******************************************************************************/

/* IE 6 */
* html .loading-blocker {
    /* Emulate position: fixed. */
    position: absolute;
    /* Height cannot be more than ~2048 px. The exact value depends on
     * how much RAM the video card has, the version of DirectX, version
     * of Windows, etc. In practice, the size of the window is enough.
     */
    left: 0;
    top: expression( ignoreBlockerVar = (document.documentElement.scrollTop || document.body.scrollTop) + "px");
    height: expression( (document.documentElement.clientHeight || document.body.clientHeight) + "px");
    width: expression( (document.documentElement.clientWidth || document.body.clientWidth) + "px");
}

/* IE 6 */
* html div.loading-blocker {
    /* Microsoft vendor extensions in IE 8 and its compatibility view:
     * http://blogs.msdn.com/ie/archive/2008/09/08/microsoft-css-vendor-extensions.aspx
     * ("IEBlog: Microsoft Vendor CSS Extensions")
     */
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=25)";
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=25); 
}

/* Same for IE 7 */
*:first-child+html div.loading-blocker {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=25)";
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=25); 
}

/* IE 6 */
* html iframe.loading-blocker {
    /* Microsoft vendor extensions in IE 8 and its compatibility view:
     * http://blogs.msdn.com/ie/archive/2008/09/08/microsoft-css-vendor-extensions.aspx
     * ("IEBlog: Microsoft Vendor CSS Extensions")
     */
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0); 
}

/* Same for IE 7 */
*:first-child+html iframe.loading-blocker {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0); 
}

/* IE 6 */
* html .blocking-message {
    /* Emulate position: fixed */
    position: absolute;
    top: expression( (document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (tmp = (document.documentElement.scrollTop || document.body.scrollTop)) + "px");
}

xml { display: none; visibility: hidden; }

/*****************************************************************************
* IE 8 specific style fixes                                                  *
******************************************************************************
*     $Author: villek $ 
*       $Date: 2010-01-27 16:25:28 $ 
*   $Revision: 1.2 $ 
******************************************************************************
* COPYRIGHT NOTICE                                                           *
* Copyright 2008-2009 Matrix Science Limited  All Rights Reserved.           *
*                                                                            *
* This program may be used and modified within the licensee's organisation   *
* provided that this copyright notice remains intact. Distribution of this   *
* program or parts thereof outside the licensee's organisation without the   *
* prior written consent of Matrix Science Limited is expressly forbidden.    *
******************************************************************************/

.loading-blocker {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
}

/* Additional fixes for IE 5.5 and IE 5.0 on Windows. */

/*****************************************************************************
* master_results_2 IE6 and IE7 specific fixes                                *
******************************************************************************
*     $Author: villek $ 
*       $Date: 2010-06-02 13:06:52 $ 
*   $Revision: 1.24 $ 
******************************************************************************
* COPYRIGHT NOTICE                                                           *
* Copyright 2008-2009 Matrix Science Limited  All Rights Reserved.           *
*                                                                            *
* This program may be used and modified within the licensee's organisation   *
* provided that this copyright notice remains intact. Distribution of this   *
* program or parts thereof outside the licensee's organisation without the   *
* prior written consent of Matrix Science Limited is expressly forbidden.    *
******************************************************************************/

/* Two CSS "filters" are used here:
 *  - "* html" for IE 6
 *  - "*:first-child+html" for IE 7
 * Unfortunately they cannot be combined into the same expression, as
 * that would prevent both browsers from parsing the expressions correctly.
 */

/* One can force bicubic interpolation for scaled images in IE 6 by using
 *
filter: expression("progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.src + "',sizingMethod='scale')");
 *
 * However, this can lock up the browser, since each image is downloaded
 * synchronously:
 *
 * http://blogs.cozi.com/tech/2008/03/transparent-pngs-can-deadlock-ie6.html 
 *
 * So, we can't really use it. IE 7 supports a custom Microsoft CSS property
 * for enabling bicubic interpolation, though.
 */
*:first-child+html img { -ms-interpolation-mode: bicubic; }

* html form.page-control { height: 1%; }
*:first-child+html form.page-control { height: 1%; }

* html #velcro-toolbar-container div.finder form {
    float: left;
}

*:first-child+html #velcro-toolbar-container div.finder form {
    float: left;
}

/* Lack of child selector is no deterrent! */
* html #velcro-toolbar-container div,
* html form.page-control div {
    float: left;
    background: #eef;
}

* html #velcro-toolbar-container * div,
* html form.page-control * div {
    float: inherit;
    background: inherit;
}

* html #velcro-toolbar-container div div,
* html form.page-control div div {
    float: left;
}
* html #velcro-toolbar-container * div div,
* html form.page-control * div div {
    float: inherit;
}

* html #velcro-toolbar-container p,
* html form.page-control p {
    margin: 0;
    padding: 0;
}
* html #velcro-toolbar-container * p,
* html form.page-control * p {
    margin: inherit;
    padding: inherit;
}

* html #velcro-toolbar-container fieldset,
* html #velcro-toolbar-container fieldset p,
* html form.page-control fieldset,
* html form.page-control fieldset p { height: 1%; }

* html #velcro-toolbar-container fieldset p input,
* html #velcro-toolbar-container fieldset p select,
* html #velcro-toolbar-container fieldset p span,
* html form.page-control fieldset p input,
* html form.page-control fieldset p select,
* html form.page-control fieldset p span {
    display: block;
    float: none;
}

* html #velcro-toolbar-container fieldset p span select,
* html #velcro-toolbar-container fieldset p span input,
* html form.page-control fieldset p span select,
* html form.page-control fieldset p span input {
    float: left;
}

*:first-child+html #velcro-toolbar-container fieldset p > input,
*:first-child+html #velcro-toolbar-container fieldset p > select,
*:first-child+html #velcro-toolbar-container fieldset p span,
*:first-child+html form.page-control fieldset p > input,
*:first-child+html form.page-control fieldset p > select,
*:first-child+html form.page-control fieldset p span {
    display: block;
    float: none;
}

* html form.page-control div.ie6-float-bug {
    display: inline;
    float: none;
    clear: left;
    position: relative;
    height: 1px;
    width: 1px;
}

* html div.family { height: 1%; }
*:first-child+html div.family { height: 1%; }

/* IE 6 has too much negative margin. */
* html body div.family h3 { *margin-left: -0.5em; }

* html div.family table.family-member-list td.cut-control form fieldset {
    margin-top: 1em;
}

*:first-child+html div.family table.family-member-list td.cut-control form fieldset {
    margin-top: 1em;
}


@media screen {
    * html body { font-size: 0.8em; }
    *:first-child+html body { font-size: 0.8em; }

    /* Remove flickering from fixed elements. */
    * html body {
        background-image: url(../images/star_blank.gif);
        background-repeat: no-repeat;
        background-attachment: fixed;
    }

    *:first-child+html body {
        background-image: url(../images/star_blank.gif);
        background-repeat: no-repeat;
        background-attachment: fixed;
    }

    * html input, button, textarea, select { font-size: 100%; }
    *:first-child+html input, button, textarea, select { font-size: 100%; }

    * html body div.rf-tabs { padding: 1em 0 1px 0; }
}

* html #velcro-toolbar-container div.velcro-toolbar {
    padding: 0.5em;
    background: #eef;
    width: 100%;
}

*:first-child+html #velcro-toolbar-container div.velcro-toolbar {
    padding: 0.5em;
    background: #eef;
    width: 100%;
}

* html table.peptides { 
    border-collapse: collapse; 
    width: auto !important;
}

*:first-child+html html table.peptides { 
    border-collapse: collapse; 
    width: auto !important;
}

* html dl.quant-ratio-details dd { float: none; }
*:first-child+html dl.quant-ratio-details dd { float: none; }

/* http://www.howtocreate.co.uk/fixedPosition.html */
* html div#streaming-status {
    position: absolute;
    right: auto;
    bottom: auto;
    left: expression( ( -0 - document.all['streaming-status'].offsetWidth + ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( _ss_ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
    top: expression( ( -0 - document.all['streaming-status'].offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( _ss_ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
}

* html table.search-parameters td sup { vertical-align: bottom; }
*:first-child+html table.search-parameters td sup { vertical-align: bottom; }


* html div.rf-tabs ul {
    /* A combination of a floating element plus an absolutely positioned
     * sibling causes the latter to disappear in IE 6. Solution: add negative
     * margin. How logical...
     *
     * http://www.brunildo.org/test/IE_raf3.html 
     */
    margin-right: -3px;
}

*:first-child+html div.rf-tabs div.permalink-container,
* html div.rf-tabs div.permalink-container {
    margin-top: 1em;
}

/*****************************************************************************
* Scrollable HTML table IE fixes                                             *
******************************************************************************
*     $Author: villek $ 
*       $Date: 2010-05-07 09:08:29 $ 
*   $Revision: 1.4 $ 
******************************************************************************
* COPYRIGHT NOTICE                                                           *
* Copyright 2008-2009 Matrix Science Limited  All Rights Reserved.           *
*                                                                            *
* This program may be used and modified within the licensee's organisation   *
* provided that this copyright notice remains intact. Distribution of this   *
* program or parts thereof outside the licensee's organisation without the   *
* prior written consent of Matrix Science Limited is expressly forbidden.    *
******************************************************************************/

@media screen {
    /* IE 6 */
    * html div.scrollable-table-container table thead tr {
        top: expression(this.offsetParent.scrollTop-2);
        left: -16px;
    }

    /* IE 7 */
    *:first-child+html div.scrollable-table-container table thead tr {
        top: expression(this.offsetParent.scrollTop-2);
        left: -16px;
    }
}

/*****************************************************************************
* Make input elements enabled or disabled based on other input elements      *
******************************************************************************
*     $Author: villek $ 
*       $Date: 2010-02-22 14:01:19 $ 
*   $Revision: 1.2 $ 
******************************************************************************
* COPYRIGHT NOTICE                                                           *
* Copyright 2008-2009 Matrix Science Limited  All Rights Reserved.           *
*                                                                            *
* This program may be used and modified within the licensee's organisation   *
* provided that this copyright notice remains intact. Distribution of this   *
* program or parts thereof outside the licensee's organisation without the   *
* prior written consent of Matrix Science Limited is expressly forbidden.    *
******************************************************************************/

/*****************************************************************************
* IE6 specific fixes to the tooltip                                          *
******************************************************************************
*     $Author: villek $ 
*       $Date: 2010-05-07 09:08:29 $ 
*   $Revision: 1.2 $ 
******************************************************************************
* COPYRIGHT NOTICE                                                           *
* Copyright 2008-2009 Matrix Science Limited  All Rights Reserved.           *
*                                                                            *
* This program may be used and modified within the licensee's organisation   *
* provided that this copyright notice remains intact. Distribution of this   *
* program or parts thereof outside the licensee's organisation without the   *
* prior written consent of Matrix Science Limited is expressly forbidden.    *
******************************************************************************/

@media screen {
    /* IE 6 */
    * html #Tooltip { position: absolute; }
}

/*****************************************************************************
* IE 6 definitions for the velcro toolbar                                    *
******************************************************************************
*     $Author: villek $ 
*       $Date: 2010-06-02 13:06:52 $
*   $Revision: 1.4 $ 
******************************************************************************
* COPYRIGHT NOTICE                                                           *
* Copyright 2008-2009 Matrix Science Limited  All Rights Reserved.           *
*                                                                            *
* This program may be used and modified within the licensee's organisation   *
* provided that this copyright notice remains intact. Distribution of this   *
* program or parts thereof outside the licensee's organisation without the   *
* prior written consent of Matrix Science Limited is expressly forbidden.    *
******************************************************************************/

@media screen {
    /* IE 6 */
    * html .velcro-attached { visibility: hidden; }

    /* Emulating fixed positioning in IE:
     * http://www.howtocreate.co.uk/fixedPosition.html
     */
    * html #velcro-toolbar-container {
        position: absolute;
        top: expression( (_ie_is_fubar = document.compatMode && document.compatMode == 'CSS1Compat' ? document.documentElement.scrollTop : document.body.scrollTop) + 'px');
        left: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        z-index: 500;
    }
}

