/*******************************************************************************

    Package: Pontsteiger 1.0
    Title: sIFR Calls
    File: sifr_calls.js
    Version: 1.0
    Date/Time: 2008-04-11 18:59
    Author name: Adal Hernandez Fraile
    Author organisation: AFFIRMA
    Author URI: www.affirma.nu
    Author contact details: <support [at] affirma [dot] nu>
    Copyright: (c) 2008-2009 Adal Hernandez Fraile // AFFIRMA
    Acknowledgements: sIFR - http://novemberborn.net/sifr3
    Description: sIFR set-up and calls for use at
    			http://www.pontsteiger.nl/
    Dependencies: sifr.js
    			  /templates/pontsteiger.nl/fonts/ADScalaSansItalic.swf
    			  /templates/pontsteiger.nl/fonts/LucidaGrandeRegular.swf


*******************************************************************************/

  var DINBold = {
    src: 'http://www.bobvandervlist.com/template/default/fonts/DINBold.swf'
    ,ratios: [7,1.32,11,1.31,13,1.24,14,1.25,19,1.23,27,1.2,34,1.19,42,1.18,47,1.17,48,1.18,69,1.17,74,1.16,75,1.17,1.16]
  };

  var DINRegu = {
    src: 'http://www.bobvandervlist.com/template/default/fonts/DINRegu.swf'
    ,ratios: [7,1.32,11,1.31,13,1.24,14,1.25,19,1.23,27,1.2,34,1.19,42,1.18,47,1.17,48,1.18,69,1.17,74,1.16,75,1.17,1.16]
  };

  sIFR.domains = ['*bobvandervlist.com']
  sIFR.repaintOnResize = true;
  sIFR.fitExactly = true;
  sIFR.fixWrap = true;
  sIFR.activate(DINBold, DINRegu);

  if(typeof sIFR == "function"){

    sIFR.bHideBrowserText = true;
    sIFR.bFixFragIdBug = false;
    sIFR.setup();
    sIFR();
};

function callSIFR(section){

	switch(section) {

        case 'menu': sIFR.replace(DINBold, {
                            selector: 'div#main_menu_section>ul>li>span.test'
                            ,css: [
                              '.sIFR-root { color: #000000; font-size: 20pt;}'
                              ,'a { color: #000000; text-decoration: none; }'
                              ,'a:visited { color: #000000; text-decoration: none; }'
                              ,'a:link { color: #000000; text-decoration: none;}'
                              ,'a:hover { color: #006ec0; text-decoration: none; }'
                            ]
                            ,thickness:-100
                            ,wmode:'transparent'
                          });
                     sIFR.replace(DINBold, {
                            selector: 'div#main_menu_section>ul>li>span#active_nav_item'
                            ,css: [
                              '.sIFR-root { color: #006ec0; font-size: 20pt;}'
                            ]
                            ,thickness:-100
                            ,wmode:'transparent'
                          });
                     break;
        case 'home':
		case 'blog': sIFR.replace(DINBold, {
                            selector: 'h3'
                            ,css: [
                              '.sIFR-root { color: #00ac44; font-size: 14pt;}'
                              ,'a { color: #00ac44; text-decoration: none; }'
                              ,'a:visited { color: #00ac44; text-decoration: none; }'
                              ,'a:link { color: #00ac44; text-decoration: none;}'
                              ,'a:hover { color: #000000; text-decoration: none; }'
                            ]
                            ,wmode:'transparent'
                          });
        				 break;
        case 'blog_menu': sIFR.replace(DINBold, {
                            selector: 'div#main_menu_section>ul>li>span.test'
                            ,css: [
                              '.sIFR-root { color: #000000; font-size: 20pt;}'
                              ,'a { color: #000000; text-decoration: none; }'
                              ,'a:visited { color: #000000; text-decoration: none; }'
                              ,'a:link { color: #000000; text-decoration: none;}'
                              ,'a:hover { color: #00ac44; text-decoration: none; }'
                            ]
                            ,thickness:-100
                            ,wmode:'transparent'
                          });
                     sIFR.replace(DINBold, {
                            selector: 'div#main_menu_section>ul>li>span#active_nav_item'
                            ,css: [
                              '.sIFR-root { color: #00ac44; font-size: 20pt;}'
                            ]
                            ,thickness:-100
                            ,wmode:'transparent'
                          });
                     break;
        case 'blog_portfolio_menu':
                     sIFR.replace(DINBold, {
                            selector: 'div#portfolio_nav_items'
                            ,css: [
                              '.sIFR-root { color: #000000; font-size: 20pt;}'
                              ,'a { color: #000000; text-decoration: none; }'
                              ,'a:visited { color: #000000; text-decoration: none; }'
                              ,'a:link { color: #000000; text-decoration: none;}'
                              ,'a:hover { color: #00ac44; text-decoration: none; }'
                            ]
                            ,thickness:-100
                            ,wmode:'transparent'
                          });
                     break;
        case 'portfolio':
                     sIFR.replace(DINBold, {
                            selector: 'h1.portfolio_section_header'
                            ,css: [
                              '.sIFR-root { color: #006ec0; font-size: 20pt;}'
                            ]
                            ,thickness:-100
                            ,wmode:'transparent'
                          });
                     sIFR.replace(DINBold, {
                            selector: 'h2.portfolio_project_header'
                            ,css: [
                              '.sIFR-root { color: #000000; font-size: 17pt;}'
                            ]
                            ,thickness:-100
                            ,wmode:'transparent'
                          });
                     break;
        case 'about':sIFR.replace(DINBold, {
                            selector: 'h2.about_header '
                            ,css: [
                              '.sIFR-root { color: #006ec0; font-size: 1.3em;}'
                            ]
                            ,thickness:-100
                            ,wmode:'transparent'
                          });
        case 'footer':sIFR.replace(DINBold, {
                            selector: 'span#copyright_notice_1'
                            ,css: [
                              '.sIFR-root { color: #006ec0; font-size: 1.3em;}'
                            ]
                            ,thickness:-100
                            ,wmode:'transparent'
                          });
        case 'blog_footer':sIFR.replace(DINBold, {
                            selector: 'span#copyright_notice_2'
                            ,css: [
                              '.sIFR-root { color: #00ac44; font-size: 1.3em;}'
                            ]
                            ,thickness:-100
                            ,wmode:'transparent'
                          });
    	}

}


