// JavaScript Document

jQuery(document).ready(function($) {
    $('.text-loop').cycle({
		fx: 'fade',
		timeout:    5000,
        speed:    5000
	});
	$('.privacy-policy').hover(function (e) {
		$('#privacy-policy').modal();

		return false;
	});
	$('.terms-condition').hover(function (e) {
		$('#terms-condition').modal();

		return false;
	});
	 $("a[rel^='prettyPhoto']").prettyPhoto({
			animation_speed: 'fast', /* fast/slow/normal */
			slideshow: 5000, /* false OR interval time in ms */
			autoplay_slideshow: false, /* true/false */
			opacity: 0.80, /* Value between 0 and 1 */
			show_title: true, /* true/false */
			allow_resize: true, /* Resize the photos bigger than viewport. true/false */
			default_width: 500,
			default_height: 344,
			counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
			theme: 'pp_default', /* light_rounded / dark_rounded / light_square / dark_square / facebook */
			horizontal_padding: 20, /* The padding on each side of the picture */
			hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
			wmode: 'opaque', /* Set the flash wmode attribute */
			autoplay: true, /* Automatically start videos: True/False */
			modal: false, /* If set to true, only the close button will close the window */
			deeplinking: true, /* Allow prettyPhoto to update the url to enable deeplinking. */
			overlay_gallery: true, /* If set to true, a gallery will overlay the fullscreen image on mouse over */
			keyboard_shortcuts: true, /* Set to false if you open forms inside prettyPhoto */
			changepicturecallback: function(){}, /* Called everytime an item is shown/changed */
			callback: function(){}, /* Called when prettyPhoto is closed */
			ie6_fallback: true,
			markup: '<div class="pp_pic_holder"> \
						<div class="ppt">&nbsp;</div> \
						<div class="pp_top"> \
							<div class="pp_left"></div> \
							<div class="pp_middle"></div> \
							<div class="pp_right"></div> \
						</div> \
						<div class="pp_content_container"> \
							<div class="pp_left"> \
							<div class="pp_right"> \
								<div class="pp_content"> \
									<div class="pp_loaderIcon"></div> \
									<div class="pp_fade"> \
										<div class="pp_hoverContainer"> \
											<a class="pp_next" href="#">next</a> \
											<a class="pp_previous" href="#">previous</a> \
										</div> \
										<div id="pp_full_res"></div> \
										<div class="pp_details"> \
											<p class="pp_description"></p> \
											{pp_social} \
											<a class="pp_close" href="#">Close</a> \
										</div> \
									</div> \
								</div> \
							</div> \
							</div> \
						</div> \
						<div class="pp_bottom"> \
							<div class="pp_left"></div> \
							<div class="pp_middle"></div> \
							<div class="pp_right"></div> \
						</div> \
					</div> \
					<div class="pp_overlay"></div>',
			gallery_markup: '<div class="pp_gallery"> \
								<a href="#" class="pp_arrow_previous">Previous</a> \
								<div> \
									<ul> \
										{gallery} \
									</ul> \
								</div> \
								<a href="#" class="pp_arrow_next">Next</a> \
							</div>',
			image_markup: '<img id="fullResImage" src="{path}" />',
			flash_markup: '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',
			quicktime_markup: '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',
			iframe_markup: '<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',
			inline_markup: '<div class="pp_inline">{content}</div>',
			custom_markup: '',
			social_tools: '' /* html or false to disable */
		}
	 );
	/*
    $('.slideshow').cycle({
		fx: 'fade',
		prev:    '#prev',
        next:    '#next'
	});
	$("nav#main-navigation ul li a").click(function () {
		$("nav#main-navigation ul li a").removeClass('actived');
  		$(this).addClass('actived');
		return false;
	});
	 $('#slideshow').cycle({
        fx:      'fade',
        timeout:  7000,
    	speed:  3000
    });
	$('#slidethumb1').click(function() { 
		$('#slideshow').cycle(0); 
		return false; 
	});
	$('#slidethumb2').click(function() {  
		$('#slideshow').cycle(1);  
		return false;  
	});
	$('#slidethumb3').click(function() {  
		$('#slideshow').cycle(2);  
		return false;  
	});
	$('#slidethumb4').click(function() {  
		$('#slideshow').cycle(3);  
		return false;  
	});
	$('#slidethumb5').click(function() {  
		$('#slideshow').cycle(4);  
		return false;  
	});
	$('#slidethumb6').click(function() {  
		$('#slideshow').cycle(5);  
		return false;  
	});
	$('#slidethumb7').click(function() {  
		$('#slideshow').cycle(6);  
		return false;  
	});
	$('#slidethumb8').click(function() {  
		$('#slideshow').cycle(7);  
		return false;  
	});
	$('#slidethumb9').click(function() {  
		$('#slideshow').cycle(8);  
		return false;  
	});
	$('#slidethumb10').click(function() {  
		$('#slideshow').cycle(9);  
		return false;  
	});*/
	//$("a.large-photo").fancybox();
	//$("#tabmenu ul").idTabs();
	/*$(".zoom").fancybox({
			'width' : '60%',
			'height' : '60%',
			'autoScale' : false,
			'titleShow'	: false
		});
	$("#new-product img").lazyload({
         placeholder : "wp-content/themes/nopadol/images/grey.gif",
         effect      : "fadeIn",
         threshold   :"-50"
      });
	$("a[rel=home_idea]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over'
	});*/
});
