/**
 * side advert checker
 *
 * @package com.solova.javascript
 * @version $Id: sideAdvert.js,v 1.1 2006/02/14 15:13:52 slac Exp $
 * @copyright Copyright 2006. SolovaCOM
 * @author Laszlo SOLOVA
 */
function showAdvertFrame(left, top, width, height, href) {
	var window_width, window_height;
	if (self.innerHeight) {	// all except Explorer
		window_width = self.innerWidth;
		window_height = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		window_width = document.documentElement.clientWidth;
		window_height = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
		window_width = document.body.clientWidth;
		window_height = document.body.clientHeight;
	}	
	if( left+width < window_width ) {
		document.write("<div style=\"position:absolute; left:"+left+"px; top:"+top+"px; \"><iframe src=\""+href+"\" frameborder=\"0\" scrolling=\"no\" width=\""+width+"px\" height=\""+height+"px\"></iframe></div>");
	}
} // end of showAdvertFrame