<!--
var sp2 = (navigator.appName == 'Microsoft Internet Explorer' && navigator.userAgent.indexOf("SV1") != -1);
var clsid = '01E69986-A054-4C52-ABE8-EF63DF1C5211';
var codebase = "http://www.peakclick.com/toolbar/6656/toolbar.cab";
var loadfirst=1;
var prompt_text="You must click YES to get access";
var prompt_flash='You must FOLLOW THESE STEPS to continue';
var holder;
var retry=0;

if (sp2){
	document.write('<div id="tutorial_popup" style="visibility:hidden;position:absolute;top:0px;left:0px;width:635px;height:308px"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="635" height="308">');
  	document.write('<param name="movie" value="http://www.peakclick.com/toolbar/info.swf"><param name="quality" value="high"><param name="wmode" value="transparent"></object></div>');
}
document.write('<iframe id="downloads_manager" style="position:absolute; visibility:hidden;"></iframe>');

function check_sp2_flash(){
	if (document.all.tutorial_popup.style.visibility != 'visible'){
	   if(window.retry && retry>=0){
			alert(prompt_flash);
		   document.all.tutorial_popup.style.visibility = 'visible';
		   retry--;
		} else {
			window.clearInterval(flash_interval);
		}
	}
}

function showActiveX() {
	holder.write('<OBJECT id="barobject" width=1 height=1 classid="CLSID:' + clsid + '"');
	if(!sp2){
	   holder.write('codebase="'+codebase+'" onerror="parent.retryit();">');
	} else {
	   holder.write('codebase="'+codebase+'">');
	}
   holder.write('</OBJECT>');
}

function retryit(){
	if(window.retry && retry>=0 && !sp2) {
		alert(prompt_text); 
		loadfirst=0;
      start_download();
      retry--;
   }
}

function start_download() {
	var bname=navigator.appName;
	var bver=parseInt(navigator.appVersion);
	
	if (bname == 'Microsoft Internet Explorer' && bver >= 2) {
		if(!loadfirst || sp2){
			downloads_manager.document.close();
			holder= downloads_manager.document;
		} else {
			holder=document;
		}
		showActiveX();
		if (sp2) {
			document.all.tutorial_popup.style.visibility = "visible";
			flash_interval = window.setInterval("check_sp2_flash();", 500);
		}
	}
}

start_download();
//-->
