// JavaScript Document
 chrome.extension.sendRequest({greeting: "rrq"}, function(response) {  var resfrombackground=response.farewell;   
var str = resfrombackground;   dynamicval=str.split(','); var showrightad = dynamicval[20]; var upsiz=dynamicval[22];  	 if (showrightad == 'Y') 		{      	mydiv=document.createElement("DIV"); 	mydiv.setAttribute('id',"brlyr1"); 	mydiv.style.width = dynamicval[21];     mydiv.style.height = dynamicval[22]; 	myidiv=document.createElement("DIV"); 	myidiv.setAttribute('id',"ibrlyr1");     ifrm = document.createElement("IFRAME");     var page_src=dynamicval[23]; 	    ifrm.setAttribute("src", page_src);    ifrm.setAttribute('id',"brifrm");    ifrm.style.width = dynamicval[21];    ifrm.style.height = dynamicval[22];    ifrm.setAttribute("frameborder","0");    ifrm.setAttribute("scrolling","no");    document.body.style.position='relative'; mydiv.style.position='fixed'; mydiv.style.right='0px'; mydiv.style.bottom='0px'; mydiv.style.zIndex="1000002"; myidiv.style.position="relative";   	cimg=document.createElement("IMG"); 	cimg.setAttribute('id',"rcimg"); 	cimg.setAttribute('src',chrome.extension.getURL("close.jpg")); 	cimg.style.position="absolute"; 	cimg.style.top="8px"; 	cimg.style.right="0px"; 	cimg.style.width="15px"; 	cimg.style.height="15px"; 	cimg.style.zIndex="1000003"; 	cimg.style.display="none"; 	   var firsttaginbody=document.body.firstChild; document.body.insertBefore(mydiv,firsttaginbody); document.getElementById('brlyr1').appendChild(myidiv);  document.getElementById('ibrlyr1').appendChild(ifrm); document.getElementById('ibrlyr1').appendChild(cimg);    function closeall()   { document.getElementById('brlyr1').style.display='none';    } 		 document.getElementById('rcimg').onclick=closeall;    function showrcimg()   { document.getElementById('rcimg').style.display='block';  document.getElementById('brlyr1').style.border="1px solid #bfbfbf"; }  document.getElementById('brifrm').onload=showrcimg;  

}
});  