<!--
// Declare search engines. These strings are going to be matched by referrer.
var rExp = /(\d{2,9})\|?(\d{0,5})/;

var tracking_code = window.location.search;
tracking_code = tracking_code.substring(1,tracking_code.length);
var expiresAt = new Date();
expiresAt.setFullYear(expiresAt.getFullYear() + 1);
var merchant_id_c2 = 'IC1';
var merchant_id_cu = 'CUC';
var merchant_id_d8 = 'D8C';
var ioll_url = '<IMG ' + 'SRC="http://www.datablade.com/cgi-bin/image.cgi?';


if(tracking_code.length>1 && tracking_code != 'undefined' && !getCookie('src_cd')){
		
	if(window.location.search.indexOf("&np") != -1){
		var postionOfnp = window.location.search.indexOf("&np");
		tracking_code = tracking_code.substring(0,postionOfnp -1);		
	}
	
	tracking_code = new String(tracking_code);
	
	//tracking_code = escape(tracking_code);
	forc2 = ioll_url+merchant_id_c2 + '|' + tracking_code 
	+ '" WIDTH=1 HEIGHT=1 BORDER=0 ALT="">';
	forcu = ioll_url+merchant_id_cu + '|' + tracking_code 
	+ '" WIDTH=1 HEIGHT=1 BORDER=0 ALT="">';
	ford8 = ioll_url+merchant_id_d8 + '|' + tracking_code 
	+ '" WIDTH=1 HEIGHT=1 BORDER=0 ALT="">';
	document.write(forc2);	document.write(forcu);document.write(ford8);

// Our cookie	
	document.cookie ="src_cd="+tracking_code+ "; expires=" + expiresAt.toGMTString() +"; path=/";	
	

}
else if (!getCookie('src_cd')){
	
	document.cookie = "src_cd=730055; expires=" + expiresAt.toGMTString() + "; path=/";
	
	forc2 = ioll_url+merchant_id_c2 + '|730055'	+ '" WIDTH=1 HEIGHT=1 BORDER=0 ALT="">';
	forcu = ioll_url+merchant_id_cu + '|730055' + '" WIDTH=1 HEIGHT=1 BORDER=0 ALT="">';
	ford8 = ioll_url+merchant_id_d8 + '|730055' + '" WIDTH=1 HEIGHT=1 BORDER=0 ALT="">';
	document.write(forc2);	document.write(forcu);document.write(ford8);
}

function getCookie(Name) {   	

	var search = Name + "="   

	if (document.cookie.length > 0) { 
	
	// if there are any cookies      
	offset = document.cookie.indexOf(search)       

	if (offset != -1) { 
		// if cookie exists          
		offset += search.length          
		// set index of beginning of value         
		end = document.cookie.indexOf(";", offset)          
		// set index of end of cookie value         
		if (end == -1)             
			end = document.cookie.length         
			return unescape(document.cookie.substring(offset, end))      
		}    
	}
}
//-->