// Smartbutton Include File
// Customize the IMG SRC tags for the images you are using
// Customize the customer and dept


// IF AGENTS ARE AVAILABLE: 
function agents_available() { 

var xurl = decodeURI(window.location);
var date= new Date();
date.setTime(date.getTime()+(2*24*60*60*1000));
var expires = "expires="+date.toGMTString();


	if(xurl.match("lavasoft_store")) 

	{
  
	document.getElementById('smartbutton').innerHTML = '<A HREF="" onClick="document.cookie=\'x-affiliate=8556; path=/;'+expires+'\';window.open(\'https://admin.instantservice.com/Customer?ai=7498&di=39208&optionaldata5='+window.location+'&optionaldata6='+document.referrer+'&trackingid='+ISVT_getVTID()+'\',\'custclient\',\'width=500,height=320,scrollbars=0\');return false;"><IMG SRC="https://secure.lavasoft.com/js/marketlinc/click-b.jpg"></A>'; 

	}

	else 
	
	{ 
	
	document.getElementById('smartbutton').innerHTML = '<A HREF="" onClick="document.cookie=\'x-affiliate=8556; path=/;'+expires+'\';window.open(\'https://admin.instantservice.com/Customer?ai=7498&di=39207&optionaldata5='+window.location+'&optionaldata6='+document.referrer+'&trackingid='+ISVT_getVTID()+'\',\'custclient\',\'width=500,height=320,scrollbars=0\');return false;"><IMG SRC="https://secure.lavasoft.com/js/marketlinc/click-a.jpg"></A>'; 

	}
			


  
return true; 
} 
  
// IF AGENTS ARE NOT AVAILABLE: 
function agents_not_available() { 
  
document.getElementById('smartbutton').innerHTML = '<IMG SRC="https://secure.lavasoft.com/js/marketlinc/offline.jpg">'; 
  
return true; 
} 

 
document.write('<img src="//admin.instantservice.com/resources/smartbutton/7498/39207/available.gif?'+Math.floor(Math.random()*10001)+'" style="width:0;height:0;visiblity:hidden;position:absolute;" onLoad="agents_available()" onError="agents_not_available()">');

