function showfixes() {		
		var winheight = $(window).height();
		var winwidth = $(window).width();
		if($.browser.opera){
			winwidth = window.innerWidth;
			winheight = window.innerHeight;
		}
		var y =700;
		var x =1210;
		var dif_y = winheight - y;
		var dif_x = winwidth - x;
		if(dif_y < 0){
			dif_y = 0;
		}
		if(dif_x < 0){
			dif_x = 0;
		}
		var navwidth = 182;
		if($.browser.msie || $.browser.opera){
			navwidth = 183;
		}
		var wrapwidth = 1210;	
		var bg_ypos = -(490-dif_y);
		var bg_xpos = -(600-dif_x);		
		var poptop = 150; /*Countdown*/
		var popleft = 340; /*Countdown*/
		//var callout_left = 175;
		var footer_left = 15;	
		
		/* The overlay layer always have the same size of the window */
		$('#popup_overlay').css('width',winwidth);
		$('#popup_overlay').css('height',winheight);
		
		/* This segment locate the popup box */
		var mainWidth = 590;
		var mainHeight = 472;
		var navsWidth = 258;
		var mainPadding =90;
		var leftLocation = 10;
		
		mainWidth = mainWidth + mainPadding;
		var popWidth = $("#general_popup").width();
		var popHeight = $("#general_popup").height();
		if(popWidth < mainWidth)
			leftLocation = (mainWidth - popWidth) / 2;
		
		var topLocation = (mainHeight - popHeight) / 2;
		if(divIsChart){
			topLocation = topLocation + 45;
		}
		$("#general_popup").css('top',topLocation+dif_y);
		$("#general_popup").css('left',leftLocation+navsWidth+dif_x);
		$('#fixtop').css('display','block');
		$('#fixtop').css('height',dif_y); 
		$('#nav').css('width',navwidth+dif_x);
		$('#wrapper').css('width',wrapwidth+dif_x);
		$('body').css('background-position',bg_xpos+'px '+bg_ypos+'px');
		$('#popup_content').css('top',poptop+dif_y);  
		$('#popup_content').css('left',popleft+dif_x);
		$('#fixtop').css('margin-left',dif_x);
		//$('.callout').css('left',callout_left+dif_x);
		$('#footer').css('margin-left',footer_left+dif_x);
		
		/*Fixing composer flash*/
		var composer_top = 10;
		var composer_left = 10;
		$('#composer_flash').css('top',composer_top + dif_y);
		$('#composer_flash').css('left',composer_left + dif_x);
	}
	
	$(function(){
		showfixes();
		$('body').css('display','block');
	});
	
	$(window).resize(function() {
		showfixes();
	});