// JavaScript Document
//<[CDATA[
  	var ocr = {
	src: dotdotpath + 'flash/ocr.swf'
	,ratios:[7,1.32,11,1.31,12,1.24,16,1.27,19,1.23,25,1.22,26,1.21,33,1.2,37,1.19,38,1.2,51,1.19,84,1.18,86,1.17,88,1.18,93,1.17,94,1.18,1.17]
	};
	
//	sIFR.fitExactly = true;
	sIFR.delayCSS  = true;
 // sIFR.domains = ['novemberborn.net'] // Don't check for domains in this demo
 	sIFR.activate(ocr);
	
	//sIFR.debug.ratios({ src: 'flash/sifr/HelveticaRdBd.swf', selector: 'h1' });

/*sIFR.replace(HelveticaRdBd, {
    selector: 'h1.panel_title , h2.panel_title'
	,wmode: 'transparent'
    ,css: ['.sIFR-root {color: #560670; leading: 0; letter-spacing: 0; font-weight:bold;}','em { font-style: normal; color: #560670; letter-spacing: 0; font-weight:bold;}']
  });*/

sIFR.replace(ocr, {
    selector: 'h2.maintitle'
	,wmode: 'transparent'
	,css: '.sIFR-root {color: #ffffff; leading: 0; letter-spacing: -2; font-weight: normal; }'
   ,filters: {
		Glow:{
		knockout: false
       ,color: '#000000'
        ,strength: 3
		,BlurX:4
		,BlurY:4
		}
  }
	/*   ,
  DropShadow: {
        knockout: false
        ,distance: 1
        ,color: '#000000'
        ,strength: 0.5
		,Angle: 45
		,BlurX:3
		,BlurY:3
      }*/
    
  });

sIFR.replace(ocr, {
    selector: 'h2.leftnav'
	,wmode: 'transparent'
		    ,css: ['.sIFR-root {color: #ffffff; leading: 4; font-weight:bold; letter-spacing:-2;}','a { text-decoration: none; }','a:link { color: #931CC7; text-decoration: none;}','a:hover { color: #931CC7; text-decoration: none;}']
    ,filters: {
		Glow:{
		knockout: false
       ,color: '#000000'
        ,strength: 2
		,BlurX:0
		,BlurY:0
			
		}
    }
  });

sIFR.replace(ocr, {
    selector: 'h1.quizmain, h2.quizmain, h2.quizmain_small, h2.quizmain_resize'
	,wmode: 'transparent'
		    ,css: ['.sIFR-root {color: #ffffff; leading: 4; font-weight:bold; letter-spacing:-2;}','a {color: #ffffff; text-decoration: none; }','a:link { color: #ffffff; text-decoration: none;}','a:hover { color: #ffffff; text-decoration: underline;}']
    ,filters: {
		Glow:{
		knockout: false
       ,color: '#000000'
        ,strength: 2
		,BlurX:0
		,BlurY:0
			
		}
    }
  });

sIFR.replace(ocr, {
    selector: 'h2.quizbutton'
	,wmode: 'transparent'
		    ,css: ['.sIFR-root {color: #ffffff; leading: 4; font-weight:bold; letter-spacing:-2;}','a {color: #ffffff; text-decoration: none;text-align:center;}','a:link { color: #ffffff; text-decoration: none;text-align:center;}','a:hover { color: #ffffff; text-decoration: underline;text-align:center;}']
	    ,filters: {
		 Glow:{
		 knockout: false
        ,color: '#000000'
        ,strength: 2
		,BlurX:0
		,BlurY:0
			
		}
    }
  });

function reloadSIFR() {
	
	function class_exists(nameOfClass) {
		var els = document.getElementsByTagName('h2');
		var i = els.length; 
		//alert(i)
		
		while( i-- )
		{
			//alert("'" + els[i].className + "'" + " " + "'" + nameOfClass + "'")
			if(els[i].className == nameOfClass)
				return true
		}
		return false;
	}
	
	//alert(class_exists('quizmain_small sIFR-replaced'));
	
	if(class_exists('quizmain_small')) {
		sIFR.replace(ocr,{
		selector: 'h2.quizmain_small',
		wmode: 'transparent'
		,css: ['.sIFR-root {color: #ffffff; leading: 4; font-weight:bold; letter-spacing:-2;}','a {color: #ffffff; text-decoration: none; }','a:link { color: #ffffff; text-decoration: none;}','a:hover { color: #ffffff; text-decoration: underline;}']
    ,filters: {
		Glow:{
		knockout: false
       ,color: '#000000'
        ,strength: 2
		,BlurX:0
		,BlurY:0
			
		}
    }
		});
	}
	
	
	
	
}

/*function reloadSIFR() {
	
	function class_exists(nameOfClass) {
	var els = document.getElementById('correctanswer');
	var i = els.length; 
	//alert(i)
	
	while( i-- )
	{
		//alert("'" + els[i].className + "'" + " " + "'" + nameOfClass + "'")
		if(els[i].className == nameOfClass)
			return true
	}
	return false;
	}
	
	if(class_exists('quizbutton')) {
		sIFR.replace(ocr,{
		selector: 'h2.quizbutton',
		wmode: 'transparent'
		,css: {
		  '.sIFR-root {color: #ffffff; leading: 0; letter-spacing: -2; font-weight: normal; }'  }
		}
		});
	}	 
}*/

//]]>