function repositionAndRedraw(){
	//window.onresize = function(){
	if ((document.getElementById("content-container")) && (document.getElementById("yan")) && (document.getElementById("cihangirLogo")) && (document.getElementById("footer")) && (document.getElementById("yanImg"))){
		var contentContainer = document.getElementById("content-container");
		var yan = document.getElementById("yan");
		var cihangirLogo = document.getElementById("cihangirLogo");
		var footer = document.getElementById("footer");
		var yanImg = document.getElementById("yanImg");

		var reqHeight = Math.max(contentContainer.offsetHeight + 50, 750);
		
		var windowWidth;
		var windowHeight;
		if(self.innerWidth!=undefined){
			windowWidth = self.innerWidth;
			windowHeight = self.innerHeight;
		}
		else{
			windowWidth = document.documentElement.clientWidth;	
			windowHeight = document.documentElement.clientHeight;			
		}
		
		if (windowHeight < reqHeight){
			yan.style.height = reqHeight + "px";
			cihangirLogo.style.bottom = 11 + windowHeight - reqHeight + "px";
			footer.style.bottom = 16 + windowHeight - reqHeight + "px";
		}
		else{
			yan.style.height = "100%";
			cihangirLogo.style.bottom = "11px";
			footer.style.bottom = "16px";
		}
		yan.style.width = yanImg.width + "px";

		var reqWidth = 840 + yanImg.width;

		if (windowWidth < reqWidth){
			yan.style.right = windowWidth - reqWidth + "px";
		}
		else{
			yan.style.right = "0px";
		}
	}
		/*if ((document.getElementById("bigImageContainer")) && (document.getElementById("bigImage"))  && (document.getElementById("onTop"))){
			var bigImageContainer = document.getElementById("bigImageContainer");
			var bigImage = document.getElementById("bigImage");
			bigImageContainer.style.width = bigImage.width + "px";
			var rightSide = document.getElementById("rightSide");
			
			var windowWidth;
			var windowHeight;
			if(self.innerWidth!=undefined){
				windowWidth = self.innerWidth;
				windowHeight = self.innerHeight;
			}
			else{
				windowWidth = document.documentElement.clientWidth;	
				windowHeight = document.documentElement.clientHeight;			
			}
			rightSide.style.marginLeft = bigImage.width + Math.max(30, (windowWidth - bigImage.width - 520) / 2) + "px";
			
			document.getElementById("onTop").style.width = windowWidth + "px";
			document.getElementById("bg").style.width = windowWidth + "px";
			document.getElementById("onTop").style.height = windowHeight + "px";
			
			if (windowWidth < 940){
				document.getElementById("onTop").style.width = "940px";
				document.getElementById("bg").style.width = "940px";
				//document.getElementById("myBody").style.overflowX = "scroll";
			}
			else{
				//document.getElementById("onTop").style.overflowX = "hidden";
			}
			
			if (windowHeight < 500){
				document.getElementById("onTop").style.height = "500px";
				//document.getElementById("onTop").style.overflowY = "scroll";
			}
			else{
				//document.getElementById("onTop").style.overflowY = "hidden";
			}
			//alert(document.getElementById("onTop").style.width);
			//if (document.getElementById("onTop").width < 500){
				//alert(document.getElementById("onTop").style.width);
			//}
			
			var content = document.getElementById("content");
			content.style.height = (windowHeight - 210) + "px";
		}*/
}
setInterval(repositionAndRedraw, 100);