g8_share = 
{

	sleep: function(millies)
	{
		var time = (new Date()).getTime();
		var stopTime = time + millies;
		while(time < stopTime)
			time = (new Date()).getTime();
	},
	hoverObjMouseEnter: function(e)
	{
		var p_this = $(this);
		var p_hoverImg = p_this.hasClass("hoverImg") ? p_this : p_this.children(".hoverImg");
		var p_hoverText = p_this.hasClass("hoverText") ? p_this : p_this.children(".hoverText");
		var p_hoverThis = false;
		var p_hoverHoverImg = false;
		var p_hoverHoverText = false;
		if(p_this.children(".hoverHoverObj").length)
		{
			p_hoverThis = p_this.children(".hoverHoverObj");
			p_hoverHoverImg = p_hoverThis.hasClass("hoverImg") ? p_hoverThis : p_hoverThis.children(".hoverImg");
			p_hoverHoverText = p_hoverThis.hasClass("hoverText") ? p_hoverThis : p_hoverThis.children(".hoverText");
		}
		
		$(".hoverObjHovered:not(.hoverObjSelected)").trigger("mouseleave");
		
		if(p_this.hasClass("hoverObjHovered"))
			return;
		if(p_hoverImg.children(".hoverUnavailable:visible").is("img"))
			return;

		p_this
			.addClass("hoverObjHovered")
			.css("cursor", "pointer")
			.children()
				.css("cursor", "pointer")
				.children()
					.css("cursor", "pointer");
		if(p_hoverThis)
			p_hoverThis
				.addClass("hoverObjHovered")
				.css("cursor", "pointer")
				.children()
					.css("cursor", "pointer")
					.children()
						.css("cursor", "pointer");

		p_hoverImg.children(".hoverHi").show().fadeTo(300, 1.0);
		if(p_hoverThis)
			p_hoverHoverImg.children(".hoverHi").show().fadeTo(300, 1.0);

		if(p_hoverText.hasClass("hoverLine"))
			p_hoverText.css("text-decoration", "underline");
		else if(p_hoverText.hasClass("hoverNoLine"))
			p_hoverText.css("text-decoration", "none");
		if(p_hoverText.hasClass("hoverHalfOpacity"))
			p_hoverText.stop().fadeTo(275, 0.5);
		else if(p_hoverText.hasClass("hoverHalfOpacityInverse"))
			p_hoverText.fadeTo(75, 1.0);
		else if(p_hoverText.hasClass("hoverQuarterOpacityInverse"))
			p_hoverText.fadeTo(75, 1.0);
		if(p_hoverThis)
		{
			if(p_hoverHoverText.hasClass("hoverLine"))
				p_hoverHoverText.css("text-decoration", "underline");
			else if(p_hoverHoverText.hasClass("hoverNoLine"))
				p_hoverHoverText.css("text-decoration", "none");
			if(p_hoverHoverText.hasClass("hoverHalfOpacity"))
				p_hoverHoverText.stop().fadeTo(275, 0.5);
			else if(p_hoverHoverText.hasClass("hoverHalfOpacityInverse"))
				p_hoverHoverText.fadeTo(75, 1.0);
			else if(p_hoverHoverText.hasClass("hoverQuarterOpacityInverse"))
				p_hoverHoverText.fadeTo(75, 1.0);
		}
		
		e.stopPropagation();
	},
	hoverObjMouseLeave: function(e)
	{
		var p_this = $(this);
		var p_hoverImg = p_this.hasClass("hoverImg") ? p_this : p_this.children(".hoverImg");
		var p_hoverText = p_this.hasClass("hoverText") ? p_this : p_this.children(".hoverText");
		var p_hoverThis = false;
		var p_hoverHoverImg = false;
		var p_hoverHoverText = false;
		if(p_this.children(".hoverHoverObj").length)
		{
			p_hoverThis = p_this.children(".hoverHoverObj");
			p_hoverHoverImg = p_hoverThis.hasClass("hoverImg") ? p_hoverThis : p_hoverThis.children(".hoverImg");
			p_hoverHoverText = p_hoverThis.hasClass("hoverText") ? p_hoverThis : p_hoverThis.children(".hoverText");
		}
		
		if(!p_this.hasClass("hoverObjHovered"))
			return;
		if(p_this.hasClass("hoverObjSelected"))
			return;
		if(p_this.hasClass("selectOnScroll"))
			return;
		if(p_this.parent().hasClass("selectOnScroll"))
			return;
		if(p_this.parent().parent().hasClass("selectOnScroll"))
			return;

		p_this
			.removeClass("hoverObjHovered")
			.css("cursor", "auto")
			.children()
				.css("cursor", "auto")
				.children()
					.css("cursor", "auto");
		if(p_hoverThis)
			p_hoverThis
				.removeClass("hoverObjHovered")
				.css("cursor", "auto")
				.children()
					.css("cursor", "auto")
					.children()
						.css("cursor", "auto");

		p_hoverImg.children(".hoverHi").stop().fadeTo(100, 0.0).hide();
		if(p_hoverThis)
			p_hoverHoverImg.children(".hoverHi").stop().fadeTo(100, 0.0).hide();
		
		if(p_hoverText.hasClass("hoverLine"))
			p_hoverText.css("text-decoration", "none");
		else if(p_hoverText.hasClass("hoverNoLine"))
			p_hoverText.css("text-decoration", "underline");
		if(p_hoverText.hasClass("hoverHalfOpacity"))
			p_hoverText.fadeTo(75, 1.0);
		else if(p_hoverText.hasClass("hoverHalfOpacityInverse"))
			p_hoverText.stop().fadeTo(275, 0.5);
		else if(p_hoverText.hasClass("hoverQuarterOpacityInverse"))
			p_hoverText.stop().fadeTo(275, 0.75);
		if(p_hoverThis)
		{
			if(p_hoverHoverText.hasClass("hoverLine"))
				p_hoverHoverText.css("text-decoration", "none");
			else if(p_hoverHoverText.hasClass("hoverNoLine"))
				p_hoverHoverText.css("text-decoration", "underline");
			if(p_hoverHoverText.hasClass("hoverHalfOpacity"))
				p_hoverHoverText.fadeTo(75, 1.0);
			else if(p_hoverHoverText.hasClass("hoverHalfOpacityInverse"))
				p_hoverHoverText.stop().fadeTo(275, 0.5);
			else if(p_hoverHoverText.hasClass("hoverQuarterOpacityInverse"))
				p_hoverHoverText.stop().fadeTo(275, 0.75);
		}
		
		e.stopPropagation();
	},
	bindHoverObj: function()
	{
		var p_hoverObj = $(".hoverObj");
		
		//p_hoverObj.unbind("mouseenter", g8_share.hoverObjMouseEnter);
		p_hoverObj.bind("mouseenter", g8_share.hoverObjMouseEnter);
		
		//p_hoverObj.unbind("mouseleave", g8_share.hoverObjMouseLeave);
		p_hoverObj.bind("mouseleave", g8_share.hoverObjMouseLeave);
		
		p_hoverObj.filter(".hoverHalfOpacityInverse").stop().fadeTo(275, 0.5);
		p_hoverObj.children(".hoverHalfOpacityInverse").stop().fadeTo(275, 0.5);
		p_hoverObj.filter(".hoverQuarterOpacityInverse").stop().fadeTo(275, 0.75);
		p_hoverObj.children(".hoverQuarterOpacityInverse").stop().fadeTo(275, 0.75);
	},

	inputClick: function(e)
	{
		var p_this = $(this);
		
		if(p_this.hasClass("inputBtn"))
			return;
		if(p_this.hasClass("inputRadioBtn"))
			return;
		if(p_this.hasClass("inputCheckBtn"))
			return;
		if(p_this.hasClass("hoverObjSelected") && $(".hoverObjHovered").length == 1)
			return;
		
		if(p_this.hasClass("inputOnFault") && !p_this.hasClass("hoverObjSelected"))
		{
			p_this.children(".inputFaultTip").fadeTo(100, 0.0).hide();
			
			var p_hoverImg = p_this.hasClass("hoverImg") ? p_this : p_this.children(".hoverImg");
			p_hoverImg.children(".hoverFault").fadeTo(100, 0.0).hide();
			
			p_this.removeClass("inputOnFault");
		}
		
		if(p_this.hasClass("hoverObjSelected"))
		{
			p_this.removeClass("hoverObjSelected");
		}
		else if(p_this.hasClass("hoverObjHovered"))
		{
			$(".hoverObjSelected.input").trigger("click").trigger("mouseleave");
			p_this
				.addClass("hoverObjSelected")
				.css("cursor", "auto")
				.children()
					.css("cursor", "auto")
					.children()
						.css("cursor", "auto");
			
			p_this.children("input").select();
			p_this.children().children("input").select();
		}
		
		e.stopPropagation();
	},
	infoIconClick: function(e)
	{
		var p_this = $(this);
		var p_target = $(e.target).parent();
		if(p_this.children(".infoIconTooltip:visible").length == 1 && (p_target.hasClass("infoIcon") || p_target.hasClass("infoIconTooltipClose")))
		{
			p_this.children(".infoIconTooltip").stop().fadeTo(100, 0.0).hide();
			p_this.removeClass("hoverObjSelected");
			if(p_target.hasClass("infoIconTooltipClose"))
				p_this.trigger("mouseleave");
		}
		else if(p_this.children(".infoIconTooltip:visible").length == 0)
		{
			p_this.children(".infoIconTooltip").show().fadeTo(300, 1.0);
			p_this.addClass("hoverObjSelected")
			.children().filter(":not(.hoverLo)").filter(":not(.hoverHi)")
				.css("cursor", "auto")
				.children()
					.css("cursor", "auto");
		}
		
		e.stopPropagation();
	},
	bodyClick: function(e)
	{
		var p_this = $(this);
		
		p_this.addClass("hoverObjHovered");
		$(".hoverObjSelected.input").trigger("click").trigger("mouseleave");
		p_this.removeClass("hoverObjHovered");
	},
	inputFocus: function(e)
	{
		var p_this = $(this);
		
		var p_temp = p_this.parent(".input:not(.hoverObjHovered)");
		if(p_temp.length == 0)
			p_temp = p_this.parent().parent(".input:not(.hoverObjHovered)");
		
		p_temp.trigger("mouseenter");
		if(!p_temp.hasClass("inputBtn") && !p_temp.hasClass("inputRadioBtn") && !p_temp.hasClass("inputCheckBtn"))
			p_temp.trigger("click");
		else
			$("body").trigger("click");
	},
	inputBlur: function(e)
	{
		var p_this = $(this);
		
		var p_temp = p_this.parent(".input.hoverObjHovered");
		if(p_temp.length == 0)
			p_temp = p_this.parent().parent(".input.hoverObjHovered");
		
		if(p_temp.hasClass("inputBtn") || p_temp.hasClass("inputRadioBtn") || p_temp.hasClass("inputCheckBtn"))
			p_temp.trigger("mouseleave");
	},
	bindInput: function()
	{
		$("input").attr("autocomplete", "off");
		
		var p_input = $(".input");
		
		//p_input.unbind("click", g8_share.inputClick);
		p_input.bind("click", g8_share.inputClick);
		//p_input.children("input:visible").unbind("focus", g8_share.inputFocus).unbind("blur", g8_share.inputBlur);
		p_input.children("input:visible").bind("focus", g8_share.inputFocus).bind("blur", g8_share.inputBlur);
		//p_input.children().children("input:visible").unbind("focus", g8_share.inputFocus).unbind("blur", g8_share.inputBlur);
		p_input.children().children("input:visible").bind("focus", g8_share.inputFocus).bind("blur", g8_share.inputBlur);
		
		//$("body").unbind("click", g8_share.bodyClick);
		$("body").bind("click", g8_share.bodyClick);

		//$(".infoIcon").unbind("click", g8_share.infoIconClick);
		$(".infoIcon").bind("click", g8_share.infoIconClick);
	},

	selectListUpDownClickStop: function(e)
	{
		e.stopPropagation();
	},
	selectListUpDownClick: function(e)
	{
		var p_temp = $(this).parent().parent();
		
		if(p_temp.hasClass("select"))
			g8_share.runCtrlSelectUpDown(p_temp.attr("id"));
		else
			g8_share.runCtrlSelectUpDown(p_temp.parent().attr("id"));
		
		e.stopPropagation();
	},
	runCtrlSelectUpDown: function(selectID)
	{
		if($("#" + selectID).children(".selectList").is("div"))
			var select = $("#" + selectID);
		else
			var select = $("#" + selectID).children("div").eq(2);
		
		if(select.hasClass("selectOnScroll"))
			return;
		
		var firstTldName = select.children(".selectList").children(".selectListOption:first").children(".selectName").text();
		var lastTldName = select.children(".selectList").children(".selectListOption:last").children(".selectName").text();
		var it = 0;
			
		select.addClass("selectOnScroll");
		if(select.children(".selectList").children(".selectListDown").hasClass("hoverObjHovered"))
			setTimeout("g8_share.runSelectStepDown(\"" + selectID + "\",\"" + firstTldName + "\",\"" + lastTldName + "\"," + it + ")", 0);
		else if(select.children(".selectList").children(".selectListUp").hasClass("hoverObjHovered"))
			setTimeout("g8_share.runSelectStepUp(\"" + selectID + "\",\"" + firstTldName + "\",\"" + lastTldName + "\"," + it + ")", 0);
	},
	runSelectStepDown: function(selectID, firstTldName, lastTldName, it)
	{
		if($("#" + selectID).children(".selectList").is("div"))
			var select = $("#" + selectID);
		else
			var select = $("#" + selectID).children("div").eq(2);
		
		if(!$("#" + selectID).hasClass("hoverObjSelected"))
		{
			select.removeClass("selectOnScroll");
			return;
		}
		
		var count = select.children(".selectList").children(".selectListOption").length;
		var firstVisInContainer = select.children(".selectList").children(".selectListOptionDataContainer").children("div").children("div:contains(" + firstTldName + ")").parent();
		var lastVisInContainer = select.children(".selectList").children(".selectListOptionDataContainer").children("div").children("div:contains(" + lastTldName + ")").parent();
		
		var temp = select.children(".selectList").children(".selectListOption:first");
		while(temp.next(".selectListOption").is(".selectListOption"))
		{
			temp.children(".selectName").text(temp.next().children(".selectName").text());
			temp.children(".selectValue").text(temp.next().children(".selectValue").text());
			temp = temp.next();
		}
		temp.children(".selectName").text(lastVisInContainer.next().children().eq(0).text());
		temp.children(".selectValue").text(lastVisInContainer.next().children().eq(1).text());
		
		firstTldName = firstVisInContainer.next().children().eq(0).text();
		lastTldName = lastVisInContainer.next().children().eq(0).text();
		it++;
		
		if(select.children(".selectList").children(".selectListUp").children(".hoverUnavailable:visible").is("img"))
			select.children(".selectList").children(".selectListUp").unbind("click", g8_share.selectListUpDownClickStop).bind("click", g8_share.selectListUpDownClick).children(".hoverUnavailable").stop().fadeTo(100, 0.0).hide();
		
		$(".selectSelected").trigger("mouseenter");
		
		if(!lastVisInContainer.next().next().is("div"))
		{
			select.children(".selectList").children(".selectListDown").unbind("click", g8_share.selectListUpDownClick).bind("click", g8_share.selectListUpDownClickStop).children(".hoverUnavailable").show().fadeTo(300, 1.0);
			select.removeClass("selectOnScroll");
			return;
		}
		
		if(it < count)
			setTimeout("g8_share.runSelectStepDown(\"" + selectID + "\",\"" + firstTldName + "\",\"" + lastTldName + "\"," + it + ")", 10);
		else
			select.removeClass("selectOnScroll");
	},
	runSelectStepUp: function(selectID, firstTldName, lastTldName, it)
	{
		if($("#" + selectID).children(".selectList").is("div"))
			var select = $("#" + selectID);
		else
			var select = $("#" + selectID).children("div").eq(2);
		
		if(!$("#" + selectID).hasClass("hoverObjSelected"))
		{
			select.removeClass("selectOnScroll");
			return;
		}
		
		var count = select.children(".selectList").children(".selectListOption").length;
		var firstVisInContainer = select.children(".selectList").children(".selectListOptionDataContainer").children("div").children("div:contains(" + firstTldName + ")").parent();
		var lastVisInContainer = select.children(".selectList").children(".selectListOptionDataContainer").children("div").children("div:contains(" + lastTldName + ")").parent();
		
		temp = select.children(".selectList").children(".selectListOption:last");
		while(temp.prev(".selectListOption").is(".selectListOption"))
		{
			temp.children(".selectName").text(temp.prev().children(".selectName").text());
			temp.children(".selectValue").text(temp.prev().children(".selectValue").text());
			temp = temp.prev();
		}
		temp.children(".selectName").text(firstVisInContainer.prev().children().eq(0).text());
		temp.children(".selectValue").text(firstVisInContainer.prev().children().eq(1).text());
		
		firstTldName = firstVisInContainer.prev().children().eq(0).text();
		lastTldName = lastVisInContainer.prev().children().eq(0).text();
		it++;
		
		if(select.children(".selectList").children(".selectListDown").children(".hoverUnavailable:visible").is("img"))
			select.children(".selectList").children(".selectListDown").unbind("click", g8_share.selectListUpDownClickStop).bind("click", g8_share.selectListUpDownClick).children(".hoverUnavailable").stop().fadeTo(100, 0.0).hide();
		
		$(".selectSelected").trigger("mouseenter");
		
		if(!firstVisInContainer.prev().prev().is("div"))
		{
			select.children(".selectList").children(".selectListUp").unbind("click", g8_share.selectListUpDownClick).bind("click", g8_share.selectListUpDownClickStop).children(".hoverUnavailable").show().fadeTo(300, 1.0);
			select.removeClass("selectOnScroll");
			return;
		}
		
		if(it < count)
			setTimeout("g8_share.runSelectStepUp(\"" + selectID + "\",\"" + firstTldName + "\",\"" + lastTldName + "\"," + it + ")", 10);
		else
			select.removeClass("selectOnScroll");
	},
	findAndMarkInOptionsInProcess : false,
	findAndMarkInOptionsSearchString : "",
	findAndMarkInOptions: function(selectID)
	{
		if($("#" + selectID).children(".selectList").is("div"))
			var select = $("#" + selectID);
		else
			var select = $("#" + selectID).children("div").eq(2);
		
		var c_selectedNamePart = g8_share.findAndMarkInOptionsSearchString.toLowerCase();
		var p_selectOptions = select.children(".selectList").children(".selectListOptionDataContainer").children("div");
		
		var i_temp = -1;
		var i_foundInOptions = -1;
		$.each(p_selectOptions,
			function(i_index, c_valueOfElement)
			{
				i_temp = $(this).children("div").eq(0).text().toLowerCase().search("^" + c_selectedNamePart + ".*");
				if(i_temp != -1)
				{
					i_foundInOptions = i_index;
					return false;
				}
				i_temp = $(this).children("div").eq(1).text().toLowerCase().search("^" + c_selectedNamePart + ".*");
				if(i_temp != -1)
				{
					i_foundInOptions = i_index;
					return false;
				}
				return true;
			}
		);
		
		if(i_foundInOptions == -1)
		{
			g8_share.findAndMarkInOptionsInProcess = false;
			g8_share.findAndMarkInOptionsSearchString = "";
			return;
		}
		
		var i_visCount = select.children(".selectList").children(".selectListOption").length;
		var i_optionsCount = p_selectOptions.length;
		var i_foundInVis = 0;
		
		while((i_foundInOptions + i_visCount - i_foundInVis) > (i_optionsCount))
			i_foundInVis++;
		
		var i_startInOptions = i_foundInOptions - i_foundInVis;
		var i_endInOptions = i_startInOptions + i_visCount;
		for(i_temp=0; i_temp<i_visCount; i_temp++)
		{
			select.children(".selectList").children(".selectListOption").eq(i_temp).children("div").eq(0).text(p_selectOptions.eq(i_startInOptions + i_temp).children("div").eq(0).text());
			select.children(".selectList").children(".selectListOption").eq(i_temp).children("div").eq(1).text(p_selectOptions.eq(i_startInOptions + i_temp).children("div").eq(1).text());
		}
		
		select.children(".selectList").children(".selectListOption").eq(i_foundInVis).trigger("mouseenter");
		
		if(i_startInOptions == 0)
			select.children(".selectList").children(".selectListUp").unbind("click", g8_share.selectListUpDownClick).bind("click", g8_share.selectListUpDownClickStop).children(".hoverUnavailable").show().fadeTo(300, 1.0);
		else if(select.children(".selectList").children(".selectListUp").children(".hoverUnavailable:visible").is("img"))
			select.children(".selectList").children(".selectListUp").unbind("click", g8_share.selectListUpDownClickStop).bind("click", g8_share.selectListUpDownClick).children(".hoverUnavailable").stop().fadeTo(100, 0.0).hide();
		
		if(i_endInOptions == i_optionsCount)
			select.children(".selectList").children(".selectListDown").unbind("click", g8_share.selectListUpDownClick).bind("click", g8_share.selectListUpDownClickStop).children(".hoverUnavailable").show().fadeTo(300, 1.0);
		else if(select.children(".selectList").children(".selectListDown").children(".hoverUnavailable:visible").is("img"))
			select.children(".selectList").children(".selectListDown").unbind("click", g8_share.selectListUpDownClickStop).bind("click", g8_share.selectListUpDownClick).children(".hoverUnavailable").stop().fadeTo(100, 0.0).hide();
		
		g8_share.findAndMarkInOptionsInProcess = false;
		g8_share.findAndMarkInOptionsSearchString = "";
	},
	selectClick: function(e)
	{
		var p_this = $(this);
		
		var selectID = p_this.attr("id");
		if(p_this.children(".selectList").is("div"))
			var select = p_this;
		else
			var select = p_this.children("div").eq(2);
		
		if(p_this.hasClass("hoverObjSelected"))
		{
			var count = select.children(".selectList").children(".selectListOption").length;
			var c_selectedName = select.children(".selectedName").val();
			
			select.children(".selectList").children(".selectListUp").unbind("click", g8_share.selectListUpDownClickStop).unbind("click", g8_share.selectListUpDownClick).bind("click", g8_share.selectListUpDownClickStop).children(".hoverUnavailable").show().fadeTo(300, 1.0);
			if(count == select.children(".selectList").children(".selectListOptionDataContainer").children().length)
				select.children(".selectList").children(".selectListDown").unbind("click", g8_share.selectListUpDownClickStop).unbind("click", g8_share.selectListUpDownClick).bind("click", g8_share.selectListUpDownClickStop).children(".hoverUnavailable").show().fadeTo(300, 1.0);
			else
				select.children(".selectList").children(".selectListDown").unbind("click", g8_share.selectListUpDownClickStop).unbind("click", g8_share.selectListUpDownClick).bind("click", g8_share.selectListUpDownClick).children(".hoverUnavailable").stop().fadeTo(100, 0.0).hide();
			
			for(var i=0; i<count; i++)
			{
				select.children(".selectList").children(".selectListOption").eq(i).children(".selectName").text(select.children(".selectList").children(".selectListOptionDataContainer").children().eq(i).children().eq(0).text());
				select.children(".selectList").children(".selectListOption").eq(i).children(".selectValue").text(select.children(".selectList").children(".selectListOptionDataContainer").children().eq(i).children().eq(1).text());
			}
			select.children(".selectList").children(".selectSelected").removeClass("selectSelected");
			select.css("cursor", "pointer").children().css("cursor", "pointer");
			select.children(".selectList").show().fadeTo(300, 1.0);
			
			g8_share.findAndMarkInOptionsSearchString = select.children(".selectedName").val();
			g8_share.findAndMarkInOptions(selectID);
		}
		else
		{
			select.children(".selectList").stop().fadeTo(100, 0.0).hide();
			select.css("cursor", "auto").children().css("cursor", "auto");
			select.children(".selectSubmit").trigger("click");
		}
		
		e.stopPropagation();
	},
	selectListOptionMouseEnter: function(e)
	{
		var p_this = $(this);
		
		$(".selectSelected").css("cursor", "auto").removeClass("selectSelected");
		p_this.addClass("selectSelected").css("cursor", "pointer");
		p_this.parent().parent().children(".selectedName").val(p_this.children().eq(0).text());
		p_this.parent().parent().children(".selectedValue").val(p_this.children().eq(1).text());
	},
	selectListOptionClick: function(e)
	{
		e.stopPropagation();
		$("body").trigger("click");
	},
	selectKeyDown: function(e)
	{
		var p_this = $(this);
		
		var selectID = p_this.attr("id");
		if(p_this.children(".selectList").is("div"))
			var select = p_this;
		else
			var select = p_this.children("div").eq(2);
		
		if(e.keyCode == 13)
		{
			if(select.hasClass("hoverObjSelected") || select.parent().hasClass("hoverObjSelected"))
				select.children(".selectList").children(".selectSelected").trigger("click");
		}
		else if(e.keyCode == 38)
		{
			if(select.children(".selectList").children(".selectSelected").length == 0)
				select.children(".selectList").children(".selectListOption:first").trigger("mouseenter");
			else if(select.children(".selectList").children(".selectSelected").prev(".selectListOption").is("div"))
				select.children(".selectList").children(".selectSelected").prev(".selectListOption").trigger("mouseenter");
			else
			{
				var count = select.children(".selectList").children(".selectListOption").length;
				var firstTldName = select.children(".selectList").children(".selectListOption:first").children(".selectName").text();
				var lastTldName = select.children(".selectList").children(".selectListOption:last").children(".selectName").text();
				
				if(select.children(".selectList").children(".selectListOptionDataContainer").children("div:first").children("div:contains(" + firstTldName + ")").length == 0)
					g8_share.runSelectStepUp(selectID, firstTldName, lastTldName, count);
			}
		}
		else if(e.keyCode == 40)
		{
			if(select.children(".selectList").children(".selectSelected").length == 0)
				select.children(".selectList").children(".selectListOption:first").trigger("mouseenter");
			else if(select.children(".selectList").children(".selectSelected").next(".selectListOption").is("div"))
				select.children(".selectList").children(".selectSelected").next(".selectListOption").trigger("mouseenter");
			else
			{
				var count = select.children(".selectList").children(".selectListOption").length;
				var firstTldName = select.children(".selectList").children(".selectListOption:first").children(".selectName").text();
				var lastTldName = select.children(".selectList").children(".selectListOption:last").children(".selectName").text();
				
				if(select.children(".selectList").children(".selectListOptionDataContainer").children("div:last").children("div:contains(" + lastTldName + ")").length == 0)
					g8_share.runSelectStepDown(selectID, firstTldName, lastTldName, count);
			}
		}
		else if((e.keyCode >= 48 && e.keyCode <= 57) || (e.keyCode >= 65 && e.keyCode <= 90) || (e.keyCode >= 96 && e.keyCode <= 105))
		{
			if(e.keyCode >= 48 && e.keyCode <= 57)
				var c_char = (e.keyCode - 48).toString();
			else if(e.keyCode >= 96 && e.keyCode <= 105)
				var c_char = (e.keyCode - 96).toString();
			else
				var c_char = String.fromCharCode(e.keyCode);
			g8_share.findAndMarkInOptionsSearchString += c_char;
			
			if(!g8_share.findAndMarkInOptionsInProcess)
			{
				g8_share.findAndMarkInOptionsInProcess = true;
				setTimeout("g8_share.findAndMarkInOptions(\"" + selectID + "\")", 500);
			}
		}
		
		e.stopPropagation();
	},
	bindSelect: function()
	{
		var p_select = $(".select");
		var p_selectListOption = $(".selectListOption");
		
		p_select.unbind("click", g8_share.selectClick);
		p_select.bind("click", g8_share.selectClick);
		p_select.unbind("keydown", g8_share.selectKeyDown);
		p_select.bind("keydown", g8_share.selectKeyDown);
		
		p_selectListOption.unbind("mouseenter", g8_share.selectListOptionMouseEnter);
		p_selectListOption.bind("mouseenter", g8_share.selectListOptionMouseEnter);
		p_selectListOption.unbind("click", g8_share.selectListOptionClick);
		p_selectListOption.bind("click", g8_share.selectListOptionClick);
		
		p_select.children(".selectList").hide();
		p_select.children().children(".selectList").hide();
	},

	naviObjClick: function(e)
	{
		var p_this = $(this);
		
		if(p_this.hasClass("hoverObjHovered"))
		{
			var p_hoverObjSelectedNaviObj = $(".hoverObjSelected.naviObj");
			
			p_hoverObjSelectedNaviObj
				.css("cursor", "pointer")
				.children(".hoverLo").show().fadeTo(300, 1.0);
			p_hoverObjSelectedNaviObj.children(".hoverAct").stop().fadeTo(100, 0.0).hide();
			p_hoverObjSelectedNaviObj.removeClass("hoverObjSelected").trigger("mouseleave");
			
			p_this
				.addClass("hoverObjSelected")
				.css("cursor", "pointer")
				.children(".hoverAct")
					.show().fadeTo(300, 1.0);
			p_this.children(".hoverHi,.hoverLo").stop().fadeTo(100, 0.0).hide();
		}
	},
	bindNaviObj: function()
	{
		var p_naviObj = $(".naviObj");
		//p_naviObj.unbind("click", g8_share.naviObjClick);
		p_naviObj.bind("click", g8_share.naviObjClick);
	},
	
	radioClick: function(e)
	{
		var p_this = $(this);
		
		if(p_this.hasClass("hoverObjSelected"))
		{
			e.stopPropagation();
			return;
		}
		
		var lastRadio = p_this.parent(".radioGroup").children(".radio.hoverObjSelected");
		lastRadio.children(".hoverImg").children(".hoverAct").stop().fadeTo(100, 0.0).hide();
		lastRadio.removeClass("hoverObjSelected").removeClass("hoverObjHovered");
		lastRadio.children(".radioVisAct").addClass("visHidden");
		
		p_this
			//.trigger("mouseleave")
			.addClass("hoverObjSelected")
			.addClass("hoverObjHovered")
			.children(".hoverImg")
				.children(".hoverAct")
					.show().fadeTo(300, 1.0);
		p_this.children(".radioVisAct").removeClass("visHidden");
		p_this.parent(".radioGroup").children(".radioGroupSelected").val(p_this.children(".radioValue").val());
		
		lastRadio.trigger("mouseenter").trigger("mouseleave");
	},
	bindRadio: function()
	{
		var p_radio = $(".radio");
		//p_radio.unbind("click", g8_share.radioClick);
		p_radio.bind("click", g8_share.radioClick);
	},
	
	checkClick: function(e)
	{
		var p_this = $(this);
		
		if(!p_this.hasClass("hoverObjHovered"))
		{
			e.stopPropagation();
			return;
		}
		
		if(p_this.hasClass("inputOnFault"))
		{
			p_this.children(".inputFaultTip").stop().fadeTo(100, 0.0).hide();
			p_this.children(".hoverImg").children(".hoverFault").stop().fadeTo(100, 0.0).hide();
			p_this.removeClass("inputOnFault");
		}
		
		if(p_this.hasClass("checkSelected"))
		{
			p_this.children(".hoverImg").children(".hoverAct").stop().fadeTo(100, 0.0).hide();
			p_this.removeClass("checkSelected");
			p_this.children("input").val("0");
		}
		else
		{
			p_this.children(".hoverImg").children(".hoverAct").show().fadeTo(300, 1.0);
			p_this.addClass("checkSelected");
			p_this.children("input").val("1");
		}
		e.stopPropagation();
	},
	bindCheck: function()
	{
		var p_check = $(".check");
		//p_check.unbind("click", g8_share.checkClick);
		p_check.bind("click", g8_share.checkClick);
	},
	
	collapseBlockClick: function(e)
	{
		var p_temp = $(this).parent();
		
		if(p_temp.children(".collapseBlockContent:visible").length == 0)
		{
			p_temp.parent().children(".collapseBlock").children(".collapseBlockContent").slideUp(100);
			p_temp.children(".collapseBlockContent").slideDown(300);
		}
		else
		{
			p_temp.children(".collapseBlockContent").hide();
		}
		
		e.stopPropagation();
	},
	bindCollapseBlock: function()
	{
		var p_collapseBlock = $(".collapseBlock");
		//p_collapseBlock.children(".collapseBlockHead").unbind("click", g8_share.collapseBlockClick);
		p_collapseBlock.children(".collapseBlockHead").bind("click", g8_share.collapseBlockClick);
		
		p_collapseBlock.children(".collapseBlockContent").hide();
	},
	
	validateInput: function(inputObj, c_type, c_value, b_zeroLength)
	{
		var b_ok = true;
		var c_fault = "";
		
		if(!b_zeroLength && c_value.length == 0)
		{
			if(c_type == "whoisDomain")
				c_fault = g8_text.fev_whoisDomainMiss;
			else if(c_type == "loginName")
				c_fault = g8_text.fev_loginNameMiss;
			else if(c_type == "loginPass")
				c_fault = g8_text.fev_loginPassMiss;
			else if(c_type == "custTitle")
				c_fault = g8_text.fev_custTitleMiss;
			else if(c_type == "custPrename")
				c_fault = g8_text.fev_custPrenameMiss;
			else if(c_type == "custName")
				c_fault = g8_text.fev_custNameMiss;
			else if(c_type == "custBirthdateDay")
				c_fault = g8_text.fev_custBirthdateDayMiss;
			else if(c_type == "custBirthdateMonth")
				c_fault = g8_text.fev_custBirthdateMonthMiss;
			else if(c_type == "custBirthdateYear")
				c_fault = g8_text.fev_custBirthdateYearMiss;
			else if(c_type == "custStreet")
				c_fault = g8_text.fev_custStreetMiss;
			else if(c_type == "custNumber")
				c_fault = g8_text.fev_custNumberMiss;
			else if(c_type == "custPostal")
				c_fault = g8_text.fev_custPostalMiss;
			else if(c_type == "custCity")
				c_fault = g8_text.fev_custCityMiss;
			else if(c_type == "custCountry")
				c_fault = g8_text.fev_custCountryMiss;
			else if(c_type == "custFonCountry")
				c_fault = g8_text.fev_custFonCountryMiss;
			else if(c_type == "custFonCity")
				c_fault = g8_text.fev_custFonCityMiss;
			else if(c_type == "custFon")
				c_fault = g8_text.fev_custFonMiss;
			else if(c_type == "custMail")
				c_fault = g8_text.fev_custMailMiss;
			else if(c_type == "passId")
				c_fault = g8_text.fev_passIdMiss;
			else if(c_type == "passCode")
				c_fault = g8_text.fev_passCodeMiss;
			else if(c_type == "custPay")
				c_fault = g8_text.fev_custPayMiss;
			else if(c_type == "custAgb")
				c_fault = g8_text.fev_custAgbMiss;
			b_ok = false;
		}
		else if(!b_zeroLength && c_value.length > 0)
		{
			//TODO loginName prüfen & loginPass prüfen & whoisDomain prüfen
			if(c_type == "whoisDomain" && c_value.search(/[.äÄöÖüÜß]/) >= 0)
			{
				c_fault = g8_text.fev_notValidDomain;
				b_ok = false;
			}
			else if(c_type == "custTitle" && c_value != "M" && c_value != "F")
			{
				c_fault = g8_text.fev_notValidEnum;
				b_ok = false;
			}
			else if((c_type == "custPrename" || c_type == "custName") && c_value.search(/[0-9]/) >= 0)
			{
				c_fault = g8_text.fev_restrictedChar;
				b_ok = false;
			}
			else if(c_type == "custBirthdateDay" && (c_value.search(/[^0-9]/) != -1 || c_value < 1 || c_value > 31))
			{
				c_fault = g8_text.fev_notValidEnum;
				b_ok = false;
			}
			else if(c_type == "custBirthdateMonth" && (c_value.search(/[^0-9]/) != -1 || c_value < 1 || c_value > 12))
			{
				c_fault = g8_text.fev_notValidEnum;
				b_ok = false;
			}
			else if(c_type == "custBirthdateYear" && (c_value.search(/[^0-9]/) != -1 || c_value < 1940 || c_value > 9999))
			{
				c_fault = g8_text.fev_notValidEnum;
				b_ok = false;
			}
			else if(c_type == "custStreet" && c_value.search(/[0-9]/) >= 0)
			{
				c_fault = g8_text.fev_restrictedChar;
				b_ok = false;
			}
			else if(c_type == "custPostal" && c_value.search(/[^0-9]/) != -1)
			{
				c_fault = g8_text.fev_notValidInput;
				b_ok = false;
			}
			else if(c_type == "custCountry")
			{
				var b_found = false;
				for(var c_countryName in g8_text.add_country_)
					if(g8_text.add_country_[c_countryName] == c_value)
					{
						b_found = true;
						break;
					}
				if(!b_found)
				{
					c_fault = g8_text.fev_notValidEnum;
					b_ok = false;
				}
			}
			else if((c_type == "custFonCity" || c_type == "custFon") && c_value.search(/[^0-9]/) != -1)
			{
				c_fault = g8_text.fev_notValidInput;
				b_ok = false;
			}
			else if(c_type == "custMail" && !c_value.match(/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/i))
			{
				c_fault = g8_text.fev_notValidInput;
				b_ok = false;
			}
			else if(c_type == "passId" && (c_value.search(/[^0-9]/) != -1 || c_value < 1))
			{
				c_fault = g8_text.fev_notValidInput;
				b_ok = false;
			}
			else if(c_type == "passCode" && c_value.search(/[^A-Za-z0-9]/) != -1)
			{
				c_fault = g8_text.fev_notValidInput;
				b_ok = false;
			}
			else if(c_type == "custPay" && c_value != "paypal" && c_value != "clibuy")
			{
				c_fault = g8_text.fev_notValidEnum;
				b_ok = false;
			}
			else if(c_type == "custAgb" && c_value != "1")
			{
				c_fault = g8_text.fev_custAgbMiss;
				b_ok = false;
			}
		}
		
		if(!b_ok)
			g8_share.setFault(inputObj, c_fault);
		return b_ok;
	},
	setFault: function(obj, c_msg)
	{
		obj.addClass("inputOnFault");
		c_msg = c_msg.replace(/ /g, "&nbsp;");
		obj.children(".inputFaultTip")
			.empty()
			.append("<div class=\"inputFaultTipLeft\">" + c_msg + "</div>")
			.append("<div class=\"inputFaultTipRight\"></div>");
	},
	bindInputFault: function()
	{
		var p_input = $(".input");
		p_input.children(".inputFaultTip").stop().fadeTo(100, 0.0).hide();
		
		var p_this;
		var p_hoverImg;
		var p_hoverImgOnFault;
		$.each(p_input.filter(".inputOnFault"),
			function(idx, val)
			{
				p_this = $(val);
				p_this.children(".inputFaultTip").fadeTo(300, 1.0).show();
				
				p_hoverImg = p_this.hasClass("hoverImg") ? p_this : p_this.children(".hoverImg");
				p_hoverImg.children(".hoverFault").stop().fadeTo(100, 0.0).hide();
				
				p_hoverImgOnFault = p_this.filter(".inputOnFault").hasClass("hoverImg") ? p_this.filter(".inputOnFault") : p_this.filter(".inputOnFault").children(".hoverImg");
				p_hoverImg.children(".hoverFault").show().fadeTo(300, 1.0);
			}
		);
	},

	setTitles: function()
	{
		$(".ctrlTitleHome").attr("alt", g8_text.tt_contentHome).attr("title", g8_text.tt_contentHome);
		$(".ctrlTitlePersonal").attr("alt", g8_text.tt_linkPersonal).attr("title", g8_text.tt_linkPersonal);
		$(".ctrlTitleInfo").attr("alt", g8_text.tt_contentInfo).attr("title", g8_text.tt_contentInfo);
		$(".ctrlTitleOrder").attr("alt", g8_text.tt_linkOrder).attr("title", g8_text.tt_linkOrder);
		$(".ctrlTitleWorld").attr("alt", g8_text.tt_linkWorld).attr("title", g8_text.tt_linkWorld);
		$(".ctrlTitleFaq").attr("alt", g8_text.tt_contentFaq).attr("title", g8_text.tt_contentFaq);
		$(".ctrlTitleSystem").attr("alt", g8_text.tt_contentSystem).attr("title", g8_text.tt_contentSystem);
		$(".ctrlTitleService").attr("alt", g8_text.tt_contentService).attr("title", g8_text.tt_contentService);
		$(".ctrlTitleData").attr("alt", g8_text.tt_contentData).attr("title", g8_text.tt_contentData);
		$(".ctrlTitleAgb").attr("alt", g8_text.tt_contentAgb).attr("title", g8_text.tt_contentAgb);
		$(".ctrlTitleImprint").attr("alt", g8_text.tt_contentImprint).attr("title", g8_text.tt_contentImprint);
		$(".ctrlTitlePasswordChange").attr("alt", g8_text.tt_linkPasswordChange).attr("title", g8_text.tt_linkPasswordChange);
		$(".ctrlTitlePasswordBack").attr("alt", g8_text.tt_linkPasswordBack).attr("title", g8_text.tt_linkPasswordBack);
		$(".ctrlTitlePasswordChangeRequest").attr("alt", g8_text.tt_linkPasswordChangeRequest).attr("title", g8_text.tt_linkPasswordChangeRequest);
		$(".ctrlTitleCenterLogin").attr("alt", g8_text.tt_linkCenterLogin).attr("title", g8_text.tt_linkCenterLogin);
		$(".ctrlTitleCustomer").attr("alt", g8_text.tt_contentCustomer).attr("title", g8_text.tt_contentCustomer);
		$(".ctrlTitleMail").attr("alt", g8_text.tt_contentMail).attr("title", g8_text.tt_contentMail);
		$(".ctrlTitlePassword").attr("alt", g8_text.tt_contentPassword).attr("title", g8_text.tt_contentPassword);
		$(".ctrlTitleContract").attr("alt", g8_text.tt_contentContract).attr("title", g8_text.tt_contentContract);
		$(".ctrlTitleCenterCustomer").attr("alt", g8_text.tt_linkCenterCustomer).attr("title", g8_text.tt_linkCenterCustomer);
		$(".ctrlTitleCenterMail").attr("alt", g8_text.tt_linkCenterMail).attr("title", g8_text.tt_linkCenterMail);
		$(".ctrlTitleCenterNotificationMail").attr("alt", g8_text.tt_linkCenterNotificationMail).attr("title", g8_text.tt_linkCenterNotificationMail);
		$(".ctrlTitleCenterPassword").attr("alt", g8_text.tt_linkCenterPassword).attr("title", g8_text.tt_linkCenterPassword);
		$(".ctrlTitleCenterLogout").attr("alt", g8_text.tt_linkCenterLogout).attr("title", g8_text.tt_linkCenterLogout);
		$(".ctrlTitleWhois").attr("alt", g8_text.tt_linkWhois).attr("title", g8_text.tt_linkWhois);
		$(".ctrlCustomerPayPaypalTitle").attr("alt", g8_text.tt_customerPayPaypal).attr("title", g8_text.tt_customerPayPaypal);
		$(".ctrlCustomerPayClibuyTitle").attr("alt", g8_text.tt_customerPayClibuy).attr("title", g8_text.tt_customerPayClibuy);
		$(".ctrlHomeOrderCreateCustomerSubmitTitle").attr("alt", g8_text.tt_customerCreate).attr("title", g8_text.tt_customerCreate);
		$(".ctrlCustomerAgbConfirmTitle").attr("alt", g8_text.tt_customerAgbConfirm).attr("title", g8_text.tt_customerAgbConfirm);
		$(".ctrlTitleMailtoSupport").attr("alt", g8_text.tt_mailtoSupport).attr("title", g8_text.tt_mailtoSupport);
		$(".ctrlTitleGoToPay").attr("alt", g8_text.tt_customerGoToPay).attr("title", g8_text.tt_customerGoToPay);
		$(".ctrlTitleCustomerPayInfo").attr("alt", g8_text.tt_customerPayInfo).attr("title", g8_text.tt_customerPayInfo);
		$(".ctrlTitleCustomerPayPaypalInfo").attr("alt", g8_text.tt_customerPayPaypalInfo).attr("title", g8_text.tt_customerPayPaypalInfo);
		$(".ctrlTitleCustomerPayClibuyInfo").attr("alt", g8_text.tt_customerPayClibuyInfo).attr("title", g8_text.tt_customerPayClibuyInfo);
		$(".ctrlTitlePayPaypalInfo").attr("alt", g8_text.tt_payPaypalInfo).attr("title", g8_text.tt_payPaypalInfo);
		$(".ctrlTitlePayClibuyInfo").attr("alt", g8_text.tt_payClibuyInfo).attr("title", g8_text.tt_payClibuyInfo);
		$(".ctrlTitleOwnProfileLink").attr("alt", g8_text.tt_ownProfileLink).attr("title", g8_text.tt_ownProfileLink);
		$(".ctrlHomeOrderProcessBackTitle").attr("title", g8_text.tt_orderBack).attr("alt", g8_text.tt_orderBack);
		$(".ctrlHomeOrderProcessNextTitle").attr("title", g8_text.tt_orderNext).attr("alt", g8_text.tt_orderNext);
		$(".ctrlTitleHomeOrderClose").attr("title", g8_text.tt_orderClose).attr("alt", g8_text.tt_orderClose);
		$(".ctrlTitleFabianberg").attr("title", g8_text.tt_homeFabianberg).attr("alt", g8_text.tt_homeFabianberg);
		$(".ctrlTitleHomeVideo").attr("title", g8_text.tt_homeVideo).attr("alt", g8_text.tt_homeVideo);
		$(".ctrlHomeOrderStepLinkTitle").attr("title", g8_text.tt_orderEditStep).attr("alt", g8_text.tt_orderEditStep);
		$(".ctrlIconTooltipCloseTitle").attr("title", g8_text.tt_iconTooltipClose).attr("alt", g8_text.tt_iconTooltipClose);
		$(".ctrlActionOverlayCloseTitle").attr("title", g8_text.tt_actionOverlayClose).attr("alt", g8_text.tt_actionOverlayClose);
		$(".ctrlStartSupportTitle").attr("title", g8_text.tt_startSupport).attr("alt", g8_text.tt_startSupport);
		$(".ctrlStartPaymentTitle").attr("title", g8_text.tt_restartPayment).attr("alt", g8_text.tt_restartPayment);
		$(".ctrlPayPosPrintViewTitle").attr("title", g8_text.tt_payPosPrintView).attr("alt", g8_text.tt_payPosPrintView);
		$(".ctrlStartSupportSubmitTitle").attr("title", g8_text.tt_startSupportSubmit).attr("alt", g8_text.tt_startSupportSubmit);
		$(".ctrlStartSupportInfoTitle").attr("title", g8_text.tt_startSupportInfo).attr("alt", g8_text.tt_startSupportInfo);
		$(".ctrlPayPosPrintTitle").attr("title", g8_text.tt_payPosPrint).attr("alt", g8_text.tt_payPosPrint);
		$(".ctrlHomeGotoPaypalTitle").attr("title", g8_text.tt_homeGotoPaypal).attr("alt", g8_text.tt_homeGotoPaypal);
		$(".ctrlHomeGotoClibuyTitle").attr("title", g8_text.tt_homeGotoClibuy).attr("alt", g8_text.tt_homeGotoClibuy);
		$(".ctrlLangDeTitle").attr("title", g8_text.tt_langDeTitle).attr("alt", g8_text.tt_langDeTitle);
		$(".ctrlLangEnTitle").attr("title", g8_text.tt_langEnTitle).attr("alt", g8_text.tt_langEnTitle);
		$(".ctrlRestartWithNewDomainTitle").attr("title", g8_text.tt_restartDnsNew).attr("alt", g8_text.tt_restartDnsNew);
		$(".ctrlRestartWithOldDomainTitle").attr("title", g8_text.tt_restartDnsOld).attr("alt", g8_text.tt_restartDnsOld);
		$(".ctrlCenterRestartWhoisProceedTitle").attr("title", g8_text.tt_restartDnsOld).attr("alt", g8_text.tt_restartDnsOld);
	},

	ctrlLinkPersonalClick: function(e)
	{
		var center = open("https://center.eightpage.com/?lang=" + c_lang);
		center.focus();
	},
	ctrlLinkWorldClick: function(e)
	{
		var world = open("http://www.eightpageworld.com/?lang=" + c_lang);
		world.focus();
	},
	ctrlLinkHomeClick: function(e)
	{
		var home = open("http://portal.eightpage.com/?lang=" + c_lang);
		home.focus();
	},
	ctrlLinkServiceClick: function(e)
	{
		var service = open("http://portal.eightpage.com/?content=service&lang=" + c_lang);
		service.focus();
	},
	ctrlLinkFaqClick: function(e)
	{
		var faq = open("http://portal.eightpage.com/?content=faq&lang=" + c_lang);
		faq.focus();
	},
	ctrlLinkSystemClick: function(e)
	{
		var faq = open("http://portal.eightpage.com/?content=system&lang=" + c_lang);
		faq.focus();
	},
	ctrlLinkDataClick: function(e)
	{
		var faq = open("http://portal.eightpage.com/?content=data&lang=" + c_lang);
		faq.focus();
	},
	ctrlLinkAgbClick: function(e)
	{
		var agb = open("http://portal.eightpage.com/?content=agb&lang=" + c_lang);
		agb.focus();
	},
	ctrlLinkImprintClick: function(e)
	{
		var imprint = open("http://portal.eightpage.com/?content=imprint&lang=" + c_lang);
		imprint.focus();
	},
	ctrlMailtoSupportClick: function(e)
	{
		alert("TEST");
	},
	ctrlCustomerPayInfoClick: function(e)
	{
		var payInfo = open("http://portal.eightpage.com/?content=faq&lang=" + c_lang + "#payment2");
		payInfo.focus();
	},
	ctrlCustomerPayPaypalInfoClick: function(e)
	{
		var payInfo = open("http://portal.eightpage.com/?content=faq&lang=" + c_lang + "#payment4");
		payInfo.focus();
	},
	ctrlCustomerPayClibuyInfoClick: function(e)
	{
		var payInfo = open("http://portal.eightpage.com/?content=faq&lang=" + c_lang + "#payment5");
		payInfo.focus();
	},
	ctrlHomeFabianbergClick: function(e)
	{
		var fabianberg = open("http://www.fabianberg.de");
		fabianberg.focus();
	},
	ctrlHomeGotoPaypalClick: function(e)
	{
		var paypal = open("https://www.paypal-deutschland.de/haendler/paypal-fuer-haendler/referenzen.html");
		paypal.focus();
	},
	ctrlHomeGotoClibuyClick: function(e)
	{
		var clibuy = open("http://clickandbuy.com/DE/de/merchantportal/references.html");
		clibuy.focus();
	},
	ctrlLangDeClick: function(e)
	{
		location.replace("?lang=de");
	},
	ctrlLangEnClick: function(e)
	{
		location.replace("?lang=en");
	},
	bindLinkClicks: function()
	{
		//$(".ctrlLinkPersonal").unbind("click", g8_share.ctrlLinkPersonalClick);
		$(".ctrlLinkPersonal").bind("click", g8_share.ctrlLinkPersonalClick);
		
		//$(".ctrlLinkWorld").unbind("click", g8_share.ctrlLinkWorldClick);
		$(".ctrlLinkWorld").bind("click", g8_share.ctrlLinkWorldClick);
		
		//$(".ctrlLinkHome").unbind("click", g8_share.ctrlLinkHomeClick);
		$(".ctrlLinkHome").bind("click", g8_share.ctrlLinkHomeClick);
		
		//$(".ctrlLinkFaq").unbind("click", g8_share.ctrlLinkFaqClick);
		$(".ctrlLinkFaq").bind("click", g8_share.ctrlLinkFaqClick);
		
		//$(".ctrlLinkService").unbind("click", g8_share.ctrlLinkServiceClick);
		$(".ctrlLinkService").bind("click", g8_share.ctrlLinkServiceClick);
		
		//$(".ctrlLinkSystem").unbind("click", g8_share.ctrlLinkSystemClick);
		$(".ctrlLinkSystem").bind("click", g8_share.ctrlLinkSystemClick);
		
		//$(".ctrlLinkData").unbind("click", g8_share.ctrlLinkDataClick);
		$(".ctrlLinkData").bind("click", g8_share.ctrlLinkDataClick);
		
		//$(".ctrlLinkAgb").unbind("click", g8_share.ctrlLinkAgbClick);
		$(".ctrlLinkAgb").bind("click", g8_share.ctrlLinkAgbClick);
		
		//$(".ctrlLinkImprint").unbind("click", g8_share.ctrlLinkImprintClick);
		$(".ctrlLinkImprint").bind("click", g8_share.ctrlLinkImprintClick);
		
		//$(".ctrlLinkInfo").unbind("click", g8_share.ctrlLinkHomeClick);
		$(".ctrlLinkInfo").bind("click", g8_share.ctrlLinkHomeClick);
		
		//$(".ctrlMailtoSupport").unbind("click", g8_share.ctrlMailtoSupportClick);
		$(".ctrlMailtoSupport").bind("click", g8_share.ctrlMailtoSupportClick);

		//$(".ctrlPayFaq").unbind("click", g8_share.ctrlCustomerPayInfoClick);
		$(".ctrlPayFaq").bind("click", g8_share.ctrlCustomerPayInfoClick);

		//$(".ctrlPaypalFaq").unbind("click", g8_share.ctrlCustomerPayPaypalInfoClick);
		$(".ctrlPaypalFaq").bind("click", g8_share.ctrlCustomerPayPaypalInfoClick);

		//$(".ctrlClibuyFaq").unbind("click", g8_share.ctrlCustomerPayClibuyInfoClick);
		$(".ctrlClibuyFaq").bind("click", g8_share.ctrlCustomerPayClibuyInfoClick);
		
		$(".ctrlHomeFabianberg").bind("click", g8_share.ctrlHomeFabianbergClick);
		
		$(".ctrlHomeGotoPaypal").bind("click", g8_share.ctrlHomeGotoPaypalClick);
		
		$(".ctrlHomeGotoClibuy").bind("click", g8_share.ctrlHomeGotoClibuyClick);
		
		$(".ctrlLangDe").bind("click", g8_share.ctrlLangDeClick);
		
		$(".ctrlLangEn").bind("click", g8_share.ctrlLangEnClick);
	},
	
	blackConfirm: function()
	{
		$(".BP_overlay").fadeTo(500, 0.0,
			function(e)
			{
				$(this).remove();
			}
		);
	},
	blackPopup: function(c_type, c_headline, c_text, c_confirmFunc, b_alertTimeout)
	{
		b_alertTimeout = b_alertTimeout == undefined ? true : (b_alertTimeout ? true : false);
		
		$("body").append
		(
			"<div class=\"BP_overlay posFix visHidden\">"
				+ "<div class=\"BP marginAuto posRel backTransparent\">"
					+ "<div class=\"BP_TOP\">"
						+ "<div class=\"BP_head bold fontNormal backTransparent\">" + c_headline + "</div>"
					+ "</div>"
					+ "<div class=\"BP_CONT\">"
						+ "<div class=\"BP_text fontSmall backTransparent\">" + c_text + "</div>"
					+ "</div>"
					+ "<div class=\"BP_BOT\"></div>"
				+ "</div>"
			+ "</div>"
		);
		
		if(c_type == "alert")
		{
			$(".BP_BOT").append
			(
				"<div class=\"hoverObj hoverImg BP_centerBtn w35h35 float backTransparent\">"
					+ "<img class=\"hoverLo\" src=\"/res/" + c_resActual + "themes/portal_center_share/img/icon_bp_ok_lo.png\" />"
					+ "<img class=\"hoverHi\" src=\"/res/" + c_resActual + "themes/portal_center_share/img/icon_bp_ok_hi.png\" />"
				+ "</div>"
				+ "<div class=\"floatClear h0\"></div>"
			);
			
			$(".BP_centerBtn").attr("title", g8_text.tt_bpAccept).attr("alt", g8_text.tt_bpAccept);
			
			$(".BP_centerBtn").bind("click", c_confirmFunc);
			if(b_alertTimeout)
				setTimeout(c_confirmFunc, 2500);
		}
		else if(c_type == "confirm")
		{
			$(".BP_BOT").append
			(
				"<div class=\"hoverObj hoverImg BP_leftBtn w35h35 float backTransparent\">"
					+ "<img class=\"hoverLo\" src=\"/res/" + c_resActual + "themes/portal_center_share/img/icon_bp_send_lo.png\" />"
					+ "<img class=\"hoverHi\" src=\"/res/" + c_resActual + "themes/portal_center_share/img/icon_bp_send_hi.png\" />"
				+ "</div>"
				+ "<div class=\"hoverObj hoverImg BP_rightBtn w35h35 float backTransparent\">"
					+ "<img class=\"hoverLo\" src=\"/res/" + c_resActual + "themes/portal_center_share/img/icon_bp_cancel_lo.png\" />"
					+ "<img class=\"hoverHi\" src=\"/res/" + c_resActual + "themes/portal_center_share/img/icon_bp_cancel_hi.png\" />"
				+ "</div>"
				+ "<div class=\"floatClear h0\"></div>"
			);
			
			$(".BP_leftBtn").attr("title", g8_text.tt_bpAccept);
			$(".BP_leftBtn").attr("alt", g8_text.tt_bpAccept);
			$(".BP_rightBtn").attr("title", g8_text.tt_bpCancel);
			$(".BP_rightBtn").attr("alt", g8_text.tt_bpCancel);
			
			$(".BP_rightBtn").bind("click",
				function(e)
				{
					$(".BP_overlay").remove();
				}
			);
			
			$(".BP_overlay").addClass("BP_overlayConfirm");
			$(".BP_leftBtn").bind("click", c_confirmFunc);
		}
		
		$(".BP").css("top", $(window).height()/2 - $(".BP").height()/2);
		
		g8_share.bindHoverObj();
		
		$(".BP_overlay").removeClass("visHidden");
	},
	
	checkBrowserName: function(c_name)
	{
		var agent = navigator.userAgent.toLowerCase();
		if(agent.indexOf(c_name.toLowerCase()) > -1)
			return true;
		return false;
	},
	
	metaOpenClick: function(e)
	{
		var p_this = $(this);
		var p_meta = p_this.parent().parent();
		
		p_meta.children(".metaNavi").children(".metaOpen.hoverObjSelected").removeClass("hoverObjSelected").trigger("mouseleave");
		p_this.addClass("hoverObjSelected");
		
		if(p_meta.hasClass("metaOpened"))
			return;
		
		scrollTo(0, 0);
		var i_oldTop = p_meta.offset().top;
		p_meta.css("top", i_oldTop);
		
		p_meta.children(".metaContent").css("min-height", $("#frmEndPage").offset().top - 219);
		p_meta.children(".metaNavi").addClass("metaNaviOpened");
		
		p_meta.animate({top: 219}, 600, //"linear",
			function()
			{
				$(this)
					.addClass("metaOpened")
					.children(".metaNavi")
						.children(".metaClose")
							.removeClass("disNone");
			}
		);
	},
	metaCloseKeyDown: function(e)
	{
		if(e.keyCode == 13)
			$(this).trigger("click");
	},
	metaCloseClick: function(e)
	{
		var p_this = $(this);
		var p_meta = p_this.parent().parent();
		
		p_meta.children(".metaNavi").children(".metaOpen.hoverObjSelected").removeClass("hoverObjSelected").trigger("mouseleave");
		
		if(!p_meta.hasClass("metaOpened"))
			return;

		p_meta.removeClass("metaOpened");
		p_meta.children(".metaNavi").children(".metaClose").addClass("disNone");
		
		p_meta.animate({top: $(window).height() - p_meta.children(".metaNavi").height()}, 600, //"linear",
			function()
			{
				$(this)
					.css("top", "auto")
					.children(".metaNavi")
						.removeClass("metaNaviOpened");
			}
		);
	},
	bindMeta: function()
	{
		var p_metaOpen = $(".metaOpen");
		//p_metaOpen.unbind("click", g8_share.metaOpenClick);
		p_metaOpen.bind("onDataReady", g8_share.metaOpenClick);

		var p_metaClose = $(".metaClose");
		//p_metaClose.unbind("click", g8_share.metaCloseClick).unbind("keydown", g8_share.metaCloseKeyDown);
		p_metaClose.bind("click", g8_share.metaCloseClick).bind("keydown", g8_share.metaCloseKeyDown);
	},
	
	appendRedirectOverlay: function(c_overlayContent, p_redirectCallback)
	{
		$("body").append
		(
			"<div id=\"frmOverlayRedirect\" class=\"disNone posAbs\">"
				+ c_overlayContent
			+ "</div>"
		);
		
		var minH = $("#frmEndPage").offset().top;
		if(minH < 1000)
			minH = 1000;
		$("#frmOverlayRedirect").css("width", "100%");
		$("#frmOverlayRedirect").css("height", $(window).height());
		$("#frmOverlayRedirect").css("top", 0).css("left", 0).css("right", 0);
		$("#frmOverlayRedirect").css("padding-top", $(window).height()/2 - 200);
		
		$("#frmOverlayRedirect").fadeIn(1000,
			function ()
			{
				$("#frmOverlayRedirect").children().fadeIn(1000, p_redirectCallback);
			}
		);
	}
	
};