//gets the document properties in order to use them as there are many types of browers with different versions
function getDocID(tagLayer)
{
	var tagProp = "";//holds the proerties of tagLayer

	//gets the whichLayer Properties depending of the differnt bowers the user is using
	if (document.getElementById)//this is the way the standards work
		tagProp = document.getElementById(tagLayer);
	else if (document.all)//this is the way old msie versions work
		tagProp = document.all[tagLayer];
	else if (document.layers)//this is the way nn4 works
		tagProp = document.layers[tagLayer];
		
	return tagProp;
}//end of getDocID()

//starts up the page
function startUp()
{
	var oldonload=window.onload;//holds any prevs onload function from the js file
 
	//gets the onload window event checks if there is a function that is already in there
	window.onload=function(){
		if(typeof(oldonload)=='function')
			oldonload();
														
		//finds which browser the user is using for Firefox it is the defult
		//for IE 
		if (navigator.userAgent.indexOf('MSIE') != -1)
		{
			//checks if IE is 7 as IE 8 is more standards compliated
			if(navigator.appVersion.indexOf('MSIE 7') != -1)
			{				
				var tagBottomHeader = getDocID('divBottomHeader');//holds the BottomHeader
				
				//checks if there the page is in the Bottom Header
				if(tagBottomHeader != null)
				{
					tagBottomHeader.style.marginLeft = "150px";
					tagBottomHeader.style.left = "-1px";
					
					//alert(navigator.appVersion)
				}//end of if
			}//end of if
		}//end of if
		//for Safari and Mac
		else if (navigator.userAgent.indexOf('Safari') !=-1 || navigator.platform.indexOf("Mac") > -1)
		{
			var tagBlogBodyNavigation = getDocID('divBlogBodyNavigation');//holds the BlogBodyNavigation
				
			//checks if there the page is in the Product has no options
			if(tagBlogBodyNavigation != null)
			{
					tagBlogBodyNavigation.style.width = "200px";
					/*tagBlogBodyNavigation.style.padding = "0 0 7px 675px";
					tagBlogBodyNavigation.style.backgroundColor = "#FFF";*/
			}//end of if
		}//end of if else
		//for firefox
		else if (navigator.userAgent.indexOf('Firefox') !=-1)
		{
		}//end of if else
		//for Opera
		else if (navigator.userAgent.indexOf('Opera') !=-1)
		{
			
		}//end of if else	
	}//end of window.onload=function()
}//end of startUp()
