﻿$(document).ready(function() {
    if (navigator.appName == "Microsoft Internet Explorer")
	{
	    if (navigator.appVersion.indexOf('MSIE 7.0') != -1 || navigator.appVersion.indexOf('MSIE 6.0') != -1)
	    {	        
	        if (typeof forFixingcss != "undefined")
	        {
	            var LogoAreaStyle = document.getElementById("LogoArea").style;
	            
	            LogoAreaStyle.marginTop="18px";
	        }
	        
	        if (typeof sideboxDocContent != "undefined")
	        {
	            var sideboxDocContentStyle = document.getElementById("sideboxDocContent").style;
	            var contentContainerStyle = document.getElementById("contentContainer").style;
	            
	            sideboxDocContentStyle.width="204px";
	            sideboxDocContentStyle.height="264px";
	            contentContainerStyle.marginTop="10px";
	        }
	        
	        if (typeof Links != "undefined")
	        {
                var LinksStyle = document.getElementById("Links").style;
                var bodyStyle = document.getElementById("bodyContainer").style;
                
                LinksStyle.marginTop="6px";
    	        bodyStyle.marginTop="-14px";
                
                //another approach but ineffective if you already declared the particular property in css especially in id.
    		    //$("#Links").addClass('fixedLinks');   
    		}
    		else
    		{
    		    var bodyStyle = document.getElementById("bodyContainer").style;
    		    
    		    bodyStyle.marginTop="-14px"; 
    		}
	    }
	}
});