var aAdLink = new Array(new Object(),new Object(),new Object(),new Object(),new Object(),new Object(),new Object(),new Object(),new Object(),new Object(),new Object(),new Object(),new Object(),new Object(),new Object(),new Object(),new Object(),new Object());
aAdLink[0]['text'] = 'PC WORLD Shop And Compare';
aAdLink[0]['desc'] = 'Read PC World Reviews, Compare Products and Get Latest Prices... All in one place!';
aAdLink[0]['lurl'] = 'http://www.pcworld.com/product/pricefinder/';
aAdLink[0]['purl'] = 'http://ad.doubleclick.net/ad/pcw_textlinks/tsotracking;sz=1x1';
aAdLink[1]['text'] = 'TP-LINK Lite N: Fast, Powerful, Affordable';
aAdLink[1]['desc'] = 'At 150 Mbps, stream movies, music, and play online games. Affordably.';
aAdLink[1]['lurl'] = 'http://ad.doubleclick.net/clk;218607609;13346828;n?http://usa.tp-link.com/products/product_des.asp?id=199';
aAdLink[1]['purl'] = '';
aAdLink[2]['text'] = 'Trade In Your Old Printer and Save';
aAdLink[2]['desc'] = 'Get $50 off a new HP Photosmart Premium with TouchSmart Web when you trade in your current printer.';
aAdLink[2]['lurl'] = 'http://ad.doubleclick.net/clk;219989229;13346828;z?http://ad.doubleclick.net/clk;219885898;43209065;a';
aAdLink[2]['purl'] = '';
aAdLink[3]['text'] = 'SIGNAL PROBLEMS SOLVED WITH zBOOST!';
aAdLink[3]['desc'] = 'Bring signal into your home, office or car with zBoost. Receive 20 percent off zBoost Signal Boosters.';
aAdLink[3]['lurl'] = 'http://ad.doubleclick.net/clk;221664258;13346828;k?http://www.wi-ex.com/pcwonline210';
aAdLink[3]['purl'] = '';
aAdLink[4]['text'] = 'Global Coverage from Verizon Wireless';
aAdLink[4]['desc'] = 'Switch to America\'s Largest Wireless Network and get global coverage today. ';
aAdLink[4]['lurl'] = 'http://ad.doubleclick.net/clk;221344810;13346828;z?http://ad.doubleclick.net/clk;221392312;44754711;x';
aAdLink[4]['purl'] = '';
aAdLink[5]['text'] = 'Get rid of paper with the push of a button. ';
aAdLink[5]['desc'] = 'With the Fujitsu ScanSnap one button color scanner, you can quickly convert paper documents into electronic files. ';
aAdLink[5]['lurl'] = 'http://ad.doubleclick.net/clk;220962840;13346828;h?http://cheetah.fcpa.fujitsu.com/right_now/';
aAdLink[5]['purl'] = '';
aAdLink[6]['text'] = 'Light as your time can be';
aAdLink[6]['desc'] = 'The award-winning Acer Aspire Timeline - learn more in the Acer Laptop Center';
aAdLink[6]['lurl'] = 'http://ad.doubleclick.net/clk;221451731;13346828;a?http://www.pcworld.com/sc/acer/';
aAdLink[6]['purl'] = '';
aAdLink[7]['text'] = 'EMO Labs';
aAdLink[7]['desc'] = 'EMO Labs changes the way you experience sound. Watch their DEMOfall 09 product launch here';
aAdLink[7]['lurl'] = 'http://ad.doubleclick.net/clk;221458491;13346828;k?http://www.demo.com/FDPCAIDG';
aAdLink[7]['purl'] = '';
aAdLink[8]['text'] = 'Core&trade; i5 vPro&trade; Processor';
aAdLink[8]['desc'] = 'More Secure. More Manageable. Intelligent Performance. That?s Smart ROI. ';
aAdLink[8]['lurl'] = 'http://ad.doubleclick.net/clk;221903937;13346828;k?http://ad.doubleclick.net/clk;222168871;45594926;u';
aAdLink[8]['purl'] = '';
aAdLink[9]['text'] = 'Recommended: TuneUp Utilities 2010';
aAdLink[9]['desc'] = 'Quickly & Easily Optimize Windows 7, Vista & XP - Free Download';
aAdLink[9]['lurl'] = 'http://ad.doubleclick.net/clk;222012281;13346828;u?http://bs.serving-sys.com/BurstingPipe/adServer.bs?cn=tf&c=20&mc=click&pli=1200044&PluID=0&ord=%n';
aAdLink[9]['purl'] = '';
aAdLink[10]['text'] = 'Amazingly Portable. Surprisingly Powerful.';
aAdLink[10]['desc'] = 'The Satellite&reg; T100 series: affordable, ultrathin laptops built for your life on the go. ';
aAdLink[10]['lurl'] = 'http://ad.doubleclick.net/clk;218849574;13346828;w?http://clk.atdmt.com/DEI/go/179672896/direct/01/';
aAdLink[10]['purl'] = '';
aAdLink[11]['text'] = 'Save now with the best deals from CDW.';
aAdLink[11]['desc'] = 'Visit CDW.com/bestdeals.';
aAdLink[11]['lurl'] = 'http://ad.doubleclick.net/clk;220687455;13346828;n?http://ad.doubleclick.net/clk;220931878;44575034;l';
aAdLink[11]['purl'] = '';
aAdLink[12]['text'] = 'Lenovo Ideapad Laptops - Multimedia powerhouse on the go';
aAdLink[12]['desc'] = 'Save $$  and Customize Your Ideapad Y Series laptop with Lenovo\'s exclusive Enhanced Windows 7 Experience and multi-touch pad';
aAdLink[12]['lurl'] = 'http://ad.doubleclick.net/clk;221058788;13346828;p?http://ad.doubleclick.net/clk;221881406;45504154;z';
aAdLink[12]['purl'] = '';
aAdLink[13]['text'] = 'Free Trial of Trend Micro Internet Security Pro';
aAdLink[13]['desc'] = 'Download Free 30-Day trial of full version , includes all security features of the regular product.';
aAdLink[13]['lurl'] = 'http://ad.doubleclick.net/clk;221990810;28159734;k?http://altfarm.mediaplex.com/ad/ck/9966-93151-1105-7';
aAdLink[13]['purl'] = '';
aAdLink[14]['text'] = 'In your world, your computer should be your fortress.';
aAdLink[14]['desc'] = 'Panasonic Toughbook&reg; computers are 7 times more reliable than the industry average. Toughbook for a Toughworld&trade;.';
aAdLink[14]['lurl'] = 'http://ad.doubleclick.net/clk;222015732;13346828;y?http://ad.doubleclick.net/clk;213703221;35062658;v?http://www.panasonic.com/business/toughbook/business-rugged-laptop-toughbook-F8.asp?cm_mmc=Sigma-_-Text-Horizontal-_-PCWorld-TSO-F8Page-_-Text-Fortress';
aAdLink[14]['purl'] = '';
aAdLink[15]['text'] = 'Support Smarter with GoToAssist Express.';
aAdLink[15]['desc'] = 'Instantly view and control your customers? PCs or Macs online. Try GoToAssist Express FREE.';
aAdLink[15]['lurl'] = 'http://ad.doubleclick.net/clk;222123770;13346828;a?http://altfarm.mediaplex.com/ad/ck/9710-89558-1105-18';
aAdLink[15]['purl'] = '';
aAdLink[16]['text'] = 'The New user friendly Smart-UPS by APC.';
aAdLink[16]['desc'] = 'Intelligent and efficient network power protection for storage, servers and networks.';
aAdLink[16]['lurl'] = 'http://ad.doubleclick.net/clk;221410417;13346828;w?http://www.apc.com/promo/get.cfm?keycode=r533w';
aAdLink[16]['purl'] = '';
aAdLink[17]['text'] = 'Dynamic Virtual Client Computing: ';
aAdLink[17]['desc'] = 'Delivering thin client advantages with rich client user experience and mobility ';
aAdLink[17]['lurl'] = 'http://ad.doubleclick.net/clk;222260058;13346828;b?http://ad.doubleclick.net/clk;222168870;45594926;t';
aAdLink[17]['purl'] = '';
function renderSOBox(len,id,isList) {

        var rand;
        var found;
        var counter;
        var out = "";
		if(isList==undefined){
			isList=false;
		}

        if (len == null) {
                len = 12;
        }

        if (aAdLink.length < len) {
                len = aAdLink.length
        }

        var aAdIx = new Array(len);

        counter = 0;
        while (counter < len) {

                rand = Math.floor(Math.random()*aAdLink.length);

                found = false;
                for (var i=0;i<aAdIx.length;i++) {
                        if (aAdIx[i] == rand) {
                                found = true;
                                break;
                        }
                }

                if (!found) {
                        aAdIx[counter] = rand;
                        counter++;
                }

        }

        for (var i=0;i<aAdIx.length;i++) {
                if (aAdLink[aAdIx[i]]) {
						if(isList){
							out+="<li>";
						}
                        out += '<a href="'+aAdLink[aAdIx[i]]['lurl']+'" class="linkInline" rel="nofollow">';
                        out += aAdLink[aAdIx[i]]['text'];
                        out += '</a>';
                        out += '<div>';
                        out += aAdLink[aAdIx[i]]['desc'];
						if(aAdLink[aAdIx[i]]['purl']){
                        	out += '<img width="1" height="1" alt="" src="'+aAdLink[aAdIx[i]]['purl']+'" />';
						}
                        out += '</div>';
						if(isList){
							out+="</li>";
						}
                }
        }

        if (id != null) {
                document.getElementById(id).innerHTML = out;
        }

        return false;
}

function renderSpecialOfferBox(len) {
	var rand;
	var found;
	var counter;

	if (len == null) {
		len = 12;
	}

	if (aAdLink.length < len) {
		len = aAdLink.length
	}

	var aAdIx = new Array(len);

	counter = 0;
	while (counter < len) {

		rand = Math.floor(Math.random()*aAdLink.length);

		found = false;
		for (var i=0;i<aAdIx.length;i++) {
			if (aAdIx[i] == rand) {
				found = true;
				break;
			}
		}

		if (!found) {
			aAdIx[counter] = rand;
			counter++;
		}

	}

	for (var i=0;i<aAdIx.length;i++) {
		if (aAdLink[aAdIx[i]]) {
			document.write('<a href="'+aAdLink[aAdIx[i]]['lurl']+'" class="linkInline" rel="nofollow">');
			document.write(aAdLink[aAdIx[i]]['text']);
			document.write('</a>');
			document.write('<div>');
			document.write(aAdLink[aAdIx[i]]['desc']);
			if(aAdLink[aAdIx[i]]['purl']){
				document.write('<img width="1" height="1" alt="" src="'+aAdLink[aAdIx[i]]['purl']+'" />');
			}
			document.write('</div>');
		}
	}
}

