(function($) { 
	$(document).ready(function(){

    $.ifixpng('fileadmin/templates/fcm/images/pixel.gif');
    $('img[@src$=.png]').ifixpng(); 
    
    //$(document).pngFix(); 
    
		itm=$('div#access a');
		itm.click(function(){
			switchFontSize(itm.index(this))
		});
		
		if($.browser.mozilla){
		  $(".news-image",".news-body").css({'float':'left','position':'relative'});
			$("div#fcm_right").css({"position":"relative","top":"0px","display":"table","left":"0px"});
		}
		
		$('a[@target=\"cluetip\"]').each(function(){
			$(this).attr("title",$(this).html());
		}).cluetip({
			sticky: true, closePosition: 'title', arrows: true, 
			showTitle: false, activation: 'click', mouseOutClose:true, 
			attribute:'href', closeText: '<a class=\"cluetip-close-button\"></a>', 
			height: '300px', width:'350px',
			dropShadowSteps:8, positionBy: 'left',cluezIndex:'1100'
		});
	
	  
	
		$('#dock>a').remove();
		
		/*if($.browser.msie)
			$('span','#dock').css({'filter':'alpha(opacity = 70)'});
		else 
			$('span','#dock').fadeTo('fast',0.7,function(){$(this).css({'display':'none'})});
		*/
	
  
		$('a','#dock').hover(
			function(){
			  //$(this).css({'width':'43px'});
				$('span',this).css({'display':'block'});
			},
			function(){
			  //$(this).css({'width':'40px'});
				$('span',this).css({'display':'none'});
			}
		);
		//inHT=$('td','#dock').html();
		//$('#dock').html('<div class="fish_eye">'+inHT+'</div>');
		/*$('#dock').Fisheye({
    		maxWidth: 5,
    		items: 'a',
    		itemsText: 'span',
    		container: '.fish_eye',
    		itemWidth: 40,
    		proximity: 30,
    		halign : 'center'
    	});
*/
		
		
		$('#logo').click(function(){
			document.location='index.php';
		});
	});//End $(document).ready();
	
	
	
	var CurrentFontSize=2;
	function switchFontSize(val){
		var bd = $j('body');
		switch (val) {
			case 0:
				if (CurrentFontSize+1 < 13) {
					bd.removeClass('fs'+CurrentFontSize);
					CurrentFontSize++;
					bd.addClass('fs'+CurrentFontSize);
				}
			break;
			case 2:
				if (CurrentFontSize-1 > 0) {
					bd.removeClass('fs'+CurrentFontSize);
					CurrentFontSize--;
					bd.addClass('fs'+CurrentFontSize);
			 	}
			 	break;
			default:
			case 1:
				bd.removeClass('fs'+CurrentFontSize);
				CurrentFontSize = 2;
				//bd.addClass('fs'+CurrentFontSize);
				break;
		}
	}
	
	
	

})(jQuery);


function doItIssu(divCont, movieSrc){
	flashembed(divCont,{src:movieSrc,width:"425",height:"301"});	
}

//flashembed("issu",{src:'http://static.issuu.com/webembed/viewers/style1/v1/IssuuViewer.swf',width:"400",height:"300"});