jQuery.noConflict();
function get_files2(){ jQuery('#art_files').load('/flash/web/index.php?uid='+get_idc()); }
jQuery(document).ready(function(){


//var prod_name = jQuery('#shopping-cart-table .product-name').text();
//var prod_img = jQuery('#shopping-cart-table .item-options').text();



jQuery('#shopping-cart-table .product-image-c').each(function(index) {
var poza = "";    
 //   alert(index + ': ' + jQuery(this).text());
var el = jQuery(this);

// alert(jQuery(this).closest("img").attr('src'));
jQuery('#shopping-cart-table .item-options').each(function(index2) {

if (index == index2) {
var n = 0
jQuery(jQuery(this).html()).each(function(index2) {
n = n+1;
if (jQuery(this).html() == "Design name") { n = 1000;}
if ( n == 1002) { 
    poza = jQuery(this).html(); 
    var arr_poza =  poza.split("_");
var change = "/flash/pictures/" + arr_poza[1] + "/"; 
    jQuery.get('/flash/web/index.php?cat='+arr_poza[0]+'&pic='+arr_poza[1]+'', function(data){
var poza_noua = data;
   
 //  jQuery(this).attr("src") = data;
 //  jQuery(el).closest("img").attr('src') = data;
 //  el = poza_noua;
if (poza_noua  != '') {el.attr('src',poza_noua);}
 //   alert(el.attr('src'));
});
    
    
  //  alert(get_files2(change));

}

 });


}
  });


var alt = jQuery(this).attr("alt");
// alert(jQuery(this).next("td").hide());



//jQuery(this).next("td").hide()
//alert(jQuery(this).attr("alt"));
  });


/*
jQuery('#sales_order_view_tabs_order_info_content .item-options').each(function(index3) {
    
    var n = 0
jQuery(jQuery(this).html()).each(function(index4) {
n = n+1;
if (jQuery(this).html() == "Design name") { n = 1000;}
if ( n == 1002) { 
    poza = jQuery(this).html(); 
    alert(poza);
    }
    
// sales_order_view_tabs_order_info_content
});
*/


});
