	var iframe = false;
	var addressURL = document.location.href;
	var parentURL = parent.location.href;
	

	
	if(addressURL!=parentURL){
		iframe=true;
	}

	if(iframe==true){
	
		
		//Hide Logo and Footer
		document.getElementById("pFooterPopUp3Col").style.display = "none";
		document.getElementById("bpLogo3").style.display = "none";
		
		var __divs = document.getElementsByTagName("div");
		for(i=0;i<__divs.length;i++){
			if(__divs[i].className=="pMastHead3Col"){
				__divs[i].style.height = "20px";
			}
		}
		
	
		//Update CSS
		var cont = document.getElementById("tableContainer");
		cont.style.width = "250px";
		cont.innerHTML="";	
		
				
		var __print = document.createElement("a");
		__print.href="#";
		__print.innerHTML = "Print this page";
		__print.style.display = "block";
		__print.style.width = "auto";
		__print.style.cssFloat = "right";
		__print.style.styleFloat = "right";
		__print.style.height = "15px";
		__print.style.background = "url(http://www.bp.com/images/print_icon.gif) left top no-repeat";
		__print.style.padding = "0 0 0 18px";
		__print.onclick = function(){
			self.print();
		} 
		
		
		var __close = document.createElement("a");
		__close.href="#";
		__close.innerHTML = "Close window";
		__close.style.display = "block";
		__close.style.width = "auto";
		__close.style.cssFloat = "right";
		__close.style.styleFloat = "right";
		__close.style.height = "15px";
		__close.style.background = "url(http://www.bp.com/images/close_icon.gif) left top no-repeat";
		__close.style.padding = "0 0 0 18px";
		__close.style.margin = "0 0 0 30px";
		__close.onclick = function(){
			CallParentWindowFunction();
		}
		
		cont.appendChild(__close);
		cont.appendChild(__print);
	}
	

	
	

	function CallParentWindowFunction()
    {
        parent.closeCB();
        return false;
    }

