$(document).ready(function(){

            $('.ajax').fancybox({
                'height'            : 200,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
                'overlayColor'      : '#ffffff'
            });
            
			
			$('.carousel').carousel({
    itemsPerPage: 5, // number of items to show on each page
    itemsPerTransition: 5, // number of items moved with each transition
    noOfRows: 1, // number of rows (see demo)
    nextPrevLinks: true, // whether next and prev links will be included
    pagination: true, // whether pagination links will be included
    speed: 'normal', // animation speed
    easing: 'swing' // supports the jQuery easing plugin
});

$("a[target='_blank'] > img").parent().fancybox();

//alert ($('.carousel').html());
			
    
});


function DisplayFlash(path, width, height, wmode){
    text = "<object type=\"application/x-shockwave-flash\" data=\""+path+"\" allowScriptAccess=\"sameDomain\" width=\""+width+"\" height=\""+height+"\" wmode=\""+wmode+"\" quality=\"high\">\r\n";
    text += "<param name=\"movie\"	value=\""+path+"\" />\r\n";
    text += "<param name=\"allowScriptAccess\"	value=\"sameDomain\" />\r\n";
    text += "<param name=\"wmode\" value=\""+wmode+"\" />\r\n";
    text += "<param name=\"quality\" value=\"high\" />\r\n";
    text += "<param name=\"width\" value=\""+width+"\" />\r\n";
    text += "<param name=\"height\" value=\""+height+"\" />\r\n";
    text += "</object>";
    document.write(text);
}
function GetOrder(action) {
	var items = "";
	var delitems = "";
        var inputs = document.item.getElementsByTagName('input');
        for (var i = 0; i < inputs.length; i++){
        	if(parseInt(inputs[i].value)){
                	items = items+inputs[i].name+"-"+inputs[i].value+" ";
                }
                else if(inputs[i].checked)
                        delitems = delitems+" "+inputs[i].name.replace("delete_", "");
        }
      alert(items);  
	$('#order').load('/privat_ajax/?action='+action+'&items='+items+'&delitems='+delitems);
		$('#order').load('/privat_ajax/?action='+action+'&items='+items+'&delitems='+delitems);
			$('#order').load('/privat_ajax/?action='+action+'&items='+items+'&delitems='+delitems);

}











