var affInterfaceOptions = '&pr_code=Qsb21lKatoQ5m799T8YN25SZDWZ9fG&cols=3&rows=4&shop=h2-second';

function IncludeAffInterface(options,file){
	if(!file) file = 'pr_interface';
	options = affInterfaceOptions + (options ? '&'+options : '');
	document.write('<SCRIPT type="text/javascript" src="http://www.templatehelp.com/codes/'+file+'.php?'+options+'"><'+'/SCRIPT>');
}

function Popup(url){
	window.open(
		url,
		'window',
		'width=600, height=600, resizable=yes, scrollbars=yes, location=no,  toolbar=no, menubar=no, status=no'
	);
}
// Hide "www.mytemplatestorage.com" from status bar
function HideStatus(){
	window.status = document.readyState!="complete" ?
		"Loading Page... Please Wait" : window.defaultStatus;
	//addEventListener('load', window.status = "tst" ,true) ;
}
document.onreadystatechange = HideStatus;

function resizeIframe(iframeID) { 
if(self==parent) return false; /* Checks that page is in iframe. */ 
else if(document.getElementById&&document.all) /* Sniffs for IE5+.*/ 

var FramePageHeight = framePage.scrollHeight + 10; /* framePage 
is the ID of the framed page's BODY tag. The added 10 pixels prevent an 
unnecessary scrollbar. */ 

parent.document.getElementById(iframeID).style.height=FramePageHeight; 
/* "iframeID" is the ID of the inline frame in the parent page. */ 
} 

