// JavaScript Document
var working = false;
var files = new Array(
new Array('richmar1.jpg', 'Richmar Associates, Inc.', 'richmar1.com'),
new Array('svqa.jpg', 'Silicon Valley Quality Associates', 'svqa.com'),
new Array('impulsesemi.jpg', 'Impulse Semiconductor', 'impulsesemi.com'),
new Array('kalman.jpg', 'Kalman Manufacturing', 'kalman.com'),
new Array('ustc.jpg', 'US Technical Ceramics, Inc.', 'ustc.net'),
new Array('euromachining.jpg', 'Euro Precision Machining', 'euromachining.com'),
new Array('mindwrite.jpg', 'MindWrite Communications, Inc.', 'mind-write.com'),
new Array('uassign.jpg', 'MicroAssignments, Inc.', 'uassign.com'),
new Array('falchionenterprises.jpg', 'Falchion Enterprises', 'falchionenterprises.com'),
new Array('garnettstaffing.jpg', 'Garnett Staffing'),
new Array('csfy.jpg', 'Center Stage For Youth', 'csfy.org'),
new Array('bayfundinginc.jpg', 'Bay Funding Inc.'),
new Array('primamailonline.jpg', 'Prima Mail', 'primamailonline.com'),
new Array('prosthetic-solutions.jpg', 'Prosthetic Solutions', 'prosthetic-solutions.com'),
new Array('frankbenest.jpg', 'Frank Benest', 'frankbenest.com'),
new Array('scutacticalwear.jpg', 'SCU Tactical Wear', 'scutacticalwear.com'),
new Array('morganhillchiro.jpg', 'Morgan Hill Chiropractic Association', 'morganhillchiro.org'),
new Array('californialightingservices.jpg', 'California Lighting Services, Inc.', 'californialightingservices.com'),
new Array('tempokitchen.jpg', 'Tempokitchen', 'tempokitchen.com'),
new Array('softprochecks.jpg', 'Pro-Check Solutions', 'softprochecks.com'),
new Array('goldenstatespraybooths.jpg', 'Golden State Spray Booths'),
new Array('rsi-ca.jpg', 'Recruiting Solution Incorporated', 'rsi-ca.com'),
new Array('ajprf.jpg', 'The Alphonse J. Pauchon Research Foundation'),
new Array('iwritewell.jpg', 'IWriteWell.com', 'iwritewell.com'),
new Array('dhweddingdesigns.jpg', 'DH Wedding Desings', 'dhweddingdesigns.com'),
new Array('sbcwd.jpg', 'San Benito County Water District', 'sbcwd.com'),
new Array('is-steppingstonespreschool.jpg', 'Stepping Stones Preschool', 'is-steppingstonespreschool.org'),
new Array('reneeangelafilice.jpg', 'Renee Angela Filice', 'reneeangelafilice.com'),
new Array('teces.jpg', 'TECES.ORG', 'teces.org'),
new Array('dociledogs.jpg', 'Docile Dogs', 'dociledogs.com'),
new Array('thegoddesshop.jpg', 'The Goddess Shop'),
new Array('xtravaganzasalon.jpg', 'Xtravaganza Salon and Day Spa', 'xtravaganzasalon.com'),
new Array('waggintailstlc.jpg', 'Waggin\' Tails'),
new Array('jessicajohnsononline.jpg', 'Jessica Johnson Online', 'jessicajohnsononline.com'),
new Array('acquacures.jpg', 'Acquacures', 'acquacures.com'),
new Array('bobsbobcatservice.jpg', 'Bob\'s Bobcat Service, Inc.', 'bobsbobcatservice.com'),
new Array('ledolcedayspa.jpg', 'Le Dolce Day Spa', 'ledolcedayspa.com'),
new Array('agwaterquality.jpg', 'AG Water Quality', 'agwaterquality.com'),
new Array('camflor.jpg', 'Camflor', 'camflor.com'),
new Array('ascianofiberartstools.jpg', 'Aciano Fiber Arts Tools', 'ascianofiberartstools.com'),
new Array('ciaobellasalon.jpg', 'Ciao Bella Salon', 'ciaobellasalon.com'),
new Array('lorrainerickey.jpg', 'Lorraine Rickey Memorial', 'lorrainerickey.com'),
new Array('cottagecoastalstore.jpg', 'Cottage Coastal Store', 'cottagecoastalstore.com'),
new Array('hearthugger.jpg', 'Heart Hugger', 'hearthugger.com'),
new Array('countryautomotiveonline.jpg', 'Country Automotive', 'countryautomotiveonline.com'),
new Array('openspacemeats.jpg', 'Open Space Meats', 'openspacemeats.com'),
new Array('autoexpomh.jpg', 'Auto Expo Morgan Hill', 'autoexpomh.com'),
new Array('babyblossomzzz.jpg', 'Baby Blossomzzz', 'babyblossomzzz.com'),
new Array('ecuponshop.jpg', 'CouponShop.com'),
new Array('feelinggifted.jpg', 'Feeling Gifted', 'feelinggifted.com'),
new Array('firsttrustalarm.jpg', 'Bowman\'s First Trust Alarm', 'firsttrustalarm.net'),
new Array('glazedcreations.jpg', 'Glazed Creations', 'glazedcreations.net'),
new Array('happytrailstlc.jpg', 'Happy Trails TLC'),
new Array('pro-marketing.jpg', 'Pro-Marketing, LLC', 'pro-marketing.biz'),
new Array('sccfarmbureau.jpg', 'Santa Clara County Farm Bureau', 'sccfarmbureau.org'),
new Array('mygreatstrides.jpg', 'Great Strides'),
new Array('vivalimited.jpg', 'Viva Arts Limited', 'vivalimited.com'),
new Array('consignliving.jpg', 'Consignment Living', 'consignliving.com'),
new Array('katskreations.jpg', 'Kats Kreations', 'katsKreations.com'),
new Array('healthcents.jpg', 'Healthcents', 'healthcents.com'),
new Array('mambospizza.jpg', 'Mambos Pizza & More'),
new Array('clickercable.jpg', 'Clicker Cable', 'clickercable.com'),
new Array('marilynsfavoritethings.jpg', 'Marilyn\'s Favorite Things'),
new Array('silvafamilychiropractic.jpg', 'Silva Family Chiropractic', 'silvafamilychiropractic.com'),
new Array('mypetstation.jpg', 'The Pet Station'),
new Array('sunbeltsv.jpg', 'Sunbelt', 'sunbeltsv.com'),
new Array('megys.jpg', 'Megy\'s Bridal Boutique'),
new Array('marinspecialtysurgerycenter.jpg', 'Marin Specialty Surgery Center', 'marinspecialtysurgerycenter.com'),
new Array('trainingforsafety.jpg', 'Training For Safety, Inc.', 'trainingforsafety.com'),
new Array('tiegoal.jpg', 'Tiegoal', 'tiegoal.com'),
new Array('lejjnailspasalon.jpg', 'Le JJ Belle Pedicure', 'lejjbellenailspa.com'),
new Array('truemakeupartistry.jpg', 'True Make-up Artistry'),
new Array('ultimatecreditscores.jpg', 'Ultimate Credit Score'),
new Array('51stmms.jpg', '51st MMS Association', '51stmms.org'),
new Array('westernfencing.jpg', 'Western Fencing', 'westernfencing.com'),
new Array('zensauto.jpg', 'Zen\'s Auto Solutions', 'zensauto.com'),
new Array('xyzpressinc.jpg', 'XYZ Press, Inc.', 'xyzpressinc.com')
);
/* Sorted list for drop down */
var sfiles = new Array(
new Array('richmar1.jpg', 'Richmar Associates, Inc.', 'richmar1.com'),
new Array('svqa.jpg', 'Silicon Valley Quality Associates', 'svqa.com'),
new Array('impulsesemi.jpg', 'Impulse Semiconductor', 'impulsesemi.com'),
new Array('kalman.jpg', 'Kalman Manufacturing', 'kalman.com'),
new Array('ustc.jpg', 'US Technical Ceramics, Inc.', 'ustc.net'),
new Array('euromachining.jpg', 'Euro Precision Machining', 'euromachining.com'),
new Array('mindwrite.jpg', 'MindWrite Communications, Inc.', 'mind-write.com'),
new Array('uassign.jpg', 'MicroAssignments, Inc.', 'uassign.com'),
new Array('falchionenterprises.jpg', 'Falchion Enterprises', 'falchionenterprises.com'),
new Array('garnettstaffing.jpg', 'Garnett Staffing'),
new Array('csfy.jpg', 'Center Stage For Youth', 'csfy.org'),
new Array('bayfundinginc.jpg', 'Bay Funding Inc.'),
new Array('primamailonline.jpg', 'Prima Mail', 'primamailonline.com'),
new Array('prosthetic-solutions.jpg', 'Prosthetic Solutions', 'prosthetic-solutions.com'),
new Array('frankbenest.jpg', 'Frank Benest', 'frankbenest.com'),
new Array('scutacticalwear.jpg', 'SCU Tactical Wear', 'scutacticalwear.com'),
new Array('morganhillchiro.jpg', 'Morgan Hill Chiropractic Association', 'morganhillchiro.org'),
new Array('californialightingservices.jpg', 'California Lighting Services, Inc.', 'californialightingservices.com'),
new Array('tempokitchen.jpg', 'Tempokitchen', 'tempokitchen.com'),
new Array('softprochecks.jpg', 'Pro-Check Solutions', 'softprochecks.com'),
new Array('goldenstatespraybooths.jpg', 'Golden State Spray Booths'),
new Array('rsi-ca.jpg', 'Recruiting Solution Incorporated', 'rsi-ca.com'),
new Array('ajprf.jpg', 'The Alphonse J. Pauchon Research Foundation'),
new Array('iwritewell.jpg', 'IWriteWell.com', 'iwritewell.com'),
new Array('dhweddingdesigns.jpg', 'DH Wedding Desings', 'dhweddingdesigns.com'),
new Array('sbcwd.jpg', 'San Benito County Water District', 'sbcwd.com'),
new Array('is-steppingstonespreschool.jpg', 'Stepping Stones Preschool', 'is-steppingstonespreschool.org'),
new Array('reneeangelafilice.jpg', 'Renee Angela Filice', 'reneeangelafilice.com'),
new Array('teces.jpg', 'TECES.ORG', 'teces.org'),
new Array('dociledogs.jpg', 'Docile Dogs', 'dociledogs.com'),
new Array('thegoddesshop.jpg', 'The Goddess Shop'),
new Array('xtravaganzasalon.jpg', 'Xtravaganza Salon and Day Spa', 'xtravaganzasalon.com'),
new Array('waggintailstlc.jpg', 'Waggin\' Tails'),
new Array('jessicajohnsononline.jpg', 'Jessica Johnson Online', 'jessicajohnsononline.com'),
new Array('acquacures.jpg', 'Acquacures', 'acquacures.com'),
new Array('bobsbobcatservice.jpg', 'Bob\'s Bobcat Service, Inc.', 'bobsbobcatservice.com'),
new Array('ledolcedayspa.jpg', 'Le Dolce Day Spa', 'ledolcedayspa.com'),
new Array('agwaterquality.jpg', 'AG Water Quality', 'agwaterquality.com'),
new Array('camflor.jpg', 'Camflor', 'camflor.com'),
new Array('ascianofiberartstools.jpg', 'Aciano Fiber Arts Tools', 'ascianofiberartstools.com'),
new Array('ciaobellasalon.jpg', 'Ciao Bella Salon', 'ciaobellasalon.com'),
new Array('lorrainerickey.jpg', 'Lorraine Rickey Memorial', 'lorrainerickey.com'),
new Array('cottagecoastalstore.jpg', 'Cottage Coastal Store', 'cottagecoastalstore.com'),
new Array('hearthugger.jpg', 'Heart Hugger', 'hearthugger.com'),
new Array('countryautomotiveonline.jpg', 'Country Automotive', 'countryautomotiveonline.com'),
new Array('openspacemeats.jpg', 'Open Space Meats', 'openspacemeats.com'),
new Array('autoexpomh.jpg', 'Auto Expo Morgan Hill', 'autoexpomh.com'),
new Array('babyblossomzzz.jpg', 'Baby Blossomzzz', 'babyblossomzzz.com'),
new Array('ecuponshop.jpg', 'CouponShop.com'),
new Array('feelinggifted.jpg', 'Feeling Gifted', 'feelinggifted.com'),
new Array('firsttrustalarm.jpg', 'Bowman\'s First Trust Alarm', 'firsttrustalarm.net'),
new Array('glazedcreations.jpg', 'Glazed Creations', 'glazedcreations.net'),
new Array('happytrailstlc.jpg', 'Happy Trails TLC'),
new Array('pro-marketing.jpg', 'Pro-Marketing, LLC', 'pro-marketing.biz'),
new Array('sccfarmbureau.jpg', 'Santa Clara County Farm Bureau', 'sccfarmbureau.org'),
new Array('mygreatstrides.jpg', 'Great Strides'),
new Array('vivalimited.jpg', 'Viva Arts Limited', 'vivalimited.com'),
new Array('consignliving.jpg', 'Consignment Living', 'consignliving.com'),
new Array('katskreations.jpg', 'Kats Kreations', 'katsKreations.com'),
new Array('healthcents.jpg', 'Healthcents', 'healthcents.com'),
new Array('mambospizza.jpg', 'Mambos Pizza & More'),
new Array('clickercable.jpg', 'Clicker Cable', 'clickercable.com'),
new Array('marilynsfavoritethings.jpg', 'Marilyn\'s Favorite Things'),
new Array('silvafamilychiropractic.jpg', 'Silva Family Chiropractic', 'silvafamilychiropractic.com'),
new Array('mypetstation.jpg', 'The Pet Station'),
new Array('sunbeltsv.jpg', 'Sunbelt', 'sunbeltsv.com'),
new Array('megys.jpg', 'Megy\'s Bridal Boutique'),
new Array('marinspecialtysurgerycenter.jpg', 'Marin Specialty Surgery Center', 'marinspecialtysurgerycenter.com'),
new Array('trainingforsafety.jpg', 'Training For Safety, Inc.', 'trainingforsafety.com'),
new Array('tiegoal.jpg', 'Tiegoal', 'tiegoal.com'),
new Array('lejjnailspasalon.jpg', 'Le JJ Belle Pedicure', 'lejjbellenailspa.com'),
new Array('truemakeupartistry.jpg', 'True Make-up Artistry'),
new Array('ultimatecreditscores.jpg', 'Ultimate Credit Score'),
new Array('51stmms.jpg', '51st MMS Association', '51stmms.org'),
new Array('westernfencing.jpg', 'Western Fencing', 'westernfencing.com'),
new Array('zensauto.jpg', 'Zen\'s Auto Solutions', 'zensauto.com'),
new Array('xyzpressinc.jpg', 'XYZ Press, Inc.', 'xyzpressinc.com')
);
function sortFun(a, b) {
return a[1] > b[1];
}
function fillOptions() {
sfiles.sort(sortFun);
document.write('');
}
function gotoSlide(s) {
for (var i = 0; i < files.length; i++) {
if (files[i][0] == s) {
found = i;
break;
}
}
if (found>-1) {
slide = found;
showSlide();
}
}
var slide=0;
var pic = new Image();
function imagesLoaded(){
// console.log('All Done');
}
function preLoad() {
pic.onLoad=imagesLoaded();
for (i=0; i= 0) {
// document.getElementById('slide-show').src = "images/prog.gif";
var img = new Image();
img.onload = function() {
document.getElementById('slide-show').style.display = "block";
fadeIn('slide-show', 0);
document.getElementById('slide-show').src = img.src;
};
img.src = "portfolio/" + files[slide][0];
}
addTitle();
}
function ffwdDown() {
// if (working==true) return;
// document.getElementById('ffwd').src = "images/right.png";
slide++;
if (slide > files.length-1)
slide = 0;
if (slide >= 0) {
// document.getElementById('slide-show').src = "images/prog.gif";
var img = new Image();
img.onload = function() {
document.getElementById('slide-show').style.display = "block";
fadeIn('slide-show', 0);
document.getElementById('slide-show').src = img.src;
};
img.src = "portfolio/" + files[slide][0];
}
addTitle();
}
function showSlide() {
// document.getElementById('ffwd').src = "images/right.png";
if (slide >= 0) {
// document.getElementById('slide-show').src = "images/prog.gif";
var img = new Image();
img.onload = function() {
document.getElementById('slide-show').style.display = "block";
fadeIn('slide-show', 0);
document.getElementById('slide-show').src = img.src;
};
img.src = "portfolio/" + files[slide][0];
}
addTitle();
}
function addTitle() {
thelink = files[slide][1];
www = ' • www.' + files[slide][2] + '';
weblink = '';
if (files[slide][2] != null)
thelink = thelink + www + weblink;
document.getElementById('siteName').innerHTML = thelink;
document.getElementById('slideNo').innerHTML = slide+1;
document.getElementById('port').options[0].selected = true;
}
function setOpacity(obj, opacity) {
opacity = (opacity == 100)?99.999:opacity;
// IE/Win
obj.style.filter = "alpha(opacity:"+opacity+")";
// Safari<1.2, Konqueror
obj.style.KHTMLOpacity = opacity/100;
// Older Mozilla and Firefox
obj.style.MozOpacity = opacity/100;
// Safari 1.2, newer Firefox and Mozilla, CSS3
obj.style.opacity = opacity/100;
}
function fadeIn(objId,opacity) {
if (document.getElementById) {
obj = document.getElementById(objId);
if (opacity <= 100) {
working=true;
setOpacity(obj, opacity);
opacity += 10;
window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 50);
} else {
working=false;
// ffwdOver();
}
}
}
preLoad();