$(document).ready(
	function()
	{
		$('#topm').corner("bottom 7px");


    $(".pic_sel").hover(function(){
             $(this).addClass("pic_sel_on");
        },
     function(){
             $(this).removeClass("pic_sel_on");
        });

	 $('.pic_sel a').click(function(){
			var href, a;
			a = this.href.split("#");
			href = a[1];
			$('.pic_sell', this.parentNode.parentNode).removeClass("pic_sell")
			$(this.parentNode).addClass("pic_sell")

			$('.poza img', this.parentNode.parentNode.parentNode.parentNode).remove();
			$('.poza', this.parentNode.parentNode.parentNode.parentNode).append('<img src="imagini/produse/'+href+'" alt=""/>')

			$('.pic_pie', this.parentNode.parentNode).empty();
			href=a[2];
			a=href.split('_');
			refac=a.join(' ');
			$('.pic_pie', this.parentNode.parentNode).append(refac);
			return false;
		 
	 });



        $('#media_film').media({
			width:     424, 
			height:    270, 
			autoplay:  true, 
			src:       'video.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg',autostart: 'true', bufferlength: '15'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});


        $('#movie_ue').media({
			width:     424, 
			height:    270, 
			autoplay:  false, 
			src:       'ue.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});


        $('#movie_abank').media({
			width:     424, 
			height:    270, 
			autoplay:  false, 
			src:       'abank.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});


        $('#movie_bfp').media({
			width:     424, 
			height:    270, 
			autoplay:  false, 
			src:       'bfp.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});


        $('#movie_cascade').media({
			width:     424, 
			height:    270, 
			autoplay:  false, 
			src:       'cascade.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});

        $('#movie_imobiliar').media({
			width:     424, 
			height:    270, 
			autoplay:  false, 
			src:       'imobiliar.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});
        $('#movie_klaus').media({
			width:     424, 
			height:    270, 
			autoplay:  false, 
			src:       'klaus.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg',autostart: 'true', bufferlength: '15'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});

        $('#movie_pq').media({
			width:     424, 
			height:    270, 
			autoplay:  false, 
			src:       'pallets.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg',autostart: 'true', bufferlength: '15'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});

        $('#movie_trinity').media({
			width:     424, 
			height:    270, 
			autoplay:  true, 
			src:       'trinity.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg',autostart: 'true', bufferlength: '15'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});

        $('#movie_g61').media({
			width:     424, 
			height:    270, 
			autoplay:  false, 
			src:       'g61.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg',autostart: 'true', bufferlength: '15'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});

        $('#movie_2062').media({
			width:     424, 
			height:    270, 
			autoplay:  false, 
			src:       '2062.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg',autostart: 'true', bufferlength: '15'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});
        $('#movie_g82').media({
			width:     424, 
			height:    270, 
			autoplay:  false, 
			src:       'g82.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg',autostart: 'true', bufferlength: '15'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});
        $('#movie_p210').media({
			width:     424, 
			height:    270, 
			autoplay:  false, 
			src:       'p210.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg',autostart: 'true', bufferlength: '15'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});
        $('#movie_fullauto').media({
			width:     424, 
			height:    270, 
			autoplay:  false, 
			src:       'automatic_parker.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg',autostart: 'true', bufferlength: '15'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});
        $('#movie_p310').media({
			width:     424, 
			height:    270, 
			autoplay:  false, 
			src:       'parking_automat.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg',autostart: 'true', bufferlength: '15'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});
        $('#movie_prel').media({
			width:     424, 
			height:    270, 
			autoplay:  false, 
			src:       'prel.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg', showvolume: 'false', volume: '0'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});

        $('#movie_cascade').media({
			width:     424, 
			height:    270, 
			autoplay:  false, 
			src:       'cascade.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});








        $('#g_2062').media({
			width:     424, 
			height:    270, 
			autoplay:  false, 
			src:       '2062.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});
        $('#g_g61').media({
			width:     424, 
			height:    270, 
			autoplay:  false, 
			src:       'g61.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});
        $('#g_g82').media({
			width:     424, 
			height:    270, 
			autoplay:  false, 
			src:       'g82.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});
        $('#g_trinity').media({
			width:     424, 
			height:    270, 
			autoplay:  false, 
			src:       'trinity.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});



        $('#g_p210').media({
			width:     424, 
			height:    270, 
			autoplay:  false, 
			src:       'p210.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});
        $('#g_p310').media({
			width:     424, 
			height:    270, 
			autoplay:  false, 
			src:       'parking_automat.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});
        $('#g_peph').media({
			width:     424, 
			height:    270, 
			autoplay:  false, 
			src:       'klaus.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});
        $('#g_pq').media({
			width:     424, 
			height:    270, 
			autoplay:  false, 
			src:       'pallets.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});
        $('#g_full').media({
			width:     424, 
			height:    270, 
			autoplay:  false, 
			src:       'automatic_parker.flv', 
			flashVersion:  '7',
			flashvars:     {image:  'flash/preview.jpg'},
			params:    { allowfullscreen: 'true'}, // object params/embed attrs 
			caption:   false // supress caption text 		
		});





});