//home page slider

	$(document).ready(function(){

	var rttheme_effect_options = jQuery("meta[name=rttheme_effect_options]").attr('content');

	var rttheme_slider_time_out = jQuery("meta[name=rttheme_slider_time_out]").attr('content');

	var rttheme_slider_numbers = jQuery("meta[name=rttheme_slider_numbers]").attr('content');





		if(rttheme_slider_numbers=='true') 	{

			var numbers="#numbers";

		}	

		$('#slider_area').cycle({ 

			fx:    rttheme_effect_options,

			easing: 'backout', 

			cleartype:  1,		

			timeout: rttheme_slider_time_out ,

			pager:  numbers, 		

				pagerAnchorBuilder: function(idx) { 

					return '<li><a href="#" title="">&nbsp;</a></li>'; 

				} 

		});



	});



//cufon fonts

	var rttheme_disable_cufon= jQuery("meta[name=rttheme_disable_cufon]").attr('content');

	if(rttheme_disable_cufon!='true') {

		$(document).ready(function(){

				Cufon.replace('h1,h2,h3,h4,h5,h6,.title_1,.title_2', {hover: true});

		});

	}



//pretty photo

	$(document).ready(function(){

		$("a[rel^='prettyPhoto']").prettyPhoto();

	});



//navigation

	$(document).ready(function(){

			ddsmoothmenu.init({

				mainmenuid: "dropdown_menu", //menu DIV id

				orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"

				classname: 'dropdown', //class added to menu's outer DIV

				//customtheme: ["#1c5a80", "#18374a"],

				contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]

			})

 	});



//image effects 

	$(document).ready(function(){

			var image_e= $(".image.portfolio, .image.product_image");

			image_e.mouseover(function(){$(this).stop().animate({ opacity:0.6

					}, 400);

			}).mouseout(function(){

				image_e.stop().animate({ 

					opacity:1

					}, 400 );

			});

	});







//validate contact form

	  $(document).ready(function(){

		  jQuery.validator.messages.required = "";

			$("#validate_form").validate({});

	  });





//hack for ie linked images border 

	  $(document).ready(function(){

			var all_images = $("#content img");

			var all_images_links = all_images.parent();

			all_images_links.addClass("no_border");

	  });





//sub menu effect

	$(document).ready(function(){

	var sub_menu_link= $("#sub_menu li a");

		sub_menu_link.mouseover(

		function(){



				$(this).stop().animate({

							paddingLeft : 20



				}, 20);



		}).mouseout(function(){

					$(this).stop().animate({

						paddingLeft : 0

						}, 200 );

				});

	});





//dropdown menu effect

	$(document).ready(function(){

		var dp_menu_link= $("#dropdown_menu ul li ul li a");

		dp_menu_link.mouseover(

		function(){



				$(this).stop().animate({

							paddingLeft : 40

				}, 20);



		}).mouseout(function(){

					$(this).stop().animate({

							paddingLeft : 10

						}, 200 );

				});

	});

