/*************************** 
File generated by Scriptalizer.com
DateTime: Friday, July 31, 2009 7:53:03 AM CDT

File list:
	top_shop.js
	swfobject.js
*****************************/
var ajaxreq=false,ajaxreqcart=false,ajaxreqstatus=false,ajaxCallback,ajaxCallbackcart,ajaxCallbackstatus,product_id,vendor_id;function ajaxRequest(a){try{ajaxreq=new XMLHttpRequest()}catch(b){try{ajaxreq=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){return false}}ajaxreq.open("GET",a,true);ajaxreq.onreadystatechange=ajaxResponse;ajaxreq.send(null)}function ajaxRequestCart(a){try{ajaxreqcart=new XMLHttpRequest()}catch(b){try{ajaxreqcart=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){return false}}ajaxreqcart.open("GET",a);ajaxreqcart.onreadystatechange=ajaxResponseCart;ajaxreqcart.send(null)}function ajaxRequestStatus(a){try{ajaxreqstatus=new XMLHttpRequest()}catch(b){try{ajaxreqstatus=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){return false}}ajaxreqstatus.open("GET",a);ajaxreqstatus.onreadystatechange=ajaxResponseStatus;ajaxreqstatus.send(null)}function ajaxResponse(){if(ajaxreq.readyState!=4){return}if(ajaxreq.status==200){if(ajaxCallback){ajaxCallback()}}else{alert("Request failed: "+ajaxreq.statusText)}return true}function ajaxResponseCart(){if(ajaxreqcart.readyState!=4){return}if(ajaxreqcart.status==200){if(ajaxCallbackcart){ajaxCallbackcart()}}else{alert("Request failed: "+ajaxreqcart.statusText)}return true}function ajaxResponseStatus(){if(ajaxreqstatus.readyState!=4){return}if(ajaxreqstatus.status==200){if(ajaxCallbackstatus){ajaxCallbackstatus()}}else{alert("Request failed: "+ajaxreqstatus.statusText)}return true}function js_Carousel(b){var a="home_carousel";var c=new SWFObject("/carousel/Carousel.swf","Carousel","484","240","8");c.addVariable("xmlfile","/carousel/"+b+".php");c.addVariable("loaderColor","#0000FF");c.addParam("bgcolor","#ffffff");c.addVariable("messages","Loading Carousel::Loading Artists:: :: ");c.write(a)}function js_updateCart(){var e=document.getElementById("c_symbol").value;main=document.getElementById("cart");D=document.getElementById("cart_contents");main.removeChild(D);vendors=ajaxreqcart.responseXML.getElementsByTagName("vendor");var D=document.createElement("DIV");D.id="cart_contents";var j=0;if(vendors[0].childNodes[0].nodeValue!="None"){for(i=0;i<vendors.length;i++){var l=vendors.item(i);var G=l.getElementsByTagName("vendors_name");var k=l.getElementsByTagName("zone_served");var C=document.createElement("TABLE");C.setAttribute("BORDER","0");C.setAttribute("class","cart_internal_table");C.setAttribute("className","cart_internal_table");var s=document.createElement("TBODY");var w=document.createElement("TR");var L=document.createElement("TD");L.setAttribute("class","cart_vendor_name");L.setAttribute("className","cart_vendor_name");var K=document.createElement("TD");var l=vendors.item(i);var G=l.getElementsByTagName("vendors_name");if(k[0].childNodes[0].nodeValue==1){var c=document.createTextNode(G[0].childNodes[0].nodeValue);L.setAttribute("class","cart_vendor_name");L.setAttribute("className","cart_vendor_name");L.appendChild(c)}else{L.innerHTML="<A HREF=index.php?group=shop&class=mall&task=checkout&subtask=confirm_cart>"+G[0].childNodes[0].nodeValue+" **</A>";L.setAttribute("class","cart_vendor_not_served");L.setAttribute("className","cart_vendor_not_served")}w.appendChild(L);w.appendChild(K);s.appendChild(w);if(k[0].childNodes[0].nodeValue==1){var n=l.getElementsByTagName("product");for(y=0;y<n.length;y++){var B=n.item(y);var g=B.getElementsByTagName("products_name");var A=B.getElementsByTagName("price");var v=B.getElementsByTagName("products_quantity");var F=document.createElement("TR");var O=document.createElement("TD");product_name_text=document.createTextNode(g[0].childNodes[0].nodeValue+" x "+v[0].childNodes[0].nodeValue);O.appendChild(product_name_text);O.setAttribute("class","cart_product_name");O.setAttribute("className","cart_product_name");var M=document.createElement("TD");var b=A[0].childNodes[0].nodeValue*v[0].childNodes[0].nodeValue;j=j+b;product_price_text=document.createTextNode(e+b.toFixed(2));M.appendChild(product_price_text);M.setAttribute("class","cart_product_price");M.setAttribute("className","cart_product_price");F.appendChild(O);F.appendChild(M);s.appendChild(F)}}var d=l.getElementsByTagName("discount_amount");var h=l.getElementsByTagName("discount_description");if(d.length>0&&h[0].childNodes[0].nodeValue!="none"){var a=document.createElement("TR");a.setAttribute("WIDTH","100%");var q=document.createElement("TD");var f=document.createTextNode("Discount");q.setAttribute("class","discount_description");q.setAttribute("className","discount_description");q.appendChild(f);var J=document.createElement("TD");var I=d[0].childNodes[0].nodeValue*1;j=j-I;var N=document.createTextNode("- "+e+I.toFixed(2));J.setAttribute("class","discount_amount");J.setAttribute("className","discount_amount");J.appendChild(N);a.appendChild(q);a.appendChild(J);s.appendChild(a)}C.appendChild(s);D.appendChild(C)}}var o=document.createElement("TABLE");var H=document.createElement("TBODY");o.setAttribute("class","cart_internal_table");o.setAttribute("className","cart_internal_table");var u=document.createElement("TR");var t=document.createElement("TD");t.setAttribute("class","cart_total_text");t.setAttribute("className","cart_total_text");var P=document.createTextNode("Total:");t.appendChild(P);var r=document.createElement("TD");r.setAttribute("class","cart_total_price");r.setAttribute("className","cart_total_price");if(vendors.length>0){var E=document.createTextNode(e+j.toFixed(2))}else{var E=document.createTextNode(e+"0.00")}r.appendChild(E);u.appendChild(t);u.appendChild(r);H.appendChild(u);o.appendChild(H);D.appendChild(o);main.appendChild(D)}function js_getFeaturedProducts(a){filename="index.php?group=shop&class=ajax&task=get_featured_products_by_vendor_id&vendors_id="+a;ajaxCallback=js_displayFeaturedProducts;ajaxRequest(filename)}function js_displayFeaturedProducts(){var o=document.getElementById("c_symbol").value;var E=document.getElementById("shortcode").value;var a=document.getElementById("keyword").value;var q=document.getElementById("wimpyReg").value;main=document.getElementById("vendor_featured_products");products=ajaxreq.responseXML.getElementsByTagName("products");vendors_id=ajaxreq.responseXML.getElementsByTagName("vendors_id");products_id=ajaxreq.responseXML.getElementsByTagName("products_id");products_images_filename=ajaxreq.responseXML.getElementsByTagName("products_images_filename");products_name=ajaxreq.responseXML.getElementsByTagName("products_name");products_price=ajaxreq.responseXML.getElementsByTagName("products_price");products_description=ajaxreq.responseXML.getElementsByTagName("products_description");products_disc=ajaxreq.responseXML.getElementsByTagName("products_disc_description");products_type=ajaxreq.responseXML.getElementsByTagName("products_type");products_file=ajaxreq.responseXML.getElementsByTagName("products_filename");products_heading_div=document.createElement("DIV");f_products_heading_text=document.createTextNode("Featured Stuff");s_products_heading_text=document.createTextNode(" | ");a_products_heading_span=document.createElement("SPAN");a_products_heading_span.innerHTML="<A CLASS=results_list_heading HREF=index.php?group=shop&class=unit&task=unit_home&subtask=all_products&vendors_id="+vendors_id[0].childNodes[0].nodeValue+">All Stuff</A>";products_heading_div.setAttribute("id","results_list_heading");products_heading_div.appendChild(f_products_heading_text);products_heading_div.appendChild(s_products_heading_text);products_heading_div.appendChild(a_products_heading_span);main.appendChild(products_heading_div);if(products_id[0].childNodes[0].nodeValue!=0){for(i=0;i<products_id.length;i++){if(products_images_filename[i].childNodes[0].nodeValue=="no_product_image.jpg"){products_images_filename[i].childNodes[0].nodeValue="no_product_image84.jpg"}var B=document.createElement("TABLE");var b=document.createElement("TBODY");var F=document.createElement("TR");var J=document.createElement("TD");var D=document.createElement("TD");var H=document.createElement("TD");var G=document.createElement("A");G.id="product_link_"+products_name[i].childNodes[0].nodeValue;G.href="index.php?group=shop&class=unit&task=product_home&products_id="+products_id[i].childNodes[0].nodeValue;var n=document.createElement("IMG");n.id="product_image_"+products_name[i].childNodes[0].nodeValue;n.setAttribute("src","images/shops/"+products_images_filename[i].childNodes[0].nodeValue);n.setAttribute("border","0");G.appendChild(n);H.appendChild(G);var A=document.createElement("TABLE");var C=document.createElement("TBODY");var T=document.createElement("TR");var W=document.createElement("TD");if(products_type[i].childNodes[0].nodeValue==2){var t=document.createElement("DIV");var Q=document.createElement("DIV");t.id="w_button"+products_id[i].childNodes[0].nodeValue;Q.id="button_container";Q.appendChild(t);W.appendChild(Q)}T.appendChild(W);var s=document.createElement("DIV");s.id="p_name";var r=document.createTextNode(products_name[i].childNodes[0].nodeValue);s.appendChild(r);W.appendChild(s);var U=document.createElement("TD");var I=document.createTextNode(o+products_price[i].childNodes[0].nodeValue);U.appendChild(I);T.appendChild(U);var R=document.createElement("TD");var N=document.createElement("A");N.setAttribute("href","index.php?group=shop&class=unit&task=product_home&products_id="+products_id[i].childNodes[0].nodeValue);var P=document.createTextNode("Go");N.appendChild(P);R.appendChild(N);T.appendChild(R);C.appendChild(T);A.appendChild(C);var v=document.createElement("TABLE");var d=document.createElement("TBODY");var X=document.createElement("TR");var h=document.createElement("TD");if(products_type[i].childNodes[0].nodeValue==2||products_type[i].childNodes[0].nodeValue==1){if(products_type[i].childNodes[0].nodeValue==2){var j="Text <SPAN CLASS=highlight_text>"+a+" "+products_id[i].childNodes[0].nodeValue+"</SPAN> to <SPAN CLASS=highlight_text>"+E+"</SPAN> to buy";var l=document.createElement("SPAN");l.innerHTML=j}if(products_type[i].childNodes[0].nodeValue==2){var K=document.createElement("A");var g=document.createTextNode("add to playlist");K.appendChild(g);K.setAttribute("href","javascript:js_addToPlaylist("+products_id[i].childNodes[0].nodeValue+");")}var c=document.createElement("A");var w=document.createTextNode("add to cart");c.appendChild(w);c.setAttribute("href","javascript:js_updateSessionCart("+products_id[i].childNodes[0].nodeValue+","+vendors_id[i].childNodes[0].nodeValue+");");var k=document.createElement("BR");var O=document.createTextNode(products_description[i].childNodes[0].nodeValue);h.appendChild(O);h.appendChild(k);h.appendChild(c);if(products_type[i].childNodes[0].nodeValue==2){var M=document.createTextNode(" | ");var L=document.createTextNode(" | ");h.appendChild(M);h.appendChild(K);h.appendChild(L);h.appendChild(l)}}else{var O=document.createTextNode(products_description[i].childNodes[0].nodeValue);h.appendChild(O)}X.appendChild(h);var V=document.createElement("TR");var f=document.createElement("TD");V.appendChild(f);var S=document.createElement("TR");var e=document.createElement("TD");if(products_disc[i].childNodes.length!=0){var u=document.createTextNode(products_disc[i].childNodes[0].nodeValue);e.appendChild(u)}S.appendChild(e);d.appendChild(X);d.appendChild(V);d.appendChild(S);v.appendChild(d);J.appendChild(A);J.appendChild(v);F.appendChild(J);F.appendChild(D);F.appendChild(H);b.appendChild(F);B.appendChild(b);main.appendChild(B);B.setAttribute("class","results_list");B.setAttribute("className","results_list");J.setAttribute("class","results_list_column_1");J.setAttribute("className","results_list_column_1");D.setAttribute("class","results_list_column_spacer");D.setAttribute("className","results_list_column_spacer");H.setAttribute("class","results_list_column_2");H.setAttribute("className","results_list_column_2");A.setAttribute("class","results_list_left_column_t1");A.setAttribute("className","results_list_left_column_t1");W.setAttribute("class","results_list_product_name");W.setAttribute("className","results_list_product_name");U.setAttribute("class","results_list_product_price");U.setAttribute("className","results_list_product_price");R.setAttribute("class","results_list_product_link");R.setAttribute("className","results_list_product_link");v.setAttribute("class","results_list_left_column_t2");v.setAttribute("className","results_list_left_column_t2");h.setAttribute("class","results_list_product_desc");h.setAttribute("className","results_list_product_desc");f.setAttribute("class","results_list_product_vendor");f.setAttribute("className","results_list_product_vendor");e.setAttribute("class","results_list_product_disc");e.setAttribute("className","results_list_product_disc");if(products_type[i].childNodes[0].nodeValue==2){js_wimpyButton(products_file[i].childNodes[0].nodeValue,t.id,products_id[i].childNodes[0].nodeValue,"#FFFFFF",q)}}}else{products_no_results=document.createElement("DIV");products_no_results.id="products_no_results_0";products_no_results.setAttribute("id","results_list_no_results");products_no_results.appendChild(document.createTextNode("No Featured Stuff at this time"));main.appendChild(products_no_results)}}function js_getAllProducts(a){filename="index.php?group=shop&class=ajax&task=get_all_products_by_vendor_id&vendors_id="+a;ajaxCallback=js_displayAllProducts;ajaxRequest(filename)}function js_displayAllProducts(){var r=document.getElementById("c_symbol").value;var K=document.getElementById("shortcode").value;var b=document.getElementById("keyword").value;var t=document.getElementById("wimpyReg").value;var F=1;var N=6;main=document.getElementById("vendor_all_products");vendors_id=ajaxreq.responseXML.getElementsByTagName("vendors_id");products_id=ajaxreq.responseXML.getElementsByTagName("products_id");products_images_filename=ajaxreq.responseXML.getElementsByTagName("products_images_filename");products_name=ajaxreq.responseXML.getElementsByTagName("products_name");products_price=ajaxreq.responseXML.getElementsByTagName("products_price");products_description=ajaxreq.responseXML.getElementsByTagName("products_description");products_disc=ajaxreq.responseXML.getElementsByTagName("products_disc_description");products_type=ajaxreq.responseXML.getElementsByTagName("products_type");products_file=ajaxreq.responseXML.getElementsByTagName("products_filename");products_heading_div=document.createElement("DIV");f_products_heading_span=document.createElement("SPAN");f_products_heading_span.innerHTML="<A CLASS=results_list_heading HREF=index.php?group=shop&class=unit&task=unit_home&vendors_id="+vendors_id[0].childNodes[0].nodeValue+">Featured Stuff</A>";s_products_heading_text=document.createTextNode(" | ");a_products_heading_text=document.createTextNode("All Stuff");products_heading_div.setAttribute("id","results_list_heading");products_heading_div.appendChild(f_products_heading_span);products_heading_div.appendChild(s_products_heading_text);products_heading_div.appendChild(a_products_heading_text);main.appendChild(products_heading_div);if(products_id[0].childNodes[0].nodeValue!=0){for(i=0;i<products_id.length;i++){if(products_images_filename[i].childNodes[0].nodeValue=="no_product_image.jpg"){products_images_filename[i].childNodes[0].nodeValue="no_product_image84.jpg"}var u=i+1;var G=document.createElement("TABLE");G.id="product_"+u+"_table";var c=document.createElement("TBODY");p=i+1;if(p>N){G.style.display="none"}var L=document.createElement("TR");var R=document.createElement("TD");var J=document.createElement("TD");var P=document.createElement("TD");var O=document.createElement("A");O.id="product_link_"+products_name[i].childNodes[0].nodeValue;O.href="index.php?group=shop&class=unit&task=product_home&products_id="+products_id[i].childNodes[0].nodeValue;var q=document.createElement("IMG");q.id="product_image_"+products_name[i].childNodes[0].nodeValue;q.setAttribute("src","images/shops/"+products_images_filename[i].childNodes[0].nodeValue);q.setAttribute("border","0");O.appendChild(q);P.appendChild(O);var E=document.createElement("TABLE");var I=document.createElement("TBODY");var ae=document.createElement("TR");var ah=document.createElement("TD");if(products_type[i].childNodes[0].nodeValue==2){var A=document.createElement("DIV");var ab=document.createElement("DIV");A.id="w_button"+products_id[i].childNodes[0].nodeValue;ab.id="button_container";ab.appendChild(A);ah.appendChild(ab)}ae.appendChild(ah);var w=document.createElement("DIV");w.id="p_name";var v=document.createTextNode(products_name[i].childNodes[0].nodeValue);w.appendChild(v);ah.appendChild(w);var af=document.createElement("TD");var Q=document.createTextNode(r+products_price[i].childNodes[0].nodeValue);af.appendChild(Q);ae.appendChild(af);var ac=document.createElement("TD");var X=document.createElement("A");X.setAttribute("href","index.php?group=shop&class=unit&task=product_home&products_id="+products_id[i].childNodes[0].nodeValue);var aa=document.createTextNode("Go");X.appendChild(aa);ac.appendChild(X);ae.appendChild(ac);I.appendChild(ae);E.appendChild(I);var D=document.createElement("TABLE");var e=document.createElement("TBODY");var aj=document.createElement("TR");var k=document.createElement("TD");if(products_type[i].childNodes[0].nodeValue==2||products_type[i].childNodes[0].nodeValue==1){if(products_type[i].childNodes[0].nodeValue==2){var l="Text <SPAN CLASS=highlight_text>"+b+" "+products_id[i].childNodes[0].nodeValue+"</SPAN> to <SPAN CLASS=highlight_text>"+K+"</SPAN> to buy";var o=document.createElement("SPAN");o.innerHTML=l}if(products_type[i].childNodes[0].nodeValue==2){var T=document.createElement("A");var j=document.createTextNode("add to playlist");T.appendChild(j);T.setAttribute("href","javascript:js_addToPlaylist("+products_id[i].childNodes[0].nodeValue+");")}var d=document.createElement("A");var C=document.createTextNode("add to cart");d.appendChild(C);d.setAttribute("href","javascript:js_updateSessionCart("+products_id[i].childNodes[0].nodeValue+","+vendors_id[i].childNodes[0].nodeValue+");");var n=document.createElement("BR");var Z=document.createTextNode(products_description[i].childNodes[0].nodeValue);k.appendChild(Z);k.appendChild(n);k.appendChild(d);if(products_type[i].childNodes[0].nodeValue==2){var W=document.createTextNode(" | ");var U=document.createTextNode(" | ");k.appendChild(W);k.appendChild(T);k.appendChild(U);k.appendChild(o)}}else{var Z=document.createTextNode(products_description[i].childNodes[0].nodeValue);k.appendChild(Z)}aj.appendChild(k);var ag=document.createElement("TR");var h=document.createElement("TD");ag.appendChild(h);var ad=document.createElement("TR");var g=document.createElement("TD");if(products_disc[i].childNodes.length!=0){var B=document.createTextNode(products_disc[i].childNodes[0].nodeValue);g.appendChild(B)}ad.appendChild(g);e.appendChild(aj);e.appendChild(ag);e.appendChild(ad);D.appendChild(e);R.appendChild(E);R.appendChild(D);L.appendChild(R);L.appendChild(J);L.appendChild(P);c.appendChild(L);G.appendChild(c);main.appendChild(G);G.setAttribute("class","results_list");G.setAttribute("className","results_list");R.setAttribute("class","results_list_column_1");R.setAttribute("className","results_list_column_1");J.setAttribute("class","results_list_column_spacer");J.setAttribute("className","results_list_column_spacer");P.setAttribute("class","results_list_column_2");P.setAttribute("className","results_list_column_2");E.setAttribute("class","results_list_left_column_t1");E.setAttribute("className","results_list_left_column_t1");ah.setAttribute("class","results_list_product_name");ah.setAttribute("className","results_list_product_name");af.setAttribute("class","results_list_product_price");af.setAttribute("className","results_list_product_price");ac.setAttribute("class","results_list_product_link");ac.setAttribute("className","results_list_product_link");D.setAttribute("class","results_list_left_column_t2");D.setAttribute("className","results_list_left_column_t2");k.setAttribute("class","results_list_product_desc");k.setAttribute("className","results_list_product_desc");h.setAttribute("class","results_list_product_vendor");h.setAttribute("className","results_list_product_vendor");g.setAttribute("class","results_list_product_disc");g.setAttribute("className","results_list_product_disc");if(products_type[i].childNodes[0].nodeValue==2){js_wimpyButton(products_file[i].childNodes[0].nodeValue,A.id,products_id[i].childNodes[0].nodeValue,"#FFFFFF",t)}}if(products_id.length>N){var S=products_id.length/N;var H=S.toFixed(0);var ak=document.createElement("TABLE");ak.id="links_table";var M=document.createElement("TBODY");var a=document.createElement("TR");a.id="display_links_row";ak.appendChild(M);M.appendChild(a);for(x=1;x<=H;x++){if(x==H){var V=F;var ai=products_id.length;var Y=document.createElement("TD");Y.innerHTML="<A HREF='javascript:js_displayProducts("+V+","+ai+","+products_id.length+");'>"+V+" - "+ai+"</A>";a.appendChild(Y);Y.setAttribute("class","display_products_link");Y.setAttribute("className","display_products_link")}else{var V=F;var ai=(F+N)-1;var Y=document.createElement("TD");Y.innerHTML="<A HREF='javascript:js_displayProducts("+V+","+ai+","+products_id.length+");'>"+V+" - "+ai+"</A>";a.appendChild(Y);F=F+N;Y.setAttribute("class","display_products_link");Y.setAttribute("className","display_products_link")}}main.appendChild(ak)}}else{products_no_results=document.createElement("DIV");products_no_results.id="products_no_results_0";products_no_results.setAttribute("id","results_list_no_results");products_no_results.appendChild(document.createTextNode("No Products at this time"));main.appendChild(products_no_results)}}function js_wimpyButton(d,b,h,a,e){var f=document.getElementById("site_id").value;if(!a){a="#F2F4F1"}var c="wimpybutton"+h;var g=new SWFObject("/wimpy_button.swf",c,"19","19","8",a);g.addParam("quality","high");g.addParam("loop","false");g.addParam("menu","false");g.addParam("align","middle");g.addParam("allowscriptaccess","always");g.addParam("type","application/x-shockwave-flash");g.addParam("pluginspage","http://www.macromedia.com/go/getflashplayer");g.addParam("wmode","transparent");g.addVariable("theFile","http://www."+f+"/bbpreviews/pre-"+d);g.addVariable("wimpyReg",e);g.addVariable("playingColor","FFFFE0");g.addVariable("arrowColor","7FB600");g.addVariable("grinderColor","A4A2AD");g.addVariable("rollOverColor","3F004F");g.addVariable("displayRewindButton","no");g.write(b);return}function js_goSSL(){if(location.protocol.toLowerCase()=="http:"){location.href=location.href.replace("http:","https:")}}function js_offSSL(){if(location.protocol.toLowerCase()=="https:"){location.href=location.href.replace("https:","http:")}}function user_alert(b,d){i=document.getElementById("user_alert");x=document.getElementById("user_alert_ok");y=document.getElementById("user_alert_error");z=document.getElementById("user_alert_none");if(x){i.removeChild(x)}if(y){i.removeChild(y)}if(z){i.removeChild(z)}var a=document.createElement("DIV");a.id=b;var c=document.createTextNode(d);a.appendChild(c);i.appendChild(a)}function js_getCart(){filename="/index.php?group=shop&class=ajax&task=get_cart";ajaxCallbackcart=js_Cart;ajaxRequestCart(filename)}function js_Cart(){var b=document.getElementById("checkout_cart");var a=document.getElementById("pay_cart");if(b){js_confirmCart()}if(a){js_payCart()}else{js_updateCart()}}function js_confirmCart(){var t=document.getElementById("c_symbol").value;checkout_cart_main=document.getElementById("checkout_cart");w=document.getElementById("checkout_cart_contents");checkout_cart_main.removeChild(w);checkout_vendors=ajaxreqcart.responseXML.getElementsByTagName("vendor");var w=document.createElement("TABLE");var I=document.createElement("TBODY");var e=document.createElement("TR");var ao=document.createElement("TD");w.id="checkout_cart_contents";w.setAttribute("class","checkout_cart_contents");w.setAttribute("className","checkout_cart_contents");var D=0;var an=0;if(checkout_vendors[0].childNodes[0].nodeValue!="None"){for(i=0;i<checkout_vendors.length;i++){var am=checkout_vendors.item(i);var c=am.getElementsByTagName("vendors_name");var C=am.getElementsByTagName("vendors_id");var g=am.getElementsByTagName("zone_served");var Q=am.getElementsByTagName("order_total");var d=am.getElementsByTagName("minimum_order");var X=document.createElement("TABLE");X.setAttribute("BORDER","0");X.setAttribute("class","cart_internal_table");X.setAttribute("className","cart_internal_table");var ah=document.createElement("TBODY");var G=document.createElement("TR");var N=document.createElement("TD");N.colSpan=4;var L=document.createElement("TD");var am=checkout_vendors.item(i);var c=am.getElementsByTagName("vendors_name");var j=am.getElementsByTagName("vendors_id");if(g[0].childNodes[0].nodeValue==1){N.innerHTML="<A HREF=index.php?group=shop&class=unit&task=unit_home&vendors_id="+j[0].childNodes[0].nodeValue+">"+c[0].childNodes[0].nodeValue+"</A> ";N.setAttribute("class","cart_vendor_name");N.setAttribute("className","cart_vendor_name");if((d[0].childNodes[0].nodeValue*1)>(Q[0].childNodes[0].nodeValue*1)){N.innerHTML+="<SPAN CLASS=minimum_order_warning>(Min. Order"+t+d[0].childNodes[0].nodeValue+")</SPAN>"}}else{N.innerHTML=c[0].childNodes[0].nodeValue+" (<A HREF='javascript:js_deleteFromCart("+j[0].childNodes[0].nodeValue+",0);js_confirmCart();'>Delivery not available to you</A>)";N.setAttribute("class","cart_vendor_not_served");N.setAttribute("className","cart_vendor_not_served")}G.appendChild(N);G.appendChild(L);ah.appendChild(G);if(g[0].childNodes[0].nodeValue==1){var ak=am.getElementsByTagName("product");for(y=0;y<ak.length;y++){var af=ak.item(y);var h=af.getElementsByTagName("products_id");var V=af.getElementsByTagName("products_name");var v=af.getElementsByTagName("price");var Y=af.getElementsByTagName("products_quantity");var B=af.getElementsByTagName("products_type")[0].childNodes[0].nodeValue;var al=document.createElement("TR");var r=document.createElement("TD");r.innerHTML="<A HREF=index.php?group=shop&class=unit&task=product_home&products_id="+h[0].childNodes[0].nodeValue+">"+V[0].childNodes[0].nodeValue+"</A>";r.setAttribute("class","cart_product_name");r.setAttribute("className","cart_product_name");var q=document.createElement("TD");q.setAttribute("class","cart_product_update_input");q.setAttribute("className","cart_product_update_input");if(B!=2){q.innerHTML="<INPUT TYPE=text NAME=products_quantity ID=products_quantity_"+h[0].childNodes[0].nodeValue+" VALUE="+Y[0].childNodes[0].nodeValue+">"}else{q.innerHTML="&nbsp;"}var o=document.createElement("TD");o.setAttribute("class","cart_product_update_link");o.setAttribute("className","cart_product_update_link");if(B!=2){o.innerHTML="<A HREF='javascript:js_updateSessionCart("+h[0].childNodes[0].nodeValue+","+C[0].childNodes[0].nodeValue+");'>Update</A>"}else{o.innerHTML="&nbsp;"}var n=document.createElement("TD");n.setAttribute("class","cart_product_delete_link");n.setAttribute("className","cart_product_delete_link");n.innerHTML="<A HREF='javascript:js_deleteFromCart("+C[0].childNodes[0].nodeValue+","+h[0].childNodes[0].nodeValue+");js_confirmCart();'>Delete</A>";var l=document.createElement("TD");var b=v[0].childNodes[0].nodeValue*Y[0].childNodes[0].nodeValue;D=D+b;checkout_product_price_text=document.createTextNode(t+b.toFixed(2));l.appendChild(checkout_product_price_text);l.setAttribute("class","cart_product_price");l.setAttribute("className","cart_product_price");al.appendChild(r);al.appendChild(q);al.appendChild(o);al.appendChild(n);al.appendChild(l);ah.appendChild(al)}var s=am.getElementsByTagName("delivery_method");var ad=am.getElementsByTagName("selected_delivery_method");var a=am.getElementsByTagName("total_delivery_price");if(s.length>0){if(a[0].childNodes[0].nodeValue>0){var A=document.createElement("TR");A.setAttribute("WIDTH","100%");var J=document.createElement("TD");J.colSpan=4;var ac=document.createElement("SELECT");ac.name="vendor_"+C[0].childNodes[0].nodeValue+"_method";ac.id="method_"+C[0].childNodes[0].nodeValue;ac.onchange=new Function("js_setDelMethod("+j[0].childNodes[0].nodeValue+")");for(m=0;m<s.length;m++){var U=s.item(m);var ab=U.getElementsByTagName("delivery_method_id");var aa=U.getElementsByTagName("delivery_method_name");var k=U.getElementsByTagName("delivery_method_description");var f=document.createElement("OPTION");f.id=ac.id+"_option_"+m;f.value=ab[0].childNodes[0].nodeValue;f.text=aa[0].childNodes[0].nodeValue;if(navigator.appName=="Microsoft Internet Explorer"){ac.add(f)}if(navigator.appName=="Netscape"){ac.add(f,null)}if(ab[0].childNodes[0].nodeValue==ad[0].childNodes[0].nodeValue){f.selected=true}}var ag=document.createElement("SPAN");ag.setAttribute("class","delivery_detail");ag.setAttribute("className","delivery_detail");ag.innerHTML="<A HREF=index.php?group=shop&class=unit&task=unit_home&subtask=delivery_policy&vendors_id="+C[0].childNodes[0].nodeValue+">?</A>";J.appendChild(ac);J.appendChild(ag);J.setAttribute("class","delivery_name");J.setAttribute("className","delivery_name");A.appendChild(J);var Z=document.createElement("TD");if(a[0].childNodes[0].nodeValue>0){delivery_price=a[0].childNodes[0].nodeValue*1}else{delivery_price=0}D=D+delivery_price;checkout_delivery_price_text=document.createTextNode(t+delivery_price.toFixed(2));Z.appendChild(checkout_delivery_price_text);Z.setAttribute("class","delivery_price");Z.setAttribute("className","delivery_price");A.appendChild(Z);ah.appendChild(A)}}var F=am.getElementsByTagName("discount_amount");var W=am.getElementsByTagName("discount_description");if(F.length>0&&W[0].childNodes[0].nodeValue!="none"){var u=document.createElement("TR");u.setAttribute("WIDTH","100%");var E=document.createElement("TD");E.colSpan=4;var H=document.createTextNode(W[0].childNodes[0].nodeValue);E.setAttribute("class","discount_description");E.setAttribute("className","discount_description");E.appendChild(H);var T=document.createElement("TD");var ae=F[0].childNodes[0].nodeValue*1;D=D-ae;var aj=document.createTextNode("- "+t+ae.toFixed(2));T.setAttribute("class","discount_amount");T.setAttribute("className","discount_amount");T.appendChild(aj);u.appendChild(E);u.appendChild(T);ah.appendChild(u)}}X.appendChild(ah);ao.appendChild(X)}}var P=document.createElement("TABLE");P.setAttribute("class","cart_internal_table");P.setAttribute("className","cart_internal_table");var O=document.createElement("TBODY");var K=document.createElement("TR");var S=document.createElement("TD");S.setAttribute("class","cart_total_text");S.setAttribute("className","cart_total_text");if(checkout_vendors[0].childNodes[0].nodeValue!="None"&&g[0].childNodes[0].nodeValue!=0){if(s.length>0){var ai=document.createTextNode("Total:")}else{var ai=document.createTextNode("Total:")}}else{var ai=document.createTextNode("Total:")}S.appendChild(ai);var R=document.createElement("TD");R.setAttribute("class","cart_total_price");R.setAttribute("className","cart_total_price");if(checkout_vendors[0].childNodes[0].nodeValue!="None"){var M=document.createTextNode(t+D.toFixed(2));R.appendChild(M)}else{var M=document.createTextNode(t+"0.00");R.appendChild(M)}K.appendChild(S);K.appendChild(R);O.appendChild(K);P.appendChild(O);ao.appendChild(P);e.appendChild(ao);I.appendChild(e);w.appendChild(I);checkout_cart_main.appendChild(w)}function js_payCart(){var n=document.getElementById("c_symbol").value;pay_cart_main=document.getElementById("pay_cart");C=document.getElementById("pay_cart_contents");pay_cart_main.removeChild(C);pay_vendors=ajaxreqcart.responseXML.getElementsByTagName("vendor");var C=document.createElement("TABLE");var J=document.createElement("TBODY");var v=document.createElement("TR");var ak=document.createElement("TD");C.id="pay_cart_contents";C.setAttribute("class","checkout_cart_contents");C.setAttribute("className","checkout_cart_contents");var U=0;if(pay_vendors[0].childNodes[0].nodeValue!="None"){for(i=0;i<pay_vendors.length;i++){var L=pay_vendors.item(i);var D=L.getElementsByTagName("vendors_name");var B=L.getElementsByTagName("vendors_id");var s=L.getElementsByTagName("zone_served");var T=L.getElementsByTagName("order_total");var f=L.getElementsByTagName("minimum_order");var a=document.createElement("TABLE");a.setAttribute("BORDER","0");a.setAttribute("class","cart_internal_table");a.setAttribute("className","cart_internal_table");var X=document.createElement("TBODY");var q=document.createElement("TR");var j=document.createElement("TD");j.colSpan=4;var h=document.createElement("TD");var L=pay_vendors.item(i);var D=L.getElementsByTagName("vendors_name");var M=L.getElementsByTagName("vendors_id");if(s[0].childNodes[0].nodeValue==1){if((f[0].childNodes[0].nodeValue*1)<=(T[0].childNodes[0].nodeValue*1)){j.innerHTML="<A HREF=index.php?group=shop&class=unit&task=unit_home&vendors_id="+M[0].childNodes[0].nodeValue+">"+D[0].childNodes[0].nodeValue+"</A>";j.setAttribute("class","cart_vendor_name");j.setAttribute("className","cart_vendor_name")}}q.appendChild(j);q.appendChild(h);X.appendChild(q);if(s[0].childNodes[0].nodeValue==1){if((f[0].childNodes[0].nodeValue*1)<=(T[0].childNodes[0].nodeValue*1)){var W=L.getElementsByTagName("product");for(y=0;y<W.length;y++){var P=W.item(y);var K=P.getElementsByTagName("products_id");var g=P.getElementsByTagName("products_name");var A=P.getElementsByTagName("price");var c=P.getElementsByTagName("products_quantity");var af=document.createElement("TR");var aa=document.createElement("TD");aa.innerHTML="<A HREF=index.php?group=shop&class=unit&task=product_home&products_id="+K[0].childNodes[0].nodeValue+">"+g[0].childNodes[0].nodeValue+"</A>";aa.setAttribute("class","cart_product_name");aa.setAttribute("className","cart_product_name");var Z=document.createElement("TD");Z.setAttribute("class","cart_product_update_input");Z.setAttribute("className","cart_product_update_input");Z.innerHTML=c[0].childNodes[0].nodeValue;var Y=document.createElement("TD");Y.setAttribute("class","cart_product_update_link");Y.setAttribute("className","cart_product_update_link");Y.innerHTML="&nbsp;";var V=document.createElement("TD");V.setAttribute("class","cart_product_delete_link");V.setAttribute("className","cart_product_delete_link");V.innerHTML="&nbsp;";var Q=document.createElement("TD");var r=A[0].childNodes[0].nodeValue*c[0].childNodes[0].nodeValue;U=U+r;pay_product_price_text=document.createTextNode(n+r.toFixed(2));Q.appendChild(pay_product_price_text);Q.setAttribute("class","cart_product_price");Q.setAttribute("className","cart_product_price");af.appendChild(aa);af.appendChild(Z);af.appendChild(Y);af.appendChild(V);af.appendChild(Q);X.appendChild(af)}var H=L.getElementsByTagName("delivery_method");var b=L.getElementsByTagName("selected_delivery_method");var G=L.getElementsByTagName("total_delivery_price");if(H.length>0&&G[0].childNodes[0].nodeValue>0){var N=document.createElement("TR");N.setAttribute("WIDTH","100%");var ac=document.createElement("TD");ac.colSpan=4;for(m=0;m<H.length;m++){var F=H.item(m);var ag=F.getElementsByTagName("delivery_method_id");var O=F.getElementsByTagName("delivery_method_name");var l=F.getElementsByTagName("delivery_method_description");if(ag[0].childNodes[0].nodeValue==b[0].childNodes[0].nodeValue){var w=document.createTextNode(O[0].childNodes[0].nodeValue)}}ac.appendChild(w);ac.setAttribute("class","delivery_name_selected");ac.setAttribute("className","delivery_name_selected");N.appendChild(ac);var e=document.createElement("TD");if(G[0].childNodes[0].nodeValue>0){delivery_price=G[0].childNodes[0].nodeValue*1}else{delivery_price=0}U=U+delivery_price;pay_delivery_price_text=document.createTextNode(n+delivery_price.toFixed(2));e.appendChild(pay_delivery_price_text);e.setAttribute("class","delivery_price");e.setAttribute("className","delivery_price");N.appendChild(e);X.appendChild(N)}var u=L.getElementsByTagName("discount_amount");var k=L.getElementsByTagName("discount_description");if(u.length>0&&k[0].childNodes[0].nodeValue!="none"){var I=document.createElement("TR");I.setAttribute("WIDTH","100%");var S=document.createElement("TD");S.colSpan=4;var ad=document.createTextNode(k[0].childNodes[0].nodeValue);S.setAttribute("class","discount_description");S.setAttribute("className","discount_description");S.appendChild(ad);var aj=document.createElement("TD");var R=u[0].childNodes[0].nodeValue*1;U=U-R;var ab=document.createTextNode("- "+n+R.toFixed(2));aj.setAttribute("class","discount_amount");aj.setAttribute("className","discount_amount");aj.appendChild(ab);I.appendChild(S);I.appendChild(aj);X.appendChild(I)}}}a.appendChild(X);ak.appendChild(a)}}var ae=document.createElement("TABLE");ae.setAttribute("class","cart_internal_table");ae.setAttribute("className","cart_internal_table");var t=document.createElement("TBODY");var E=document.createElement("TR");var ai=document.createElement("TD");ai.setAttribute("class","cart_total_text");ai.setAttribute("className","cart_total_text");if(H.length>0){var o=document.createTextNode("Total:")}else{var o=document.createTextNode("Total:")}ai.appendChild(o);var ah=document.createElement("TD");ah.setAttribute("class","cart_total_price");ah.setAttribute("className","cart_total_price");if(pay_vendors.length>0){var d=document.createTextNode(n+U.toFixed(2));ah.appendChild(d)}else{var d=document.createTextNode(n+"0.00")}E.appendChild(ai);E.appendChild(ah);t.appendChild(E);ae.appendChild(t);ak.appendChild(ae);v.appendChild(ak);J.appendChild(v);C.appendChild(J);pay_cart_main.appendChild(C)}function js_flvPlayer(g,c){if(c==1){var b=380;var d=285;var f="/images/shops/no_product_image_tr.png"}else{var b=186;var d=155;var f="/images/shops/no_product_image_tr_s.png"}if(g!=parseInt(g)){var a="demovideo";var e=new SWFObject("/mplayer/mediaplayer.swf","mediaplayer",380,240,"8");e.addVariable("file","videos/demos/"+g+".flv");e.addVariable("image","/mplayer/videos/demos/"+g+".png")}else{var a="video"+g;var e=new SWFObject("/mplayer/mediaplayer.swf","mediaplayer",b,d,"8");e.addVariable("logo",f);e.addVariable("file","videos/video"+g+".flv");e.addVariable("image","/mplayer/videos/video"+g+".png")}e.addVariable("height",d);e.addVariable("width",b);e.addVariable("backcolor","0xFFFFFF");e.addVariable("screencolor","0xFFFFFF");e.addVariable("frontcolor","0x990000");e.write(a);return}function js_getBasicSearchResults(c){if(!c){var e=document.getElementById("search_string").value}else{var e=c}var d=document.getElementById("loading_graphic");if(d){d.style.background="url('/images/css/loading.gif')"}var b=document.getElementById("search_results");if(b){b.style.display="none"}filename="index.php?group=shop&class=ajax&search_type=basic_search&search_string="+e+"&task=do_search";ajaxCallback=js_displayBasicSearchResults;ajaxRequest(filename);var a=document.getElementById("s_button_link");a.blur()}function js_displayBasicSearchResults(){var V=document.getElementById("c_symbol").value;var ax=document.getElementById("shortcode").value;var O=document.getElementById("keyword").value;var K=document.getElementById("wimpyReg").value;var s=document.getElementById("search_results");var ap=document.getElementById("product_results_list");var R=document.getElementById("vendor_results_list");s.removeChild(ap);s.removeChild(R);var ap=document.createElement("DIV");var R=document.createElement("DIV");ap.id="product_results_list";R.id="vendor_results_list";s.appendChild(ap);s.appendChild(R);products_id=ajaxreq.responseXML.getElementsByTagName("products_id");products_name=ajaxreq.responseXML.getElementsByTagName("products_name");products_images_filename=ajaxreq.responseXML.getElementsByTagName("products_images_filename");products_price=ajaxreq.responseXML.getElementsByTagName("products_price");products_vendors_id=ajaxreq.responseXML.getElementsByTagName("products_vendors_id");products_vendors_name=ajaxreq.responseXML.getElementsByTagName("products_vendors_name");products_description=ajaxreq.responseXML.getElementsByTagName("products_description");products_disc=ajaxreq.responseXML.getElementsByTagName("products_disc_description");products_type=ajaxreq.responseXML.getElementsByTagName("products_type");products_file=ajaxreq.responseXML.getElementsByTagName("products_filename");vendors_id=ajaxreq.responseXML.getElementsByTagName("vendors_id");vendors_name=ajaxreq.responseXML.getElementsByTagName("vendors_name");vendors_images_filename=ajaxreq.responseXML.getElementsByTagName("vendors_images_filename");vendors_description=ajaxreq.responseXML.getElementsByTagName("vendors_description");vendors_disc=ajaxreq.responseXML.getElementsByTagName("vendors_disc_description");products_heading_div=document.createElement("DIV");products_heading_text=document.createTextNode("Tracks/Gig Tickets:");products_heading_div.appendChild(products_heading_text);products_heading_div.id="results_list_heading";products_heading_div.setAttribute("id","results_list_heading");ap.appendChild(products_heading_div);for(i=0;i<products_name.length;i++){if(products_images_filename[i].childNodes[0].nodeValue=="no_product_image.jpg"){products_images_filename[i].childNodes[0].nodeValue="no_product_image84.jpg"}var e=document.createElement("TABLE");var J=document.createElement("TBODY");var ak=document.createElement("TR");var ab=document.createElement("TD");var u=document.createElement("TD");var Z=document.createElement("TD");var a=document.createElement("A");a.id="product_link_"+products_name[i].childNodes[0].nodeValue;a.href="index.php?group=shop&class=unit&task=product_home&products_id="+products_id[i].childNodes[0].nodeValue;var al=document.createElement("IMG");al.id="product_image_"+products_name[i].childNodes[0].nodeValue;al.setAttribute("src","images/shops/"+products_images_filename[i].childNodes[0].nodeValue);al.setAttribute("border","0");a.appendChild(al);Z.appendChild(a);var d=document.createElement("TABLE");var T=document.createElement("TBODY");var az=document.createElement("TR");var o=document.createElement("TD");if(products_type[i].childNodes[0].nodeValue==2){var c=document.createElement("DIV");var au=document.createElement("DIV");c.id="w_button"+products_id[i].childNodes[0].nodeValue;au.id="button_container";au.appendChild(c);o.appendChild(au)}az.appendChild(o);var an=document.createElement("DIV");an.id="p_name";var k=document.createTextNode(products_name[i].childNodes[0].nodeValue);an.appendChild(k);o.appendChild(an);var n=document.createElement("TD");var N=document.createTextNode(V+products_price[i].childNodes[0].nodeValue);n.appendChild(N);az.appendChild(n);var l=document.createElement("TD");var ag=document.createElement("A");ag.setAttribute("href","index.php?group=shop&class=unit&task=product_home&products_id="+products_id[i].childNodes[0].nodeValue);var aF=document.createTextNode("Go");ag.appendChild(aF);l.appendChild(ag);az.appendChild(l);T.appendChild(az);d.appendChild(T);var b=document.createElement("TABLE");var aj=document.createElement("TBODY");var ac=document.createElement("TR");var ah=document.createElement("TD");if(products_type[i].childNodes[0].nodeValue==2||products_type[i].childNodes[0].nodeValue==1){if(products_type[i].childNodes[0].nodeValue==2){var f="Text <SPAN CLASS=highlight_text>"+O+" "+products_id[i].childNodes[0].nodeValue+"</SPAN> to <SPAN CLASS=highlight_text>"+ax+"</SPAN> to buy";var ao=document.createElement("SPAN");ao.innerHTML=f}if(products_type[i].childNodes[0].nodeValue==2){var aw=document.createElement("A");var S=document.createTextNode("add to playlist");aw.appendChild(S);aw.setAttribute("href","javascript:js_addToPlaylist("+products_id[i].childNodes[0].nodeValue+");")}var Q=document.createElement("BR");var aq=document.createTextNode(products_description[i].childNodes[0].nodeValue);var X=document.createElement("A");var v=document.createTextNode("add to cart");X.appendChild(v);X.setAttribute("href","javascript:js_updateSessionCart("+products_id[i].childNodes[0].nodeValue+","+products_vendors_id[i].childNodes[0].nodeValue+");");ah.appendChild(aq);ah.appendChild(Q);ah.appendChild(X);if(products_type[i].childNodes[0].nodeValue==2){var B=document.createTextNode(" | ");var A=document.createTextNode(" | ");ah.appendChild(B);ah.appendChild(aw);ah.appendChild(A);ah.appendChild(ao)}}else{var aq=document.createTextNode(products_description[i].childNodes[0].nodeValue);ah.appendChild(aq)}ac.appendChild(ah);var aa=document.createElement("TR");var af=document.createElement("TD");var w=document.createTextNode(products_vendors_name[i].childNodes[0].nodeValue);af.appendChild(w);aa.appendChild(af);var Y=document.createElement("TR");var ae=document.createElement("TD");if(products_disc[i].childNodes.length!=0){var ad=document.createTextNode(products_disc[i].childNodes[0].nodeValue);ae.appendChild(ad)}Y.appendChild(ae);aj.appendChild(ac);aj.appendChild(aa);aj.appendChild(Y);b.appendChild(aj);ab.appendChild(d);ab.appendChild(b);ak.appendChild(ab);ak.appendChild(u);ak.appendChild(Z);J.appendChild(ak);e.appendChild(J);ap.appendChild(e);e.setAttribute("class","results_list");e.setAttribute("className","results_list");ab.setAttribute("class","results_list_column_1");ab.setAttribute("className","results_list_column_1");u.setAttribute("class","results_list_column_spacer");u.setAttribute("className","results_list_column_spacer");Z.setAttribute("class","results_list_column_2");Z.setAttribute("className","results_list_column_2");d.setAttribute("class","results_list_left_column_t1");d.setAttribute("className","results_list_left_column_t1");o.setAttribute("class","results_list_product_name");o.setAttribute("className","results_list_product_name");n.setAttribute("class","results_list_product_price");n.setAttribute("className","results_list_product_price");l.setAttribute("class","results_list_product_link");l.setAttribute("className","results_list_product_link");b.setAttribute("class","results_list_left_column_t2");b.setAttribute("className","results_list_left_column_t2");ah.setAttribute("class","results_list_product_desc");ah.setAttribute("className","results_list_product_desc");af.setAttribute("class","results_list_product_vendor");af.setAttribute("className","results_list_product_vendor");ae.setAttribute("class","results_list_product_disc");ae.setAttribute("className","results_list_product_disc");if(products_type[i].childNodes[0].nodeValue==2){js_wimpyButton(products_file[i].childNodes[0].nodeValue,c.id,products_id[i].childNodes[0].nodeValue,"#FFFFFF",K)}}if(products_id.length==0){products_no_results=document.createElement("DIV");products_no_results.id="products_no_results_0";products_no_results.setAttribute("id","results_list_no_results");products_no_results.appendChild(document.createTextNode("No tracks or gig tickets found"));ap.appendChild(products_no_results)}vendors_heading_div=document.createElement("DIV");vendors_heading_text=document.createTextNode("Artists:");vendors_heading_div.appendChild(vendors_heading_text);vendors_heading_div.id="results_list_heading";vendors_heading_div.setAttribute("id","results_list_heading");R.appendChild(vendors_heading_div);for(i=0;i<vendors_name.length;i++){if(vendors_images_filename[i].childNodes[0].nodeValue=="vendor_default_image.jpg"){vendors_images_filename[i].childNodes[0].nodeValue="vendor_default_image84.jpg"}var j=document.createElement("TABLE");var W=document.createElement("TBODY");var P=document.createElement("TR");var av=document.createElement("TD");var I=document.createElement("TD");var at=document.createElement("TD");var q=document.createElement("A");q.id="vendor_link_"+vendors_name[i].childNodes[0].nodeValue;q.href="index.php?group=shop&class=unit&task=unit_home&vendors_id="+vendors_id[i].childNodes[0].nodeValue;var ai=document.createElement("IMG");ai.id="vendor_image_"+vendors_name[i].childNodes[0].nodeValue;ai.setAttribute("src","images/shops/"+vendors_images_filename[i].childNodes[0].nodeValue);ai.setAttribute("border","0");q.appendChild(ai);at.appendChild(q);var h=document.createElement("TABLE");var am=document.createElement("TBODY");var M=document.createElement("TR");var F=document.createElement("TD");var ay=document.createTextNode(vendors_name[i].childNodes[0].nodeValue);F.appendChild(ay);M.appendChild(F);var D=document.createElement("TD");M.appendChild(D);var C=document.createElement("TD");var ar=document.createElement("A");ar.setAttribute("href","index.php?group=shop&class=unit&task=unit_home&vendors_id="+vendors_id[i].childNodes[0].nodeValue);var t=document.createTextNode("Go");ar.appendChild(t);C.appendChild(ar);M.appendChild(C);am.appendChild(M);h.appendChild(am);var g=document.createElement("TABLE");var aA=document.createElement("TBODY");var H=document.createElement("TR");var aD=document.createElement("TD");var U=document.createTextNode(vendors_description[i].childNodes[0].nodeValue);aD.appendChild(U);H.appendChild(aD);var G=document.createElement("TR");var aC=document.createElement("TD");G.appendChild(aC);var E=document.createElement("TR");var aB=document.createElement("TD");if(vendors_disc[i].childNodes.length!=0){var L=document.createTextNode(vendors_disc[i].childNodes[0].nodeValue);aB.appendChild(L)}E.appendChild(aB);aA.appendChild(H);aA.appendChild(G);aA.appendChild(E);g.appendChild(aA);av.appendChild(h);av.appendChild(g);P.appendChild(av);P.appendChild(I);P.appendChild(at);W.appendChild(P);j.appendChild(W);R.appendChild(j);j.setAttribute("class","results_list");j.setAttribute("className","results_list");av.setAttribute("class","results_list_column_1");av.setAttribute("className","results_list_column_1");I.setAttribute("class","results_list_column_spacer");I.setAttribute("className","results_list_column_spacer");at.setAttribute("class","results_list_column_2");at.setAttribute("className","results_list_column_2");h.setAttribute("class","results_list_left_column_t1");h.setAttribute("className","results_list_left_column_t1");F.setAttribute("class","results_list_vendor_name");F.setAttribute("className","results_list_vendor_name");D.setAttribute("class","results_list_vendor_price");D.setAttribute("className","results_list_vendor_price");C.setAttribute("class","results_list_vendor_link");C.setAttribute("className","results_list_vendor_link");g.setAttribute("class","results_list_left_column_t2");g.setAttribute("className","results_list_left_column_t2");aD.setAttribute("class","results_list_vendor_desc");aD.setAttribute("className","results_list_vendor_desc");aC.setAttribute("class","results_list_vendor_vendor");aC.setAttribute("className","results_list_vendor_vendor");aB.setAttribute("class","results_list_vendor_disc");aB.setAttribute("className","results_list_vendor_disc")}if(vendors_id.length==0){vendors_no_results=document.createElement("DIV");vendors_no_results.id="vendors_no_results_0";vendors_no_results.setAttribute("id","results_list_no_results");vendors_no_results.appendChild(document.createTextNode("No artists found"));R.appendChild(vendors_no_results)}var r=document.getElementById("loading_graphic");if(r){r.style.background="#ffffff"}var aE=document.getElementById("search_results");if(aE){aE.style.display="block"}}function js_getCustomerStatus(){filename="index.php?group=shop&class=ajax&task=get_customer_status";ajaxCallbackstatus=js_displayCustomerStatus;ajaxRequestStatus(filename)}function js_displayCustomerStatus(){customer_status=ajaxreqstatus.responseXML.getElementsByTagName("customer_status");if(customer_status[0].childNodes[0].nodeValue==1){var b=document.getElementById("customer_status_span");b.innerHTML="<a class=highlight_text  href=index.php?group=shop&class=mall&task=my_account class=menulink>My Account</a>";var a=document.getElementById("tm7");a.innerHTML="<a href=index.php?group=shop&class=mall&task=customer_login&subtask=logout class=menulink>Logout</a>"}else{var a=document.getElementById("tm7");a.innerHTML="<A HREF=index.php?group=shop&class=mall&task=customer_login&subtask=form>User Login</A>"}}if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(o,b,r,e,k,l,g,f,d,n){if(!document.getElementById){return}this.DETECT_KEY=n?n:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(o){this.setAttribute("swf",o)}if(b){this.setAttribute("id",b)}if(r){this.setAttribute("width",r)}if(e){this.setAttribute("height",e)}if(k){this.setAttribute("version",new deconcept.PlayerVersion(k.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(l){this.addParam("bgcolor",l)}var a=g?g:"high";this.addParam("quality",a);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var j=(f)?f:window.location;this.setAttribute("xiRedirectUrl",j);this.setAttribute("redirectUrl","");if(d){this.setAttribute("redirectUrl",d)}};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(b,a){this.params[b]=a},getParams:function(){return this.params},addVariable:function(b,a){this.variables[b]=a},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var c=new Array();var b;var a=this.getVariables();for(b in a){c[c.length]=b+"="+a[b]}return c},getSWFHTML:function(){var b="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}b='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';b+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var f=this.getParams();for(var e in f){b+=[e]+'="'+f[e]+'" '}var d=this.getVariablePairs().join("&");if(d.length>0){b+='flashvars="'+d+'"'}b+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}b='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';b+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var c=this.getParams();for(var e in c){b+='<param name="'+e+'" value="'+c[e]+'" />'}var a=this.getVariablePairs().join("&");if(a.length>0){b+='<param name="flashvars" value="'+a+'" />'}b+="</object>"}return b},write:function(b){if(this.getAttribute("useExpressInstall")){var a=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(a)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var c=(typeof b=="string")?document.getElementById(b):b;c.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var f=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){f=new deconcept.PlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var b=1;var c=3;while(b){try{c++;b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+c);f=new deconcept.PlayerVersion([c,0,0])}catch(d){b=null}}}else{try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(d){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=new deconcept.PlayerVersion([6,0,21]);b.AllowScriptAccess="always"}catch(d){if(f.major==6){return f}}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(d){}}if(b!=null){f=new deconcept.PlayerVersion(b.GetVariable("$version").split(" ")[1].split(","))}}}return f};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(c){var d=document.location.search||document.location.hash;if(c==null){return d}if(d){var b=d.substring(1).split("&");for(var a=0;a<b.length;a++){if(b[a].substring(0,b[a].indexOf("="))==c){return b[a].substring((b[a].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var b=document.getElementsByTagName("OBJECT");for(var c=b.length-1;c>=0;c--){b[c].style.display="none";for(var a in b[c]){if(typeof b[c][a]=="function"){b[c][a]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
