//this code is from moveodj.js
//BEGIN
function content(chipname,cx,cy,vx,vy)
{
 this.named=chipname;
 this.cx=cx;
 this.cy=cy;
 this.vx=vx;
 this.vy=vy;
 this.xx=0;
 this.yy=0;

}

function movecontent(chipname,dr)
{
     eval("chip="+chipname);

     pageX=window.document.body.scrollLeft;
     pageY=window.document.body.scrollTop;


     chip.xx=(dr==1?document.body.clientWidth-chip.cx-chip.vx:chip.cx);
     chip.yy=(dr==1?document.body.clientHeight-chip.cy-chip.vy:chip.cy);

   if(pageX>0){chip.xx+=pageX;  }
   if(pageY>0){chip.yy+=pageY;  }

   eval('document.all.'+chip.named+'.style.pixelLeft='+chip.xx);
   eval('document.all.'+chip.named+'.style.pixelTop ='+chip.yy);


}
//END
function OpenLink(LinkURL){
	if(LinkURL != ''){
		if(LinkURL.substring(0,11).toLowerCase() == "javascript:"){
			if(popup != null){
				var audioplayer = popup.document.getElementById('mediaplayer1');
				eval(LinkURL.substring(11));
			}
		}
		else{
			if(OpenFromIFrame == "1"){
				ToolbarShouldBeHidden = true;
				if(popup != null){
					popup.hide();
				}
				if(parent != null)parent.location = LinkURL;
			}
			else {
				var p = window.open(LinkURL, "_blank");
				if(p == null){
					ToolbarShouldBeHidden = true;
					if(popup != null){
						popup.hide();
					}
					window.moveTo(0, 0);
					winW = (10 * screen.availWidth) / 3;
					winH = screen.availHeight;
					window.resizeTo(winW, winH);
					location.replace(LinkURL);
				}
			}
		}
	}
};



function HtmlDecode(s) {
	var out = "";
	if (s==null) return;
	var l = s.length;
	for(var i=0; i<l; i++)  {
		var ch = s.charAt(i);
		if (ch == '&')  {
			var semicolonIndex = s.indexOf(';', i+1);
			if(semicolonIndex > 0)  {
				var entity = s.substring(i + 1, semicolonIndex);
				if (entity.length > 1 && entity.charAt(0) == '#')  {
					if(entity.charAt(1) == 'x' || entity.charAt(1) == 'X')  ch = String.fromCharCode(eval('0'+entity.substring(1)));
					else {
						ch = String.fromCharCode(eval(entity.substring(1)));
					}
				}

				i = semicolonIndex;
			}
		}
		out += ch;
	}
	return out;
};

function QueryString(key){
	var value = null;
		for (var i=0;i<QueryString.keys.length;i++){
			if (QueryString.keys[i]==key){
				value = QueryString.values[i];break;
			}
		}//50
	return value;
};

QueryString.keys = new Array();
QueryString.values = new Array();

var TOP, LEFT, WIDTH, HEIGHT, TimerLaunchToolBar, TimerCloseToolBar;
var htmlKeywordAds = "";
var SecondsBeforeClose = 0;
var DHTMLBannerExchange = [];
var OpenFromIFrame = QueryString("OpenFromIFrame");
var ToolbarShouldBeHidden = false;
onload = StartTimeOutToolBar;


function StartTimeOutToolBar(){
	var SecondsBeforeShow = 0;
	if(OpenFromIFrame != "1"){
		window.moveTo(5000, 5000);
		SecondsBeforeShow = parseInt(QueryString("SecondsBeforeShow"));
		if(isNaN(SecondsBeforeShow)){
			SecondsBeforeShow = 0; //101
		}
		else {
			SecondsBeforeShow = 1000 * SecondsBeforeShow;
		}
		SecondsBeforeClose = parseInt(QueryString("SecondsBeforeClose"));
		if(isNaN(SecondsBeforeClose)){
			SecondsBeforeClose = 0;
		}
		else {
			if(SecondsBeforeClose >= 30){
				SecondsBeforeClose = 1000 * SecondsBeforeClose;
		}
		else {
			SecondsBeforeClose = 0;
		}
	}
}

TimerLaunchToolBar = setTimeout("LaunchToolBar()", SecondsBeforeShow);};

function ScrollAboutList(){
	ComboListScrollPos = ComboListScrollPos + 2;
	AboutPopup.show(ComboListLeft, ComboListTop - ComboListScrollPos, ComboListWidth, ComboListScrollPos);
	if(ComboListScrollPos >= ComboListHeight){
		clearTimeout(TimerShowComboList);//100
		AboutPopup.show(ComboListLeft, ComboListTop - ComboListHeight, ComboListWidth, ComboListHeight);
		isComboListScrolling = false;
	}
	else{
		clearTimeout(TimerShowComboList);
		TimerShowComboList = setTimeout("ScrollAboutList()", 1);
	}
};

function CloseToolBar(){

	popup.hide();
	window.close();
};
function LaunchToolBar(){
	clearTimeout(TimerLaunchToolBar);

	if (window.createPopup) {
		popup = createPopup();
		var popupWindow = popup.document.parentWindow;
		popup.document.body.innerHTML = barcontent.innerHTML;
		var onchangeSelect = function () {
			var select = popup.document.parentWindow.event.srcElement;
			OpenLink(select.options[select.selectedIndex].value);
		};
		var onclickA = function () {
			var a = popupWindow.event.srcElement;
			while (a.tagName.toUpperCase() != "A")  {
				a = a.parentElement;
				if (a == null) return false;
			}
			OpenLink(a.href);
			return false;
		};
		var elements;
		elements = popup.document.getElementsByTagName("a");
		for (var i = 0; i < elements.length; i++) {
			elements[i].style.cssText = "font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #000000; text-decoration: none";
			elements[i].onclick = onclickA;
		}
		elements = popup.document.getElementsByTagName("input");
		for (var i = 0; i < elements.length; i++) {
			elements[i].style.cssText = "font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #000000;";
		}
		elements = popup.document.getElementsByTagName("select");
		for (var i = 0; i < elements.length; i++) {
			elements[i].style.cssText = "font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #000000;";
			elements[i].onchange = onchangeSelect;
		}
		popupWindow.ShowKeywordAds = function(openerElement)  {
			KeywordAdsPopup = popupWindow.createPopup();//51
			eval(htmlKeywordAds);
		};
		popupWindow.ShowAbout = function(openerElement)  {
			popup.hide()
			window.close();


		};

		popupWindow.selectData = { Combo_0: [{ text: "1.Earn $60 Bonus Free!", href: "http://Free60Power.com", pglg: "0", pl: "0", pt: "0", pw: "120", ph: "16" }, { text: "2.Earn thousands esily", href: "http://theovernightcashsys.com/SC61387", pglg: "0", pl: "0", pt: "0", pw: "120", ph: "16" }, { text: "3.Guaranteed Signups", href: "http://jpeadvertising.com/signups/", pglg: "0", pl: "0", pt: "0", pw: "120", ph: "16" }, { text: "4.Contact Solo Ads", href: "http://damnsmartads.com/contact1/", pglg: "0", pl: "0", pt: "0", pw: "120", ph: "16" }, { text: "5.[Close Window]", href: "javascript:window.close()", pglg: "0", pl: "0", pt: "0", pw: "120", ph: "16" },]};

		popupWindow.showSelect = function(selectData, openerElement) {
			selectPopup = popupWindow.createPopup();
			var html = "<div style='font: 11px Arial, Helvetica, sans-serif; border:1px solid #020099;'>";
			var currentOption = null;
			var selectHeight = 2;
			var OptionHeight = selectData[0].ph * 1;
			if(OptionHeight < 16){
				OptionHeight = 16;
			}
			var selectWidth = selectData[0].pw;
			if(selectWidth == 0){
				selectWidth = 176;
			}
			for (var i = 0; i < selectData.length; i++) {
				if (selectData[i] != null) {
					if(selectData[i].pw > selectWidth){
						selectWidth = selectData[i].pw;
					}
					OptionName = HtmlDecode(selectData[i].text);
					OptionHeight = selectData[i].ph * 1;
					if(OptionHeight < 16){
						OptionHeight = 16;
					}
					if(selectData[i].href != "") {

						if(selectData[i].href == "http://") {
							html += "<div style='color:red;overflow:hidden;padding:1px 3px;nowrap;height:" + OptionHeight + "' id='option" + i + "' pglg='" + selectData[i].pglg + "' pl='" + selectData[i].pl + "' pt='" + selectData[i].pt + "' pw='" + selectData[i].pw + "' ph='" + selectData[i].ph + "' href='" + selectData[i].href + "'>" + OptionName + "</div>";

						}

						else {
							html += "<div style='overflow:hidden;padding:1px 3px;nowrap;height:" + OptionHeight + "' id='option" + i + "' pglg='" + selectData[i].pglg + "' pl='" + selectData[i].pl + "' pt='" + selectData[i].pt + "' pw='" + selectData[i].pw + "' ph='" + selectData[i].ph + "' href='" + selectData[i].href + "'>" + OptionName + "</div>";
						}
					}
					else {
						html += "<div style='overflow:hidden;padding:1px 3px;nowrap;height:" + OptionHeight + "' id='option" + i + "' href='" + selectData[i].href + "'><font color=gray>" + OptionName + "</font></div>"; //190
					}
					selectHeight += OptionHeight;
				}
			}
			html += "</div>";


			selectPopup.document.body.innerHTML = html;
			ComboListLeft = LEFT + absLeft(openerElement);
			ComboListTop = TOP + absTop(openerElement);
			ComboListWidth = selectWidth;
			ComboListHeight = selectHeight;
			selectPopup.show(ComboListLeft, ComboListTop - ComboListHeight, ComboListWidth, ComboListHeight);
			selectPopup.document.body.setCapture();
			selectPopup.document.body.onmousemove = function () {
				var option = getHoveringOption();
				if ((option != null) && (option != currentOption)) {
					if (currentOption != null) {
						currentOption.style.backgroundColor = "white";
						if(currentOption.style.color == "yellow") {
							currentOption.style.color = "red";
						}
						else {
							currentOption.style.color = "black";
						}
				}
					currentOption = option;
					currentOption.style.backgroundColor = "highlight";
					if(currentOption.style.color == "red") {
						currentOption.style.color = "yellow";
					}
					else {
						currentOption.style.color = "white";
					}
				}
			};
			selectPopup.document.body.onclick = function () {
				var option = getHoveringOption();
				selectPopup.hide();
				selectPopup = null;
				if (option != null) {
					if(option.id == 'option4') {
						OpenLink(option.href);
					}
					else if (option.href != null){
						//OpenLink(option.href);
						window.open(option.href, '_blank')
					}
				}
			};
			function getHoveringOption() {
				return selectPopup.document.getElementById("option" + Math.floor((selectPopup.document.parentWindow.event.clientY - 1) / OptionHeight));
			};
		};

		popup.document.onclick = function () {
			window.focus();
		};


		var barContentWidth;
		UpdateToolbarSize();
		HEIGHT = 273;
		WIDTH = 428;
		TOP = screen.availHeight - HEIGHT;
		LEFT = screen.availWidth - WIDTH;
		function UpdateToolbarSize(){
			barContentWidth = 0;
			barContentWidth = barContentWidth + document.getElementById("closeButton").offsetWidth;
			if(document.getElementById("SponsorSep")!=null)barContentWidth = barContentWidth + document.getElementById("SponsorSep").offsetWidth;
			if(document.getElementById("SponsorContent")!=null)barContentWidth = barContentWidth + document.getElementById("SponsorContent").offsetWidth;
			if(document.getElementById("ItemExchange")!=null)barContentWidth = barContentWidth + document.getElementById("ItemExchange").offsetWidth;
			for(i = 10; i >= 0; i--){
				var curItem = document.getElementById("item" + i);
				var sepItem = document.getElementById("sep" + i);
				if(curItem != null)barContentWidth = barContentWidth + curItem.offsetWidth;
				if(sepItem != null)barContentWidth = barContentWidth + sepItem.offsetWidth;
			}
			if(barContentWidth >= screen.availWidth){
				for(i = 10; i >= 0; i--){
					var curItem = document.getElementById("item" + i);
					if(curItem != null){
						barContentWidth = barContentWidth - curItem.offsetWidth;
						popup.document.getElementById("item" + i).style.display = "none";
					}
					if(barContentWidth <= screen.availWidth)break;
				}
			}
		}

		var popupInterval;
		var IntervalTime = 0;
		var DHTMLBanners = [];
		function IntervalAction() {
			if(ToolbarShouldBeHidden){
				stopPopupInterval();
			}
			else{
				if (!(popup.isOpen)) {
					popup.show(LEFT, TOP, WIDTH, HEIGHT);
				}
			}
		};
		function startPopupInterval() {
			popupInterval = setInterval(IntervalAction, 10);
		};

		function stopPopupInterval() {
			clearInterval(popupInterval);
		};
		startPopupInterval();
	}
}

function absLeft(element) {
	var result = 0;
	do {
		result += element.offsetLeft;
	} while ((element = element.offsetParent) != null)
	return result;
};
function absTop(element) {
	var result = 0;
	do {
		result += element.offsetTop;
	} while ((element = element.offsetParent) != null)
	return result;
};
  function show_close()
   {
    document.getElementById("closeButton").src="http://www.hitrafficads.com/members/ad/close.jpg";
	document.getElementById("closeButton").style.cursor="hand";
     StartTimeOutToolBar();
   };

  function show_close_div()
   {
    document.getElementById("closeButton").src="http://www.hitrafficads.com/members/ad/close.jpg";
	document.getElementById("closeButton").style.cursor="hand";

   };


   var content1;
function pagestart(){

content1=new content("content1",1,1,428,273);
  doScroll();
  window.onscroll = doScroll;
  window.onresize = doScroll;

}
function doScroll(){
  movecontent("content1",1);
}

 function c_back(i)
 {
 var el;
 el="element"+i;
 document.getElementById(el).style.background="#020099";
 document.getElementById(el).style.color="#FFFFFF";
 };
 function c_white(i)
 {
 var el;
 el="element"+i;
 document.getElementById(el).style.background="#FFFFFF";
 document.getElementById(el).style.color="#000000";
 };
 function gotourl(i)
 {
 switch(i)
  { case 1:{window.open("http://www.onclick1.com","_blank");break;}
    case 2:{window.open("http://www.onclick2.com","_blank");break;}
    case 3:{window.open("http://www.onclick3.com","_blank");break;}
    case 4:{window.open("http://www.onclick4.com","_blank");break;}
  }
   document.getElementById("menu").style.visibility="hidden";
 }
function close_popup()
{
 document.getElementById("content1").style.visibility="hidden";
  document.getElementById("menu").style.visibility="hidden";
}
 function menu_status(i)
 {
 if(i==0)
 document.getElementById("menu").style.visibility="hidden";
 if(i==1)
 document.getElementById("menu").style.visibility="visible";
 }
function div_status(x)
{
 if(x==1)
 document.getElementById("content1").style.visibility="visible";
 else document.getElementById("content1").style.visibility="hidden";
 };
function change_td(i,tdId, cl)
 {
  if(i)
  {
   tdId.style.backgroundColor = '#020099';
   tdId.style.color= '#FFFFFF';
   tdId.style.cursor = 'hand';
   if(!cl)
     menu_status(1);
	 else      menu_status(0);

  }
   else
   {
   tdId.style.backgroundColor = '#FFFFFF';
   tdId.style.color = '#000000';
   tdId.style.cursor = 'default';
   if(!cl)
     menu_status(1);
	 	 else      menu_status(0);
   }
 };

 function start_st() {
    //start function

 };
 
 //function wn_open(LinkUrl) {
    //alert("test");
    //window.open(LinkUrl, "_blank");
 //}

 function write_div() {
    document.write('<style>');
    document.write('.maindiv');
    document.write('    {position:absolute; font: 11px Arial, Helvetica, sans-serif; border:1px solid #020099; background-color:#FFFFFF;  left:307; top:145; width:117; height:73; visibility:hidden;}');
    document.write('.el');
    document.write('{font: 11px Arial, Helvetica, sans-serif; border:0px solid #020099; background-color:#FFFFFF; width:100%; height:12; cursor.hand;}');
    document.write('</style>');
    document.write('<div id="content1" STYLE="position:absolute; visibility:hidden;background-color:#F66FFF;">');
    document.write('<table  width="428" height="273" border="1" cellpadding="0" cellspacing="1" bordercolor="#000000" bgcolor="#CCCCFF">');
    document.write('<tr style="cursor:hand" onclick="javascript: window.open(\'http://freeaddepot.com/\');">');
    document.write('    <td colspan="3" bgcolor="#020099" height="20px" align="center">');
    //document.write('<span style="cursor:hand" onclick="javascript: window.open(\'http://freeaddepot.com/\');">');
    document.write('        <font color="#FFFFFF" size="4" face="Arial, Helvetica, sans-serif">');
    document.write('             <b>Free Advertising for Life!</b>');
    document.write('        </font>');
    //document.write('</span>');
    document.write('    </td>');
    document.write('</tr>');
    document.write('<tr>');
    //document.write('    <td colspan="3"  bgcolor="#FFFFFF" height="73%" align="center" style="cursor:hand" onclick="javascript: window.location=\'http://freeaddepot.com/\'">');
    document.write('    <td colspan="3"  bgcolor="#FFFFFF" height="190px" align="center" style="cursor:hand">');
    document.write('        <div style="width:418px; height:190px; overflow:auto;"><p style="margin-top: 10px;">');
    document.write('    	<span style="cursor:hand" onclick="javascript: window.open(\'http://freeaddepot.com/\');">');
    document.write(' <p align=\"center\"><font face=\"Tahoma\" color=\"#ff0000\" size=\"5\"><strong>Free Advertising For Life!<br /></strong></font><br /><font face=\"Georgia\" size=\"3\">Click Here to discover where top Marketers like Cody Moya, Mike G, Ken McArthur, Craig Haywood, Larry Dotson, Willie Crawford, and other top marketers advertise! Watch for the special offer page. You\'ll see it right after you signup free and it will save you a bundle!</font><br /><br /><br /></p>');
    document.write('</span>');
    document.write('        </p></div>');    
    document.write('        <div id="menu" class="maindiv" onmouseout="javascript:menu_status(0);">');
    document.write('            <table align="center" width="100%" border="0" cellpadding="0" cellspacing="0">');
    document.write('                <tr>');
    document.write('                    <td class="el" onmouseover="javascript: change_td(1, this, 0);" onmouseout="javascript: change_td(0, this, 0);"  onclick="javascript:window.open(\'http://Free60Power.com\',\'_blank\');">');
    document.write('                       1.Earn $60 Bonus Free!');
    document.write('                    </td>');
    document.write('                </tr>');
    document.write('                <tr>');
    document.write('                    <td class="el" onmouseover="javascript: change_td(1, this, 0);" onmouseout="javascript: change_td(0, this, 0);"  onclick="javascript:window.open(\'http://theovernightcashsys.com/SC61387\',\'_blank\');">');
    document.write('                        2.Earn thousands esily');
    document.write('                    </td>');
    document.write('                </tr>');
    document.write('                <tr>');
    document.write('                    <td class="el" onmouseover="javascript: change_td(1, this, 0);" onmouseout="javascript: change_td(0, this, 0);"  onclick="javascript:window.open(\'http://jpeadvertising.com/signups/\',\'_blank\');">');
    document.write('                        3.Guaranteed Signups');
    document.write('                    </td>');
    document.write('                </tr>');
    document.write('                <tr>');
    document.write('                    <td class="el" onmouseover="javascript: change_td(1, this, 0);" onmouseout="javascript: change_td(0, this, 0);"  onclick="javascript:window.open(\'http://damnsmartads.com/contact1/\',\'_blank\');">');
    document.write('                        4.Contact Solo Ads');
    document.write('                    </td>');
    document.write('                </tr>');
    document.write('                <tr>');
    document.write('                    <td class="el" onmouseover="javascript: change_td(1, this, 0);" onmouseout="javascript: change_td(0, this, 0);"  onclick="javascript:{div_status(0);change_td(0, this, 1);};">');
    document.write('                        5.[Close Window]');
    document.write('                    </td>');
    document.write('                </tr>');
    document.write('            </table>');
    document.write('        </div>');
    document.write('    </td>');
    document.write('</tr>');
    document.write('<tr>');
    document.write('    <td valign="middle">');
    document.write('        <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">');
    document.write('            <tr valign="middle">');
    document.write('                <td valign="middle" align="center" bgcolor="#020099" width="15%">');
    document.write('<a target="_blank" href="http://www.hitrafficads.com?affID=5460">');
    document.write('                    <img style="cursor:hand;" src="http://www.hitrafficads.com/members/ad/b_ner.jpg" border=0 id="sep0">');
    document.write('</a>');
    document.write('                </td>');
    document.write('                <td valign="middle" align="center" width="75%" bgcolor="#020099">');
    document.write('                    <div id="lin2" style="width:95%; height:80%; position:relative; top: 3; background-color:#FFFE99;cursor: hand;">');
    document.write('    	<span style="cursor:hand;" onclick="javascript: window.open(\'http://www.GetFantasticDeals.com\');">');
    document.write('                        <font face="Verdana" size="1" style="vertical-align: middle; text-align: center;">');
    document.write('                        Discover great gifts and the perfect accessories to accent your home or office.');
    document.write('                        </font>');
    document.write('                        </span>');
    document.write('                    </div>');
    document.write('                    <div id="item0" style="visibility:hidden"></div>');
    document.write('                </td>');
    document.write('                <td valign="middle" align="center" bgcolor="#020099" width="10%">');
    document.write('                    <img style="cursor:default;" id="closeButton" src="http://www.hitrafficads.com/members/ad/blank.jpg" onclick="menu_status(1);" border=0>');
    document.write('                </td>');
    document.write('            </td>');
    document.write('        </tr>');
    document.write('    </table>');
    document.write('</tr>');
    document.write('</table>');
    document.write('</div>');
 }

 function show_div()
   {
	 if(!popup)
	 {
      div_status(1);
	  }
 	 else
      div_status(0);
      setTimeout('show_close_div()',6000);
      doScroll();
   };
   
   function pp_up() {
   		popup=window.open('http://www.hitrafficads.com/members/ad/my_toolbar.php?uid=178560281','_blank','left=5000,top=5000');
   }

   function strt_all() {
        write_div();
   }

