(function($) {
	$.fn.cowbox = function(settings) {
		settings = jQuery.extend({
			pageId:					'',
			pagetype:				761,
			mode:					'cowbox',
			// Configuration related to overlay
			overlayBgColor: 		'#bcbec0',		// (string) Background color to overlay; inform a hexadecimal value like: #RRGGBB. Where RR, GG, and BB are the hexadecimal values for the red, green, and blue values of the color.
			overlayOpacity:			0.6,		// (integer) Opacity value to overlay; inform: 0.X. Where X are number from 0 to 9
			// Configuration related to navigation
			fixedNavigation:		false,		// (boolean) Boolean that informs if the navigation (next and prev button) will be fixed or not in the interface.
			// Configuration related to images
			imageLoading:			'images/lightbox-ico-loading.gif',		// (string) Path and the name of the loading icon
			imageBtnPrev:			'images/lightbox-btn-prev.gif',			// (string) Path and the name of the prev button image
			imageBtnNext:			'images/lightbox-btn-next.gif',			// (string) Path and the name of the next button image
			imageBtnClose:			'images/lightbox-btn-close.gif',		// (string) Path and the name of the close btn
			imageBlank:				'images/lightbox-blank.gif',			// (string) Path and the name of a blank image (one pixel)
			// Configuration related to container image box
			containerBorderSize:	10,			// (integer) If you adjust the padding in the CSS for the container, #lightbox-container-image-box, you will need to update this value
			containerResizeSpeed:	400,		// (integer) Specify the resize duration of container image. These number are miliseconds. 400 is default.
			// Configuration related to texts in caption. For example: Image 2 of 8. You can alter either "Image" and "of" texts.
			txtImage:				'Image',	// (string) Specify text "Image"
			txtOf:					'of',		// (string) Specify text "of"
			// Don?t alter these variables in any way
			imageArray:				[],
			activeImage:			0,
			more:		0,
			moreText:	'',
			submit:				0,
			contact:				0
		},settings);
		// Caching the jQuery object with all elements matched
		var jQueryMatchedObj = this; // This, in this context, refer to jQuery object

		/**
		 * Initializing the plugin calling the start function
		 *
		 * @return boolean false
		 */
		function _initialize() {
			_start(this,jQueryMatchedObj); // This, in this context, refer to object (link) which the user have clicked
			return false; // Avoid the browser following the link
		}
		/**
		 * Start the jQuery lightBox plugin
		 *
		 * @param object objClicked The object (link) whick the user have clicked
		 * @param object jQueryMatchedObj The jQuery object with all elements matched
		 */
		function _start(objClicked,jQueryMatchedObj) {
                        if (!$('#jquery-lightbox').length){
			     $('embed, object, select').css({ 'visibility' : 'hidden' });
			     _set_interface();
			}
		
			$.cowAjax({pageId: settings.pageId, pagetype: settings.pagetype, mode: settings.mode, more: settings.more, moreText: settings.moreText, submit: settings.submit, contact: settings.contact});
		}
		
		
		function _set_interface() {
			// Apply the HTML markup into body tag
			$('body').append('<div id="jquery-overlay"></div><div id="jquery-lightbox"><div id="lightbox-container-image-box" class="png-fix"><div class="cow-box-top-info"><div id="cowbox_breadcrumb">&nbsp;</div><div id="lightbox-btnClose"></div><div id="cowbox_contacts"><div class="contact_num"><a href="mailto:sales@cow.nl">sales@cow.nl</a><span> 0529 - 42 80 20</span></div></div></div><div id="cowbox_navLeft">&nbsp;</div><div id="cowbox_navRight">&nbsp;</div>'+
					   '<!-- fce  begin--><div class="fce-box"><div class="fce-box-lt"><div class="fce-box-rt"><div class="fce-box-lb"><div class="fce-box-rb"><div class="fce-box-t"></div><div class="fce-box-l"><div class="fce-box-r"><div class="fce-box-c"><div class="clearer"><!--  --></div><!-- fce  content-->'+
					   '<div id="cowbox_product">&nbsp;</div><div id="cowbox_loading"><!-- --></div><!-- fce  content--><div class="clearer"><!--  --></div></div></div></div><div class="fce-box-b"><div class="small_tab"><a href="javascript:void(0);"><span>more</span></a></div></div></div></div></div></div></div><!-- fce end--></div></div>');	
			// Get page sizes    
			var arrPageSizes = ___getPageSize();
			// Style overlay and show it
			$('#jquery-overlay').css({
				backgroundColor:	settings.overlayBgColor,
				opacity:			settings.overlayOpacity,
				width:				arrPageSizes[0],
				height:				arrPageSizes[1]
			}).fadeIn();
			// Get page scroll
			var arrPageScroll = ___getPageScroll();
			// Calculate top and left offset for the jquery-lightbox div object and show it
			$('#jquery-lightbox').css({
				top:	arrPageScroll[1] + (arrPageSizes[3] / 10),
				left:	arrPageScroll[0]
			}).show();

			// Assign the _finish function to lightbox-loading-link and lightbox-secNav-btnClose objects
			$('#lightbox-btnClose').click(function() {
				_finish();
				return false;
			});

			// If window was resized, calculate the new overlay dimensions
			$(window).resize(function() {
				// Get page sizes
				var arrPageSizes = ___getPageSize();
				// Style overlay and show it
				$('#jquery-overlay').css({
					width:		arrPageSizes[0],
					height:		arrPageSizes[1]
				});
				// Get page scroll
				var arrPageScroll = ___getPageScroll();
				// Calculate top and left offset for the jquery-lightbox div object and show it
				$('#jquery-lightbox').css({
					top:	arrPageScroll[1] + (arrPageSizes[3] / 10),
					left:	arrPageScroll[0]
				});
			});
		}

		/**
		 * Remove jQuery lightBox plugin HTML markup
		 *
		 */
		function _finish() {
			$('#jquery-lightbox').remove();
			
			$('#jquery-overlay').fadeOut(function() { $('#jquery-overlay').remove(); });
			// Show some elements to avoid conflict with overlay in IE. These elements appear above the overlay.
			$('embed, object, select').css({ 'visibility' : 'visible' });

			if (jQueryMatchedObj.get(0).id && boxesArr && boxesArr[jQueryMatchedObj.get(0).id]){
				$("#"+jQueryMatchedObj.get(0).id+" .box").find("span").css("display","");
				if (boxesArr[jQueryMatchedObj.get(0).id]) boxesArr[jQueryMatchedObj.get(0).id]["stop"] = 0;
			}
		}
		/**
		 / THIRD FUNCTION
		 * getPageSize() by quirksmode.com
		 *
		 * @return Array Return an array with page width, height and window width, height
		 */
		function ___getPageSize() {
			var xScroll, yScroll;
			if (window.innerHeight && window.scrollMaxY) {	
				xScroll = window.innerWidth + window.scrollMaxX;
				yScroll = window.innerHeight + window.scrollMaxY;
			} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
				xScroll = document.body.scrollWidth;
				yScroll = document.body.scrollHeight;
			} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
				xScroll = document.body.offsetWidth;
				yScroll = document.body.offsetHeight;
			}
			var windowWidth, windowHeight;
			if (self.innerHeight) {	// all except Explorer
				if(document.documentElement.clientWidth){
					windowWidth = document.documentElement.clientWidth; 
				} else {
					windowWidth = self.innerWidth;
				}
				windowHeight = self.innerHeight;
			} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
				windowWidth = document.documentElement.clientWidth;
				windowHeight = document.documentElement.clientHeight;
			} else if (document.body) { // other Explorers
				windowWidth = document.body.clientWidth;
				windowHeight = document.body.clientHeight;
			}	
			// for small pages with total height less then height of the viewport
			if(yScroll < windowHeight){
				pageHeight = windowHeight;
			} else { 
				pageHeight = yScroll;
			}
			// for small pages with total width less then width of the viewport
			if(xScroll < windowWidth){	
				pageWidth = xScroll;		
			} else {
				pageWidth = windowWidth;
			}
			arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight);
			return arrayPageSize;
		};
		/**
		 / THIRD FUNCTION
		 * getPageScroll() by quirksmode.com
		 *
		 * @return Array Return an array with x,y page scroll values.
		 */
		function ___getPageScroll() {
			var xScroll, yScroll;
			if (self.pageYOffset) {
				yScroll = self.pageYOffset;
				xScroll = self.pageXOffset;
			} else if (document.documentElement && document.documentElement.scrollTop) {	 // Explorer 6 Strict
				yScroll = document.documentElement.scrollTop;
				xScroll = document.documentElement.scrollLeft;
			} else if (document.body) {// all other Explorers
				yScroll = document.body.scrollTop;
				xScroll = document.body.scrollLeft;	
			}
			arrayPageScroll = new Array(xScroll,yScroll);
			return arrayPageScroll;
		};
		 /**
		  * Stop the code execution from a escified time in milisecond
		  *
		  */
		 function ___pause(ms) {
			var date = new Date(); 
			curDate = null;
			do { var curDate = new Date(); }
			while ( curDate - date < ms);
		 };
		// Return the jQuery object for chaining. The unbind method is used to avoid click conflict when the plugin is called more than once
		return _initialize();
		
	};
})(jQuery); // Call and execute the function immediately passing the jQuery object




var previousPageId = 0;
var previousPageMode = '';
var previousButton = '';
var groupId = 0;

jQuery.cowAjax = function(settings) {
	settings = jQuery.extend({
		pageId:		"",
		pagetype:	761,
		mode:		"cowbox",
		unit:		0,
		pivar:		"currentCow",
		type:		1,
		contact:	0,
		more:	0,
		moreText:	'',
		submit:	0
	},settings);
	
	var groupID = (groupID != null && groupID != '') ? groupID : null;
	
	var contactIDs = '1272, 2028';
	var pattern = new RegExp('(^|,|\s)' + settings.pageId + '(,|\s|$)');
	var contact = contactIDs.search(pattern);
	if (contact != -1){
		settings.contact = 1;
		settings.mode = 'iframe';
	}
	
	switch (settings.mode) {
	case 'search':
	case 'cowbox':
		$("#cowbox_product").css("display","none");
		$("#cowbox_loading").css("display","block");
		
		$.ajax({
			  url: "index.php?id="+settings.pageId+"&type="+settings.pagetype,
			  cache: false,
			  success: function(html){
				$temp = $("#cowbox_temp");
				if (!$temp.length){
					$('body').append("<div id=\"cowbox_temp\" style=\"display: none;\"></div>");
					$temp = $("#cowbox_temp");
				}
				$temp.empty().append(html);
				$("#cowbox_loading").css("display","none");
				$("#cowbox_product").css("display","block");
				
				if ($("#ajax_itemcontent").length){				
					$("#cowbox_product").get(0).scrollTop = 0;
					$("#cowbox_product").get(0).scrollLeft = 0;
					$("#cowbox_breadcrumb").empty();
					$("#cowbox_breadcrumb").append($("#ajax_breadcrumb").html());
					$("#cowbox_navLeft" ).empty();
					$("#cowbox_navRight").empty();
					if (settings.mode == 'cowbox'){
						$("#cowbox_navRight").append($("#ajax_right").html());
						$("#cowbox_navLeft" ).append($("#ajax_left").html());
					}
					else 
						$("#cowbox_navLeft" ).append("<a onclick=\"$(this).cowbox({pageId: 17, mode: 'page'});\" href=\"javascript:void(0);\"/>");
					
					$("#cowbox_product" ).empty();
					$("#cowbox_product" ).append($("#ajax_itemcontent").html());
					//$("#cowbox_contacts").empty();
					//$("#cowbox_contacts").append($("#ajax_contacts").html());
					$("#jquery-lightbox .fce-box-b").empty();
					$("#jquery-lightbox .fce-box-b").append($("#ajax_more").html());
				}
				$temp.empty();
				
				if (settings.more){
					$("#jquery-lightbox .fce-box-b").append("<div onmouseout=\"$(this).toggleClass('act'); $(this).find('span').attr('style',''); \" onmouseover=\"$(this).toggleClass('act'); $(this).find('span').css('background-position','right top'); $(this).find('a').css({backgroundPosition: 'right bottom'}); \" class=\"small_tab\">"+'<a class="png-fix" onclick="$.cowAjax({pageId:'+settings.more+', mode:\'page\'}); return false;" href="javascript:void(0);"><span class="png-fix"><img src="'+settings.moreText+'"/></span></a></div>');
				}
				
				//$temp.empty();
//console.log($("#lightbox-container-image-box").get(0));
	//			DD_belatedPNG.fixPng( $("#lightbox-container-image-box").get(0) );
				$("img.reflect").bind("load",addReflections);
				
			  }
		});
		break;

	case 'product':
		/*$loader = $("#cowAjax_loader");
		if (!$loader.length){
			$('body').append("<div id=\"cowAjax_loader\"></div>");
			$loader = $("#cowAjax_loader");
		}
		$loader.css("display","block");*/
		
		$.ajax({
			  url: "index.php?id="+settings.pageId+"&type="+settings.pagetype,
			  cache: false,
			  success: function(html){
				$temp = $("#cowbox_temp");
				if (!$temp.length){
					$('body').append("<div id=\"cowbox_temp\" style=\"display: none;\"></div>");
					$temp = $("#cowbox_temp");
				}
				$temp.empty();
				$temp.append(html);
				
				$(".fce_middle").empty();
				$(".fce_middle" ).append($("#ajax_content_left").html());
				$(".fce_right").empty();
				$(".fce_right" ).append($("#ajax_content_right").html());
				
				$temp.empty();
				$("img.reflect").bind("load",addReflections);
				$(".scrollbar").jScrollPane({showArrows:true});
			  }
		});
		//$loader.css("display","none");
		break;
		
	case 'workers':
		if (settings.pivar == 'group'){
			$link = $('#group'+settings.unit);
			$link.parent().parent().find('li').removeClass('act');
			$link.parent().addClass('act');
		}
		$.ajax({
			  url: "index.php?id="+settings.pageId+"&tx_impcarousel_pi1["+settings.pivar+"]="+settings.unit,
			  cache: false,
			  success: function(html){
				$place = $("#cowajax_landing");
				if (!$place.length){
					if (settings.pivar == "portfolio")
						$('.tx-impcarousel-pi1').closest(".fce_left").next(".fce_right").append("<div id=\"cowajax_landing\"></div>");
					else $('.tx-impcarousel-pi1').after("<div id=\"cowajax_landing\"></div>");
					$place = $("#cowajax_landing");
				}
				$place.empty();
				$place.append(html);
				
				
				if(groupId)
				{
					$link = $('#group'+groupId);
					if ($link.length){
						$link.parent().parent().find('li').removeClass('act');
						$link.parent().addClass('act');
					}
				}
                
				$("img.reflect").bind("load",addReflections);
				$(".scrollbar").jScrollPane({showArrows:true});
			  }
		});
		break;
	
	case 'page':
		$("#cowbox_product").css("display","none");
		$("#cowbox_loading").css("display","block");

		if(previousPageId==settings.pageId && previousButton!=''){
		    $('#jquery-lightbox .fce-box-b').empty().append(previousButton).find('span').css('background-position','');
		}
		$("#cow_iframe").unbind().remove();
	
		//if(!$("#cow_iframe").length){
			$("body").prepend('<iframe src="index.php?id='+settings.pageId+'&type='+settings.pagetype+'" id="cow_iframe" style="display: none;">no frames</iframe>');
		//}else{
		//	$("#cow_iframe").get(0).src = "index.php?id='+settings.pageId+'&type='+settings.pagetype+'";
		//}
//		$('#cow_iframe').get(0).onreadystatechange = 

		$("#cow_iframe").bind("load",function(){ 
			$("#cowbox_loading").css("display","none");
			$("#cowbox_product").css("display","block");

			$("#cowbox_product").empty();
			html = $("#cow_iframe").contents().find('#mainColumn .content').html();
			html && $("#cowbox_product").append(html);

			$("#cowbox_breadcrumb").empty();
			html = $("#cow_iframe").contents().find(".pathway").html(); 
			html && $("#cowbox_breadcrumb").append(html);
			
			//$("#cowbox_contacts").empty();
			//html =$("#cow_iframe").contents().find(".contact_num").html(); 
			//html && $("#cowbox_contacts").append('<div class="contact_num">'+html+'</div>');

			//$("#jquery-lightbox .fce-box-b").empty();
			//$("#jquery-lightbox .fce-box-b").append($("#ajax_more").html());
			
			$("#cowbox_navLeft" ).empty();
			$("#cowbox_navRight").empty();
			html = '';
			html =$("#cow_iframe").contents().find("#ajaxNav").html(); 
			if (html && html != ''){
				var pos = html.toLowerCase().lastIndexOf('<a ');
				$("#cowbox_navLeft").append(html.substring(0,pos));
				$("#cowbox_navRight").append(html.substring(pos));
			}

			$form = $('#cowbox_product form');
			if (settings.contact || $form.length){
				if (settings.contact){
					previousPageId && $("#cowbox_navLeft" ).append("<a onclick=\"$.cowAjax({pageId:"+previousPageId+", mode: '"+previousPageMode+"'});\" href=\"javascript:void(0);\"/>");
					if( $('#cowbox_product iframe').length) {
						action = "$('#cowbox_product iframe:visible').contents().find('form').submit();";
					} else {
				        action = "$('#cowbox_product input[type$=submit]').click();";
					}
				}
				else action = "$('#cowbox_product form').submit();";

				$("#jquery-lightbox .fce-box-b").append("<div onmouseout=\"$(this).toggleClass('act'); $(this).find('span').attr('style',''); $(this).find('a').attr('style',''); \" onmouseover=\"$(this).toggleClass('act'); $(this).find('span').css('background-position','right top'); $this.find('a').css({backgroundPosition: 'right bottom'});\" class=\"small_tab\"><a class=\"png-fix\" onclick=\""+action+" return false;\" href=\"index.php?id=44&type=761\"><span class=\"png-fix\" style=\"\">"+'<img width="14" height="62" title="" alt="" src="fileadmin/thecowcompany/templates/images/buttons/submit.gif"/></span></a></div>');
				
			}
			
			pattern = new RegExp('(^|,|\s)' + settings.more+ + '(,|\s|$)');
			contact = contactIDs.search(pattern);
			if (settings.more){
				additional = '';
				if(contact != -1) {
					additional = ', contact:\'1\'';
				}
				$("#jquery-lightbox .fce-box-b").append("<div onmouseout=\"$(this).toggleClass('act'); $(this).find('span').attr('style',''); $(this).find('a').attr('style',''); \" onmouseover=\"$(this).toggleClass('act'); $(this).find('span').css('background-position','right top'); $(this).find('a').css({backgroundPosition: 'right bottom'});\" class=\"small_tab\">"+'<a class="png-fix" onclick="$.cowAjax({pageId:'+settings.more+', mode:\'page\''+additional+'}); return false;" href="javascript:void(0);"><span class="png-fix"><img src="'+settings.moreText+'"/></span></a></div>');
			}
		
			// edit by Kevin
			if(typeof(tx_mhajaxsearch_search) != 'undefined') {
				$("#tx_mhajaxsearch_q").val($("#tx_mhajaxsearch_qq").val());
				if($("#tx_mhajaxsearch_qq").val() != '') {
					tx_mhajaxsearch_search.modified('tx_mhajaxsearch_q');
				}									      
			}

			var m = setTimeout('$("img.reflect").bind("load",addReflections)',50)
			var t = setTimeout('$("#cow_iframe").unbind().remove()',80);
		});
		
		
		
		break;


	case 'inkoop':
		$.ajax({
			  url: "index.php?id="+settings.pageId+"&type="+settings.pagetype,
			  cache: false,
			  success: function(html){
				$temp = $("#cowbox_temp");
				if (!$temp.length){
					$('body').append("<div id=\"cowbox_temp\" style=\"display: none;\"></div>");
					$temp = $("#cowbox_temp");
				}
				
				$place = $('#inkoop_product');
				if (!$place.length){
					$('.tx-impcarousel-pi1').after("<div id=\"inkoop_product\"></div>");
					$place = $("#inkoop_product");
				}
				//$temp.empty();
				$temp.append(html);
				
				$place.empty();
				$place.append($("#ajax_content_left").html());
				
				html = $('#ajax_content_right').html();
				$(".fce_right").empty();
				html && $(".fce_right").append(html);

	$(".fce_right .fce_round").bind('mouseover',function(){
        $this = $(this);
		
		$this.find(".small_tab").addClass('act');
		$this.find("a.png-fix").css({backgroundPosition: 'right bottom'});
		$this.find("span.png-fix").css({backgroundPosition: 'right top'});
		
		$this.find("div.fce-item > div.img-holder img").parent().each(function(){
                     var $el  = $(this);
                     if($el.hasClass('image-grey-color')){
			$el.prev().hide();
                        $el.show();
		     };
		});
	});
	
	$(".fce_right .fce_round").bind('mouseout',function(){
		$this = $(this);
		$this.find(".small_tab").removeClass("act");
		$this.find("a.png-fix").css({backgroundPosition: 'left bottom'});
		$this.find("span.png-fix").css({backgroundPosition: 'left top'});
		
		$this.find("div.fce-item > div.img-holder img").parent().each(function(){
			$el = $(this);
			if ($el.hasClass('image-grey-color')) {
				$el.prev().show();
				$el.hide();
			}
		});
	});

				
				$temp.empty();
				$("img.reflect").bind("load",addReflections);
				$(".scrollbar").jScrollPane({showArrows:true});
			  }
		});
		
		/*
		if (settings.type){
			$("body").append('<iframe src="index.php?id='+settings.type+'&type='+settings.pagetype+'" id="cow_iframe" style="display: none;"></iframe>');
			$("#cow_iframe").bind("load",function(){ 
				html = $("#cow_iframe").contents().find('#mainColumn .content').html();
				$(".fce_right").empty();
				$(".fce_right").append(html);
				
				var t = setTimeout('$("#cow_iframe").remove()',40);
			});
		}
		else $(".fce_right").empty();
		*/
		break;
		
	case 'iframe':

		$("iframe").remove();
		settings.contact = settings.submit + settings.contact;
		
		$("#cowbox_loading").css("display","none");
		$("#cowbox_product").css("display","block");
		
		$("#cowbox_product").empty();
		$('#cowbox_product').append('<iframe class="zzz" src="index.php?id='+settings.pageId+'" id="cow_iframe" style="width: 570px; height: 270px; border: 0;" frameborder="0"></iframe>');
		$("#cowbox_navLeft" ).empty();
		$("#cowbox_navRight").empty();
		$("#cowbox_breadcrumb").empty();
		
		if (settings.contact){
			$("#cowbox_breadcrumb").append('<ul><li>Home</li><li class="separator">|</li><li>Contact</li></ul>');
			if (previousPageId){
				$("#cowbox_navLeft" ).append('<a href="javascript:void(0);"/>');
				$('#cowbox_navLeft a').click(function(){
					$('iframe').remove();
					setTimeout('$.cowAjax({pageId:'+previousPageId+', mode: \''+previousPageMode+'\'})',1000);
				});
			}	
			previousButton = $("#jquery-lightbox .fce-box-b").html();
			$("#jquery-lightbox .fce-box-b").append("<div onmouseout=\"$(this).toggleClass('act'); $(this).find('span').attr('style',''); $(this).find('a').attr('style','');\" onmouseover=\"$(this).toggleClass('act'); $(this).find('span').css('background-position','right top'); $(this).find('a').css({backgroundPosition: 'right bottom'});\" class=\"small_tab\">"+'<a class="png-fix" onclick="$(\'#cow_iframe\').contents().find(\'input[type=submit]\').click();" href="javascript:void(0);"><span class="png-fix"><img src="fileadmin/thecowcompany/templates/images/buttons/submit.gif"/></span></a></div>');
		}
		else 
			$("#jquery-lightbox .fce-box-b").empty();
			
		//var m = setTimeout(function(){$("#cow_iframe").contents().find("img.reflect").bind("load",addReflections)},50);
		//if (settings.more){
		//	$("#jquery-lightbox .fce-box-b").append("<div onmouseout=\"$(this).toggleClass('act'); $(this).find('span').css('background-position','');\" onmouseover=\"$(this).toggleClass('act'); $(this).find('span').css('background-position','right top');\" class=\"small_tab\">"+'<a class="png-fix" onclick="$.cowAjax({pageId:'+settings.more+', mode:\'page\'}); return false;" href="javascript:void(0);"><span class="png-fix"><img src="'+settings.moreText+'"/></span></a></div>');
		//}

		break;

	}
	
	if (!settings.contact){
		previousPageId = settings.pageId;
		previousPageMode = settings.mode;
	}
	//else previousButton = $("#jquery-lightbox .fce-box-b").html();
	
	return false;	
};


function showSubmit(){
//	if(!$("#jquery-lightbox .fce-box-b .small_tab").attr('class')) {
		$("#jquery-lightbox .fce-box-b").empty().append("<div onmouseout=\"$(this).toggleClass('act'); $(this).find('span').attr('style',''); $(this).find('a').attr('style','');\" onmouseover=\"$(this).toggleClass('act'); $(this).find('a.png-fix').css({backgroundPosition: 'right bottom'}); $(this).find('span').css('background-position','right top');\" class=\"small_tab\">"+'<a class="png-fix" onclick="$(\'#tx_mhajaxsearch_result iframe\').contents().find(\'input[type=submit]\').click();" href="javascript:void(0);"><span class="png-fix"><img src="fileadmin/thecowcompany/templates/images/buttons/submit.gif"/></span></a></div>');	
//	}
}