
// ****************************************************************
// * We need to be constantly aware of the user's screen size    *
// ****************************************************************

			function placeFixedIframe() {
			
				// Let's see what the available screen size is
			
				var sHeight = this.getSize().y;
				var sWidth = this.getSize().x;
				
				
				// how big is the iFrame?				
				var divHeight = $('divFixed').getSize().y;
				var divWidth = $('divFixed').getSize().x;
				
				
				var ratioDiv = divWidth/divHeight;
				var ratioStage = sWidth/sHeight;
				
				//var putMeHereH = (sHeight / 2) - (divHeight / 2) +48;
				var Xpos =  280;//submenu width ;
				var Ypos = 80; // the height of the top bar
				// 17 is the bottom bar
				
				var targetW;
				var targetH;
				
				
					targetW=  sWidth  - Xpos;
					targetH = sHeight -Ypos;
				
			
				// OK, let's put it there
				
				$('divFixed').setStyle('top', Ypos);
				$('divFixed').setStyle('left',Xpos );		
			
			//	$('divFixed').setStyle('pixelWidth', targetW);
				$('divFixed').setStyle('pixelHeight', targetH);		
				
				$('myIframeFixed').setStyle('height', targetH);
			//	$('myIframe').setStyle('width', targetW);
				
			// That's the end of placeIframe()

			}



// ****************************************************************
// * When the DOM is ready, this will fire                        *
// ****************************************************************

window.addEvent("domready", function(){

			// let's get everything right on the first load
	
	
			placeFixedIframe();



// END OF DOMREADY
	
});



// ****************************************************************
// * If the Window resizes, this will fire                        *
// ****************************************************************

window.addEvent("resize", function(){	
	
			// if the image is resized, let's do our background magic once more

		placeFixedIframe();


// END OF RESIZE
	
});

