var dummyVariable = '';
function getcookie(sCookie)
{
var i, sItem, sKey, sValue, sCookies;
	sCookies = document.cookie;
	sValue = "";
	while (sCookies.length)
	{
		i = sCookies.indexOf(";");
		if (i >= 0)
		{
			sItem = sCookies.substring(0,i);
			sCookies = sCookies.substring(i+2,sCookies.length); 
		}
		else
		{
			sItem = sCookies;
			sCookies = "";
		}
		if (sItem.length)
		{
			i = sItem.indexOf("=");
			if(i > 0)
			{
				sKey = sItem.substring(0,i);
				sValue = sItem.substring(i+1,sItem.length);
				if (sKey == sCookie && sValue.length > 0)
				{
					return unescape(sValue);
				}
			}
		}
	}	
	return "";
}

function setcookie(sKey, sValue, iDays)
{
var obDate = new Date();
	obDate.setDate(obDate.getDate() + iDays);
var expire = "expires=" + obDate.toGMTString();
var path = "path=/";
var sCookie;
	sCookie = sKey + "=" + escape(sValue);
	if (iDays != 0) sCookie += ";" + expire;
	sCookie += ";" + path;
	document.cookie = sCookie;
}

if (getcookie("printVersion") != "1")
	setTimeout("printVersion()", 2000);
setcookie("printVersion", "1", 1);
function printVersion()
{

	alert('Use the "Print Summary" link on the top right corner\n to view a Summary of Programs offered by SmartWin.');

}

window.onload = ticker;
window.onunload = unticker;

var iCurrent = -1, timerID;
var arrHref = new Array();
var arrImage = new Array();
var arrText = new Array()

function ticker() {
	timerID = setInterval("loadImages()",3000);
}
function unticker(){
	if (timerID) clearInterval(timerID);
}

function linkToSite(){
var sURL = arrHref[iCurrent], sStr;
	
	if (sURL.length == 0) 
		return;
	else
		clearInterval(timerID);
	
	sStr = sURL.toLowerCase();
	if (sStr.indexOf("javascript:") == 0)
	{
		sStr = sURL.substring(11, sURL.length);
		eval(sStr);
	}	
	else
	{
		if (sURL.indexOf('?') > 0)
			sURL += "&";
		else
			sURL += "?";
		sURL += "rnd=" + Math.round(Math.random()*100000);
		window.location = sURL;
	}
}

arrImage[0] = "";
arrHref[0] = "specials.htm#Google";
arrText[0] = "<b>Level-2</b> <font color='red'>Google Checkout</font> integration, coupled with <b>Froogle</b> Google <b>sitemap XML</b>, &amp; Google <b>Analytics</b> offers your the best Google promotion &amp; sales tools...";
arrImage[1] = "";
arrHref[1] = "http://demo.smartwin.net";
arrText[1] = "<b>Full</b> <font color='red'>PayPal Web Payments Pro</font> integration has been implemented in CyberShop. Click to view demo of PayPal Express Checkout and more ...";
arrImage[2] = "";
arrHref[2] = "cyberbuild.htm";
arrText[2] = "<font class=\"heading\">CyberOffice Warehouse Builder</font>, our leading WYSIWYG online store program now includes <font color=\"red\"><b>Free One Year</b> hosting</font> plan!";
arrImage[3] = "";
arrHref[3] = "";
arrText[3] = "<font class=heading>World's top <font color=red>online store solutions</font> &amp; <font color=red>shopping mall software</font> provider <font class=body>(<a href=http://www.google.com.au/search?q=online+store+solutions target=_blank>ranked by Google</a>, and <a href=http://www.google.com.au/search?q=shopping+mall+software target=_blank>this</a>)</font></font>";
arrImage[4] = "";
arrHref[4] = "specials.htm#eBay";
arrText[4] = "Automation module on <b>eBay</b> Listing and <font color=red>Checkout Integration</font> with your regular Web site. Click for details...";
arrImage[5] = "";
arrHref[5] = "hosting.htm";
arrText[5] = "SmartWin now offers <b><font color='red'>Hosted eCommerce Services</font> from single store to shopping mall</b>, Click to view details...";
arrImage[6] = "";
arrHref[6] = "http://demo.smartwin.net/warehouse/";
arrText[6] = "New <b><font color='red'>WYSIWYG</font> Storefront Customization Wizard</b> has been added to CyberBuild and CyberMall, Click to view and experience the demo ...";
arrImage[7] = "";
arrHref[7] = "specials.htm#Phone";
arrText[7] = "Fully integrated, encrypted, and automated Prepaid Phone Cards selling system is available from SmartWin...";
arrImage[8] = "";
arrHref[8] = "products.htm";
arrText[8] = "Industrial strength triple-DES encryption now a standard feature on all the eCommerce components. Click for more information...";

function loadImages()
{
var img, text;
	img = document.images['container'];
	if (img)
	{
		iCurrent ++;	
		if (iCurrent >= arrImage.length)
			iCurrent -= arrImage.length;
		 
		if (arrImage[iCurrent].length) img.src = arrImage[iCurrent];
		img.title = arrText[iCurrent];
		if(document.getElementById)
		{
			text = document.getElementById('containerText');
			if (text) text.innerHTML = img.title;
		}
	}
}

document.write('<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="550">');
document.write('<TR><TD bgcolor="">&nbsp;</TD><TD width="550">');

if (document.getElementById)
{	document.write('<a style="text-decoration:none" href="JavaScript:linkToSite()">');
	document.write('<IMG border=0 name="container" src="images/Spacer.gif"><font class="bodyblue"><font color=""><div id="containerText"></div></font></font>');
} else
{
	document.write('<a href="JavaScript:linkToSite()">');
	document.write('<IMG border=0 name="container" src="images/Spacer.gif" width="550" height="26">');
}
document.write('</a></TD><TD bgcolor="">&nbsp;</TD></TR>');
document.write('<TR><TD colspan="3" align="center" bgcolor="">');
document.write('</TD></TR>');
document.write('</TABLE>');
