var avenir = {
				src: 'http://www.smartbride.ro/helveticaneuel.swf'
			};
			sIFR.activate(avenir);
			sIFR.replace(avenir, {
			selector: '.smart-oferte h3,.smart-oferte h2,#content-cuplu h2,#dreapta-content .chat  h2,#content .content-inreg-main-cat h3,  #content #ad-produs h2,.smart-last h2,#content #content-oferte h2, #dreapta-content #nunta_mea h2,#dreapta-content #registru  h2,#dreapta-content #disponibil  h2,.menu_titluri,#smart-articles h2,#content #content-inchiriere h2,#content #slideshow-ugozaldi h2,#content #content-produs-articol h2,#content-produs-articol-fashion h2,#content .content-inreg-main h2, .content-inreg-main-designeri h2,#content .content-inreg-main h3,#content .content-inreg-main h4,.smart-store h2,#dreapta-content #chat h2,#content #content-produs #banner-image ul h3',
				wmode: 'transparent'			,
				forceSingleLine: false,
				fitExactly:false,
	css:['.sIFR-root a {cursor:pointer;  text-align:center; color:#43282e; }',
	'.sIFR-active a:hover { cursor:pointer;  color:#43282e;}',
	'.sIFR-root a:hover { cursor:pointer;  color:#43282e;;}',
	'.sIFR-root a:visited {  cursor:pointer;  }']
			}); 
			
			
			
var avenir = {
				src: 'http://www.smartbride.ro/helveticaneuel.swf'
			};
			sIFR.activate(avenir);
			sIFR.replace(avenir, {
			selector: '#dreapta-content #registru  h4',
				wmode: 'transparent'			,
				forceSingleLine: false,
	css:['.sIFR-root {cursor:pointer;  text-align:center; font-style : italic }',
	'.sIFR-active a:hover { cursor:pointer;;  color:#ffffff}',
	'.sIFR-root a:hover { cursor:pointer;  color:#6c5f2d;}',
	'.sIFR-root a:visited {  cursor:pointer;  }']
			}); 			
			
			
			
var avenir = {
				src: 'http://www.smartbride.ro/helveticaneuel.swf'
			};
			sIFR.activate(avenir);
			sIFR.replace(avenir, {
			selector: '.content-inreg-main-designeri h4',
				wmode: 'transparent'			,
				forceSingleLine: false,
	css:['.sIFR-root {cursor:pointer;  text-align:right; font-style : italic }',
	'.sIFR-active a:hover { cursor:pointer;;  color:#ffffff}',
	'.sIFR-root a:hover { cursor:pointer;  color:#6c5f2d;}',
	'.sIFR-root a:visited {  cursor:pointer;  }']
			}); 				
			
	var avenir = {
				src: 'http://www.smartbride.ro/helveticaneuel.swf'
			};
			sIFR.activate(avenir);
			sIFR.replace(avenir, {
			selector: '#dreapta-content #disponibil h4',
				wmode: 'transparent'			,
				forceSingleLine: false,
	css:['.sIFR-root {cursor:pointer;  text-align:left; font-style : italic }',
	'.sIFR-active a:hover { cursor:pointer;;  color:#ffffff}',
	'.sIFR-root a:hover { cursor:pointer;  color:#6c5f2d;}',
	'.sIFR-root a:visited {  cursor:pointer;  }']
			});		
			
		
			
		var avenir = {
				src: 'http://www.smartbride.ro/helveticaneuel.swf'
			};
			sIFR.activate(avenir);
			sIFR.replace(avenir, {
			selector: '.smart-store h3',
				wmode: 'transparent'			,
				forceSingleLine: false,
	css:['.sIFR-root {cursor:pointer;font-style : italic }',
	'.sIFR-active a:hover { cursor:pointer;;  color:#ffffff}',
	'.sIFR-root a:hover { cursor:pointer;  color:#6c5f2d;}',
	'.sIFR-root a:visited {  cursor:pointer;  }']
			});	
			
			
			
function initMenus() {

		$('ul.menu li a').click(
		function() {
			var checkElement = $(this).next();
			var parent = this.parentNode.parentNode.id;

			if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
				$('#' + this.id + ' ul:visible').slideDown('normal');
				checkElement.slideUp('normal');
				return false;
			}
			
			if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
				$('#' + this.id + ' ul:visible').slideUp('normal');
				checkElement.slideDown('normal');
				return false;
			}
			
		}
	);
}
$(document).ready(function() {
	

$(".thumb").click(function() {
   $('.poza_produs').attr('src', 'images/produse/'+this.name).attr('alt', 'newattribute');
});

$(".poza_produs").click(function() {

window.open('http://www.smartbride.ro/popup.php?prod=<?=$produsid?>&tipvanzare=<?=$tipvanzare?>','mywindow','width=774,height=800,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no');
	});

	
	
   $(".designeri").change(function () {
          var str = "";
          var numedesigner = "";
 					$(".designeri :selected").each(function () {
                str += $(this).val();
                numedesigner += $(this).text();
             
              });
          $(".link_designer").attr('href', 'http://www.smartbride.ro/designeri/'+numedesigner+'_'+str);
              
            })

$(".signin").click(function(e) {          
				e.preventDefault();
                $("fieldset#signin_menu").toggle();
				$(".signin").toggleClass("menu-open");
            });
			
			$("fieldset#signin_menu").mouseup(function() {
				return false;
			});
			$(document).mouseup(function(e) {
				if($(e.target).parent("a.signin").length===0) {
					$(".signin").removeClass("menu-open");
					$("fieldset#signin_menu").hide();
				}
			});			
			
        });
function buildurl(form) {
	 	  if((form.nume.value!='') && (form.prenume.value!='') ) 
	 	  { var nume='/'+form.nume.value;
	 	  	var test='/'+form.prenume.value;
	 	  	var urlsite='http://www.smartbride.ro/cauta-cuplu';
	 	  	  	
	 	  	 //form.redirect.value=urlsite+nume+test; 
	 	  	  form.action=urlsite + nume + test ;  
	 	  	   // Comment the alert and uncomment the form.submit() line  
	 	  	 //  alert('form will be posted to ' + urlsite + nume+test);  
	 	  	   form.submit();  
	 	  	   }  else { alert('Nu ati introdus numele si prenumele');
	 	  	    } 
	 	  	    return false;   } 
	 	  	    

$(function() {
$(".submit").click(function()
{
var name = $("#name").val();
var email = $("#email").val();
var comment = $("#comment").val();
var captcha= $("#captcha").val();
var id = $("#id").val();
var pagina = $("#pagina").val();
var dataString = 'name='+ name + '&email=' + email + '&comment=' + comment+ '&id=' + id+ '&pagina=' + pagina+ '&captcha=' + captcha;
if(name=='' || email=='' || comment=='')
{
alert('Introduceti toate elementele formularului');
}
else
{
$("#flash").show();
$("#flash").fadeIn(400).html('<img src="ajax-loader.gif" />Incarcam comentariul...');
$.ajax({
type: "POST",
url: "http://www.smartbride.ro/include/comment.php",
data: dataString,
cache: false,
success: function(html){
$("ol#update li:last").hide();
//$("ol#update").append(html);
$("ol#update").html(html);
$("ol#update li:last").fadeIn("slow");
$("#flash").hide();
}
});
}return false;
});
 });
  	      
  	      
	      
