var VAGRoundedLight = { src: '/Swf/vag_rounded_light.swf' };
var VAGRoundedBlack = { src: '/Swf/vag_rounded_black.swf' };
var CooperRoundedBlack = { src: '/Swf/cooper_black_std.swf' };






sIFR.useStyleCheck = true;
sIFR.activate(VAGRoundedLight, VAGRoundedBlack, CooperRoundedBlack);




function sifrApply() { 

	sIFR.replace(VAGRoundedLight, {
		selector: '.purple-form p.intro-text',
		css: '.sIFR-root { background-color: #9449ec; color: #FFFFFF; }',
		wmode: 'opaque'
	});

	sIFR.replace(VAGRoundedLight, {
		selector: '.purple-form .sifr',
		css: '.sIFR-root { color: #FFFFFF; font-size: 14px; }',
		wmode: 'transparent'
	});

	sIFR.replace(VAGRoundedLight, {
		selector: '.form-thanks h2',
		css: '.sIFR-root { color: #FFFFFF; }',
		wmode: 'transparent'
	});

	sIFR.replace(VAGRoundedLight, {
		selector: '#library-saved p',
		css: '.sIFR-root { color: #FFFFFF; }',
		wmode: 'transparent'
	});

	sIFR.replace(VAGRoundedLight, {
		selector: '.login-page p strong',
		css: '.sIFR-root { color: #FFFFFF; }',
		wmode: 'transparent'
	});

	sIFR.replace(VAGRoundedLight, {
		selector: '.login-page #login .sifr',
		css: '.sIFR-root { color: #FFFFFF; font-size: 14px; }',
		wmode: 'transparent'
	});

	sIFR.replace(VAGRoundedLight, {
		selector: '#forgotten-pasword p, #forgotten-pasword label.sifr',
		css: '.sIFR-root { color: #FFFFFF; font-size: 14px; }',
		wmode: 'transparent'
	});

	sIFR.replace(VAGRoundedLight, {
	    selector: '#confirm-delete-message p, #confirm-delete-message label.sifr',
	    css: '.sIFR-root { color: #FFFFFF; font-size: 14px; }',
	    wmode: 'transparent'
	});

	sIFR.replace(VAGRoundedLight, {
	    selector: '#delete-message-success p, #delete-message-success label.sifr',
	    css: '.sIFR-root { color: #FFFFFF; font-size: 14px; }',
	    wmode: 'transparent'
	});

	sIFR.replace(VAGRoundedLight, {
		selector: 'div.library h2.sifr, form.edit-library h2',
		css: '.sIFR-root { color: #FFFFFF; background-color: #9449EC; }',
		wmode: 'opaque',
		tuneHeight: '-4'
	});

	sIFR.replace(VAGRoundedLight, {
		selector: '.library span.or',
		css: '.sIFR-root { color: #FFFFFF; background-color: #9449EC; text-align: center; }',
		wmode: 'opaque'
	});

	sIFR.replace(VAGRoundedLight, {
		selector: '.form-thanks h2.sifr',
		css: '.sIFR-root { color: #FFFFFF; background-color: #873CDF; }',
		wmode: 'opaque'
	});

	sIFR.replace(VAGRoundedLight, {
		selector: '.library p.footnote',
		css: [
				'.sIFR-root { color: #FFFFFF; background-color: #9449EC; font-size: 10px; }', 
				'a { color: #57adf6; text-decoration: underline; }', 
				'a:hover { color: #f345b7; text-decoration: underline; }'
			],
		wmode: 'opaque'
	});

	sIFR.replace(VAGRoundedLight, {
		selector: '.login-page #login #login-terms p.footnote',
		css: [
				'.sIFR-root { color: #FFFFFF; background-color: #7E90F7; font-size: 10px; }', 
				'a { color: #57adf6; text-decoration: underline; }', 
				'a:hover { color: #57adf6; text-decoration: underline; }'
			],
		wmode: 'opaque'
	});

	sIFR.replace(VAGRoundedLight, {
		selector: '.library h1.sifr',
		css: '.sIFR-root { color: #FFFFFF; background-color: #873CDF; }',
		wmode: 'opaque'
	});

	sIFR.replace(VAGRoundedLight, {
		selector: '.libraries-overview p',
		css: '.sIFR-root { font-size: 14px; color: #FFFFFF; background-color: #9449EC; }',
		wmode: 'opaque'
	});

	sIFR.replace(VAGRoundedLight, {
		selector: 'h3.library-owner div',
		css: [
				'.sIFR-root { font-size: 20px; color: #ffffff; cursor: pointer; }'
			],
		wmode: 'transparent'
	});

	sIFR.replace(VAGRoundedLight, {
		selector: '#libraries-launchpad .library-list span div',
		css: [
				'.sIFR-root { font-size: 20px; color: #FFFFFF; cursor: pointer; }'
			],
		wmode: 'transparent'
	});

	sIFR.replace(VAGRoundedBlack, {
		selector: '#bookshop .book-list li .book-price, #bookshop-promo-box #book-discount',
		css: [
				'.sIFR-root { color: #FFFFFF; text-align: center; font-size: 11px; }'
			],
		wmode: 'transparent'
	});

	sIFR.replace(CooperRoundedBlack, {
		selector: '#library-title h1',
		css: '.sIFR-root { color: #FFFFFF; background-color: #9449EC; display: inline; font-size: 31px; }',
		wmode: 'opaque',
		forceSingleLine: true
	});

	sIFR.replace(VAGRoundedLight, {
		selector: '.library-cover span',
		css: '.sIFR-root { font-size: 12px; color: #FFFFFF; background-color: #5613A3; cursor: pointer; }',
		wmode: 'transparent'
	});

	sIFR.replace(VAGRoundedLight, {
		selector: '.book-content h2.sifr',
		css: '.sIFR-root { color: #FFFFFF; background-color: #873CDF; }',
		wmode: 'opaque'
	});

	sIFR.replace(VAGRoundedLight, {
		selector: '.book-content p.sifr',
		css: '.sIFR-root { color: #FFFFFF; background-color: #873CDF; }',
		wmode: 'opaque'
	});

	sIFR.replace(VAGRoundedLight, {
		selector: '#book-saved p.sifr',
		css: '.sIFR-root { color: #FFFFFF; background-color: #873CDF; }',
		wmode: 'opaque'
	});


	sIFR.replace(VAGRoundedLight, {
		selector: '#delete-intro p.sifr',
		css: '.sIFR-root { color: #FFFFFF; background-color: #873CDF; }',
		wmode: 'opaque'
	});
		
	sIFR.replace(VAGRoundedLight, {
		selector: '.legal-page h3',
		css: '.sIFR-root { color: #F346B7; background-color: #4B187F; }',
		wmode: 'opaque'
	});

	sIFR.replace(VAGRoundedLight, {
		selector: '#header p.hello-user span.nolink',
		css: [
				'.sIFR-root {color: #722db3; text-align: right}',
				'.name {color: #f346b7;}'
			],
		wmode: 'transparent'
	});

	sIFR.replace(VAGRoundedLight, {
		selector: '#header p.hello-user span.link',
		css: [
				'.sIFR-root {color: #f346b7; text-decoration: underline; text-align: right; cursor: pointer; }',
				'a {color: #f346b7; text-decoration: underline; }',
		        'a:hover { color: #722db3; text-decoration: underline; }',
		        'a:active { color: #722db3; text-decoration: underline; }'
			],
		wmode: 'transparent',
		fitExactly: true
	});

	sIFR.replace(VAGRoundedLight, {
		selector: '#delete-library p',
		css: '.sIFR-root { font-size: 14px; color: #FFFFFF; }',
		wmode: 'transparent'
	});

	sIFR.replace(CooperRoundedBlack, {
		selector: '.edit-library h1',
		css: [
				'.sIFR-root { color: #ffffff; }'
			],
		wmode: 'transparent'
	});

	sIFR.replace(VAGRoundedLight, {
		selector: '.message-delete p, #message-delete-success h2',
		css: '.sIFR-root { font-size: 14px; color: #FFFFFF; }',
		wmode: 'transparent'
	});

	sIFR.replace(VAGRoundedLight, {
	    selector: 'h2#subtitle-libraries',
		css: '.sIFR-root { font-size: 16px; color: #FFFFFF; }',
		wmode: 'transparent'
	});

	sIFR.replace(VAGRoundedLight, {
		selector: '#personal-message-popup p',
		css: '.sIFR-root { font-size: 14px; color: #FFFFFF; }',
		wmode: 'transparent'
	});
	sIFR.replace(VAGRoundedLight, {
		selector: '#crop-image p.instructions',
		css: '.sIFR-root { font-size: 14px; color: #FFFFFF; }',
		wmode: 'transparent'
	});
	sIFR.replace(VAGRoundedLight, {
		selector: '#crop-image p.preview',
		css: '.sIFR-root { font-size: 10px; color: #FFFFFF; }',
		wmode: 'transparent'
	});

	sIFR.replace(VAGRoundedLight, {
	    selector: 'h2#subtitle-books',
		css: '.sIFR-root { font-size: 16px; color: #FFFFFF; }',
		wmode: 'transparent'
	});

	sIFR.replace(VAGRoundedLight, {
	    selector: 'h2#subtitle-scrapbook',
	    css: '.sIFR-root { font-size: 16px; color: #FFFFFF; }',
	    wmode: 'transparent'
	});
	sIFR.replace(VAGRoundedLight, {
		selector: '#personal-message p, #bookshop #bookshop-welcome',
		css: '.sIFR-root { font-size: 14px; color: #FFFFFF; }',
		wmode: 'transparent'
	});
	sIFR.replace(VAGRoundedLight, {
		selector: '#book-viewer #book-wrapper #book-content h2',
		css: '.sIFR-root { color: #FFFFFF; }',
		wmode: 'transparent'
	});
	sIFR.replace(VAGRoundedLight, {
		selector: '#book-viewer #book-wrapper #book-content p',
		css: '.sIFR-root { color: #cdafff; }',
		wmode: 'transparent'
	});
	sIFR.replace(VAGRoundedLight, {
		selector: '#bookshop-promo-box span, #bookshop #furrytales-books-note, #bookshop .children-list li',
		css: [
			'.sIFR-root { color: #ffffff; font-size: 11px; }',
			'a { color: #ffffff; text-decoration: none; }',
			'a:hover { color: #ffffff; text-decoration: none; }'
		],
		wmode: 'transparent'
	});
	sIFR.replace(VAGRoundedLight, {
		selector: '#bookshop .book-list li .book-title, #bookshop-buying-popup #book-title, #bookshop-buying-popup #book-title, #bookshop-buying-popup #customized-for',
		css: '.sIFR-root { color: #ffffff; font-size: 12px; }',
		wmode: 'transparent'
	});

	sIFR.replace(VAGRoundedLight, {
		selector: '#bookshop-grownup-lockoff-popup h1',
		css: '.sIFR-root { color: #ffffff; font-size: 24px; }',
		wmode: 'transparent'
	});

}


sifrApply();

