var chapparalpro = {
	src: '/js/sifr/chapparalpro.swf',
	wmode: 'transparent'
};
 var belloscript = {
		    src: '/js/sifr/belloscript.swf',		    	
		    wmode: 'transparent'
		};
 
sIFR.activate(chapparalpro,belloscript);

 function initSifr()
 {
	 
	 
	 sIFR.replace(belloscript, {
		    selector: 'h1'
		    ,css: [
		      '.sIFR-root { font-size:30px; font-weight: normal; color:#a3258e; }'
		    ]
		});
	 sIFR.replace(belloscript, {
		    selector: 'h2'
		    ,css: [
		      '.sIFR-root { font-size:24px; font-weight: normal; color:#a3258e; }'
		    ]
		});
	 sIFR.replace(chapparalpro, {
		selector: '#leftmenuContainer li'
		,forceSingleLine: true
		,tuneHeight: '26px'
		,offsetTop: '15px'
		,css: [
		       '.sIFR-root { font-size:18px; font-weight:normal;margin-left:36px;color:#4b473d; }'
		       ,'a { text-decoration: none; color:#4b473d;}'
		       ,'a:link { color: #4b473d; }'
		       ,'a:hover { color: #4b473d; }'
		]
	});
	 sIFR.replace(chapparalpro, {
			selector: '#menuContainer li.selected'
			,forceSingleLine: true
			,offsetTop: '4px'
			,css: [
			       '.sIFR-root { font-size:18px; font-weight:normal;color:#a2248e; }'
			       ,'a { text-decoration: none; color:#a2248e;}'
			       ,'a:link { color: #a2248e; }'
			       ,'a:hover { color: #a2248e; }'
			]
		}); 
	sIFR.replace(chapparalpro, {
			selector: '#menuContainer li'
			,forceSingleLine: true
			,offsetTop: '4px'
			,css: [
			       '.sIFR-root { font-size:18px; font-weight:normal;color:#4b473d; }'
			       ,'a { text-decoration: none; color:#4b473d;}'
			       ,'a:link { color: #4b473d; }'
			       ,'a:hover { color: #a2248e; }'
			]
		});
 }
 
 function showLeftImg()
 {	 
	 	
	 $("#leftMenuImg").show();
	 var realHeight= getDocHeight();

	 var offset=$("#leftMenuImg").offset();
	 var contHeight = Math.floor(realHeight - offset.top); 
	 var contWidth = Math.floor((($("html").width()-$("#container").width())/2)+$("#leftmenuContainer").width());
	 var marginLeft = Math.floor(($("html").width()-$("#container").width())/2);
	 
	 if($(window).width()<$("#container").width())
	 {
		 contWidth=$("#leftmenuContainer").width();
		 marginLeft=0;
	 }

	 $("#leftMenuImg").height(contHeight);
	 $("#leftMenuImg").width(contWidth);
	 $("#leftMenuImg").css('margin-left','-'+marginLeft+'px'); 
 }

 
function getDocHeight(){
	    return Math.max($(document).height(),$(window).height(),document.documentElement.clientHeight);
};


function showMonthInfo(monthNum)
{
	$(".monthContainer div").removeClass('selected');
	$(".yearInfoContainer").hide();
	$("#month_info"+monthNum).show();
	$(".monthContainer div:eq("+(monthNum-1)+")").addClass('selected');
	sIFR.replace(belloscript, {
	    selector: '.yearInfoContainer h2'
	    ,css: [
	      '.sIFR-root { font-size:24px; font-weight: normal; color:#a3258e; }'
	    ]
	});
}


