
/* declare parameter for personal review page */
var xml = "" ;
var firstName = "" ; 
var lastName  = "" ; 
var postCode  = "" ; 
var state     = "" ; 
var email     = "" ; 
/* end */

/* declare parameter for what is heartburn page */
var title = "" ;
var content = "" ;
var base_url = "" ;
var url_article = "" ;
var t_email = "" ;

var friendName = "" ;
var friendMail = "" ;
var yourName = "" ;
var yourMail = "" ;

var url_privacy = "" ;
/* end */

/* declare parameter for low burn recipe page */
var image_recipe = "" ;
var title_recipe = "" ;
var content_recipe = "" ;
var url_recipe = "" ;
var note_recipe = "" ;	
/* end */

/* declare parameter print preview for privacy policy,legal notice,languages,copyright page */
var other_title = "" ;
var other_content = "" ;
var other_url = "" ;	
/* end */

$(document).ready(function(){
	Cufon.replace('h2', { fontFamily: 'VAGRound' });						   
	Cufon.replace('.VAGRoundFont', { fontFamily: 'VAGRound' });	
	
	if ( (/MSIE 6\.0/).test(navigator.userAgent) && !(/MSIE 7\.0/).test(navigator.userAgent) && !(/MSIE 8\.0/).test(navigator.userAgent) ) {
		DD_belatedPNG.fix("*");
	}					   
	
	$("#search").focus(function() {
		if($(this).val() == "Search") {
			$(this).val("");
		}
	});
	$("#search").blur(function() {
		if($(this).val() == "") {
			$(this).val("Search");
		}
	});
	/*
	if ( jQuery("ul#carousel01").length > 0 ) {
		$("#carousel01").jcarousel({
			scroll: 1
		});
	}
	*/
	if ( jQuery("ul#menu").length > 0 ) {
		$("#menu").addNavigation({
			event: "mouseover",
			effect: true
		});
	}
    /*jQuery(".Popup01").addLightBoxControl({
		enableScrollbar: "yes",
		maxLightBoxHeight: 800,
		closeBtnText: "Close"		
	});*/
	if($(".Popup01").length > 0) {
		$(".Popup01").bind("click", function () { 
			var href = $(this).attr("href"); 
			$lightbox.openPopup({
				href: href,
				closeBtnText: 'Close',
				themeClass: "PopupTheme1",
				id: 'popup1'
			}); 
			return false;
		}); 
	}
    if($(".Popup02").length > 0) {
		$(".Popup02").bind("click", function () {
			var href = $(this).attr("href");
			$lightbox.openPopup({
				href: href,
				closeBtnText: 'Close',
				themeClass: "PopupTheme1",
				id: 'popup2'
			}); 
			return false;
		}); 
	}
	if($(".Popup03").length > 0) {
		$(".Popup03").bind("click", function () {
			var href = $(this).attr("href");
			$lightbox.openPopup({
				href: href,
				closeBtnText: 'Close',
				themeClass: "PopupTheme1",
				id: 'popup3'
			}); 
			return false;
		}); 
	}
    
    /* print preview page */
    
    if($(".Popup04").length > 0) {
		$(".Popup04").bind("click", function () {
			var href = $(this).attr("href");
			$lightbox.openPopup({
				href: href,
				closeBtnText: 'Close',
				themeClass: "PopupTheme1",
				id: 'popup4'
			}); 
            
                     
            //alert(xml) ;
            
			return false;
		}); 
	}
	if($(".Popup05").length > 0) {
		$(".Popup05").bind("click", function () {
			var href = $(this).attr("href");
			$lightbox.openPopup({
				href: href,
				closeBtnText: 'Close',
				themeClass: "PopupTheme1",
				id: 'popup5'
			}); 
			return false;
		}); 
	}
    
    /* end print preview page */
    
});

/* added by binh.tran  */

function printReview()
{
	 
     // Print the DIV.
     $( ".printable" ).print();													  
     // Cancel click event.
     return( false );
}

function printReviewIE()
{
	//alert('bbb');
	$( "#jqprint" ).print();		
}

function closeThank()
{
	//alert('123');
	$lightbox.hidePopup('popup1');	
}



/* end added */

