	
	//Ad Variables
	

				
	//Ad Width
	var adInitWidth = 315;
	
	//Ad Style
	var adBgColorSample = "#EEEEEE";
	var adHighlightColorSample = "#FFFFE0";
	var adFontSample = "Verdana, Arial, Helvetica";
	var adTitleColorNormalSample = "#0000DE";
	var adTitleColorOnSample = "#0000DE";
	var adTitleDecorationNormalSample = "none";
	var adTitleDecorationOnSample = "underline";
	
	//FireFox Fix
	if(navigator.appName == "Netscape")
	{
		document.write("<style>.pplLink{padding-bottom: 1px;}</style>");
	}
	
	function getPropertyValue(objectID, propertyName)
	{
		return document.getElementById(objectID)[propertyName];
	}
	function changeProperty(objectID, propertyName, propertyValue)
	{
		document.getElementById(objectID)[propertyName] = propertyValue;
	}
	
	function getStyleValue(objectID, propertyName)
	{
		return document.getElementById(objectID).style[propertyName];
	}
	function changeStyle(objectID, propertyName, propertyValue)
	{
		document.getElementById(objectID).style[propertyName] = propertyValue;
	}
	
	var hideIDSample = 0;
	var lastKeywordNumSample = 0;
	var lastReplacementNumSample = 0;
	var adXOffset = 10;
	var adYOffset = 1;
	
	function displayStatus(string)
	{
		window.status = string;
		return true;
	}
	
	function clearStatus()
	{
		window.status = '';
		return true;
	}
	
	function getRealPos(ele,dir)
	{
		(dir=="x") ? pos = ele.offsetLeft : pos = ele.offsetTop;
		tempEle = ele.offsetParent;
		while(tempEle != null)
		{
			pos += (dir=="x") ? tempEle.offsetLeft : tempEle.offsetTop;
			tempEle = tempEle.offsetParent;
		}
		return pos;
	}
	
	function getScrollY()
	{
		if(window.pageYOffset != null) 
		{
			return window.pageYOffset;
		} 
		else 
		{
			return document.body.scrollTop;
		}
	}
	
	function getScrollX()
	{
		if(window.pageXOffset != null)
		{
			return window.pageXOffset;
		} 
		else 
		{
			return document.body.scrollLeft;
		}
	}
	
	function adDelaySample()
	{
		//close box
		changeStyle('adBoxSample', 'visibility', 'hidden');
		//clear ID
		clearInterval(hideIDSample);
		//clear status message
		displayStatus(' ');
		//clear ad content
		changeProperty('adBoxSample', 'innerHTML', "");
	}
	
	function clearAdIntervalSample()
	{
		clearInterval(hideIDSample);
	}
	
	function hideAdSample()
	{
		clearInterval(hideIDSample);
		hideIDSample = setInterval(adDelaySample, 10);
	
		//Restore double underline
		linkRefString = "linkSample";
		//alert(linkRefString);	
		changeStyle(linkRefString, 'borderBottomWidth', 0 +'px');
		changeStyle(linkRefString, 'borderBottomColor','#0000FF');	
		changeStyle(linkRefString, 'textDecoration','underline');
		changeStyle(linkRefString, 'color','#0000FF');		
	}
	
	function linkClickSample()
	{
		alert ("This is a sample.")
	}
	
	function highlightAdSample(tooltipRef, idString)
	{	
		var browserType = navigator.appName;
		switch(browserType)
		{
			case('Netscape'):
				tooltipRef.style.MozOpacity = .9999999;
				break;
			case('Microsoft Internet Explorer'):
				document.getElementById(idString).style.filter = "alpha(opacity=100)";
				break;
			default:
				document.getElementById(idString).style.opacity = 1;
		}
		for(var x=1;x<7;x++)
		{
			var tempID = "cLnSample" + x;
			//alert(tempID);
			document.getElementById(tempID).style.background = adHighlightColorSample;
		}
	}
	
	function unHighlightAdSample(tooltipRef, idString)
	{
		
		var browserType = navigator.appName;
		switch(browserType)
		{
			case('Netscape'):
				tooltipRef.style.MozOpacity = .95;
				break;
			case('Microsoft Internet Explorer'):
				document.getElementById(idString).style.filter = "alpha(opacity=95)";
				break;
			default:
				document.getElementById(idString).style.opacity = .95;
		}
		for(var x=1;x<7;x++)
		{
			var tempID = "cLnSample" + x;
			document.getElementById(tempID).style.background = adBgColorSample;
		}
	}
	
	function displayAdSample(indexKeyword,indexReplacement)
	{
		var linkRefString = "linkSample";
		//alert(linkRefString);
		var linkRef =  document.getElementById(linkRefString);
		//alert(linkRef);
		//clear hide delay 
		clearInterval(hideIDSample);	
		
		//Show title in status bar

	    statusVar ="Internet Marketing Gurus Exposed!";
	    displayStatus(statusVar);
		
		//Build Ad
		
		adTitleColorNormalSample = '#0000FF';
		adTitleColorOnSample = '#0000FF';
		adDescriptionColorSample = '#000000';
		adBgColorSample= '#FFFFFF';
		adHighlightColorSample = '#FFFFE0';
		
		adTitleDecorationNormalSample = 'none';		
		adTitleDecorationOnSample = 'none';
						
		var adStr = '';
		adStr += '<table id="pplTable" name="pplTable" cellspacing="0" cellpadding="0" border="0" width="100%" style="width:100%;background:transparent;">';
		adStr += 	'<tr class="pplAd">'
		adStr += 		'<td class="pplAd" onClick="alert(\'This is a sample.\');return false;">'
		adStr += 			'<b style="font-size:1px;display:block;height:1px;background:#000000; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin:0 6px;"></b>'
		adStr += 			'<b style="font-size:1px;display:block;height:1px;background:#8FB8E1; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin:0 4px; border-width:0 2px;"></b>'
		adStr += 			'<b style="font-size:1px;display:block;height:1px;background:#84B1DE; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin:0 2px; border-width:0 2px;"></b>'
		adStr += 			'<b style="font-size:1px;display:block;height:1px;background:#79AADB; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin:0 2px;"></b>'
		adStr += 			'<b style="font-size:1px;display:block;height:1px;background:#6EA2D8; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin:0 1px;"></b>'
		adStr += 			'<b style="font-size:1px;display:block;height:1px;background:#629BD4; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin:0 1px;"></b>'
		adStr += 			'<b style="font-size:1px;display:block;height:1px;background:#5795D0; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin: 0 0px;"></b>'
		adStr += 			'<b style="font-size:1px;display:block;height:1px;background:#4C8DCD; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin: 0 0px;"></b>'
		adStr += 			'<b style="font-size:1px;display:block;height:1px;background:#4186CA; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin: 0 0px;"></b>'
		adStr += 			'<b style="font-size:1px;display:block;height:1px;background:#357EC5; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin: 0 0px;"></b>'
		adStr += 			'<b style="font-size:1px;display:block;height:1px;background:#3468B3; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin: 0 0px;"></b>'
		adStr += 			'<b style="font-size:1px;display:block;height:1px;background:#3667B2; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin: 0 0px;"></b>'
		adStr += 			'<b style="font-size:1px;display:block;height:1px;background:#386BB6; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin: 0 0px;"></b>'
		adStr += 			'<b style="font-size:1px;display:block;height:1px;background:#396EB8; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin: 0 0px;"></b>'
		adStr += 			'<b style="font-size:1px;display:block;height:1px;background:#3B72BB; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin: 0 0px;"></b>'
		adStr += 			'<b style="font-size:1px;display:block;height:1px;background:#3D76BE; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin: 0 0px;"></b>'
		adStr += 			'<b style="font-size:1px;display:block;height:1px;background:#3F79C1; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin: 0 0px;"></b>'
		adStr += 			'<b style="font-size:1px;display:block;height:1px;background:#407DC4; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin: 0 0px;"></b>'
		adStr += 			'<b style="font-size:1px;display:block;height:1px;background:#4280C7; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin: 0 0px;"></b>'
		adStr += 			'<b style="font-size:1px;display:block;height:1px;background:#4484C9; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin: 0 0px;"></b>'
		adStr += 			'<b style="font-size:1px;display:block;height:1px;background:#518FCF; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin: 0 0px;"></b>'
		adStr += 		'</td>'
		adStr += 	'</tr>'
		adStr += 	'<tr class="pplAd">'
		adStr += 		'<td class="pplAd" id="cLnSample1" name="cLnSample1" style="display:block; background:' + adBgColorSample + '; border-left:1px solid #000000; border-right:1px solid #000000;padding-left:0px;padding-right:0px;padding-top:0px;padding-bottom:0px;">'
		adStr += 				'<table class="pplAd" cellpadding="0" cellspacing="0" border="0" style="position:relative;width:100%;">'
		adStr += 					'<tr class="pplAd">'
		adStr += 						'<td class="pplAd" colspan="2" style="padding-left:7px;padding-right:0px;padding-top:7px;padding-bottom:2px;vertical-align:top;text-align:left;" onClick="alert(\'This is a sample\');return false;">'
		adStr += 							'<a href="#" onMouseOver="this.style.textDecoration=\'' + adTitleDecorationOnSample + '\';this.style.color=\'' + adTitleColorOnSample + '\';window.status=statusVar;return true;" onMouseOut="this.style.textDecoration=\'' + adTitleDecorationNormalSample + '\';this.style.color=\'' + adTitleColorNormalSample + '\';" onclick="return false;" style="border: 0px;font-size:11px;display:block;font-weight:bold;font-family:' + adFontSample + ';color:' + adTitleColorNormalSample + ';text-decoration:' + adTitleDecorationNormalSample + ';">' + 'Internet Marketing Gurus Exposed!' + '</a>'
		adStr += 							'<span style="color:#000000;display:block;padding-top:7px;padding-bottom:7px;font-size:11px;display:block;font-weight:normal;font-family:' + adFontSample + ';color:'+adDescriptionColorSample+';">' + 'Download FREE report that reveals all the tips, tricks, techniques, and resources used by every Internet Marketing guru!' + '</span>'
		adStr += 						'</td>'
	
		adStr += 					'</tr>'
		adStr += 				'</table>'
		adStr += 		'</td>'
		adStr += 	'</tr>'
		adStr += 	'<tr class="pplAd">'
		adStr += 		'<td class="pplAd" onClick="alert(\'This is a sample.\');">'
		adStr += 			'<b id="cLnSample2" name="cLnSample2" style="font-size:1px;display:block;height:1px;background:' + adBgColorSample + '; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin:0 1px;"></b>'
		adStr += 			'<b id="cLnSample3" name="cLnSample3" style="font-size:1px;display:block;height:1px;background:' + adBgColorSample + '; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin:0 1px;"></b>'
		adStr += 			'<b id="cLnSample4" name="cLnSample4" style="font-size:1px;display:block;height:1px;background:' + adBgColorSample + '; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin:0 2px;"></b>'
		adStr += 			'<b id="cLnSample5" name="cLnSample5" style="font-size:1px;display:block;height:1px;background:' + adBgColorSample + '; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin:0 2px; border-width:0 2px;"></b>'
		adStr += 			'<b id="cLnSample6" name="cLnSample6" style="font-size:1px;display:block;height:1px;background:' + adBgColorSample + '; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin:0 4px; border-width:0 2px;"></b>'
		adStr += 			'<b class="c1" style="font-size:1px;display:block;height:1px;background:#000000; border-left:1px solid #000000; border-right:1px solid #000000;overflow: hidden;margin:0 6px;"></b>'
		adStr += 		'</td>'
		adStr += 	'</tr>'
		adStr += '</table>'
		adStr += '<div style="position:absolute;z-index:5001;left:8px;top:5px;color:#ffffff;font-size:10px;font-family:' + adFontSample + ';" onClick="alert(\'This is a sample.\');"><nobr>Powered By: Pay Per Lead Power Ads</nobr></div>'
		adStr += '<div style="position:absolute;z-index:5002;right:8px;top:5px;"><img style="background:inherit;border:none;margin:0px;padding:0px;display:inline;vertical-align:top;" src="http://www.payperleadads.com/ppl/images/ppl_ads_x.gif" height="13" onclick="adDelaySample();" border="0" alt="close"></div>';	
		//Set Ad html content
		
		changeProperty('adBoxSample', 'innerHTML', adStr);
			//Set Opacity for each browser
			var browserType = navigator.appName;
			switch(browserType)
			{
				case('Netscape'):
					//document.tooltipBox.style.MozOpacity = .95;
					break;
				case('Microsoft Internet Explorer'):
					document.getElementById('pplTable').style.filter = "alpha(opacity=95)";
					break;
				default:
					document.getElementById('pplTable').style.opacity = .95;
			}
		//resize Ad
		var tempWidth = adInitWidth + "px";
		//alert(tempWidth);
		changeStyle('adBoxSample', 'width', tempWidth);
		
		//put the ad the right position
		var adWidth = getPropertyValue('adBoxSample', 'offsetWidth')
		var adHeight = getPropertyValue('adBoxSample', 'offsetHeight');
		//alert(linkRef);
		var linkPosX = getRealPos(linkRef,'x') + adXOffset;
		var linkPosY = getRealPos(linkRef,'y') - adHeight + adYOffset;
	
		//Finalizations
		var linkPosXString = linkPosX + "px";
		var linkPosYString = linkPosY + "px";		
		changeStyle('adBoxSample', 'left', linkPosXString);
		changeStyle('adBoxSample', 'top', linkPosYString);
	
		//Make the double underline thick
		//set the text decoration color and style
		changeStyle(linkRefString, 'borderBottomWidth', 0 +'px');
		changeStyle(linkRefString, 'borderBottomColor','#0000FF');
		changeStyle(linkRefString, 'textDecoration','underline');
		changeStyle(linkRefString, 'color','#0000FF');

		//changeProperty(linkRefString, 'className', 'pplLinkHover');
		//alert(document.getElementById(linkRefString).className);
		//alert(document.getElementById(linkRefString).style.color);
		//Show Ad
		changeStyle('adBoxSample', 'visibility', 'visible');			
	}
	document.writeln('<div id="adBoxSample" onMouseOver="clearAdIntervalSample();highlightAdSample(this,\'pplTable\');\" onMouseOut="hideAdSample();unHighlightAdSample(this,\'pplTable\');" style="z-index:5000;position:absolute;cursor:pointer;-moz-opacity:.95;"></div>');
	

	 
