if ( $_REQUEST['screen'] != 'F') { ?>
} ?>
/* This is the link for colorbox */
include("layout/box_script.php");
/* function: generates thumbnail */
function make_thumb($src,$dest,$desired_width) {
/* read the source image */
$source_image = imagecreatefromjpeg($src);
$width = imagesx($source_image);
$height = imagesy($source_image);
/* find the "desired height" of this thumbnail, relative to the desired width */
$desired_height = floor($height*($desired_width/$width));
/* create a new, "virtual" image */
$virtual_image = imagecreatetruecolor($desired_width,$desired_height);
/* copy source image at a resized size */
imagecopyresized($virtual_image,$source_image,0,0,0,0,$desired_width,$desired_height,$width,$height);
/* create the physical thumbnail image to its destination */
imagejpeg($virtual_image,$dest);
}
/* function: returns files from dir */
function get_files($images_dir,$exts = array('jpg')) {
$files = array();
if($handle = opendir($images_dir)) {
while(false !== ($file = readdir($handle))) {
$extension = strtolower(get_file_extension($file));
if($extension && in_array($extension,$exts)) {
$files[] = $file;
}
}
closedir($handle);
}
return $files;
}
/* function: returns a file's extension */
function get_file_extension($file_name) {
return substr(strrchr($file_name,'.'),1);
}
?>
SacCOG Pie Ride |
November 12 , 2016 |
Concours 14 |
Bullards Bar Dam Ride |
October 22 , 2016 |
Concours 14 |
Heading East Out West |
Sept. 15 - 25, 2016 |
Concours 14 |
Bark at the Moon + Heat, Fires and Storms |
August 19 - 23, 2016 |
Concours 14 |
Sierra Middle Passes Loop - Hwy 108 & Hwy 4 |
June 21 , 2016 |
Concours 14 |
Fathers Day via Ben Hur |
June 18 , 2016 |
Concours 14 |
Escape on Del Puerto / Mines /Tesla Roads |
June 15 , 2016 |
Concours 14 |
SacCOG / COG Ride the Sierra 2016 |
June 11 , 2016 |
Concours 14 |
Ride to Cherry Lake 2016 |
June 08 , 2016 |
Concours 14 |
My Journey to COG Northwests 25th Annual Bun Cooler |
May 12 - 16, 2016 |
Concours 14 |
SacCOG rides the Delta to Mt. Diablo |
April 23 , 2016 |
Concours 14 |
Wandering the Northwest |
Sept. 14 - 26, 2015 |
Concours 14 |
COG Fall NWR/SWR Combined Rally in Yreka, CA |
Sept. 11 - 13, 2015 |
Concours 14 |
Center of Cali & Redinger Lake |
August 22 , 2015 |
Concours 14 |
Mt Hamilton, Lick Observatory & Coe State Park |
August 13 , 2015 |
Concours 14 |
Sierra Ranch Country |
August 08 , 2015 |
Concours 14 |
Copper - Adding Highlights |
July 11 , 2015 |
Concours 14 |
My "Dream Bike" - 2015 Concours 14 |
June 2015 |
Concours 14 |
Death Valley Daze 2011 |
January 27 - 31, 2011 |
KLR 650 |
July 4th in the Sierras |
July 02 - 05, 2010 |
KLR 650 |
Death Vegas - Vegas via dirt & street |
May 13 - 18, 2010 |
KLR 650 |
High Power Tuolmne River (saddlebag test) |
April 18 , 2010 |
KLR 650 |
Cherry Lake via dirt and asphalt |
March 20 , 2010 |
KLR 650 |
My first partial off-road adventure |
May 2009 |
KLR 650 |
The Day i Brought The 2007 Home (in 2009) |
April 2009 |
KLR 650 |
5 Sierra Passes and a Park |
June 2007 |
Magna |
Highway 1 (PCH) & the Coastal Mountains |
April 2007 |
Magna |
Northern Cali's Bays, Deltas and Lakes Run |
2006 |
Magna |
Forgotten Highway Expedition |
July 2005 |
Magna |
WCM Ride to Julian CA |
2005 |
Magna |
MRA Western Rally |
July 2004 |
Magna |
About Keith and this site |