//HERE ARE THE SETTING VARIABLES:
var server_address = "www.lumbermax.com";
var server_port = "8724";
var crossdomain_location = "http://www.complaintremover.com/crossdomain.xml";
var contact_email = "wss_iulian@yahoo.com";



//IMPORTANT! -> DO NOT CHANGE CONTENT!

// Livechat script
// created by Vais ( vaisbse@yahoo.com )

var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
var intrv = 0;
var docTitle = document.title;
var counter = 0;

function change() {
	counter = counter + 1;
	if( counter % 2 == 0 )
		document.title = "[ Please Answer!!! ]  " + docTitle + "[!]";
	else
		document.title = docTitle;
	if( counter > 10 ) {
		counter = 0;
		clearInterval( intrv );
		document.title = docTitle;
	}

}

function livechat_DoFSCommand(command, args) {
	var livechatObj = isInternetExplorer ? document.all.livechat : document.livechat;
	//
	// Place your code here.
	//
	if( command == "BLINK" ) {
	 	intrv = setInterval( "change()", 1000 );
	}
	if( command == "ALERT" ) {
		alert( args );
	}
}

if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub livechat_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call livechat_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}

function getBrowser() {
	return navigator.appName + " " + navigator.appVersion;
}

function getURI() {
	return location.href;
}

function StartMovie() {
	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
			'width', '400',
			'height', '300',
			'src', 'livechat',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'window',
			'devicefont', 'false',
			'id', 'livechat',
			'bgcolor', '#6699ff',
			'name', 'livechat',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', 'livechat',
			'salign', '',
			'swLiveConnect', 'true', 
			'flashvars', 'urli=' + getURI() + '&browser=' + getBrowser() + '&server_address=' + server_address + '&server_port=' + server_port + '&crossdomain_location=' + crossdomain_location + '&contact_email=' + contact_email
			); 
	}
}
