//-------------------------------------------------- function changeIcon (img) { var tag = "images/scooter"; var i = img.src.indexOf (tag); var which; which = parseInt (img.src.substring (i+ tag.length)); which++; if (which > 14) which = 1; img.src = "images/scooter" + which + ".gif"; Karmatics.setCookie ("iconno", which.toString(), "/", 100); } //-------------------------------------------------- function writeIcon () { var c = Karmatics.getCookie ("iconno"); if (c == null) c = 1; else { c = parseInt(c); if (!(c >=1 && c<=15)) c = 1; } document.write ("scooter"); } var sfsc = { //-------------------------------------------------- autoOpenShowroomImage : function () { var c = Karmatics.getCookie ("autoopen"); if (c != null) { var a = c.split(","); if (a.length>1) { var b = parseInt(a[0]); var i = parseInt(a[1]); var block = sfsc_data.showroomImageData.blockList[b]; Karmatics.scrollWindowToElement (block.list[i].thumbnailElem, popuppic_loadImage, [block, i]); } Karmatics.deleteCookie ("autoopen", "/"); } }, //-------------------------------------------------- goToShowroomBike : function (b, i) { Karmatics.setCookie ("autoopen", b + "," + i, "/", 1); document.location.href = "showroom.html"; }, //-------------------------------------------------- hiliteTab : function (name) { var n = document.getElementById ("navigation"); var a = n.getElementsByTagName ("A"); for (var i=0; i