// screen dims
var swdim = screen.width;
var shdim = screen.height;
// plugins
if(navigator.plugins["Shockwave Flash"]){
	var flash = 'true';
	var y = navigator.plugins["Shockwave Flash"].description;
	var flashversion = y.charAt(y.indexOf('.')-1);
} else {
	var flash = 'false';
}
if(flash==undefined){
	var flash = 'true';
	var flashversion = 0;
}
// get all plugin info
/*for(i=0;i<navigator.plugins.length;i++){
	document.write(navigator.plugins[i].name+'<br />');
}*/
// Director Version
/*if(navigator.plugins["Shockwave for Director"]){
	var director = 'true';
} else {	
	var director = 'false';
}
*/
function replaceIt(sString,sReplaceThis,sWithThis) {
	if (sReplaceThis != "" && sReplaceThis != sWithThis) {
	var counter = 0;
	var start = 0;
	var before = "";
	var after = "";
		while (counter<sString.length) {
		start = sString.indexOf(sReplaceThis, counter);
			if (start == -1) {
				break;
			} else {
				before = sString.substr(0, start);
				after = sString.substr(start + sReplaceThis.length, sString.length);
				sString = before + sWithThis + after;
				counter = before.length + sWithThis.length;
			}
		}
	}
return sString;
}
// current page location
var thisloc = document.URL;
// referrer
var thisrefraw = document.referrer;
if(thisrefraw.search("images.google")!=-1){
		var thisrefraw = parent.document.referrer;
		//var thisrefraw = top.document.referrer;
}
//var  thisref= thisrefraw.replace("&","-amp-");
var thisref = replaceIt(thisrefraw,"&","-amp-");
document.write('<script');
document.write(' language="javascript"');
document.write(' type="text/javascript"');
document.write(' src="flow_lib/captureV2.php?swdim='+swdim+'&shdim='+shdim+'&flash='+flash+'&flashV='+flashversion+'&loc='+thisloc+'&ref='+thisref+'">');
document.write('</script>');