/*****************************************************************************
SIFR-CONFIG
*****************************************************************************/

var apex_new_book = { src: '/assets/swf/apex_new_book.swf' };
var futura = { src: '/assets/swf/futura_book.swf' };

// Next, activate sIFR:
sIFR.activate(futura, apex_new_book);

//comment out relpace function and use this one
//sIFR.debug.ratios({ src: 'assets/swf/futura.swf', selector: 'h1' });

	sIFR.replace(apex_new_book, {
	  selector: 'h1'
	  ,wmode: 'transparent'
	  ,css: [
		  '.sIFR-root {font-size:20px; font-weight:normal; color: #1869c1; }'
		]
	  ,ratios: [9, 1.49, 10, 1.39, 13, 1.41, 16, 1.39, 19, 1.38, 20, 1.35, 23, 1.36, 29, 1.35, 30, 1.33, 39, 1.34, 40, 1.32, 44, 1.33, 46, 1.32, 47, 1.33, 74, 1.32, 76, 1.31, 77, 1.32, 1.31]
	});


	sIFR.replace(futura, {
	  selector: 'h2'
	  ,wmode: 'transparent'
	  ,css: [
		  '.sIFR-root {color: #333333; font-size:15px; font-weight:bold; letter-spacing:1;}'
		]
	  ,ratios: [9, 1.49, 10, 1.39, 13, 1.41, 16, 1.39, 19, 1.38, 20, 1.35, 23, 1.36, 29, 1.35, 30, 1.33, 39, 1.34, 40, 1.32, 44, 1.33, 46, 1.32, 47, 1.33, 74, 1.32, 76, 1.31, 77, 1.32, 1.31]
	});
	
	sIFR.replace(futura, {
	  selector: 'h3'
	  ,wmode: 'transparent'
	  ,css: [
		  '.sIFR-root { color: #ffffff; font-size: 11px; font-weight: normal; text-transform:uppercase; letter-spacing:2;}'
		]
	  ,ratios: [9, 1.49, 10, 1.39, 13, 1.41, 16, 1.39, 19, 1.38, 20, 1.35, 23, 1.36, 29, 1.35, 30, 1.33, 39, 1.34, 40, 1.32, 44, 1.33, 46, 1.32, 47, 1.33, 74, 1.32, 76, 1.31, 77, 1.32, 1.31]
	});
	
	sIFR.replace(futura, {
	  selector: '#related h4'
	  ,wmode: 'transparent'
	  ,css: [
		  '.sIFR-root {color: #999999; font-size:11px; font-weight:bold; text-transform:uppercase;}'
		]
	  ,ratios: [9, 1.49, 10, 1.39, 13, 1.41, 16, 1.39, 19, 1.38, 20, 1.35, 23, 1.36, 29, 1.35, 30, 1.33, 39, 1.34, 40, 1.32, 44, 1.33, 46, 1.32, 47, 1.33, 74, 1.32, 76, 1.31, 77, 1.32, 1.31]
	});
	
	sIFR.replace(futura, {
	  selector: 'h4'
	  ,wmode: 'transparent'
	  ,css: [
		  '.sIFR-root {color: #333333; font-size:11px; font-weight:bold; text-transform:uppercase;}'
		]
	  ,ratios: [9, 1.49, 10, 1.39, 13, 1.41, 16, 1.39, 19, 1.38, 20, 1.35, 23, 1.36, 29, 1.35, 30, 1.33, 39, 1.34, 40, 1.32, 44, 1.33, 46, 1.32, 47, 1.33, 74, 1.32, 76, 1.31, 77, 1.32, 1.31]
	});
/*	
	sIFR.replace(futura, {
	  selector: 'h6'
	  ,wmode: 'transparent'
	  ,css: [
		  '.sIFR-root {color: #333333; font-size:15px; font-weight:bold;}'
		]
	  ,ratios: [9, 1.49, 10, 1.39, 13, 1.41, 16, 1.39, 19, 1.38, 20, 1.35, 23, 1.36, 29, 1.35, 30, 1.33, 39, 1.34, 40, 1.32, 44, 1.33, 46, 1.32, 47, 1.33, 74, 1.32, 76, 1.31, 77, 1.32, 1.31]
	});
*/

/*****************************************************************************
END SIFR-CONFIG
*****************************************************************************/

$(document).ready( function() {

	

}); // end doc ready



	var myWin = null;
	function popup(theUrl, width, height) {
		if ((! myWin) || (myWin.closed)) {
			theDim = 'width='+width+',height='+height+',left=5,top=5,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,';
			myWin = window.open(theUrl, '', theDim);
			myWin.opener = window;
		} else {
			myWin.location = theUrl;
			myWin.focus();
			myWin.opener = window;
		}
	}
	
	
	function p_link(mylink, closeme){
		if ( (window.focus && window.opener)){
			window.opener.focus();
			window.opener.location.href=mylink;
		}
		if (closeme){
			window.close();
		}
	}
