/**
*DHTML email validation script. Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/)
*I did a bit of tweaking, so don't blame SmartWebby.com for the mistakes
*/


if (window.location.pathname=="/index_files/petinform.php")
{
	var myService;
	var feedUrl = "https://www.google.com/calendar/feeds/jim@network2market.com/private/full";
	google.load("gdata", "1");
}
function echeck(str) {
		var at="@";
		var dot=".";
		var lat=str.indexOf(at);
		var lstr=str.length;
		var ldot=str.lastIndexOf(dot);
		var rv = true;			

		if(lat<1||ldot-lat<4||ldot<5||lstr-ldot!=4){
			rv = false;
		}

                if (str.indexOf(" ")!=-1)
		{ 		     
                     rv = false;
		}

                if (rv==false)
                {
		     alert("We're sorry, there seems to be a problem with your email format.  Can you please re-check it?");
		}
 		return rv;					
}
function write ()
{
	document.write("boos");	
}

function gup( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "d";
  else
    return results[1];
}
function testDataCheck ()
{
	var x=document.getElementById("myFormer");
	for (var i=0;i<x.length;i++)
	{
		if (x.elements[i].value=="")
		{
			var x1=document.getElementsByTagName("input");
			
			for (var i1=0;i1<x1.length;i1++)
			{
				x1[i1].style.backgroundColor="rgb(255,150,150)";				
			}
			var x2=document.getElementsByTagName("textarea");
			for (var i1=0;i1<x2.length;i1++)
			{
				x2[i1].style.backgroundColor="rgb(255,150,150)";				
			}
			alert("Please fill in all fields");
			return false;
		}
	}
	return true;
}
function TestDataCheck()
{
var x=document.getElementById("myForm");
FirstName= x.FirstName.value;
LastName = x.LastName.value;
email = x.email.value;

var returnval;

if ( (FirstName != '') && (LastName != '') && (email != '')) {    
    returnval = true;   
}
else
   {
   alert("Please Enter information in all required fields");      
   document.getElementById('fstNm').style.color="red";
   document.getElementById('lstNm').style.color="red";   
   document.getElementById('emailo').style.color="red";
   return false;
   }
return returnval;
}

function checkstatus ()
{
	if (gup("status")=="pass")
	{
		document.getElementById('thanks').innerHTML="<span style='font-weight:600;color:green'>Thanks for your submission, a qualified No Mess Pets customer service representative will be in touch shortly</span>";
	}
	else if (gup("status")=="fail")
	{
		document.getElementById('thanks').innerHTML="<span style='font-weight:600;color:red'>I'm sorry there seems to be a problem with your e-mail address<br />Please try again.<br /></span>";
	}
	else if (gup("status")=="invalidClientNum")
	{
		document.getElementById('thanks').innerHTML="<span style='font-weight:600;color:red'>I'm sorry there seems to be a problem with your client number<br />Please call No Mess Pets or use the form below to let us know!.<br /></span>";
	}
	else if (gup("status")=="noClientNum")
	{
		document.getElementById('thanks').innerHTML="<span style='font-weight:600;color:orange'>Thank you, your request has been logged.<br /> However, we're sorry, but there seems to be a problem with your client number. Please call No Mess Pets or use the form below to let us know!.<br /></span>";
	}
	else if (gup("status")=="success")
	{
		document.getElementById('thanks').innerHTML="<span style='font-weight:600;color:green'>Thank you, your request has been logged.<br /> You should receive a confirmation of your service request shortly.<br /></span>";
	}
	else 
	{
		return;
	}
}
		
function showAd ()
{
	var adLink=new Array(); 
	//linksynergy
	adLink[0]='<a href="http://click.linksynergy.com/fs-bin/stat?id=uMg8KkNk1qc&offerid=7097.10000079&subid=0&type=4"><IMG border="0"   alt="LinkShare_160x600Skyscpr" src="http://ad.linksynergy.com/fs-bin/show?id=uMg8KkNk1qc&bids=7097.10000079&subid=0&type=4&gridnum=9"></a>';
	//petmountain
	adLink[1]='<a href="http://click.linksynergy.com/fs-bin/click?id=uMg8KkNk1qc&offerid=193067.10000007&type=4&subid=0"><IMG alt="Banner 120x600 Static" border="0" src="http://www.petmountain.com/content/120_600s.gif"></a><IMG border="0" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=uMg8KkNk1qc&bids=193067.10000007&type=4&subid=0">'; 
	//cherry brook
	adLink[2]='<a href="http://click.linksynergy.com/fs-bin/click?id=uMg8KkNk1qc&offerid=180701.10000006&type=4&subid=0"><IMG alt="Cherrybrook Premium Pet Supplies" border="0" src="http://64.115.204.118/CBLS/Banner_600x120.jpg"></a><IMG border="0" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=uMg8KkNk1qc&bids=180701.10000006&type=4&subid=0">';
	//cherry brook
	adLink[3]='<a href="http://click.linksynergy.com/fs-bin/click?id=uMg8KkNk1qc&offerid=180701.10000006&type=4&subid=0"><IMG alt="Cherrybrook Premium Pet Supplies" border="0" src="http://64.115.204.118/CBLS/Banner_600x120.jpg"></a><IMG border="0" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=uMg8KkNk1qc&bids=180701.10000006&type=4&subid=0">';
	//wysong
	adLink[4]='<a href="http://click.linksynergy.com/fs-bin/click?id=uMg8KkNk1qc&offerid=179634.10000031&subid=0&type=4"><IMG border="0"   alt="120x600 Natural Pet Food" src="http://ad.linksynergy.com/fs-bin/show?id=uMg8KkNk1qc&bids=179634.10000031&subid=0&type=4&gridnum=10"></a>';
	//Total pet supply
	adLink[5]='<a href="http://click.linksynergy.com/fs-bin/click?id=uMg8KkNk1qc&offerid=178953.10000004&type=4&subid=0"><IMG alt="Total Pet Supply provides Free Shipping for 1 year with all order over $99" border="0" src="http://www.totalpetsupply.com/Linkshare/images/tps_ad_160x600.gif"></a><IMG border="0" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=uMg8KkNk1qc&bids=178953.10000004&type=4&subid=0">';      
	// yourcover
	adLink[6]='<a href="http://click.linksynergy.com/fs-bin/click?id=uMg8KkNk1qc&offerid=174146.10000010&subid=0&type=4"><IMG border="0"   alt="YourCover Personalized Magazine Covers" src="http://ad.linksynergy.com/fs-bin/show?id=uMg8KkNk1qc&bids=174146.10000010&subid=0&type=4&gridnum=5"></a><a href="http://click.linksynergy.com/fs-bin/click?id=uMg8KkNk1qc&offerid=174146.10000029&subid=0&type=4"><IMG border="0"   alt="YourCover Personalized Magazine Covers" src="http://ad.linksynergy.com/fs-bin/show?id=uMg8KkNk1qc&bids=174146.10000029&subid=0&type=4&gridnum=4"></a><a href="http://click.linksynergy.com/fs-bin/click?id=uMg8KkNk1qc&offerid=174146.10000003&subid=0&type=4"><IMG border="0"   alt="YourCover Personalized Magazine Covers" src="http://ad.linksynergy.com/fs-bin/show?id=uMg8KkNk1qc&bids=174146.10000003&subid=0&type=4&gridnum=4"></a>';
	//tractor supply company
	adLink[7]='<a href="http://click.linksynergy.com/fs-bin/click?id=uMg8KkNk1qc&offerid=171459.10000008&subid=0&type=4"><IMG border="0"   alt="Tractor Supply Company" src="http://ad.linksynergy.com/fs-bin/show?id=uMg8KkNk1qc&bids=171459.10000008&subid=0&type=4&gridnum=8"></a>';      
	//cheapo Air
	adLink[8]='<a href="http://click.linksynergy.com/fs-bin/click?id=uMg8KkNk1qc&offerid=184481.10000360&type=4&subid=0"><IMG alt="" border="0" src="http://www.cheapoair.com/Travel/affiliate/banners/CA-promo1-Banners/images/120x600.jpg"></a><IMG border="0" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=uMg8KkNk1qc&bids=184481.10000360&type=4&subid=0">';
	//current labels
	adLink[9]='<a href="http://click.linksynergy.com/fs-bin/click?id=uMg8KkNk1qc&offerid=130095.10000299&type=4&subid=0"><IMG alt="Current Labels" border="0" src="http://www.currentlabels.com/images/LinkShare/99centat20/125x125new.jpg"></a><IMG border="0" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=uMg8KkNk1qc&bids=130095.10000299&type=4&subid=0"><a href="http://click.linksynergy.com/fs-bin/click?id=uMg8KkNk1qc&offerid=130095.10000014&type=4&subid=0"><IMG alt="Current Labels" border="0" src="http://www.currentlabels.com/images/Linkshare/AddressStamp/stamp125x125.jpg"></a><IMG border="0" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=uMg8KkNk1qc&bids=130095.10000014&type=4&subid=0"><a href="http://click.linksynergy.com/fs-bin/click?id=uMg8KkNk1qc&offerid=130095.10000004&type=4&subid=0"><IMG alt="Current Labels" border="0" src="http://www.currentlabels.com/images/Linkshare/AddressLabels/125x125.jpg"></a><IMG border="0" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=uMg8KkNk1qc&bids=130095.10000004&type=4&subid=0">';      
	//skymall
	adLink[10]='<a href="http://click.linksynergy.com/fs-bin/click?id=uMg8KkNk1qc&offerid=175190.10000091&type=4&subid=0"><IMG alt="SkyMall, Inc." border="0" src="http://www.skymall.com/images/promo/linkshare/LinkShare_DogCouch_125x125.jpg"></a><IMG border="0" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=uMg8KkNk1qc&bids=175190.10000091&type=4&subid=0">';
	//petsmart
	adLink[11]='<a href="http://click.linksynergy.com/fs-bin/click?id=uMg8KkNk1qc&offerid=170445.10000148&type=4&subid=0"><IMG alt="PetSmart" border="0" src="http://affiliates.petsmart.com/images/banners/072010/Aff_MSPets_160x600.gif"></a><IMG border="0" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=uMg8KkNk1qc&bids=170445.10000148&type=4&subid=0">';       
	//sierra trading post
	adLink[12]='<a href="http://click.linksynergy.com/fs-bin/click?id=uMg8KkNk1qc&offerid=132016.10000315&type=4&subid=0"><IMG alt="Sierra Trading Post" border="0" src="http://www.sierratradingpost.com/assets/images/ppam/ad_images/Brands_White_160x600.gif"></a><IMG border="0" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=uMg8KkNk1qc&bids=132016.10000315&type=4&subid=0">';
	//1800petmeds
	adLink[13]='<a href="http://click.linksynergy.com/fs-bin/click?id=uMg8KkNk1qc&offerid=56753.10000176&type=4&subid=0"><IMG alt="1-800-PetMeds begin_of_the_skype_highlighting              1-800-PetMeds      end_of_the_skype_highlighting RX/160x600.gif" border="0" src="http://www.1800petmeds.com/banners/linkshare/Max-Molly-RX/160x600.gif"></a><IMG border="0" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=uMg8KkNk1qc&bids=56753.10000176&type=4&subid=0">';
	
		
	document.getElementById('nmpAd').innerHTML=adLink[Math.floor(Math.random()*14)];	
}

function showPet ()
{
	var petLink=new Array(); 
	petLink[0]="http://photos-a.ak.fbcdn.net/hphotos-ak-snc3/hs418.snc3/25188_331720303039_117442203039_3578042_1854929_s.jpg"; 
	petLink[1]="http://photos-g.ak.fbcdn.net/hphotos-ak-snc3/hs418.snc3/25188_331720343039_117442203039_3578043_43957_s.jpg"; 
	petLink[2]="http://photos-g.ak.fbcdn.net/hphotos-ak-ash1/hs458.ash1/25188_336266898039_117442203039_3590421_1401016_s.jpg"; 
	petLink[3]="http://photos-e.ak.fbcdn.net/hphotos-ak-ash1/hs458.ash1/25188_336266908039_117442203039_3590422_5594452_s.jpg"; 
	petLink[4]="http://photos-c.ak.fbcdn.net/hphotos-ak-snc3/hs438.snc3/25188_336266923039_117442203039_3590423_2466497_s.jpg"; 
	petLink[5]="http://photos-b.ak.fbcdn.net/hphotos-ak-snc3/hs418.snc3/25188_336266933039_117442203039_3590424_3594929_s.jpg"; 
	petLink[6]="http://photos-h.ak.fbcdn.net/hphotos-ak-ash1/hs458.ash1/25188_336266953039_117442203039_3590425_2751122_s.jpg"; 
	petLink[7]="http://photos-g.ak.fbcdn.net/hphotos-ak-snc3/hs418.snc3/25188_336277343039_117442203039_3590435_3774384_s.jpg"; 
	petLink[8]="http://photos-e.ak.fbcdn.net/hphotos-ak-snc3/hs418.snc3/25188_336277353039_117442203039_3590436_5504404_s.jpg"; 
	petLink[9]="http://photos-e.ak.fbcdn.net/hphotos-ak-snc3/hs452.snc3/25886_338385838039_117442203039_3595688_4735599_s.jpg"; 
	petLink[10]="http://photos-f.ak.fbcdn.net/hphotos-ak-snc3/hs452.snc3/25886_338385833039_117442203039_3595687_473628_s.jpg"; 
	petLink[11]="http://photos-d.ak.fbcdn.net/hphotos-ak-ash1/hs472.ash1/25886_338385828039_117442203039_3595686_2900931_s.jpg"; 
	petLink[12]="http://photos-b.ak.fbcdn.net/hphotos-ak-snc3/hs472.snc3/25886_338385823039_117442203039_3595685_3733700_s.jpg"; 
	petLink[13]="http://photos-d.ak.fbcdn.net/hphotos-ak-snc3/hs452.snc3/25886_340694573039_117442203039_3601161_293928_s.jpg"; 
	petLink[14]="http://photos-b.ak.fbcdn.net/hphotos-ak-snc3/hs452.snc3/25886_340694578039_117442203039_3601162_4709923_s.jpg"; 
	petLink[15]="http://photos-h.ak.fbcdn.net/hphotos-ak-ash1/hs472.ash1/25886_340694588039_117442203039_3601163_7348974_s.jpg"; 
	petLink[16]="http://photos-e.ak.fbcdn.net/hphotos-ak-snc3/hs452.snc3/25886_340694593039_117442203039_3601164_5360808_s.jpg"; 
	petLink[17]="http://photos-c.ak.fbcdn.net/hphotos-ak-snc3/hs452.snc3/25886_340694598039_117442203039_3601165_7262190_s.jpg"; 
	petLink[18]="http://photos-b.ak.fbcdn.net/hphotos-ak-snc3/hs472.snc3/25886_341716143039_117442203039_3603476_5293425_s.jpg"; 
	petLink[19]="http://photos-d.ak.fbcdn.net/hphotos-ak-snc3/hs408.snc3/24688_346784488039_117442203039_3620906_1179561_s.jpg"; 
	petLink[20]="http://photos-f.ak.fbcdn.net/hphotos-ak-snc3/hs408.snc3/24688_346784513039_117442203039_3620907_71148_s.jpg"; 
	petLink[21]="http://photos-e.ak.fbcdn.net/hphotos-ak-ash1/hs448.ash1/24688_346784548039_117442203039_3620908_4061160_s.jpg"; 
	petLink[22]="http://photos-c.ak.fbcdn.net/hphotos-ak-snc3/hs428.snc3/24688_346784563039_117442203039_3620909_4507253_s.jpg"; 
	petLink[23]="http://photos-h.ak.fbcdn.net/hphotos-ak-ash1/hs448.ash1/24688_346784583039_117442203039_3620910_7264865_s.jpg"; 
	petLink[24]="http://photos-e.ak.fbcdn.net/hphotos-ak-snc3/hs428.snc3/24688_349511648039_117442203039_3628711_3565972_s.jpg"; 
	petLink[25]="http://photos-g.ak.fbcdn.net/hphotos-ak-snc3/hs428.snc3/24688_349511683039_117442203039_3628712_7303939_s.jpg"; 
	petLink[26]="http://photos-a.ak.fbcdn.net/hphotos-ak-snc3/hs428.snc3/24688_349511703039_117442203039_3628713_4481346_s.jpg"; 
	petLink[27]="http://photos-d.ak.fbcdn.net/hphotos-ak-snc3/hs428.snc3/24688_349511713039_117442203039_3628714_2938236_s.jpg"; 
	petLink[28]="http://photos-f.ak.fbcdn.net/hphotos-ak-snc3/hs424.snc3/24492_354938323039_117442203039_3638491_6426868_s.jpg"; 
	petLink[29]="http://photos-h.ak.fbcdn.net/hphotos-ak-snc3/hs424.snc3/24492_354938343039_117442203039_3638492_7815190_s.jpg";
	petLink[30]="http://photos-b.ak.fbcdn.net/hphotos-ak-snc3/hs424.snc3/24492_354938358039_117442203039_3638493_4695405_s.jpg"; 
	petLink[31]="http://photos-c.ak.fbcdn.net/hphotos-ak-snc3/hs424.snc3/24492_354944748039_117442203039_3638494_4725021_s.jpg"; 
	petLink[32]="http://photos-e.ak.fbcdn.net/hphotos-ak-snc3/hs424.snc3/24492_354944763039_117442203039_3638495_2577891_s.jpg"; 
	petLink[33]="http://photos-g.ak.fbcdn.net/hphotos-ak-snc3/hs404.snc3/24492_354944778039_117442203039_3638496_6854379_s.jpg"; 
	petLink[34]="http://photos-a.ak.fbcdn.net/hphotos-ak-ash1/hs444.ash1/24492_354944793039_117442203039_3638497_3317715_s.jpg"; 
	petLink[35]="http://photos-g.ak.fbcdn.net/hphotos-ak-snc3/hs460.snc3/26311_364573823039_117442203039_3667544_891105_s.jpg"; 
	petLink[36]="http://photos-a.ak.fbcdn.net/hphotos-ak-snc3/hs480.snc3/26311_364573838039_117442203039_3667545_1962526_s.jpg"; 
	petLink[37]="http://photos-c.ak.fbcdn.net/hphotos-ak-snc3/hs460.snc3/26311_364573848039_117442203039_3667546_910717_s.jpg"; 
	petLink[38]="http://photos-e.ak.fbcdn.net/hphotos-ak-snc3/hs480.snc3/26311_364573858039_117442203039_3667547_2503082_s.jpg"; 
	petLink[39]="http://photos-b.ak.fbcdn.net/hphotos-ak-ash1/hs492.ash1/26875_372286653039_117442203039_3687773_976887_s.jpg"; 
	petLink[40]="http://photos-f.ak.fbcdn.net/hphotos-ak-snc3/hs480.snc3/26311_364573878039_117442203039_3667548_4507028_s.jpg"; 
	petLink[41]="http://photos-h.ak.fbcdn.net/hphotos-ak-snc3/hs460.snc3/26311_364580223039_117442203039_3667568_4292779_s.jpg"; 
	petLink[42]="http://photos-b.ak.fbcdn.net/hphotos-ak-snc3/hs480.snc3/26311_364580243039_117442203039_3667569_4084862_s.jpg"; 
	petLink[43]="http://photos-e.ak.fbcdn.net/hphotos-ak-snc3/hs460.snc3/26311_364580278039_117442203039_3667570_2425657_s.jpg";
	petLink[44]="http://photos-c.ak.fbcdn.net/hphotos-ak-snc3/hs460.snc3/26311_364580298039_117442203039_3667571_7359190_s.jpg"; 
	petLink[45]="http://photos-a.ak.fbcdn.net/hphotos-ak-ash1/hs480.ash1/26311_364580303039_117442203039_3667572_6156742_s.jpg"; 
	petLink[46]="http://photos-a.ak.fbcdn.net/hphotos-ak-snc3/hs460.snc3/26311_364585273039_117442203039_3667587_503689_s.jpg"; 
	petLink[47]="http://photos-b.ak.fbcdn.net/hphotos-ak-ash1/hs480.ash1/26311_364585293039_117442203039_3667588_2214905_s.jpg"; 
	petLink[48]="http://photos-h.ak.fbcdn.net/hphotos-ak-ash1/hs480.ash1/26311_364585303039_117442203039_3667589_3204465_s.jpg"; 
	petLink[49]="http://photos-c.ak.fbcdn.net/hphotos-ak-snc3/hs460.snc3/26311_364585313039_117442203039_3667590_2903629_s.jpg"; 
	petLink[50]="http://photos-e.ak.fbcdn.net/hphotos-ak-snc3/hs480.snc3/26311_364585338039_117442203039_3667591_7275969_s.jpg"; 
	petLink[51]="http://photos-g.ak.fbcdn.net/hphotos-ak-ash1/hs492.ash1/26875_372285863039_117442203039_3687762_8051256_s.jpg"; 
	petLink[52]="http://photos-a.ak.fbcdn.net/hphotos-ak-ash1/hs492.ash1/26875_372285878039_117442203039_3687763_2692702_s.jpg"; 
	petLink[53]="http://photos-f.ak.fbcdn.net/hphotos-ak-snc3/hs512.snc3/26875_372285893039_117442203039_3687765_59093_s.jpg"; 
	petLink[54]="http://photos-h.ak.fbcdn.net/hphotos-ak-snc3/hs492.snc3/26875_372285898039_117442203039_3687766_7941164_s.jpg"; 
	petLink[55]="http://photos-g.ak.fbcdn.net/hphotos-ak-ash1/hs492.ash1/26875_372286608039_117442203039_3687769_1648241_s.jpg"; 
	petLink[56]="http://photos-d.ak.fbcdn.net/hphotos-ak-snc3/hs492.snc3/26875_372286618039_117442203039_3687770_3065449_s.jpg"; 
	petLink[57]="http://photos-f.ak.fbcdn.net/hphotos-ak-ash1/hs492.ash1/26875_372286628039_117442203039_3687771_2797317_s.jpg"; 
	petLink[58]="http://photos-h.ak.fbcdn.net/hphotos-ak-snc3/hs512.snc3/26875_372286638039_117442203039_3687772_7221091_s.jpg"; 
	petLink[59]="http://photos-b.ak.fbcdn.net/hphotos-ak-ash1/hs492.ash1/26875_372286653039_117442203039_3687773_976887_s.jpg"; 
	petLink[60]="http://photos-e.ak.fbcdn.net/hphotos-ak-ash1/hs458.ash1/25188_331720223039_117442203039_3578040_3925467_s.jpg"; 
	petLink[61]="http://photos-c.ak.fbcdn.net/hphotos-ak-snc3/hs438.snc3/25188_331720263039_117442203039_3578041_246975_s.jpg"; 
	petLink[62]="http://photos-b.ak.fbcdn.net/hphotos-ak-snc3/hs153.snc3/18070_237968078039_117442203039_3248943_5962279_s.jpg";
	petLink[63]="http://photos-b.ak.fbcdn.net/hphotos-ak-snc3/hs153.snc3/18070_238004178039_117442203039_3249040_2444046_s.jpg";
	petLink[64]="http://photos-b.ak.fbcdn.net/hphotos-ak-snc3/hs153.snc3/18070_237880853039_117442203039_3248555_5308821_s.jpg";
	petLink[65]="http://photos-g.ak.fbcdn.net/hphotos-ak-snc3/hs133.snc3/18070_237843473039_117442203039_3248441_6111328_s.jpg";
	petLink[66]="http://photos-e.ak.fbcdn.net/hphotos-ak-snc3/hs133.snc3/18070_237843493039_117442203039_3248442_3908923_s.jpg";
	petLink[67]="http://photos-h.ak.fbcdn.net/hphotos-ak-snc3/hs153.snc3/18070_237843538039_117442203039_3248445_6460588_s.jpg";
	petLink[68]="http://photos-f.ak.fbcdn.net/hphotos-ak-snc3/hs153.snc3/18070_237880883039_117442203039_3248557_1561189_s.jpg";
	petLink[69]="http://photos-h.ak.fbcdn.net/hphotos-ak-snc3/hs153.snc3/18070_237849918039_117442203039_3248451_3490528_s.jpg";
	petLink[70]="http://photos-f.ak.fbcdn.net/hphotos-ak-snc3/hs153.snc3/18070_237849928039_117442203039_3248452_1853453_s.jpg";
	petLink[71]="http://photos-d.ak.fbcdn.net/hphotos-ak-snc3/hs153.snc3/18070_237849938039_117442203039_3248453_1155819_s.jpg";
	petLink[72]="http://photos-b.ak.fbcdn.net/hphotos-ak-snc3/hs153.snc3/18070_237863908039_117442203039_3248499_2022527_s.jpg";
	petLink[73]="http://photos-g.ak.fbcdn.net/hphotos-ak-snc3/hs133.snc3/18070_237849953039_117442203039_3248455_3295742_s.jpg";
	petLink[74]="http://photos-h.ak.fbcdn.net/hphotos-ak-snc3/hs153.snc3/18070_237857683039_117442203039_3248472_3411233_s.jpg";
	petLink[75]="http://photos-c.ak.fbcdn.net/hphotos-ak-snc3/hs133.snc3/18070_237857698039_117442203039_3248474_2290943_s.jpg";
	petLink[76]="http://photos-g.ak.fbcdn.net/hphotos-ak-snc3/hs133.snc3/18070_237890243039_117442203039_3248621_8071829_s.jpg";
	petLink[77]="http://photos-g.ak.fbcdn.net/hphotos-ak-snc3/hs133.snc3/18070_237857713039_117442203039_3248476_6132635_s.jpg";
	petLink[78]="http://photos-e.ak.fbcdn.net/hphotos-ak-snc3/hs133.snc3/18070_237890248039_117442203039_3248622_8167047_s.jpg";
	petLink[79]="http://photos-h.ak.fbcdn.net/hphotos-ak-snc3/hs153.snc3/18070_237880843039_117442203039_3248554_6649921_s.jpg";
	petLink[80]="http://photos-e.ak.fbcdn.net/hphotos-ak-snc3/hs133.snc3/18070_238059488039_117442203039_3249425_2129533_s.jpg";
	petLink[81]="http://photos-c.ak.fbcdn.net/hphotos-ak-snc3/hs133.snc3/18070_237880903039_117442203039_3248559_4874500_s.jpg";
	petLink[82]="http://photos-d.ak.fbcdn.net/hphotos-ak-snc3/hs153.snc3/18070_237898403039_117442203039_3248665_1793390_s.jpg";
	petLink[83]="http://photos-d.ak.fbcdn.net/hphotos-ak-snc3/hs153.snc3/18070_237863923039_117442203039_3248500_5568557_s.jpg";
	petLink[84]="http://photos-b.ak.fbcdn.net/hphotos-ak-snc3/hs153.snc3/18070_237898408039_117442203039_3248666_4608947_s.jpg";
	petLink[85]="http://photos-b.ak.fbcdn.net/hphotos-ak-snc3/hs153.snc3/18070_237863968039_117442203039_3248503_570692_s.jpg";
	petLink[86]="http://photos-h.ak.fbcdn.net/hphotos-ak-snc3/hs153.snc3/18070_237863953039_117442203039_3248502_7995346_s.jpg";
	petLink[87]="http://photos-e.ak.fbcdn.net/hphotos-ak-snc3/hs133.snc3/18070_237857708039_117442203039_3248475_6766351_s.jpg";
	petLink[88]="http://photos-g.ak.fbcdn.net/hphotos-ak-snc3/hs133.snc3/18070_237898448039_117442203039_3248668_2276165_s.jpg";
	petLink[89]="http://photos-b.ak.fbcdn.net/hphotos-ak-snc3/hs124.snc3/17170_284764208039_117442203039_3418835_6725025_s.jpg";
	petLink[90]="http://photos-d.ak.fbcdn.net/hphotos-ak-snc3/hs144.snc3/17170_284764238039_117442203039_3418836_3460663_s.jpg";
	petLink[91]="http://photos-f.ak.fbcdn.net/hphotos-ak-snc3/hs144.snc3/17170_284764248039_117442203039_3418837_3191670_s.jpg";
	petLink[92]="http://photos-e.ak.fbcdn.net/hphotos-ak-ash1/hs244.ash1/17170_286545433039_117442203039_3423926_6841031_s.jpg";
	petLink[93]="http://photos-d.ak.fbcdn.net/hphotos-ak-snc3/hs124.snc3/17170_286545388039_117442203039_3423923_4493357_s.jpg";
	petLink[94]="http://photos-b.ak.fbcdn.net/hphotos-ak-snc3/hs124.snc3/17170_286545358039_117442203039_3423920_4655984_s.jpg";
	petLink[95]="http://photos-d.ak.fbcdn.net/hphotos-ak-snc3/hs144.snc3/17170_286555478039_117442203039_3423949_5591732_s.jpg";
	petLink[96]="http://photos-g.ak.fbcdn.net/hphotos-ak-snc3/hs124.snc3/17170_286545418039_117442203039_3423925_7187163_s.jpg";
	petLink[97]="http://photos-f.ak.fbcdn.net/hphotos-ak-ash1/hs244.ash1/17170_286545383039_117442203039_3423922_6651626_s.jpg";
	petLink[98]="http://photos-g.ak.fbcdn.net/hphotos-ak-snc3/hs124.snc3/17170_286555498039_117442203039_3423950_2470478_s.jpg";
	petLink[99]="http://photos-a.ak.fbcdn.net/hphotos-ak-snc3/hs144.snc3/17170_288833553039_117442203039_3432576_5223273_s.jpg";
	petLink[101]="http://photos-g.ak.fbcdn.net/hphotos-ak-snc3/hs124.snc3/17170_288833573039_117442203039_3432577_5688887_s.jpg";
	petLink[102]="http://photos-h.ak.fbcdn.net/hphotos-ak-snc3/hs144.snc3/17170_288833578039_117442203039_3432578_2502033_s.jpg";
	petLink[103]="http://photos-b.ak.fbcdn.net/hphotos-ak-snc3/hs124.snc3/17170_288833598039_117442203039_3432579_2619056_s.jpg";
	petLink[104]="http://photos-c.ak.fbcdn.net/hphotos-ak-snc3/hs124.snc3/17170_288833608039_117442203039_3432580_7027183_s.jpg";
	petLink[105]="http://photos-a.ak.fbcdn.net/hphotos-ak-snc3/hs124.snc3/17170_288836328039_117442203039_3432588_5637759_s.jpg";
	petLink[106]="http://photos-d.ak.fbcdn.net/hphotos-ak-snc3/hs124.snc3/17170_288836343039_117442203039_3432590_6313525_s.jpg";
	petLink[107]="http://photos-f.ak.fbcdn.net/hphotos-ak-snc3/hs124.snc3/17170_288836353039_117442203039_3432591_3409521_s.jpg";
	petLink[108]="http://photos-h.ak.fbcdn.net/hphotos-ak-ash1/hs244.ash1/17170_288836373039_117442203039_3432592_5021898_s.jpg";
	petLink[109]="http://photos-a.ak.fbcdn.net/hphotos-ak-ash1/hs256.ash1/18370_299948433039_117442203039_3465257_4319576_s.jpg";
	petLink[110]="http://photos-b.ak.fbcdn.net/hphotos-ak-snc3/hs156.snc3/18370_299948448039_117442203039_3465258_2876539_s.jpg";
	petLink[111]="http://photos-h.ak.fbcdn.net/hphotos-ak-snc3/hs156.snc3/18370_299948453039_117442203039_3465259_332163_s.jpg";
	petLink[112]="http://photos-a.ak.fbcdn.net/hphotos-ak-snc3/hs156.snc3/18370_299948478039_117442203039_3465260_5658298_s.jpg";
	petLink[113]="http://photos-g.ak.fbcdn.net/hphotos-ak-snc3/hs136.snc3/18370_299948493039_117442203039_3465261_3027883_s.jpg";
	petLink[114]="http://photos-f.ak.fbcdn.net/hphotos-ak-snc3/hs136.snc3/18370_299952373039_117442203039_3465266_4895274_s.jpg";
	petLink[115]="http://photos-g.ak.fbcdn.net/hphotos-ak-ash1/hs256.ash1/18370_301475068039_117442203039_3470423_3931162_s.jpg";
	petLink[116]="http://photos-f.ak.fbcdn.net/hphotos-ak-snc3/hs156.snc3/18370_301475083039_117442203039_3470424_6905841_s.jpg";
	petLink[117]="http://photos-c.ak.fbcdn.net/hphotos-ak-snc3/hs156.snc3/18370_301588688039_117442203039_3471031_3679820_s.jpg";
	petLink[118]="http://photos-a.ak.fbcdn.net/hphotos-ak-ash1/hs256.ash1/18370_301588708039_117442203039_3471032_3430337_s.jpg";
	petLink[119]="http://photos-g.ak.fbcdn.net/hphotos-ak-snc3/hs156.snc3/18370_301588723039_117442203039_3471033_2697612_s.jpg";
	petLink[120]="http://photos-f.ak.fbcdn.net/hphotos-ak-snc3/hs136.snc3/18370_301588743039_117442203039_3471034_5910458_s.jpg";

	document.getElementById('petPic').src=petLink[Math.floor(Math.random()*120)];	
	t=setTimeout("showPet()",6000);
}
function logMeIn() {
  scope = "https://www.google.com/calendar/feeds/";
  var token = google.accounts.user.login(scope);
}

function setupMyService() {
  myService = new google.gdata.calendar.CalendarService('seven');
  logMeIn();
}

function getMyFeed() {
  setupMyService(); 
  myService.getEventsFeed(feedUrl,handleMyFeed,handleError);
}
function handleMyFeed(myResultsFeedRoot) {
  alert("This feed's title is: " + myResultsFeedRoot.feed.getTitle().getText());
}

function handleError(e) {
  alert("There was an error!");
  alert(e.cause ? e.cause.statusText : e.message);
}
function addEventToCalendar()
{
/*
 * Create a single event
 */ 

// Create the calendar service object
var calendarService = new google.gdata.calendar.CalendarService('GoogleInc-jsguide-1.0');

// The default "private/full" feed is used to insert event to the 
// primary calendar of the authenticated user
var feedUri = 'https://www.google.com/calendar/feeds/jim@network2market.com/private/full';

// Create an instance of CalendarEventEntry representing the new event
var entry = new google.gdata.calendar.CalendarEventEntry();
//2010-08-19T10:00:00.000-08:00
// Set the title of the event
entry.setTitle(google.gdata.Text.create('entryTitle'));

// Create a When object that will be attached to the event
var when = new google.gdata.When();
var d3 = new Date();
var misin = (d3.getYear()+1900)+"-0"+(d3.getMonth()+1)+"-"+d3.getDate()+"T0"+d3.getHours()+":00:00.000-04:00";
alert(misin);
// Set the start and end time of the When object
var startTime = google.gdata.DateTime.fromIso8601('2010-08-18T06:00:00.000-04:00');
var endTime = google.gdata.DateTime.fromIso8601(misin);
when.setStartTime(startTime);
when.setEndTime(endTime);

// Add the When object to the event 
entry.addTime(when);

// The callback method that will be called after a successful insertion from insertEntry()
var callback = function(result) {
 alert('event created!');
}

// Error handler will be invoked if there is an error from insertEntry()
var handleError = function(error) {
  alert(error);
}

// Submit the request using the calendar service object
calendarService.insertEntry(feedUri, entry, callback, 
    handleError, google.gdata.calendar.CalendarEventEntry);
}
function handleInfo(data) {
    var response = eval(data.currentTarget.responseText);
  
    alert('Target: ' + response.Target + "\n" + 
          'Scope: ' + response.Scope + "\n" +
          'Secure: ' + response.Secure);
}

function doGetInfo() {
  scope = "https://www.google.com/calendar/feeds/";
  if (google.accounts.user.checkLogin(scope)) {
    google.accounts.user.getInfo(handleInfo);
  }
}