/**********************************************************************/
var dispStr = new Array();
dispStr[0]="Thousands Of Links To Motorcycle Related Sites And Businesses...";
dispStr[1]="Advertise Your Company Or Personal Site To Hundreds Of Visitors Everyday...";
dispStr[2]="Post Your Free Link Listing With Motorcycle-Links.com In Seconds...";
dispStr[3]="Simple And Easy To Use Search Utility To Help You Find Links Fast...";

function txtTyper(str, idx, idObj, spObj, clr1, clr2, delay){
	var tmp0 = '';
	tmp1 = '';
	var skip = 0;

	if(idx <= str.length){
		tmp0 = str.slice(0,idx);
		tmp1 = str.charAt(idx++);

		document.getElementById(idObj).innerHTML="&nbsp;<span class="+spObj+"><font style='color: "+clr1+"; font-family: verdana; font-size: 12px'>"+tmp0+"</font><font style='color: "+clr2+"; font-family: verdana; font-size: 12px'>"+tmp1+"</font></span>";

		setTimeout("txtTyper('"+str+"', "+idx+", '"+idObj+"', '"+spObj+"', '"+clr1+"', '"+clr2+"', "+delay+")",delay);
	}
}

//randomize start string
var counter = Math.floor(Math.random() * dispStr.length);

function init(){

	if(counter >= dispStr.length)
		counter = 0;

	txtTyper(dispStr[counter], 0, 'ttl0', 'ttl1', '#ABABAB', '#ABABAB', 10);
	counter++;

	setTimeout("init()", 5000);
}
/**********************************************************************/
var now = new Date();
var year = now.getFullYear();
var mName = now.getMonth() + 1;
var dayOfMonth = now.getDate();
var month = new String();
var todaysDate = new String();

function setDate(){
	//name of month
	if(mName==1)
		month="January";
	if(mName==2)
		month="February";
	if(mName==3)
		month="March";
	if(mName==4)
		month="April";
	if(mName==5)
		month="May";
	if(mName==6)
		month="June";
	if(mName==7)
		month="July";
	if(mName==8)
		month="August";
	if(mName==9)
		month="September";
	if(mName==10)
		month="October";
	if(mName==11)
		month="November";
	if(mName==12)
		month="December";
	//setting up the date string
	todaysDate =(month  + " " + dayOfMonth + ", " + year);
	//writing date to the page
	document.write(todaysDate);
}//end function
/**********************************************************************/
function setCookie(cookieName, cookieValue){

	//var today = new Date();
	//var expire = new Date();

	//expire.setTime(today.getTime() + 3600000 * 24); //24 hours
	//no expiry date set so good only until browser closes
	document.cookie = cookieName + "=" + escape(cookieValue) + ";path=/";
}

function getCookie(cookieName){

	//if cookie exists
	if(document.cookie.length > 0){
		//if cookie matches
		if(document.cookie.indexOf(cookieName) != -1)
			return true;
	}

	return false;
}

function loadPopUnder(){

	var winURL = "http://www.qksrv.net/click-1272494-9268308";
	var winFeatures = "width=700,height=450,scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0";

	//if cookie does not exist
	if(getCookie("jiffypop") == false){
		//load popunder window
		popUnderWin = window.open(winURL, "", winFeatures);
		popUnderWin.blur();
		window.focus();
		//set cookie
		setCookie("jiffypop", "popped");
	}
}

//executes when page loads
//loadPopUnder();
/**********************************************************************/
