// JavaScript Document

/* START RESIZE IFRAME */
 
 function testIT()
 {
	 alert("OK");
 }
 
 function onFrameLoadHandler()
 {
	if(document.all) //ie
		frame = document.all['tickerFrame'];
	else // ns6
		frame = document.getElementById('tickerFrame');
		

  var childWindow = frame.contentWindow;
	
	
	resizeIFrame(childWindow);
	
	
	
	
	//iframeElement.style.height = getDomainCookie('couponBuilderHeight');
 }
 
 

function resizeIFrame(iframeWindow) 
{ 	

	if (iframeWindow.document.body.offsetHeight) // ns6
	{
		var iframeElement = document.getElementById(iframeWindow.name);
				
		if (iframeElement.style != null)
			iframeElement.style.height = iframeWindow.document.body.offsetHeight + 'px';
	}
	else if (document.all) //ie
	{
		var iframeElement = document.all[iframeWindow.name];
		
		if (iframeWindow.document.compatMode && iframeWindow.document.compatMode != 'BackCompat') //Back ckompliant
		{
			if (iframeElement.style != null)
				iframeElement.style.height = iframeWindow.document.body.clientHeight + 'px';
		}
		else //CSS1compliant
		{
			if (String(iframeElement) != "undefined")
			{				
				if (iframeElement.style != null)
					iframeElement.style.height = iframeWindow.document.body.clientHeight + 'px';
			}
		}
	}
}

