/*
 NOTICE*
 Zoshe site script .40 beta | www.zoshe.com | ©2010 Robert Stack Jr. All rights reserved*
 This Program may be used only if: that the following conditions are met;               *
 1) This notice is left unchanged.                                                      *
 2) You have purchaced and agreed to a vaild Licensing agreement for use of this        *
 computer software product at www.zoshe.com .                                           *
 3) No links or credits to http://www.zoshe.com are removed from it's code.             *
 For more information, about Licensing this program please visit and                    *
 contact www.zoshe.com                                                                  *
*/
/* creates html5 tages for ie 5 6 7 8 */
'abbr article aside audio canvas details figcaption figure footer header hgroup mark meter nav output progress section summary time video'.replace(/\w+/g,function(n){document.createElement(n)});

function view1onChange(){
var view1Select = document.getElementById("view1Select");
var view1Options = view1Select.getElementsByTagName("option");
var view1Option = view1Options[view1Select.selectedIndex];
var view1OptionVal = view1Option.value;
//alert(view1OptionVal);
var tables = document.getElementsByTagName("table");
var tablesLength = tables.length || 0;
//var tablesLength = 1;
//alert(tablesLength);
for(var i=0; i<tablesLength;i++){
var table = tables[i];
var tableClass = table.className || false;
//var td3 = table.getElementsByTagName("td")[3] || false;
//var td3ClassName = (td3 && td3.className) || false;
//alert(td3ClassName);
// availableBikes bikeTableAvalible
if(view1OptionVal=="availableBikes" && tableClass){
table.style.display = (tableClass == "bikeTableSold")? "none" : "table"; 	
}//bikeTableAvalible
else if(view1OptionVal=="soldBikes" && tableClass){
table.style.display = (tableClass == "bikeTableSold")? "table" : "none"; 	
}
else{
table.style.display = "table";
}
	
}
}
