function resize(){

	var minWidth=996;
	var maxWidth=1230;
	var noOfMenu=4;
	var currentWidth = document.documentElement.clientWidth;
	
	if(currentWidth>maxWidth)
		currentWidth = maxWidth;		
	if(currentWidth<minWidth)
		currentWidth = minWidth;
	
	var menuWidth = currentWidth*0.77;
	var subMenuWidth = Math.round(menuWidth/noOfMenu);
		menuWidth = subMenuWidth * noOfMenu;
		
	document.getElementById("wrapper").style.width=currentWidth+"px";
	document.getElementById("mainNav").style.width=currentWidth+"px";
	document.getElementById("topNav").style.width=currentWidth+"px";
	
	document.getElementById("menu").style.width=menuWidth+"px";
	
	if(document.getElementById("hdnews")!=null)
		document.getElementById("hdnews").style.width=currentWidth+"px";

	if(document.getElementById("mainImageOutline")!=null)
		document.getElementById("mainImageOutline").style.width=currentWidth+"px";

	if(document.getElementById("animate")!=null)
		document.getElementById("animate").style.width=currentWidth+"px";	
	
	if(document.getElementById("slideNews")!=null)
		document.getElementById("slideNews").style.width=subMenuWidth+"px";	
	
	if(document.getElementById("wrap")!=null) {
		document.getElementById("wrap").style.width=currentWidth+"px";
		document.getElementById("wrap").style.top=500*currentWidth/1230+"px";
		document.getElementById("footer").style.paddingTop=800*currentWidth/1230+10+"px";
	}
		
	if(document.getElementById("slidingTabWrapper")!=null){
		var slidingWrapperWidth = menuWidth*0.98;
			document.getElementById("slidingTabWrapper").style.width=slidingWrapperWidth+"px";
			document.getElementById("ulSlidingTabPanel").style.width=slidingWrapperWidth-5+"px";
	}
	
	if(document.getElementById("slidingPanel")!=null){
		var maxTabWidth = 200;
		var tabBarWidth = menuWidth*0.97;
		var tabMenuWidth = tabBarWidth/(tabs.length+1);
			document.getElementById("slidingPanel").style.width=tabBarWidth+"px";	
		
		if(tabMenuWidth>200)
			tabMenuWidth = maxTabWidth;
			
		for(var k=0; k<tabs.length; k++){
			var elementName = tabs[k];
				document.getElementById(elementName).style.width=tabMenuWidth+"px";
		}
		
		for(var k=0; k<tabs.length; k++){
			var elementName = tabs[k]+"Panel";
			var id=k+1;
			var arrowBox ="arrowBox_"+id;
			var leftArrowId = "slideLeftArrowBox_"+id;
			var righttArrowId = "slideRightArrowBox_"+id;
				document.getElementById(elementName).style.width=menuWidth*0.97+"px";
				document.getElementById(arrowBox).style.width=menuWidth*0.97+"px";
				if(document.getElementById(leftArrowId)!=null)
				document.getElementById(leftArrowId).style.display='inline';
				if(document.getElementById(righttArrowId)!=null)
				document.getElementById(righttArrowId).style.display='inline';				
		}
	
	}	
	
}

function quoteTxt(){
	if(document.getElementById("quoteTxtHidden")!=null && document.getElementById("lCaptionstext")!=null){
		document.getElementById("lCaptions").style.display='block';
		document.getElementById("lCaptionstext").innerHTML = document.getElementById("quoteTxtHidden").innerHTML;
	}
}
quoteTxt();
