			jQuery(document).ready(function(){

			jQuery('ul.sf-menu').superfish({
				delay:       1000, 		// one second delay on mouseout
				animation:   {opacity:'false',height:'show'}, // fade-in and slide-down animation
				speed:       'normal',  // faster animation speed
				autoArrows:  false,        // generation of arrow mark-up (for submenu)
				dropShadows: false    // drop shadows (for submenu)
			});

			// prettyphoto init
                        jQuery("a[rel^='prettyPhoto']").prettyPhoto();
			jQuery("#gallery .portfolio a[rel^='prettyPhoto']").prettyPhoto({
				animationSpeed:'slow',
				theme:'facebook',
				slideshow:false,
				autoplay_slideshow: false,
				show_title: true,
				overlay_gallery: false
			});
                        /*
				jQuery("a[rel^='colorbox']").colorbox({maxWidth:"90%", maxHeight:"85%"});
				jQuery("a[rel^='colorboxSlideshow']").colorbox({slideshow:true});
				jQuery("a[rel^='colorboxVideo']").colorbox({iframe:true, width:"85%", height:"85%"});
				jQuery("a[rel^='colorboxiframe']").colorbox({width:"90%", height:"85%", iframe:true});
				jQuery("a[rel^='colorboxInline']").colorbox({width:"50%", inline:true, href:"#inline_example1"});
                         */
			});
			jQuery.fn.showInline = function(idVal) {
				/*
				WORKS ONLY WITH prettyPhoto 2.5.6 - which is buggy in case of reloading/ajax
				_self=jQuery("#"+idVal);
				theRel=jQuery("#"+idVal).attr('rel');
				galleryRegExp=/\[(?:.*)\]/;
				theGallery=galleryRegExp.exec(theRel);
				var images=new Array(),titles=new Array(),descriptions=new Array();
				if(theGallery){jQuery('a[rel*='+theGallery+']').each(function(i){if(jQuery("#"+idVal)[0]===jQuery(_self)[0])setPosition=i;images.push(jQuery("#"+idVal).attr('href'));titles.push(jQuery("#"+idVal).find('img').attr('alt'));descriptions.push(jQuery("#"+idVal).attr('title'));});}
				else{images=jQuery("#"+idVal).attr('href');titles=(jQuery("#"+idVal).find('img').attr('alt'))?jQuery("#"+idVal).find('img').attr('alt'):'';descriptions=(jQuery("#"+idVal).attr('title'))?jQuery("#"+idVal).attr('title'):'';}
				jQuery.prettyPhoto.open(images,titles,descriptions);
				*/
				 theHref=jQuery("#"+idVal).attr('href');
				 jQuery.prompt( jQuery(theHref).html(),{ opacity: 0.3 });
			}

