// P3.0 Javscript Library
// mobile
var devices = new Array (
	'vk-v','iphone','ipad','android',
	'acer','alcatel','audiovox','avantgo','blackberry',
	'blazer','cdm','digital paths','elaine','epoc',
	'ericsson','handspring','iemobile','kyocera','lg',
	'midp','mmp','mobile','motorola','nec',
	'nokia','o2','openwave','opera mini','operamini',
	'opwv','palm','panasonic','pda','phone',
	'playstation portable','pocket','psp','qci','sagem',
	'sanyo','samsung','sec','sendo','sharp',
	'smartphone','sonyericsson','symbian','telit','tsm',
	'up-browser','up.browser','up.link','vodafone','wap',
	'windows ce','xiino','xda','toshiba','upg1',
	'upsi','webc','winw','w3c ','acs-',
	'alav','amoi','benq','bird','brew',
	'cell','cldc','cmd-','dang','doco',
	'hipt','inno','ipaq','jigs','kddi',
	'keji','leno','lg-c','lg-d','lg-g',
	'lge-','maui','maxo','midp','mits',
	'mmef','newt','pant','phil',
	'prox','qwap','sph-','t-mo','tim-'
);
function checkMobile () {
	var t_var = false;
	var agent=navigator.userAgent.toLowerCase();
	for (var i = 0; i < devices.length; i++) {
		if (agent.indexOf(devices[i]) != -1)
			t_var = true;
	}
	return t_var;
}
var isMobile = checkMobile();
//************************************************************************************
// Description : Get Cookie Value
// Parameter: Cookie name
// Return: Cookie value
// Usage:
//************************************************************************************
function getCookie(name)
{
	var search = name + "=";
	var cookieVal = "";
	if (document.cookie.length > 0)
	{
		offset = document.cookie.indexOf(search);
		if (offset != -1)
		{
			offset += search.length;
			end = document.cookie.indexOf(";", offset);
			if (end == -1)
			end = document.cookie.length;
			cookieVal = unescape(document.cookie.substring(offset, end));
		}
	}
	//if (name == "PreferBandwidth") {
	//	if (isMobile && cookieVal == "") cookieVal = "Low";
	//}
	return cookieVal;
}
//************************************************************************************
// Description : Delete/Expire Cookie Value
// Parameter: Cookie name
// Return:
// Usage:
//************************************************************************************
function deleteCookie(name, path, domain)
{
	if (getCookie(name))
		document.cookie = name + '=' +
			((path) ? ';path=' + path : '') +
			((domain) ? ';domain=' + domain : '' ) +
			';expires=Thu, 01-Jan-1970 00:00:01 GMT';
}
//************************************************************************************
// Description : Set Bandwidth Cookie Value
// Parameter: Cookie value
// Return:
// Usage:
//************************************************************************************
function setBandwidth( value )
{
	var expDate = new Date();
	expDate.setTime(expDate.getTime() + 1000*60*60*24);
	setLowbCookie("bandwidth" ,value, expDate);
	//location.reload();
}
function setLowbCookie(name, value, expire) {
	document.cookie = name + "=" + escape(value) + ((expire == null) ? "" : ("; path=/; expires=" + expire.toGMTString()));
}
//************************************************************************************
// Description : Set Bandwidth Cookie Value
// Parameter: Cookie value
// Return:
// Usage:
//************************************************************************************
try{
	if (get_site_code() != getCookie('prof_country')) {
	    deleteCookie('prof_id', '/', 'samsung.com');
	    deleteCookie('prof_country', '/', 'samsung.com');
	}
} catch (e) {}
// Global Flash Check
var isFlashAvailable = false;
if ( navigator.appName == "Microsoft Internet Explorer") {
	for ( var i = 12; i > 1; i--) {
		try {
			var objFlash = new ActiveXObject("shockwaveFlash.shockwaveFlash." + i);
			if( typeof (objFlash) == "object") {
				isFlashAvailable = true;
				break;
			}
		} catch (e) {
			isFlashAvailable = false;
		}
	}
} else if(navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) {
	isFlashAvailable = true;
} else {
	isFlashAvailable = false;
}
var quickViewText = "";
var toCompareText = "";
var compareText = "";
var firstAlertHTML = "";
var lastAlertHTML = "";
var recentlyViewedText  = "";
var checkBandWidthVar = "High";
if ( getCookie("PreferBandwidth") == "" ) {
	if ( !isMobile ) {
		setCookieEx("PreferBandwidth","High",999);
	} else {
		setCookieEx("PreferBandwidth","Low",999);
	}
}
// Plug-ins
(function($){
	/* 20111201 cidow acc ymr add */
	$.extend($.expr[':'], {
		focusable: function(element) {
			var nodeName = element.nodeName.toLowerCase(),
				tabIndex = $.attr(element, 'tabindex');
			return (/input|select|textarea|button|object/.test(nodeName)
				? !element.disabled
				: 'a' == nodeName || 'area' == nodeName
					? element.href || !isNaN(tabIndex)
					: !isNaN(tabIndex))
				&& !$(element)['area' == nodeName ? 'parents' : 'closest'](':hidden').length;
		}
	});
	/* //20111201 cidow acc ymr add */

	/* 20120117 cidow acc ymr add */
	$(function() {
		colorThemes();
	});
	/* //20120117 cidow acc ymr add */

	/* ***************** fe_gnb ********************** */
	// fe_gnb Methods
	var fe_gnb_methods = {
		init : function(options) {
			footerAlinkRemove();
			var options = $.extend({}, $.fn.fe_gnb.defaults, options);
			return this.each(function() {
				var $gnb = $(this);
				var $trigger = $("#gnbp3 > ul > li");
				var $trigger2 = $("#gnbp3 > ul > li > .menu > ul > li > a");
				var $menu2;
				var ranNum = Math.ceil(Math.random() * 100000);
				var $wrapMenu, $recentlyViewed;
				var gnbImg = $gnb.find("input#gnbImage").val();
				var $trigger3 = $("#gnbp3 > ul > li > .menu > ul");
				var thisLoc = window.location.href;
				var b2c_1 = /\/consumer\//gi;
				var b2c_2 = /\/article\//gi;
				var apps = /\/samsung-apps\//gi;
				var support = /\/support\//gi;
				var promotions = /\/promotions/gi;

				$gnb.addClass("gnbg");

				// menubg Fix
				if ( thisLoc.match(b2c_1) || thisLoc.match(b2c_2) ) $trigger.eq(0).addClass("currentMenu");
				if ( thisLoc.match(apps) ) $trigger.eq(2).addClass("currentMenu");
				if ( thisLoc.match(support) ) $trigger.eq(3).addClass("currentMenu");
				if ( thisLoc.match(promotions) ) $trigger.eq(4).addClass("currentMenu");
				if ( $trigger2.length ) {
					$trigger2.each(function(i) {
						var $subMenu = $(this).next();
						var $newSubMenu = $("<div />", { "class" : "subMenu"+i });
						$newSubMenu.insertAfter($(this));
						$subMenu.appendTo($newSubMenu);
					});
					$menu2 = $("#gnbp3 > ul > li > .menu > ul > li > div");
				}

				if ( $trigger3.length ) {
				  var setArrowPositionClass = false;
				  if($trigger3.parents('.products').length) {
					setArrowPositionClass = true;
				  }
				  $trigger3.each(function() {
					$(this).children("li").each(function(i) {
					  var idx = i % 3;
					  $(this).addClass("clmn"+idx);
					  if(setArrowPositionClass) $(this).addClass('groupArrow' + (i+1));
					});
				  });
				}

				$menu2 = $("#gnbp3 > ul > li > .menu > ul > li > div");
				//$trigger2.eq(0).addClass("activator");
				$(".products,.apps > .menu > ul").find("li:first > a").addClass("activator");
				if ( $gnb.find(".products").length ) {
					$gnb.find(".products").find(".subMenu0").show();
					/* Ajax Image loading */
					$.ajax({
						type: "GET",
						url: gnbImg,
						dataType: "xml",
						error: function(){
						},
						success: function(xml) {
							$(xml).find("product").find("subtype").each(function(i){
								var $this = $(this);
								var thisTitle = $this.find("title").text();
								var thisImage = $this.find("image").text();
								$("#gnbp3 .products").find(".menu").find("ul").find("li").find("ul").find("li").eq(i).find("a").html(
									'<img src="' + thisImage + '" alt="' + thisTitle + '" / title="' + thisTitle + '" >' + thisTitle
								);
							});
						}
					});
				}
				if ( $gnb.find(".apps").length ) {
					$gnb.find(".apps").find(".subMenu0").show();
					/* Ajax Image loading */
					$.ajax({
						type: "GET",
						url: gnbImg,
						dataType: "xml",
						error: function(){
						},
						success: function(xml) {
							$(xml).find("apps").find("subtype").each(function(i){
								var $this = $(this);
								var thisTitle = $this.find("title").text();
								var thisImage = $this.find("image").text();
								$("#gnbp3 .apps").find(".menu").find("ul").find("li").find("ul").find("li").eq(i).find("a").html(
									'<img src="' + thisImage + '" alt="' + thisTitle + '" / title="' + thisTitle + '" >' + thisTitle
								);
							});
						}
					});
				}
				if ( $("#gnbp3").find(".products").find(".menu").length ) {
					if ( $("#recentlyViewed").length ) $("#recentlyViewed").remove();
					var $productMenu = $("#gnbp3").find(".products").find(".menu");
					$("<div />", { "id" : "recentlyViewed" }).appendTo($productMenu);
					$recentlyViewed = $("#recentlyViewed");
					$recentlyViewed.html('<h2>' + recentlyViewedText + '</h2>\n'
										+'<div>\n'
										+'<ul>\n'
										+'<li><img src="http://www.samsung.com/common/img/img_noimg.gif" alt=""/><span>' + recentlyViewedText + '</span></li>\n'
										+'<li><img src="http://www.samsung.com/common/img/img_noimg.gif" alt=""/><span>' + recentlyViewedText + '</span></li>\n'
										+'<li><img src="http://www.samsung.com/common/img/img_noimg.gif" alt=""/><span>' + recentlyViewedText + '</span></li>\n'
										+'<li><img src="http://www.samsung.com/common/img/img_noimg.gif" alt=""/><span>' + recentlyViewedText + '</span></li>\n'
										+'</ul>\n'
										+'</div>');
				}
				// event
				$trigger.each(function(i) {
					var $allTrigger = $("#gnbp3 > ul > li > a");
					var $allMenu = $("#gnbp3 > ul > li > a").next();
					var $this = $(this);
					var $elem = $this.children("a");
					var $obj = $elem.next();
					$this.bind({
						mouseenter : function(e) {
							$trigger.not($(this)).removeClass("activator");
							$trigger.not($(this)).children("a").next().hide();
							if ( $obj.length ) $elem.addClass("activator");
							if ( $obj.is(":hidden") ) {
								$obj.slideDown(150);
							}
						},
						mouseleave : function() {
							$elem.removeClass("activator");
						}
					});
					$this.children("a").bind({
						focusin : function(e) {
							$allMenu.each(function() {
								if ( $(this).is(":visible") ) {
									$(this).hide();
								}
							});
							$allTrigger.removeClass("activator");
						},
						keydown : function(e) {
							switch(e.keyCode) {
								case 13 :
									$obj.stop(true,true).show();
									if ( $elem.next().length ) $elem.addClass("activator");
									if ( $(this).next().length ) {
										$trigger2.removeClass("activator");
										$menu2.hide();
										if ( $elem.parent(".products").length || $elem.parent(".apps").length ) $(this).next().find("a").first().addClass("activator")
										$(this).next().find("a").first().next().show();
									}
									break;
							}
						}
					});
				});
				$gnb.bind({
					mouseleave : function() {
						$("#gnbp3 > ul > li > a").next().each(function() {
							if ( $(this).is(":visible") ) {
								$(this).slideUp(250, function() {
									$("#gnb > ul > li > a").each(function() {
										$(this).removeClass("activator");
									});
								});
							}
						});
					}
				});
				$trigger.first().find("a").first().bind({
					keypress : function(e) {
						if ( e.keyCode == 9 && e.shiftKey ) {
							$trigger.each(function() {
								if ( $(this).children("a").next().is(":visible") ) {
									$(this).children("a").next().stop(true,true).hide();
									$(this).children("a").removeClass("activator");
								} else {
									$(this).children("a").removeClass("activator");
								}
							});
						}
					}
				});
				$trigger.last().find("a").last().bind({
					keypress : function(e) {
						if ( e.keyCode == 9 && !e.shiftKey ) {
							$trigger.each(function() {
								if ( $(this).children("a").next().is(":visible") ) {
									$(this).children("a").next().stop(true,true).hide();
									$(this).children("a").removeClass("activator");
								} else {
									$(this).children("a").each(function() {
										$(this).removeClass("activator");
									});
								}
							});
						}
					}
				});
				$trigger2.each(function() {
					if ( $(this).parents(".products").length ) {
						$(this).bind({
							mouseenter : function(e) {
								//$trigger2.removeClass("activator");
								$trigger2.filter(function(index) {
									return $(this).parents('.products').length;
								}).removeClass("activator");
								$(this).parent().parent().find("div").hide();
								$(this).addClass("activator").next().show();
							},
							keydown : function(e) {
								switch(e.keyCode) {
									case 13 :
										//$trigger2.removeClass("activator");
										$trigger2.filter(function(index) {
											return $(this).parents('.products').length;
										}).removeClass("activator");
										$(this).addClass("activator")
										$menu2.hide();
										$(this).next().show();
								}
							}
						});
					}
				});
				$gnb.find("a").last().bind({
					focusout : function() {
						$("#gnbp3 > ul > li > a").next().hide();
						$trigger.find("a").removeClass("activator");
					}
				});
			});
		}
	};
	// fe_gnb Plugin
	$.fn.fe_gnb = function(method) {
		// Method calling logic
		if ( fe_gnb_methods[method] ) {
		  return fe_gnb_methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
		} else if ( typeof method === 'object' || !method ) {
		  return fe_gnb_methods.init.apply( this, arguments );
		} else {
		  $.error( 'Method "' +  method + '" does not exist on this function' );
		}
	};
	// fe_gnb Defaults
	$.fn.fe_gnb.defaults = {
		recentlyViewedText : "Recently viewed"
	};
	/* ***************** // end of fe_gnb ********************** */
	/* ***************** fe_tab ********************** */
	// fe_tab Methods
	var fe_tab_methods = {
		init : function(options) {
			var options = $.extend({}, $.fn.fe_tab.defaults, options);
			return this.each(function() {
				// variables' definition
				var $tabWrap = $(this);
				var $tabCont = $tabWrap.find("." + options.contentClass);
				var tabTrigger = options.tabTrigger;
				var activatedNum = options.activatedNum;
				var tabActor = options.tabActor;
				var jsClass = options.jsClass;
				var activeClass = options.activeClass;
				var imageOff = options.imageOff;
				var imageOn = options.imageOn;
				var numEl = $tabCont.length;
				var contHeight = new Array();
				var totalHeight = new Array();
				var titleHeight = 0;
				var gridCheck = false;
				$tabWrap.siblings("div").each(function() {
					var thisClass = $(this).attr("class");
					if ( thisClass.match(/grid/) ) {
						gridCheck = true;
					}
				});
				// initialize
				if ( jsClass ) $tabWrap.addClass(jsClass);	// add Class for re CSS-positioning
				//calcurateHeight();
				$tabCont.hide();
				$tabWrap.find(tabTrigger).eq(activatedNum).addClass(activeClass);
				$tabCont.eq(activatedNum).show();
				$tabWrap.find(tabTrigger).find("a").bind({
					click : tabAction,
					focusin : tabAction,
					focusout : function() {
					},
					keypress : function(e) {
						if ( e.keyCode === 9 && !e.shiftKey ) {
							var contID = $(this).attr("href");
							$(contID).find("a").first("a").focus();
						} else if ( e.keyCode === 9 && e.shiftKey ) {
						}
					}
				});
				$tabCont.each(function(i) {
					$(this).find("a").last().bind({
						keypress : function(e) {
							if ( e.keyCode === 9 && !e.shiftKey ) {
								var thisID = "#" + $(this).parents(".cont").attr("id");
								$tabWrap.find(tabTrigger).find("a").each(function() {
									if ( thisID == $(this).attr("href") ) {
										if ( $(this).parent().next().length ) {
											$(this).parent().next().find("a").focus();
										}
									}
								});
							}
						}
					});
				});
				$tabWrap.find(tabTrigger).each(function(i) {
					if ( $(this).find("a").find("img").length ) {
						var srcTxt = $(this).find("a").find("img").attr("src");
						if ( srcTxt.search(imageOff) ) {
							if ( activatedNum == i ) {
								$tabWrap.find(tabTrigger).eq(activatedNum).find("a").find("img")
									.addClass(activeClass)
									.attr("src", srcTxt.replace(imageOff, imageOn));
							}
						}
					}
				});
				// functions
				function tabAction() {	// event
					var contID = $(this).attr("href");
					$tabWrap.find("." + activeClass).removeClass(activeClass);
					$tabWrap.find(tabTrigger).each(function() {
						if ( $(this).find("a").find("img").length ) {
							var srcTxt = $(this).find("a").find("img").attr("src").replace(imageOn,imageOff);
							$(this).find("a").find("img").attr("src", srcTxt).removeClass(activeClass);
						}
					});
					$tabCont.hide();
					$(this).parents(tabTrigger).addClass(activeClass);
					$(contID).show();
					for ( i=0; i < numEl; i++) {
						var obj1 = $(this).parent();
						var obj2 = $tabWrap.find(tabTrigger).eq(i);
						if( obj1.length === obj2.length && obj1.length === obj1.filter(obj2).length ) {
							activatedNum = i;
						}
						if ( $(this).find("img").length ) {
							var srcTxt = $(this).find("img").attr("src").replace(imageOff,imageOn);
							$(this).find("img").attr("src", srcTxt).addClass(activeClass);
						}
					}
					//calcurateHeight();
					/*
					if ( gridCheck ) {
						calcurateHeight();
						$tabWrap.height(totalHeight[activatedNum]);
					}
					*/
					return false;
				}
				// content Height Calcurating
				function calcurateHeight() {
					var padding = parseInt($tabWrap.css("padding-top"), 10) + parseInt($tabWrap.css("padding-bottom"), 10);
					$tabCont.each(function() {
						var height = $(this).outerHeight(true);
						if ( $(this).is(":visible") ) {
							//alert( height+padding);
							$tabCont.parent().height(height + padding);
						}
					});
				}
			});
		}
	}
	// fe_tab Plugin
	$.fn.fe_tab = function(method) {
		// Method calling logic
		if ( fe_tab_methods[method] ) {
		  return fe_tab_methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
		} else if ( typeof method === 'object' || !method ) {
		  return fe_tab_methods.init.apply( this, arguments );
		} else {
		  $.error( 'Method "' +  method + '" does not exist on this function' );
		}
	};
	// fe_tab Defaults
	$.fn.fe_tab.defaults = {
		tabActor : "click",
		tabTrigger : null,
		contentClass : "cont",
		activatedNum : 0,
		jsClass : null,
		activeClass : "activator",
		imageOff : "_off.",
		imageOn : "_on."
	};
	/* ***************** //end of fe_tab ******************** */
	/* ***************** fe_accordion ********************** */
	// fe_accordion Methods
	var fe_accordion_methods = {
		init : function(options) {
			var options = $.extend({}, $.fn.fe_accordion.defaults, options);
			return this.each(function() {
				var $accoWrap = $(this);
				var $triggerWrap = $accoWrap.find("h3");
				var $trigger = $triggerWrap.find("a");
				var closeText = options.closeText;
				$triggerWrap.each(function() {
					var $wrap = $("<div />", { "class" : "fe_content"}).insertAfter($(this));
					$wrap.nextAll().prependTo($wrap);
					$("<p />", { "class" : "closeWin" })
						.html('<a href="" class="hide">' + closeText + '</a>')
						.appendTo($wrap);
				});
				var $content = $triggerWrap.next(".fe_content");
				var $closer = $content.find("p.closeWin").find("a");
				$content.hide();
				$trigger.removeClass("close").addClass("show");
				// event
				$trigger.each(function(i) {
					$(this).bind({
						click : function() {
							if ( $(this).parent().next(".fe_content").is(":hidden") ) {
								// visible state
								$(this).removeClass("show").addClass("close");
								$(this).parent().next(".fe_content").slideDown(250);
								//$(this).parent().next(".fe_content").find("p.closeWin").find("a").focus();
							}
							return false;
						}
					});
				});
				$closer.each(function(i) {
					$(this).bind({
						click : function() {
							$(this).parent().parent().slideUp(250);
							$(this).parent().parent().prev("h3").find("a").removeClass("close").addClass("show");
							return false;
						}
					});
				});
			});
		}
	};
	// fe_accordion Plugin
	$.fn.fe_accordion = function(method) {
		// Method calling logic
		if ( fe_accordion_methods[method] ) {
		  return fe_accordion_methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
		} else if ( typeof method === 'object' || !method ) {
		  return fe_accordion_methods.init.apply( this, arguments );
		} else {
		  $.error( 'Method "' +  method + '" does not exist on this function' );
		}
	};
	// fe_accordion Defaults
	$.fn.fe_accordion.defaults = {
		closeText : "Close"
	};
	/* ***************** //end of fe_accordion1 ******************** */
	/* ***************** fe_keyVisual ********************** */
	// fe_keyVisual Methods
	var fe_keyVisual_methods = {
		init : function(options) {
			var options = $.extend({}, $.fn.fe_keyVisual.defaults, options);
			return this.each( function() {
				var $frame = $(this);
				var xmlUrl = $frame.attr("xmlUrl");
				var ranNum = Math.ceil(Math.random() * 100000);
				var $item;
				var itemLength;
				var lastIdx;
				var pagerOff = options.pagerOff;
				var pagerOn = options.pagerOn;
				var nowIdx = 0;
				var nextIdx = 1;
				var lastIdx;
				var rollTimer;
				var autoRoll = options.autoRoll;
				var autoRollDelay = options.autoRollDelay;
				var animationSpeed = options.animationSpeed;
				// xml Check
				
				if ( xmlUrl ) {
					$frame.removeClass("kvText").addClass("kvGraphic");
					$.ajax({
						type: "GET",
						url: xmlUrl,
						dataType: "xml",
						error: function(){
							//alert(xmlUrl);
						},
						success: function(xml) {
							//alert("success1");
							var briefingHTML = "";
							$(xml).find("promo").each(function(i){
								var thisTitle = $(this).attr("name");
								var thisImg = $(this).find("path").text();
								var thisUrl = $(this).find("link").text();
								var thisTarget = $(this).attr("target");
								briefingHTML += '<div class="briefing">\n'
										  + '<p class="figure">'
										  + '<a href="' + thisUrl + '" target="' + thisTarget +'">\n'
										  + '<img src="' + thisImg + '" alt="' + thisTitle + '" />\n'
										  + '</a>\n'
										  + '</p>'
										  + '</div>\n';
							});
							$("#kv").find(".visual").html(briefingHTML);
							varDefine();
						}
					});
				} else {
					varDefine();
				}
				function varDefine() {
					$item = $frame.find(".visual").find(".briefing");
					itemLength = $item.length;
					lastIdx = itemLength - 1;
					if ( itemLength > 1 ) execution();
				}
				function execution() {                  
					$frame.removeClass("kvText").addClass("kvGraphic");
					var $kvNav = $("<ul />", { "class" : "kvNav" }).appendTo($frame);
					var listHTML = "";
					for ( i=0; i<itemLength; i++) {
						listHTML += '<li idx="' + i + '"><span><img src="' + pagerOff + '" alt="" /></span></li>\n';
					}
					$kvNav.html(listHTML);
					var $pager = $kvNav.find("li");
					$pager.find("span").css("cursor","pointer");
					$pager.eq(0).find("img").attr("src", pagerOn);
					$pager.eq(0).find("span").css("cursor","default");
					$pager.find("span").bind("click",pagerMove);
					$item.hide();
					$item.eq(0).show();
					$item.eq(0).addClass('briefingshow');
					resignIdx(0);
					$item.eq(0).css("z-index",20).show();
					$item.eq(1).css("z-index",10).show();
					if ( autoRoll ) {
						if ( rollTimer ) clearInterval(rollTimer);
						rollTimer = setInterval(rolling, autoRollDelay);
					} 
					$frame.bind({
						mouseover : function() {
							clearInterval(rollTimer);
						},
						mouseout : function() {
							if ( rollTimer ) clearInterval(rollTimer);
							rollTimer = setInterval(rolling, autoRollDelay);
						}
					});

                   // acc function add 2012-02-22

					if( jQuery.browser.msie )
					{
						var TAB_CLICK = 1;
						var SH_TAB_CLICK = 2;
						var OTHER_CLICK = 0;
						var isTab = 0;

						function handleAreaTab( e, ele )
						{
							if ( isTab == SH_TAB_CLICK )
							{
								if( $( ele ).data( 'isFirst' ) == true )
								{
									if( $( ele ).data( 'kvKey' ) - 1 < 0 ){
										return;
									}else{
										changeVisual2( focusItem[ $( ele ).data( 'kvKey' ) - 1 ] );
										$( ele ).focus();
									}
								}
								else
								{
									focusItem[ $( ele ).data( 'kvKey' ) - 1 ].focus();
									stopBubble( e );
								}
							}
							else if( isTab == TAB_CLICK )
							{
								if( $( ele ).data( 'isLast' ) == true )
								{
									if( $( ele ).data( 'kvKey' ) + 1 < focusItem.length ){
										changeVisual2( focusItem[ $( ele ).data( 'kvKey' ) + 1 ] );
										$( ele ).focus();
									}else{
										return;
									}
								}
								else
								{
									focusItem[ $( ele ).data( 'kvKey' ) + 1 ].focus();
									stopBubble( e );
								}
							}
						}

						$( document ).keydown( function( e )
						{
							if ( e.which == 9 && e.shiftKey )
							{
								isTab = SH_TAB_CLICK;
							}
							else if( e.which == 9 )
							{
								isTab = TAB_CLICK;
							}
							else
							{
								isTab = OTHER_CLICK;
							}

							console.log( 'isTab = ' + isTab );
						} );

						$( document ).focusout( function( e )
						{
							var targ;
							if( !e ) var e = window.event;
							if( e.target ) targ = e.target;
							else if( e.srcElement ) targ = e.srcElement;
							if ( targ.nodeType == 3 ) // defeat Safari bug
								targ = targ.parentNode;

							if( targ.nodeName.toLowerCase() == 'area' )
							{
								handleAreaTab( e, targ )
							}
						} );
					}
					// acc function add 2012-02-22
					
					function stopBubble(ev){
						var evt = window.event || ev;
						if(evt.stopPropagation)
						evt.stopPropagation(); //버블링캔슬하는 W3C
						evt.cancelBubble = true; //버블링캔슬하는 IE 
					}

					function kvFocus() {
							if (!($('#kv div').hasClass('briefingshow')))
							{
								$('#kv div.briefing:first').addClass('briefingshow');
							}
					}
					function resignIdx(idx) {
						$pager.each(function() {
							$(this).find("img").attr("src", pagerOff);
							$(this).find("span").css({
								"cursor" : "pointer"
							});
						});
						$pager.eq(idx).find("img").attr("src", pagerOn);
						$pager.eq(idx).find("span").css({
							"cursor" : "default"
						});
					}
					function rolling() {
						if ( nowIdx < lastIdx ) {
							nextIdx = nowIdx + 1;
						} else if ( nowIdx == lastIdx ) {
							nextIdx = 0;
						}
						changeVisual();
					}
					function pagerMove() {
						if ( nowIdx != $(this).parent().index() ) {
							nextIdx = $(this).parent().index();
							changeVisual();
						}
						return false;
					}

					function changeFirst() {
						resignIdx(0);
						$item.hide();
						$item.eq(nowIdx).show();
						$item.eq(0).addClass('briefingshow');
						$item.eq(nowIdx).removeClass('briefingshow');
						$item.eq(0).show();
						$item.eq(nowIdx).hide(function() {
							nowIdx = nextIdx;
							if ( nowIdx == lastIdx ) {
								nextIdx = 0;
							}  else {
								nextIdx += 1;
							}
							
						});

					}

					// acc function add 2012-02-22
					var tabHandler =
					{
						'focusin' : function( e )
						{
							clearInterval( rollTimer );                         
						},
						'focusout' : function( e )
						{
							if ( rollTimer ) clearInterval( rollTimer );
							rollTimer = setInterval( rolling, autoRollDelay );
						},
						'keydown' : function( e )
						{
							if ( e.which == 9 && e.shiftKey )
							{
								if( $( this ).data( 'isFirst' ) == true )
								{
									if( $( this ).data( 'kvKey' ) - 1 < 0 ){
										return;
									}else{
										changeVisual2( focusItem[ $( this ).data( 'kvKey' ) - 1 ] );
										$(this).focus();
									}
								}
								else
								{
									focusItem[ $( this ).data( 'kvKey' ) - 1 ].focus();
									stopBubble( e );
								}
							}
							else if( e.which == 9 || window.e.keyCode == 9 )
							{
								if( $( this ).data( 'isLast' ) == true )
								{
									if( $( this ).data( 'kvKey' ) + 1 < focusItem.length ){
										changeVisual2( focusItem[ $( this ).data( 'kvKey' ) + 1 ] );
										$(this).focus();
									}else{
										return;
									}
								}
								else
								{
									focusItem[ $( this ).data( 'kvKey' ) + 1 ].focus();
									stopBubble( e );
								}
							}
							else
							{
								return;
							}
							return false;
						}                       
					};
					
					var focusItem = new Array();
					$.each( $( '.visual' ).find( '.briefing' ), function( key1, value1 )
					{
						if( $( value1 ).find( 'a' ).size() > 0  )
						{
							$.each( $( value1 ).find( 'a' ), function( key2, value2 )
							{
								$( value2 ).data( 'parentSeq', key1 );
								focusItem[ focusItem.length ] = value2;
								
								if( value2 == $( value1 ).find( 'a:last' )[ 0 ] )
									$( value2 ).data( 'isLast', true );
								
								if( value2 == $( value1 ).find( 'a:first' )[ 0 ] )
									$( value2 ).data( 'isFirst', true );
								
								$( value2 ).data( 'kvKey', ( focusItem.length - 1 ) );
								$( value2 ).bind( tabHandler );

							} );
						}
						else
						{
							$.each( $( value1 ).find( 'area' ), function( key2, value2 )
							{
								$( value2 ).data( 'parentSeq', key1 );
								focusItem[ focusItem.length ] = value2;
								
								if( value2 == $( value1 ).find( 'area:last' )[ 0 ] )
									$( value2 ).data( 'isLast', true );
								
								if( value2 == $( value1 ).find( 'area:first' )[ 0 ] )
									$( value2 ).data( 'isFirst', true );
								
								$( value2 ).data( 'kvKey', ( focusItem.length - 1 ) );
								$( value2 ).bind( tabHandler );

							} );
						}
					} );

					function changeVisual2( nextItem )
					{

						if ( nowIdx != $( nextItem ).data( 'parentSeq' ) )
						{
							resignIdx( $( nextItem ).data( 'parentSeq' ) );
							$item.hide();
							$item.eq(nowIdx).show();
							$item.eq( $( nextItem ).data( 'parentSeq' ) ).addClass('briefingshow');
							$item.eq(nowIdx).removeClass('briefingshow');
							$item.eq(nowIdx).stop(true, true).fadeOut(0, function() {
								nowIdx = $( nextItem ).data( 'parentSeq' );
								if ( nowIdx == lastIdx ) {
									nextIdx = 0;
								}  else {
									nextIdx += 1;
								}
							});
							$item.eq( $( nextItem ).data( 'parentSeq' ) ).fadeIn(100, function(){ nextItem.focus(); } );
						}else{
						}
					}

					var beforeFirst=$("div#contentHead").find("a:last");
					var	afterLast=$("#content").find("a:first");		
					
					$ ( beforeFirst ).keydown(function(e){  //dynamic buttom use
						if ( e.which == 9 && e.shiftKey){
						}else if( e.which == 9 ){
							clearInterval(rollTimer);
							changeVisual2( firstItem );
						}
					});
					$ ( afterLast ).keydown(function(e){
						if ( e.which == 9 && e.shiftKey){
							clearInterval(rollTimer);
							changeVisual2( lastItem );
						}else if( e.which == 9 ){
						}
					});
	
                   // acc function add end 2012-02-22

					function changeVisual() {
						resignIdx(nextIdx);
						$item.hide();
						$item.eq(nowIdx).css({
							"z-index" : 20
						}).show();
						$item.eq(nextIdx).addClass('briefingshow');
						$item.eq(nowIdx).removeClass('briefingshow');
						$item.eq(nextIdx).css({
							"z-index" : 10
						}).show();
						$item.eq(nowIdx).stop(true, true).fadeOut(animationSpeed, function() {
							nowIdx = nextIdx;
							if ( nowIdx == lastIdx ) {
								nextIdx = 0;
							}  else {
								nextIdx += 1;
							}
						});
					}
				}
			});
		}
	};
	// fe_keyVisual Plugin
	$.fn.fe_keyVisual = function(method) {
		// Method calling logic
		if ( fe_keyVisual_methods[method] ) {
		  return fe_keyVisual_methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
		} else if ( typeof method === 'object' || !method ) {
		  return fe_keyVisual_methods.init.apply( this, arguments );
		} else {
		  $.error( 'Method "' +  method + '" does not exist on this function' );
		}
	};
	// fe_keyVisual Defaults
	$.fn.fe_keyVisual.defaults = {
		pagerOn : "/common/img/btn_nav_on.png",
		pagerOff  : "/common/img/btn_nav_off.png",
		animationSpeed : 700,
		autoRoll : true,
		autoRollDelay : 3000
	};
	/* ***************** fe_keyVisual ********************** */
	/* ***************** fe_carousel ********************** */
	// fe_carousel Methods
	var fe_carousel_methods = {
		init : function(options) {
			var options = $.extend({}, $.fn.fe_carousel.defaults, options);
			return this.each(function() {
				// variables definition
				var $rollWrap = $(this);
				var autoRoll = options.autoRolling;
				var circular = options.circular;
				var scrollSpeed = options.animationDelay;
				var aniSpeed = options.animationSpeed;
				var buttonCheck = options.button;
				var visibleItem = options.visibleItem;
				var $frame = $rollWrap.find(options.frame);
				var $innerFrame = $frame.find(options.innerFrame);
				var $item = $innerFrame.find(options.item);
				var $prevBtn, $nextBtn;
				var prevImageOn, prevImageOff, nextImageOn, nextImageOff;
				var prevBtnImg = options.prevBtnImg;
				var nextBtnImg = options.nextBtnImg;
				var rollTimer;
				var itemLength = $item.length;
				var itemWidth = parseInt( $item.eq(0).outerWidth(), 10);
				var innerFrameWidth = itemWidth * itemLength;
				var frameWidth = $frame.width();
				var frameHeight = $item.height();
				var rollCount = frameWidth / itemWidth;
				var currentPos = 0;
				var currentIdx = 1;
				var limitIdx = itemLength - visibleItem;
				var leftIdx = 0;
				var rightIdx = visibleItem - 1;
				// constructing buttons
				if ( buttonCheck && itemLength > 1) {
					if ( visibleItem < itemLength  ) {
						var $prevBtn = $("<p />", { "class" : "prev fe_trigger" }).prependTo($rollWrap);
						var $nextBtn = $("<p />", { "class" : "next fe_trigger" }).appendTo($rollWrap);
						$("<a />", { "href" : "" }).prependTo($prevBtn);
						$("<a />", { "href" : "" }).prependTo($nextBtn);
						$("<img />", {
							"src" : prevBtnImg,
							"alt" : "previous Image"
						}).prependTo($prevBtn.find("a"));
						$("<img />", {
							"src" : nextBtnImg,
						"alt" : "next Image"
						}).prependTo($nextBtn.find("a"));
						prevImageOn = $prevBtn.find("img").attr("src").replace("_datv", "_atv");
						prevImageOff = $prevBtn.find("img").attr("src").replace("_atv", "_datv");
						nextImageOn = $nextBtn.find("img").attr("src").replace("_datv", "_atv");
						nextImageOff = $nextBtn.find("img").attr("src").replace("_atv", "_datv");
						// circular check
						if ( circular ) {
							$prevBtn.find("img").attr("src", prevImageOn);
							$nextBtn.find("img").attr("src", nextImageOn);
						} else if ( itemLength > rollCount ) {
							$nextBtn.find("img").attr("src", nextImageOn);
						}
						cursorCheck();
						// bind Click events
						$prevBtn.bind("click", function() {
							if ( currentIdx < 2 ) {
								return false;
							} else {
								rollingPrev();
								return false;
							}
							return false;
						});
						$nextBtn.bind("click", function() {
							if ( currentIdx < 1 || currentIdx > limitIdx) {
								return false;
							} else {
								rollAction();
								return false;
							}
							return false;
						});
					}
				}
				$frame.css({
					"position" : "relative",
					"margin-left" : "auto",
					"margin-right" : "auto",
					"overflow" : "hidden"
				});
				if ( $rollWrap.hasClass("carousel2") ) {
					$frame.css({
						"width" : ($item.outerWidth() * visibleItem) + "px"
					});
				}
				$innerFrame.css({
					"position" : "relative",
					"width" : "40000em",
					"left" : 0,
					"top" : 0
				});
				$item.css({
					"float" : "left"
				});
				if ( visibleItem > itemLength ) {
					var innerFrameWidth = $item.outerWidth(true) * itemLength;
					if ( $rollWrap.hasClass("carousel2") ) {
						$innerFrame.css({
							"width" : innerFrameWidth + "px",
							"margin" : "0px auto"
						});
					}
				}
				// autoRolling check
				if ( autoRoll )	{
					if ( itemLength > rollCount ) {
						rollTimer = setInterval(rollAction, scrollSpeed);
					}
				}
				// stop AutoRolling when hovering
				$rollWrap.mouseover(function() {
					clearInterval(rollTimer);
				});
				$rollWrap.mouseleave(function() {
					if ( autoRoll ) {
						rollTimer = setInterval(rollAction, scrollSpeed);
					}
				});
				hideItems();
				// correct Rolling Action
				function rollAction() {	// correct Direction
					leftIdx += 1;
					rightIdx += 1;
					showItems();
					if ( circular ) {
						currentPos = -itemWidth;
						$innerFrame.stop(true, true).animate({
							"left" : currentPos
						}, aniSpeed, function() {
							var $firstItem = $innerFrame.find(options.item).eq(0);
							var $lastItem = $innerFrame.find(options.item).eq(itemLength - 1);
							$firstItem.insertAfter($lastItem);
							$innerFrame.css("left","0");
						});
					} else {
						if ( currentIdx < limitIdx || currentIdx == limitIdx ) {
							if ( buttonCheck) {
								$prevBtn.find("img").attr("src", prevImageOn);
								cursorCheck();
							}
							currentIdx++;
							currentPos = currentPos - itemWidth;
							$innerFrame.stop(true, true).animate({
								"left" : currentPos
							}, aniSpeed, function() {
								hideItems();
							});
							if ( currentIdx > limitIdx ) {
								if ( buttonCheck ) {
									$nextBtn.find("img").attr("src", nextImageOff);
									cursorCheck();
								}
								return false;
							}
						}
					}
				}
				// reverse Rolling Action
				function rollingPrev() {		//reverse Direction
					leftIdx -= 1;
					rightIdx -= 1;
					showItems();
					if ( circular ) {
						currentPos = -itemWidth;
						$innerFrame.css("left", currentPos);
						var $firstItem = $innerFrame.find(options.item).eq(0);
						var $lastItem = $innerFrame.find(options.item).eq(itemLength - 1);
						$lastItem.insertBefore($firstItem);
						$innerFrame.stop(true, true).animate({
							"left" : "0px"
						}, aniSpeed);
					} else {
						if ( currentIdx > 1 ) {
							if ( buttonCheck) {
								$nextBtn.find("img").attr("src", nextImageOn);
								cursorCheck();
							}
							currentIdx--;
							currentPos = currentPos + itemWidth;
							$innerFrame.stop(true, true).animate({
								"left" : currentPos
							}, aniSpeed, function() {
								hideItems();
							});
							if ( currentIdx == 1 ) {
								if ( buttonCheck ) {
									$prevBtn.find("img").attr("src", prevImageOff);
									cursorCheck();
								}
								return false;
							}
						}
					}
				}
				// cursorCheck
				function cursorCheck() {
					if ( $prevBtn.find("img").attr("src") == prevImageOff ) {
						$prevBtn.find("a").css("cursor", "default");
					} else {
						$prevBtn.find("a").css("cursor", "pointer");
					}
					if ( $nextBtn.find("img").attr("src") == nextImageOff ) {
						$nextBtn.find("a").css("cursor","default");
					} else {
						$nextBtn.find("a").css("cursor", "pointer");
					}
				}
				function hideItems() {
					$item.each(function(i) {
						if ( i < leftIdx || i > rightIdx ) {
							$(this).css("visibility","hidden");
						} else {
							$(this).css("visibility","visible");
						}
					});
				}
				function showItems() {
					$item.each(function() {
						$(this).css("visibility","visible");
					});
				}
			});
		}
	}
	// fe_carousel Plugin
	$.fn.fe_carousel = function(method) {
		// Method calling logic
		if ( fe_carousel_methods[method] ) {
		  return fe_carousel_methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
		} else if ( typeof method === 'object' || !method ) {
		  return fe_carousel_methods.init.apply( this, arguments );
		} else {
		  $.error( 'Method "' +  method + '" does not exist on this function' );
		}
	};
	// fe_carousel Defaults
	$.fn.fe_carousel.defaults = {
		frame : null,
		innerFrame : null,
		item : null,
		visibleItem : null,
		direction : "horizontal",
		autoRolling : false,
		circular : false,
		animationDelay : 3500,
		animationSpeed : 1000,
		button : true,
		prevBtnImg : null,
		nextBtnImg : null
	};
	/* ***************** // end of fe_carousel ********************** */
	/* ***************** fe_carousel2 ********************** */
	// fe_carousel2 Methods
	var fe_carousel2_methods = {
		init : function(options) {
			var options = $.extend({}, $.fn.fe_carousel2.defaults, options);
			return this.each(function() {
				// variables definition
				var $rollWrap = $(this);
				var autoRoll = options.autoRolling;
				var circular = options.circular;
				var scrollSpeed = options.animationDelay;
				var aniSpeed = options.animationSpeed;
				var buttonCheck = options.button;
				var visibleItem = options.visibleItem;
				var $frame = $rollWrap.find(options.frame);
				var $innerFrame = $frame.find(options.innerFrame);
				var $item = $innerFrame.find(options.item);
				var $prevBtn, $nextBtn;
				var prevImageOn, prevImageOff, nextImageOn, nextImageOff;
				var prevBtnImg = options.prevBtnImg;
				var nextBtnImg = options.nextBtnImg;
				var rollTimer;
				var itemLength = $item.length;
				var itemWidth = parseInt( $item.eq(0).outerWidth(), 10);
				var innerFrameWidth = itemWidth * itemLength;
				var frameWidth = $frame.width();
				var frameHeight = $item.height();
				var rollCount = frameWidth / itemWidth;
				var currentPos = 0;
				var currentIdx = 1;
				var limitIdx = itemLength - visibleItem;
				var leftIdx = 0;
				var rightIdx = visibleItem - 1;
				// constructing buttons
				if ( buttonCheck && itemLength > 1) {
					if ( visibleItem < itemLength  ) {
						var $prevBtn = $("<p />", { "class" : "prev fe_trigger" }).prependTo($rollWrap);
						var $nextBtn = $("<p />", { "class" : "next fe_trigger" }).appendTo($rollWrap);
						$("<a />", { "href" : "" }).prependTo($prevBtn);
						$("<a />", { "href" : "" }).prependTo($nextBtn);
						$("<img />", {
							"src" : prevBtnImg,
							"alt" : "previous Image"
						}).prependTo($prevBtn.find("a"));
						$("<img />", {
							"src" : nextBtnImg,
						"alt" : "next Image"
						}).prependTo($nextBtn.find("a"));
						prevImageOn = $prevBtn.find("img").attr("src").replace("_datv", "_atv");
						prevImageOff = $prevBtn.find("img").attr("src").replace("_atv", "_datv");
						nextImageOn = $nextBtn.find("img").attr("src").replace("_datv", "_atv");
						nextImageOff = $nextBtn.find("img").attr("src").replace("_atv", "_datv");
						// circular check
						if ( circular ) {
							$prevBtn.find("img").attr("src", prevImageOn);
							$nextBtn.find("img").attr("src", nextImageOn);
						} else if ( itemLength > rollCount ) {
							$nextBtn.find("img").attr("src", nextImageOn);
						}
						cursorCheck();
						// bind Click events
						$prevBtn.bind("click", function() {
							if ( currentIdx < 2 ) {
								return false;
							} else {
								rollingPrev();
								return false;
							}
							return false;
						});
						$nextBtn.bind("click", function() {
							if ( currentIdx < 1 || currentIdx > limitIdx) {
								return false;
							} else {
								rollAction();
								return false;
							}
							return false;
						});
					}
				}
				$frame.css({
					"position" : "relative",
					"margin-left" : "auto",
					"margin-right" : "auto",
					"overflow" : "hidden"
				});
				if ( $rollWrap.hasClass("carousel2") ) {
					$frame.css({
						"width" : ($item.outerWidth() * visibleItem) + "px"
					});
				}
				$innerFrame.css({
					"position" : "relative",
					"width" : "40000em",
					"right" : 0,
					"top" : 0
				});
				$item.css({
					"float" : "right"
				});
				if ( visibleItem > itemLength ) {
					var innerFrameWidth = $item.outerWidth(true) * itemLength;
					if ( $rollWrap.hasClass("carousel2") ) {
						$innerFrame.css({
							"width" : innerFrameWidth + "px",
							"margin" : "0px auto"
						});
					}
				}
				// autoRolling check
				if ( autoRoll )	{
					if ( itemLength > rollCount ) {
						rollTimer = setInterval(rollAction, scrollSpeed);
					}
				}
				// stop AutoRolling when hovering
				$rollWrap.mouseover(function() {
					clearInterval(rollTimer);
				});
				$rollWrap.mouseleave(function() {
					if ( autoRoll ) {
						rollTimer = setInterval(rollAction, scrollSpeed);
					}
				});
				hideItems();
				// correct Rolling Action
				function rollAction() {	// correct Direction
					leftIdx += 1;
					rightIdx += 1;
					showItems();
					if ( circular ) {
						currentPos = -itemWidth;
						$innerFrame.stop(true, true).animate({
							"right" : currentPos
						}, aniSpeed, function() {
							var $firstItem = $innerFrame.find(options.item).eq(0);
							var $lastItem = $innerFrame.find(options.item).eq(itemLength - 1);
							$firstItem.insertAfter($lastItem);
							$innerFrame.css("right","0");
						});
					} else {
						if ( currentIdx < limitIdx || currentIdx == limitIdx ) {
							if ( buttonCheck) {
								$prevBtn.find("img").attr("src", prevImageOn);
								cursorCheck();
							}
							currentIdx++;
							currentPos = currentPos - itemWidth;
							$innerFrame.stop(true, true).animate({
								"right" : currentPos
							}, aniSpeed, function() {
								hideItems();
							});
							if ( currentIdx > limitIdx ) {
								if ( buttonCheck ) {
									$nextBtn.find("img").attr("src", nextImageOff);
									cursorCheck();
								}
								return false;
							}
						}
					}
				}
				// reverse Rolling Action
				function rollingPrev() {		//reverse Direction
					leftIdx -= 1;
					rightIdx -= 1;
					showItems();
					if ( circular ) {
						currentPos = -itemWidth;
						$innerFrame.css("right", currentPos);
						var $firstItem = $innerFrame.find(options.item).eq(0);
						var $lastItem = $innerFrame.find(options.item).eq(itemLength - 1);
						$lastItem.insertBefore($firstItem);
						$innerFrame.stop(true, true).animate({
							"right" : "0px"
						}, aniSpeed);
					} else {
						if ( currentIdx > 1 ) {
							if ( buttonCheck) {
								$nextBtn.find("img").attr("src", nextImageOn);
								cursorCheck();
							}
							currentIdx--;
							currentPos = currentPos + itemWidth;
							$innerFrame.stop(true, true).animate({
								"right" : currentPos
							}, aniSpeed, function() {
								hideItems();
							});
							if ( currentIdx == 1 ) {
								if ( buttonCheck ) {
									$prevBtn.find("img").attr("src", prevImageOff);
									cursorCheck();
								}
								return false;
							}
						}
					}
				}
				// cursorCheck
				function cursorCheck() {
					if ( $prevBtn.find("img").attr("src") == prevImageOff ) {
						$prevBtn.find("a").css("cursor", "default");
					} else {
						$prevBtn.find("a").css("cursor", "pointer");
					}
					if ( $nextBtn.find("img").attr("src") == nextImageOff ) {
						$nextBtn.find("a").css("cursor","default");
					} else {
						$nextBtn.find("a").css("cursor", "pointer");
					}
				}
				function hideItems() {
					$item.each(function(i) {
						if ( i < leftIdx || i > rightIdx ) {
							$(this).css("visibility","hidden");
						} else {
							$(this).css("visibility","visible");
						}
					});
				}
				function showItems() {
					$item.each(function() {
						$(this).css("visibility","visible");
					});
				}
			});
		}
	}
	// fe_carousel2 Plugin
	$.fn.fe_carousel2 = function(method) {
		// Method calling logic
		if ( fe_carousel2_methods[method] ) {
		  return fe_carousel2_methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
		} else if ( typeof method === 'object' || !method ) {
		  return fe_carousel2_methods.init.apply( this, arguments );
		} else {
		  $.error( 'Method "' +  method + '" does not exist on this function' );
		}
	};
	// fe_carousel2 Defaults
	$.fn.fe_carousel2.defaults = {
		frame : null,
		innerFrame : null,
		item : null,
		visibleItem : null,
		direction : "horizontal",
		autoRolling : false,
		circular : false,
		animationDelay : 3500,
		animationSpeed : 1000,
		button : true,
		prevBtnImg : null,
		nextBtnImg : null
	};
	/* ***************** // end of fe_carousel2 ********************** */
	/* ***************** fe_columnControl ********************** */
	// fe_columnControl Plugin
	$.fe_columnControl = function(options) {
		/*
		if ( $(".devide2nd").length ) {
			if ( $(".devide2nd").parent(".compWrap").length ) {
				$(".devide2nd").each(function(i) {
						var gridClass = /grid/;
						var check;
						$(this).siblings().each(function() {
							if ( $(this).attr("class").match(/grid/) ) {
								check = true;
								return 0;
							} else {
								check = false;
							}
						});
						if ( check ) {
							var $element = $(this).siblings("div");
							var maxHeight = 0;
							$element.each(function(j) {
								var $children = $(this).children();
								var thisHeight = 0;
								var childrenMaxHeight = 0;
								var childrenFloat = false;
								$children.each(function() {
									if ( $(this).css("float") == "left" || $(this).css("float") == "right" ) {
										childrenFloat = true;
									}
								});
								if ( childrenFloat ) {
									$children.each(function() {
										if ( $(this).outerHeight(true) > childrenMaxHeight ) {
											childrenMaxHeight = $(this).outerHeight(true);
										}
										thisHeight = childrenMaxHeight;
									});
								} else {
									$children.each(function() {
										thisHeight += $(this).outerHeight(true) + parseInt($(this).css("margin-top")) + parseInt($(this).css("margin-bottom")) + parseInt($(this).css("padding-top")) + parseInt($(this).css("padding-bottom"));
									});
									thisHeight += parseInt($(this).css("padding-top")) + parseInt($(this).css("padding-bottom"));
								}
								if ( thisHeight > maxHeight ) maxHeight = thisHeight;
							});
							$element.each(function() {
								var thisClass = $(this).attr("class");
								if ( thisClass.match(/grid/) ) {
									$(this).css("height", maxHeight + "px");
								}
							});
							$(this).css("height", maxHeight + "px");
						}
				});
			}
		}
		*/
		if ( $(".ls-row").length ) {
			var $lsRow = $(".ls-row");
			$lsRow.each(function() {
				var $lsArea = $(this).find(".ls-area");
				var maxHeight = 0;
				var sortListCheck = false;
				$lsArea.each(function() {
					if ( $(this).find(".sortList").length ) {
						sortListCheck = true;
					}
				});
				if ( !sortListCheck ) {
					$lsArea.each(function() {
						if ( $(this).outerHeight() > maxHeight ) maxHeight = $(this).outerHeight();
					});
					if ( $.browser.msie ) {
						if ( $.browser.version < 8 ) {
							if ( $(this).find("#sampleImages").length ) {
								maxHeight = $(this).find("#sampleImages").find("li").eq(0).height() + 70;
							}
						}
					}
					$lsArea.css("height", maxHeight +"px");
				}
			});
		}
		// feature & spec
		if ( $(".iw_component").length ) {
			var $component1 = $(".iw_component").children(".featureArea");
			var $component2 = $(".iw_component").children(".specArea");
			if ( $component1.height() > $component2.height() ) {
				$component2.height($component1.height());
			} else {
				$component1.height($component2.height());
			}
		}
        // ls-row Delete
        if ( $("span.noData").length ) {
            $("span.noData").each(function() {
                if ( $(this).parents(".ls-cmp-wrap").length ) {
                    // fixed layout
                    $(this).parents(".ls-cmp-wrap").each (function() {
                        var thisComponent = $(this);
                        if ( thisComponent.index() == thisComponent.siblings().length ) {
                            if( thisComponent.prev().find(".ls-hor-separator").length ) {
                                thisComponent.prev().remove();
                            }
                        } else {
                            if( thisComponent.next().find(".ls-hor-separator").length ) {
                                thisComponent.next().remove();
                            }
                        }
                        thisComponent.remove();
                    });
                } else {
                    // flexible layout
                    $(this).parents(".ls-row").remove();
                }
            });
        }

		if ( $(".ls-area-body").length ) {
			$(".ls-area-body").each(function() {
				if ( $(this).children().length  == 0 ) {
					$(this).parents(".ls-row:first").remove();
				}
			});
		}


		// noBorderTop
		if ( $(".noBorderTop").length ) {
			$(".noBorderTop").find(".ls-row").first().css({
				"border-top" : "0 none",
				"padding-top" : 0
			});
			$(".noBorderTop").prev().css("padding-bottom",0);
		}
		if ( $(".removeBorderTop").length ) {
			$(".removeBorderTop").find(".ls-row").first().css({
				"border-top" : "0 none",
				"padding-top" : 0
			});
		}

		// division border height
		if ( $(".compWrap:not(.ls-row)").length ) {
			$(".compWrap:not(.ls-row)").each(function(i, o) {
			  modules = $(o).find('.grid2,.grid3,.grid4,.grid5,.grid6,.grid7,.grid8,.grid9,.grid10,#compare>.summ');
			  var maxHeight = 0;
			  $(modules).each(function(j, m) {
				maxHeight = ($(m).height() > maxHeight ? $(m).height() : maxHeight);
			  });
			  $(modules).each(function(j, m) {
				if($(m).hasClass("devide2nd")){
					$(m).height(maxHeight);
				}
			  });
			});
		}

		if ( $(".ls-row").find(".award").length ) {
			$(".ls-row").find(".award").each(function(i, o) {
			  modules = $(o).find('.grid4,.grid8');
			  var maxHeight = 0;
			  $(modules).each(function(j, m) {
				maxHeight = ($(m).height() > maxHeight ? $(m).height() : maxHeight);
			  });
			  $(modules).each(function(j, m) {
				if($(m).hasClass("devide2nd")){
					$(m).height(maxHeight);
				}
			  });
			});
		}

		if ( $("#compare>.summ").length ) {
			modules = $('#compare>.summ');
			var maxHeight = 0;
			$(modules).each(function(j, m) {
			maxHeight = ($(m).height() > maxHeight ? $(m).height() : maxHeight);
			});
			$(modules).each(function(j, m) {
			$(m).height(maxHeight);
			});
		}

	};
	/* ***************** // end of fe_columnControl ********************** */
	/* ***************** fe_lay ********************** */
	// fe_lay Methods
	$.fe_lay = function(options) {
		var options = $.extend({}, $.fe_lay.defaults, options);
		var $trigger = $(options.triggerClass);
		var newClass = options.triggerClass.replace(".","");
		var layer_zIndex = options.layer_zIndex;
		var $targetClass = $(options.targetClass);
		var type = options.type;
		var toolTip_animationType = options.toolTip_animationType;
		var toolTip_layerPosition = options.toolTip_layerPosition;
		var toolTip_animationSpeed = options.toolTip_animationSpeed;
		var toolTip_tailImage = options.toolTip_tailImage;
		var overLay_dimmedLayer = options.overLay_dimmedLayer;
		var overLay_Center = options.overLay_Center;
		var overLay_dimmedLayerOpacity = options.overLay_dimmedLayerOpacity;
		var overLay_animationSpeed = options.overLay_animationSpeed;
		//var dimmedLayerSpeed = options.dimmedLayerSpeed;
		var overLay_normal_fade = options.overLay_normal_fade;
		var overlay_objWidth = new Array();
		var overlay_objHeight = new Array();
		$targetClass.hide();
		// build targetObj
		if ( type == "overlay" ) {
			if ( overLay_Center ) {
				$trigger.each(function(i) {
					$($(this).attr("href"))
						.prependTo($("body"))
						.css({
							"position" : "absolute",
							"left" : 0,
							"top" : 0,
							"z-index" : layer_zIndex
						});
					overlay_objWidth[i] = $($(this).attr("href")).width();
					overlay_objHeight[i] = $($(this).attr("href")).height();
				});
			}
		} else if ( type == "tooltip" ) {
			$trigger.each(function(i) {
				if ( $($(this).attr("href")).length ) {
					//$(this).css({ "border" : "1px solid transparent" });
					var $this = $($(this).attr("href"));
					var thisHTML = $this.html();
					var thisTag = $this.get(0).tagName;
					if ( $this.attr("class").length ) thisClass = $this.attr("class");
					$("<div />", { "class" : newClass + "_index_" + i + " newLayTip" })
						.prependTo("body")
						.css({
							"position" : "absolute",
							"left" : 0,
							"top" : 0,
							"z-index" : layer_zIndex,
							"opacity" : 0
						})
						.hide();
					$("<" + thisTag + " />")
						.addClass(thisClass)
						.html(thisHTML)
						.prependTo($("." + newClass + "_index_" + i));
				}
			});
		}
		// checkType
		switch(type) {
			case "tooltip" :
				toolTip();
				break;
			case "overlay" :
				overLay();
				break;
			default:
				return false;
		}
		// toolTip
		function toolTip() {
			// mouseover event
			$trigger.each(function(i) {
				if ( $("." + newClass + "_index_" + i).length ) {
					$("." + newClass + "_index_" + i).find("dl.layTip").css("display","block");
					if ( toolTip_layerPosition == "bottom" ) {
						$("<img />", { "src" : toolTip_tailImage, "alt" : "", "class" : "toolTip_Tail"})
							.prependTo($("." + newClass + "_index_" + i))
							.css({
								"display" : "block",
								"position" : "absolute",
								"top" : 0
							});
						$("." + newClass + "_index_" + i).css({
							"padding-top" : "7px"
						});
					}
					function tooltipOpen() {
						var $obj = $("." + newClass + "_index_" + i);
						var pos = $(this).offset();
						var pos2 = $(this).position();
						var triggerPos = ( pos2.left < 500 ) ? true : false;
						var triggerWidth = $(this).width();
						var triggerHeight = $(this).height();
						var objWidth = $obj.width();
						var objHeight = $obj.height();
						var leftPos, topPos;
						switch(toolTip_layerPosition) {
							case "top" :
								if ( triggerPos ) {
									leftPos = pos.left;
								} else {
									leftPos = pos.left - objWidth;
								}
								topPos = pos.top - objHeight - triggerHeight;
								finalLeft = leftPos;
								finalTop = topPos - 10;
								break;
							case "left" :
								leftPos = pos.left - objWidth - (triggerWidth * 2);
								topPos = pos.top;
								finalLeft = leftPos - 10;
								finalTop = topPos;
								break;
							case "bottom" :
								if ( triggerPos ) {
									leftPos = pos.left - 15;
									$obj.find("img.toolTip_Tail").css("left","20px");
								} else {
									leftPos = pos.left - objWidth + 40;
									$obj.find("img.toolTip_Tail").css("right","20px");
								}
								topPos = pos.top + triggerHeight;
								finalLeft = leftPos;
								finalTop = topPos + 10;
								break;
							case "right" :
								leftPos = pos.left + triggerWidth;
								topPos = pos.top;
								finalLeft = leftPos + 10;
								finalTop = topPos;
								break;
						}
						switch(toolTip_animationType) {
							case "slide" :
								$obj.css({ "left" : leftPos + "px", "top" : topPos + "px"})
									.show()
									.animate({
										"left" : finalLeft + "px",
										"top" : finalTop + "px",
										"opacity" : 1
									}, toolTip_animationSpeed);
								break;
							case "fade" :
								$obj.css({ "left" : finalLeft + "px", "top" : finalTop + "px", "opacity" : 1}).fadeIn(toolTip_animationSpeed);
								break;
							case "none":
								$obj.css({ "left" : finalLeft + "px", "top" : finalTop + "px", "opacity" : 1}).show();
						}
					}
					function tooltipClose() {
						$("." + newClass + "_index_" + i).stop(true, true).hide()
								.css({ "left" : 0, "top" : 0, "opacity" : 0});
					}
					$(this).bind({
						mouseenter : tooltipOpen,
						mouseleave : tooltipClose,
						focusin : tooltipOpen,
						focusout : tooltipClose
					});
				}
			});
		}
		// end of toolTip
		// overlay
		function overLay() {
			if ( overLay_dimmedLayer ) {
				$("<div />", { "class" : "fe_lay_DimmedLayer" })
					.css({
						"position" : "absolute",
						"width" : "100%",
						"z-index" : (layer_zIndex - 10),
						"background-color" : "#000",
						"opacity" : overLay_dimmedLayerOpacity,
						"display" : "none"
					})
					.prependTo("body");
			}
			$trigger.each(function(i) {
				var $this = $(this);
				$(this).click(function() {
					if ( overLay_Center ) {
						if ( $($(this).attr("href")).length ) {
							var $obj = $($(this).attr("href"));
							if ( $obj.is(":visible") ) return false;
							if ( $(this).attr("href") == "#footContactUs3" ) {
								overlay_objHeight[i] = 452;
								$obj.css({
									"min-height" : "452px"
								});
							}
							var pos = $(this).offset();
							var startPosLeft = Math.ceil( pos.left + ($(this).width() / 2) );
							var startPosTop = Math.ceil( pos.top - ($(this).height() / 2) );
							if ( $.browser.webkit ) {
								var scrollLeft = document.body.scrollLeft;
								var scrollTop = document.body.scrollTop;
							} else {
								var scrollLeft = document.documentElement.scrollLeft;
								var scrollTop = document.documentElement.scrollTop;
							}
							var objPosLeft = ((document.documentElement.clientWidth - overlay_objWidth[i]) / 2)  + scrollLeft;
							var objPosTop = ((document.documentElement.clientHeight - overlay_objHeight[i]) / 2)  + scrollTop;
							if ( $(this).attr("href") == "#footContactUs1" || $(this).attr("href") == "#footContactUs2" || $(this).attr("href") == "#footContactUs3" ) {
								var newPos = $(".contactUs").offset();
								var newPosLeft = newPos.left;
								var newPosWidth = $(".contactUs").width() - 90;
								var objPosLeft = newPosLeft + (newPosWidth / 2) - (overlay_objWidth[i] / 2);
							}
							if ( overLay_dimmedLayer ) {
								$(".fe_lay_DimmedLayer").height($("#wrap").height()).show();
							}
							$obj.css({
								"left" : objPosLeft,
								"top" : objPosTop,
								"width" : overlay_objWidth[i],
								"height" : overlay_objHeight[i]
							}).fadeIn(overLay_animationSpeed);
							$obj.find(".btnClose").find("a").click(function() {
								$obj.fadeOut(overLay_animationSpeed, function() {
									$(this).hide();
									if ( overLay_dimmedLayer ) {
										$(".fe_lay_DimmedLayer").hide();
									}
								});
								return false;
							});
						}
					} else {
						var thisPos = $(this).offset();
						var $obj = $($(this).attr("href"));
						var bodyEndPos = $("#wrap").height() - 20;
						var thisPosLeft = thisPos.left - ($obj.width() / 2);
						var thisPosTop = thisPos.top + $(this).height() + 10;
						var maxObj = $("#container").offset();
						var maxTop = maxObj.top + $("#contentHead").height();
						$obj.prependTo($("body"));
						if ( $.browser.webkit ) {
							var scrollLeft = document.body.scrollLeft;
							var scrollTop = document.body.scrollTop;
						} else {
							var scrollLeft = document.documentElement.scrollLeft;
							var scrollTop = document.documentElement.scrollTop;
						}
						if ( thisPosLeft < 0 ) {
							thisPosLeft = 0;
						} else if ( thisPosLeft > $("body").width() ) {
							thisPosLeft = $("body").width() - $obj.width();
						}
						if ( $(this).attr("href") == "#ir" ) thisPosLeft = thisPos.left;
						if ( thisPos.top + 30 + $obj.height() > bodyEndPos ) {
							thisPosTop = thisPos.top - $obj.height() - 50;
							if ( thisPosTop < maxTop ) thisPosTop = maxTop;
						}
						// variation
						switch ( $(this).attr("href") ) {
							case "#addLayer" :
								thisPosLeft = ((document.documentElement.clientWidth - $obj.width()) / 2)  + scrollLeft;
								break;
						}
						$obj.css({
							"position" : "absolute",
							"left" : thisPosLeft,
							"top" : thisPosTop,
							"margin" : 0
						});
						if ( $obj.is(":hidden") ) {
							$targetClass.hide();
							$obj.fadeIn(overLay_animationSpeed);
						} else {
							$obj.fadeOut(overLay_animationSpeed);
						}
						$obj.find("p.btnClose").find("a").click(function() {
							$obj.fadeOut(overLay_animationSpeed);
						});
						$obj.find(".btnClose2").click(function() {
							$obj.fadeOut(overLay_animationSpeed);
						});
					}
					return false;
				});
			});
		}
		// end of overlay
	}
	// fe_lay Defaults
	$.fe_lay.defaults = {
		triggerClass : null,
		targetClass : null,
		layer_zIndex : 400,
		type : null,
		toolTip_animationType : null,
		toolTip_layerPosition : null,
		toolTip_animationSpeed : 300,
		toolTip_tailImage : "/common/img/ico_tooltiptail.png",
		overlay_type : null,
		overLay_dimmedLayer : false,
		overLay_dimmedLayerOpacity : 0.3,
		overLay_Center : false,
		overLay_animationType : null,
		overlay_normal_fade : false,
		//dimmedLayerSpeed : 200,
		overLay_animationSpeed : 400
	};
	/* ***************** // end of fe_lay ********************** */
	/* ***************** fe_checkbox ********************** */
	// fe_checkbox Methods
	var fe_checkbox_methods = {
		init : function(options) {
			var options = $.extend({}, $.fn.fe_checkbox.defaults, options);
			return this.each(function(i) {
				var checked = "url(" + options.activeImage + ") no-repeat left top";
				var notChecked = "url(" + options.deactiveImage + ") no-repeat left top";
				var disabled = "url(" + options.disableImage + ") no-repeat left top";
				var checkDisabled = "url(" + options.checkDisableImage + ") no-repeat left top";
				var $wrap = $("<span />",{"class" : "fe_inputWrap"});
				if (! $(this).parent(".fe_inputWrap").length ) {
					$(this).wrap($wrap);
				}
				var $wrap = $(this).parent();
				$wrap.addClass("fe_designInput");
				if ( $(this).is(":disabled") ) {
					if ( $(this).is(":checked") ) {
						$wrap.css("background", checkDisabled);
					} else {
						$wrap.css("background", disabled)
					}
				} else {
					if ( $(this).is(":checked") ) {
						$wrap.css("background", checked)
					} else {
						$wrap.css("background", notChecked)
					}
				}
				$(this).click(function() {
					if ( $(this).is(":disabled") ) {
						if ( $(this).is(":checked") ) {
							$wrap.css("background", checkDisabled);
						} else {
							$wrap.css("background", disabled)
						}
					} else {
						if ( $(this).is(":checked") ) {
							$wrap.css("background", checked)
						} else {
							$wrap.css("background", notChecked)
						}
					}
				});
				/* 20111115 cidow acc ymr add */
				$(this).focus(function() {
					$wrap.css("outline","1px dotted #000");
				}).focusout(function() {
					$wrap.css("outline","none");
				});
				/* //20111115 cidow acc ymr add */
			});
		}
	}
	// fe_checkbox Plugin
	$.fn.fe_checkbox = function(method) {
		// Method calling logic
		if ( fe_checkbox_methods[method] ) {
		  return fe_checkbox_methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
		} else if ( typeof method === 'object' || !method ) {
		  return fe_checkbox_methods.init.apply( this, arguments );
		} else {
		  $.error( 'Method "' +  method + '" does not exist on this function' );
		}
	};
	// fe_checkbox Defaults
	$.fn.fe_checkbox.defaults = {
		activeImage : "/common/img/ico_checkbox_atv.png",
		deactiveImage : "/common/img/ico_checkbox_datv.png",
		disableImage : "/common/img/ico_checkbox_disb.png",
		checkDisableImage : "/common/img/ico_checkbox_atvdisb.png"
	};
	/* ***************** // end of fe_checkbox ********************** */
	/* ***************** fe_select ********************** */
	// fe_select Methods
	var fe_select_methods = {
		init : function(options) {
			if ( $.browser.msie ) {
				if ( $.browser.version < 7 ) return false;
			}
			var options = $.extend({}, $.fn.fe_select.defaults, options);
			return this.each(function(i) {
				if ( $(this).prev(".fe_selectWrap").length ) {
					$(this).prev(".fe_selectWrap").remove();
				}
				var $original = $(this);
				var fixedWidth = $original.hasClass('fixedWidth');
				var selectAnimationSpeed = 150;
				var selectDisabled = $original.attr("disabled") ? true : false;
				var selectDisableClass = options.disableClass;
				var $select, $selectTrigger, $selectList, $selectOption, selectValue, selectIndex;
				var optionLength = $original.find("option").length;
				var listHTML = "";
				var selectHTML;
				var selectListHeight = 0;
				var ieCheck = false;
				var marginRight = 5;
				if ( $.browser.msie ) {
					if ( $.browser.version < 8 ) ieCheck = true;
				}
				selectIndex = $original.find("option:selected").index();
				selectValue = $original.find("option:selected").text();
				selectWidth = $original.outerWidth();
				$select = $("<div />", { "class" : "fe_selectWrap" + ($original.hasClass('fe_selectHidden') ? " fe_selectHidden" : "")}).insertBefore($original); // 2011-11-30 modify
				//$select = $("<div />", { "class" : "fe_selectWrap"}).insertBefore($original);
				selectHTML = '<p class="fe_select_triggerWrap"><a href=""></a></p>\n'
							+'<div class="fe_selectListWrap">\n'
							+'<ul class="fe_selectList">\n'
							+'</ul>\n'
							+'<div class="fe_selectListBottom">\n'
							+'<span class="fe_selectInside"></span>\n'
							+'</div>\n'
							+'</div>\n';
				$select.html(selectHTML);
				$selectTrigger = $select.find("p.fe_select_triggerWrap a");
				$selectList = $select.find("ul.fe_selectList");
				$selectListWrap = $select.find("div.fe_selectListWrap");
				$selectListBottom = $select.find("div.fe_selectListBottom");
				// list
				listHTML = getOptionHTML($original, false);

				$selectList.html(listHTML);
				$selectOption = $selectList.find("li:has(a)");
				$selectTrigger.text(selectValue);
				$selectListWrap.hide();
				// css
				if ( selectDisabled ) $select.addClass(selectDisableClass);
				if ( !fixedWidth && selectWidth > 150 ) selectWidth = 150;
				$selectTrigger.parent().css({
					"width" : selectWidth + marginRight + "px"
				});
				if ( $.browser.webkit ) {
					$selectTrigger.parent().css({
						"width" : selectWidth  + marginRight + "px"
					});
				}
				$selectListWrap.css({
					"width" : $selectTrigger.parent().width() + 9 + "px"
				});
				// IE6 check
				if ( $.browser.msie ) {
					if ( $.browser.version < 7 ) {
						$selectList.css("zoom","1");
						$selectListBottom.css({
							"margin-top" : "-12px"
						});
					}
				}
				if ( $selectOption.length > 7 ) {
					$selectList.css({
						"height" : "161px",
						"overflow-y" : "auto"
					});
				}
				$selectOption.eq(selectIndex).addClass("activator");
				$original.hide();
				if ( !selectDisabled ) {
					$selectTrigger.click(function() {
						if ( $(this).parent().next(".fe_selectListWrap").is(":visible") ) {
							$(this).text(selectValue);
							$(this).parent().parent().next("select").find("option").removeAttr("selected");
							$(this).parent().parent().next("select").find("option").eq(selectIndex).attr("selected", "selected");
							$(this).parent().next(".fe_selectListWrap").slideUp(selectAnimationSpeed, function() {
								$(this).parents(".fe_selectWrap").css("z-index", "10");
							});
							toStatic();
						} else {
							toRelative();
							$(".fe_selectListWrap").hide();
							$(".fe_selectWrap").css("z-index", "10");
							$(this).parents(".fe_selectWrap").css("z-index", "500");
							$(this).parent().next(".fe_selectListWrap").slideDown(selectAnimationSpeed);
							dropDownHide();
						}
						return false;
					});
				}
				else {
					$selectTrigger.click(function() { return false; });
				}
				$selectOption.each(function(i) {
					$(this).bind({
						mouseenter : function() {
							if ( ($selectOption.length - 1) == i ) {
								$(this).parent().next().addClass("bottomHover");
							}
						},
						mouseleave : function() {
							if ( ($selectOption.length - 1) == i ) {
								$(this).parent().next().removeClass("bottomHover");
							}
						},
						click : function() {
							$selectOption.removeClass("activator");
							$(this).addClass("activator");
							selectValue = $(this).find("a").text();
							selectIndex = i;
							if ( $selectTrigger.text() == selectValue ) {
								$(this).parent().parent().slideUp(selectAnimationSpeed, function() {
									$(this).parents(".fe_selectWrap").css("z-index", "10");
								});
								$(this).parents(".fe_selectListWrap").prev().find("a").focus();
								return false;
							}
							$selectTrigger.text(selectValue);
							$(this).parents(".fe_selectWrap").next("select").find("option").removeAttr("selected");
							$(this).parents(".fe_selectWrap").next("select").find("option").eq(selectIndex).attr("selected","selected");
							$(this).parents(".fe_selectWrap").next("select").find("option").eq(selectIndex).click();
							$(this).parents(".fe_selectWrap").next("select").change();
							$(this).parent().parent().slideUp(selectAnimationSpeed, function() {
								$(this).parents(".fe_selectWrap").css("z-index", "10");
							});
							$(this).parents(".fe_selectListWrap").prev().find("a").focus();
							return false;
						},
						keydown : function(e) {
							switch(e.keyCode) {
								case 38 :
									if ( $(this).parent().prev().length ) {
										$(this).parent().prev().find("a").focus();
									} else {
										$(this).parents(".fe_selectListWrap").prev().find("a").focus();
									}
									return false;
									break;
								case 40 :
									if ( $(this).parent().next().length ) {
										$(this).parent().next().find("a").focus();
									}
									return false;
									break;
							}
						}
					});
				});
				$selectOption.find("a").last().keypress(function(e) {
					if ( e.keyCode == 9 && !e.shiftKey ) {
						$(this).parents(".fe_selectListWrap").slideUp(selectAnimationSpeed, function() {
							$(this).parents(".fe_selectWrap").css("z-index", "10");
						});
						toStatic();
					}
				});
				$selectTrigger.keydown(function(e) {
					if ( e.keyCode == 9 && e.shiftKey ) {
						$(this).parent().next().slideUp(selectAnimationSpeed, function() {
							$(this).parents(".fe_selectWrap").css("z-index", "10");
						});
						toStatic();
					} else if ( e.keyCode == 38 ) {
						return false;
					} else if ( e.keyCode == 40 ) {
						if ( $(this).parent().next().is(":visible") ) {
							$(this).parent().next().find("a").first().focus();
						}
						return false;
					}
				});
				$select.mouseleave(function() {
					if ( $.browser.msie ) {
						if ( $.browser.version > 8 || $.browser.version == 8 ) {
							$(".fe_selectListWrap").slideUp(selectAnimationSpeed, function() {
								$(this).parents(".fe_selectWrap").css("z-index", "10");
							});
							dropDownHide();
							toStatic();
						}
					} else {
						$(".fe_selectListWrap").slideUp(selectAnimationSpeed, function() {
							$(this).parents(".fe_selectWrap").css("z-index", "10");
						});
						toStatic();
					}
				});
				$(document).bind("click", function(e) {
					e.stopPropagation();
					var $target = $(e.target);
					if ( !$target.parents(".fe_selectWrap").length ) {
						if ( $(".fe_selectListWrap").is(":visible") ) {
							$(".fe_selectListWrap").hide();
							dropDownHide();
							toStatic();
						}
					}
				});
				function dropDownHide() {
					$(".fe_ddListWrap").each(function() {
						$(this).hide();
						$(this).prev(".fe_ddTriggerWrap").removeClass("activator");
					});
				}
				function getOptionHTML(pObj, isSub) {
					var strHTML = '';
					$(pObj).children().each(function(i, o) {
						if($(o).hasClass('optMore')) {
							strHTML += '<li class="optMore"><a href="">' + $(o).text() + '</a></li>\n';
						}
						else if(o.tagName.toUpperCase() == 'OPTION') {
							strHTML += '<li' + (isSub?' class="sub"':'') + '><a href="">' + $(o).text() + '</a></li>\n';
						}
						else if(o.tagName.toUpperCase() == 'OPTGROUP') {
							strHTML += '<li class="optgroup">' + $(o).attr('label') + '</li>\n';
							strHTML += getOptionHTML(o, true);
						}
					});
					return strHTML;
				}
			});
		}
	}
	// fe_select Plugin
	$.fn.fe_select = function(method) {
		// Method calling logic
		if ( fe_select_methods[method] ) {
		  return fe_select_methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
		} else if ( typeof method === 'object' || !method ) {
		  return fe_select_methods.init.apply( this, arguments );
		} else {
		  $.error( 'Method "' +  method + '" does not exist on this function' );
		}
	};
	// fe_select Defaults
	$.fn.fe_select.defaults = {
		"disableClass" : "disabled"
	};
	/* ***************** // end of fe_select ********************** */
	/* ***************** fe_filterTool ********************** */
	// fe_filterTool Plugin
	$.fe_filterTool = function(options) {
		var options = $.extend({}, $.fe_filterTool.defaults, options);
		var $wrap = $("#filterTool");
		var $legend = $("#filterTool").find("legend");
		var $update = $wrap.find(".btnArea.update");
		var disabled = "url(/" + options.checkboxDeactiveImage + ") no-repeat 0 0";
		var ie6 = false;
		var ie7 = false;
		var webkit = false;
		if ( $.browser.msie ) {
			if ( $.browser.version < 8 ) {
				ie6 = true;
				ie7 = true;
			}
		}
		if ( $.browser.webkit ) {
			webkit = true;
		}
		if ( ie6 || ie7 || webkit ) {
			$wrap.find("legend").each(function() {
				var $newLegend = $("<div />", { "class" : "legend" }).insertBefore($(this));
				$newLegend.html($(this).html());
				$(this).remove();
			});
			$(".newLayTip").remove();
			$.fe_lay({
				triggerClass : ".layTipOpener",
				targetClass : ".layTip",
				type : "tooltip",
				toolTip_animationType : "slide",
				toolTip_layerPosition : "bottom",
				toolTip_animationSpeed : 300,
				toolTip_tailImage : "/common/img/ico_tooltiptail.png"
			});
		} else {
			$legend.each(function() {
				$(this).addClass("legend");
			});
		}
		$(".layTipOpener").find("img").removeAttr("title");
		$update.hide();
		if ( $wrap.find(".legend").length ) {
			var $trigger = $wrap.find(".legend");
			var btnOn = $trigger.find("img").length ? $trigger.find("img").first().attr("src").replace("_datv.","_atv.") : "";
			var btnOff = $trigger.find("img").length ? $trigger.find("img").first().attr("src").replace("_atv.","_datv.") : "";
			$trigger.each(function(i) {
				$(this).find("img").first().attr("src", btnOn);
				$(this).click(function() {
					var $targetObj = $(this).next("ul");
					if ( $targetObj.is(":visible") ) {
						if ( $.browser.msie ) {
							$targetObj.hide();
						} else {
							$targetObj.slideUp(200);
						}
						$(this).find("img").first().attr("src", btnOff);
					} else {
						if ( $.browser.msie ) {
							$targetObj.show();
						} else {
							$targetObj.slideDown(200);
						}
						$(this).find("img").first().attr("src", btnOn);
					}
				});
				$(this).find("a").click(function() {
					return false;
				});
			});
		}
	};
	// fe_filterTool Defaults
	$.fe_filterTool.defaults = {
		checkboxDeactiveImage : "/common/img/ico_checkbox_datv.png"
	};
	/* ***************** // end of fe_filterTool ********************** */
	/* ***************** fe_compare ********************** */
	// fe_compare Methods
	var fe_compare_methods = {
		show : function(options) {
			var options = $.extend({}, $.fn.fe_compare.defaults, options);
			return this.each(function() {
				var $this = $(this).parent().parent();
				$this.contents().filter(function() {
					return this.nodeType == 3;
				}).remove();
				if ( $this.siblings(".textNode").length ) $this.siblings(".textNode").remove();
				if ( $this.siblings(".compareButton").length ) $this.siblings(".compareButton").remove();
				var $compare = $("<input />", { "type" : "button", "class" : "submitStyle bold compareButton", "title" : "", "value" : compareText }).insertAfter($this);
				$compare.attr("productid", $this.parent().siblings(".infoArea").find(".basicInfo").find("p").text());
			});
		},
		hide : function(options) {
			var options = $.extend({}, $.fn.fe_compare.defaults, options);
			return this.each(function() {
				var $this = $(this).parent().parent();
				$this.contents().filter(function() {
					return this.nodeType == 3;
				}).remove();
				if ( $this.siblings(".textNode").length ) $this.siblings(".textNode").remove();
				if ( $this.siblings(".compareButton").length ) $this.siblings(".compareButton").remove();
				var $text = $("<span />", { "class" : "textNode" }).insertAfter($this).text(toCompareText);
			});
		}
	};
	// fe_compare Plugin
	$.fn.fe_compare = function(method) {
		// Method calling logic
		if ( fe_compare_methods[method] ) {
		  return fe_compare_methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
		} else if ( typeof method === 'object' || !method ) {
		  return fe_compare_methods.init.apply( this, arguments );
		} else {
		  $.error( 'Method "' +  method + '" does not exist on this function' );
		}
	};
	// fe_compare Defaults
	$.fn.fe_compare.defaults = {
		toCompareText : "Check to Compare",
		compareText : "Compare"
	};
	/* ***************** // end of fe_compare ********************** */
	/* ***************** fe_compareFirstAlert ********************** */
	// fe_compareFirstAlert Methods
	var fe_compareFirstAlert_methods = {
		show : function(options) {
			var options = $.extend({}, $.fn.fe_compareFirstAlert.defaults, options);
			return this.each(function() {
				var pos = $(this).offset();
				var leftPos = pos.left - 30;
				var topPos = pos.top;
				var closeBtnImage = options.closeButtonImage;
				var $compareFirstAlert = ( $("#compareFirstAlert").length ) ? $("#compareFirstAlert") : $("<div />", { "id" : "compareFirstAlert", "class" : "layPop" }).prependTo($("body"));
				$compareFirstAlert.html('<p class="btnClose"><a href=""><img src="' + closeBtnImage + '" alt="close"></a></p>'
							+'<div class="comparing">'
							+ firstAlertHTML
							+'</div>')
						.css({
							"display" : "none",
							"position" : "absolute",
							"left" : 0,
							"top" : 0
						});
				$compareFirstAlert.find(".btnClose").find("a").click(function() {
					$compareFirstAlert.fadeOut(150);
					return false;
				});
				$compareFirstAlert.find("input").click(function() {
					$compareFirstAlert.fadeOut(150);
				});
				if ( $(window).width() < (leftPos + $compareFirstAlert.width() + 53) ) {
					leftPos = $(window).width() - $compareFirstAlert.width() - 50;
				}
				$compareFirstAlert.css({
					"position" : "absolute",
					"top" : topPos + 30 + "px",
					"left" : leftPos + "px"
				}).fadeIn(200);
			});
		},
		hide : function(options) {
			var options = $.extend({}, $.fn.fe_compareFirstAlert.defaults, options);
			return this.each(function() {
				if ( $("#compareFirstAlert").length ) {
					$("#compareFirstAlert").fadeOut(150);
				}
			});
		}
	};
	// fe_compareFirstAlert Plugin
	$.fn.fe_compareFirstAlert = function(method) {
		// Method calling logic
		if ( fe_compareFirstAlert_methods[method] ) {
		  return fe_compareFirstAlert_methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
		} else if ( typeof method === 'object' || !method ) {
		  return fe_compareFirstAlert_methods.init.apply( this, arguments );
		} else {
		  $.error( 'Method "' +  method + '" does not exist on this function' );
		}
	};
	// fe_compareFirstAlert Defaults
	$.fn.fe_compareFirstAlert.defaults = {
		closeButtonImage : "/common/img/btn_layTip_close.png"
	};
	/* ***************** // end of fe_compareFirstAlert ********************** */
	/* ***************** fe_compare4Alert ********************** */
	// fe_compare4Alert Methods
	var fe_compare4Alert_methods = {
		show : function(options) {
			var options = $.extend({}, $.fn.fe_compare4Alert.defaults, options);
			return this.each(function() {
				var $compare4Alert = ( $("#compare4Alert").length ) ? $("#compare4Alert") : $("<div />", { "class" : "layPop", "id" : "compare4Alert" }).prependTo($("body"));
				var $summList = $(".summList");
				var pos = $(this).offset();
				var leftPos = pos.left;
				var topPos = pos.top;
				var disabled = "url(" + options.checkboxDeactiveImage + ") no-repeat 0 0";
				var closeBtnImage = options.closeButtonImage;
				$compare4Alert.html('<p class="btnClose"><a href=""><img src="' + closeBtnImage + '" alt="close" /></a></p>\n'
							+'<div class="comparing">\n'
							+ lastAlertHTML
							+'</div>'
							+'</div>');
				var $closer = $compare4Alert.find(".btnClose").find("a");
				$compare4Alert.css({
					"position" : "absolute",
					"left" : 0,
					"top" : 0,
					"z-index" : 400,
					"display" : "none"
				});
				//alert($(window).width());
				if ( $(window).width() < (leftPos + $compare4Alert.width() + 53) ) {
					leftPos = $(window).width() - $compare4Alert.width() - 50;
				}
				$compare4Alert.css({
					"top" : topPos - 10 + "px",
					"left" : leftPos + "px"
				}).fadeIn(150);
				$closer.click(function() {
					$compare4Alert.fadeOut(150);
					return false;
				});
			});
		},
		hide : function(options) {
			var options = $.extend({}, $.fn.fe_compare4Alert.defaults, options);
			return this.each(function() {
				if ( $("#compare4Alert").length ) {
					$("#compare4Alert").fadeOut(150);
				}
			});
		}
	};
	// fe_compare4Alert Plugin
	$.fn.fe_compare4Alert = function(method) {
		// Method calling logic
		if ( fe_compare4Alert_methods[method] ) {
		  return fe_compare4Alert_methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
		} else if ( typeof method === 'object' || !method ) {
		  return fe_compare4Alert_methods.init.apply( this, arguments );
		} else {
		  $.error( 'Method "' +  method + '" does not exist on this function' );
		}
	};
	// fe_compare4Alert Defaults
	$.fn.fe_compare4Alert.defaults = {
		checkboxDeactiveImage : "/common/img/ico_checkbox_datv.png",
		closeButtonImage : "/common/img/btn_layTip_close.png"
	};
	/* ***************** // end of fe_compare4Alert ********************** */
	/* ***************** fe_compareClearAll ********************** */
	// fe_compareClearAll Plugin
	$.fe_compareClearAll = function(options) {
		var options = $.extend({}, $.fe_compareClearAll.defaults, options);
		var $summList = $(".summList");
		var disabled = "url(" + options.checkboxDeactiveImage + ") no-repeat left top";
		var $compare4Alert = $("#compare4Alert");
		var $clearCompareAll = $compare4Alert.find("#clearAll");
		$summList.find("input:checkbox").removeAttr("checked");
		$summList.find("input:checkbox").parent().css({
			"background" : disabled
		});
		$summList.find("input:checkbox").fe_compare("hide");
		$summList.find(".submitStyle").hide();
		$compare4Alert.fadeOut(150);
	};
	// fe_compareClearAll Defaults
	$.fe_compareClearAll.defaults = {
		checkboxDeactiveImage : "/common/img/ico_checkbox_datv.png"
	};
	/* ***************** fe_compareClearAll ********************** */
	/* ***************** fe_dropdown ********************** */
	// fe_dropdown Methods
	var fe_dropdown_methods = {
		init : function(options) {
			var options = $.extend({}, $.fn.fe_dropdown.defaults, options);
			return this.each(function() {
				var $source = $(this);
				var thisClass = options.designClass;
				var animationSpeed = options.animationSpeed;
				if ( $source.prev("div."+thisClass).length ) {
					$source.prev("div."+thisClass).remove();
				}
				$source.each(function(i) {
					var $this = $(this);
					var titleName = ( $(this).attr("title").length ) ? $(this).attr("title") : $(this).find("li").find("a").text();
					var $dropdown = $("<div />", { "class" : thisClass + " fe_dropdown" }).insertBefore($this);
					var dropdownHTML = '<p class="fe_ddTriggerWrap"><a href="">' + titleName + '</a></p>'
									+'<div class="fe_ddListWrap">'
									+'<div class="fe_ddListTop"></div>'
									+'<ul class="fe_ddList">'
									+'</ul>'
									+'</div>'
					$dropdown.html(dropdownHTML).show();
					var $trigger = $dropdown.find(".fe_ddTriggerWrap").find("a");
					var $listWrap = $dropdown.find(".fe_ddListWrap");
					$listWrap.find(".fe_ddList").html($this.html());
					$this.hide();
					$listWrap.hide();
					$trigger.bind({
						mouseenter : function() {
							if ( $.browser.msie ) {
								if ( $.browser.version < 8 ) {
									$(".fe_ddTriggerWrap").removeClass("activator");
									$(".fe_ddListWrap").hide();
									$listWrap.show();
									$(this).parent().addClass("activator");
									selectHide();
								} else {
									if ( $listWrap.is(":hidden") ) {
										$(".fe_ddTriggerWrap").removeClass("activator");
										$(".fe_ddListWrap").hide();
										$listWrap.stop(true, true).slideDown(animationSpeed);
										$(this).parent().addClass("activator");
										selectHide();
									}
								}
							} else {
								if ( $listWrap.is(":hidden") ) {
									$(".fe_ddTriggerWrap").removeClass("activator");
									$(".fe_ddListWrap").hide();
									$listWrap.stop(true, true).slideDown(animationSpeed);
									$(this).parent().addClass("activator");
									selectHide();
								}
							}
							return false;
						},
						click : function() {
							if ( $listWrap.is(":hidden") ) {
								$(".fe_ddTriggerWrap").removeClass("activator");
								$(".fe_ddListWrap").hide();
								$listWrap.stop(true, true).slideDown(animationSpeed);
								$(this).parent().addClass("activator");
								selectHide();
							}
							return false;
						},
						keydown : function(e) {
							if ( e.keyCode == 9 & e.shiftKey ) {
								$listWrap.stop(true, true).slideUp(animationSpeed);
								$trigger.parent().removeClass("activator");
							}
							if ( e.keyCode == 40 ) {
								$listWrap.find("a").eq(0).focus();
								return false;
							} else if ( e.keyCode == 38 ) {
								return false;
							}
						}
					});
					$listWrap.find("a").bind({
						keydown : function(e) {
							switch( e.keyCode ) {
								case 38 :
									if ( $(this).parent().prev().length ) {
										$(this).parent().prev().find("a").focus();
									} else {
										$trigger.focus();
									}
									return false;
									break;
								case 40 :
									if ( $(this).parent().next().length ) {
										$(this).parent().next().find("a").focus();
									}
									return false;
									break;
							}
						}
					});
					$dropdown.bind({
						mouseleave : function() {
							if( $.browser.msie ) {
								if ( $.browser.version < 8 ) {
									return false;
								} else {
									$listWrap.stop(true, true).slideUp(animationSpeed);
									$trigger.parent().removeClass("activator");
								}
							} else {
								$listWrap.stop(true, true).slideUp(animationSpeed);
								$trigger.parent().removeClass("activator");
							}
						}
					});
					$dropdown.find("a").last().bind({
						keypress : function(e) {
							if ( e.keyCode == 9 && !e.shiftKey ) {
								$listWrap.stop(true, true).slideUp(animationSpeed);
								$trigger.parent().removeClass("activator");
							}
						}
					});
					$(document).bind("click", function(e) {
						e.stopPropagation();
						var $target = $(e.target);
						if ( !$target.parents(".fe_dropdown").length ) {
							if ( $(".fe_ddListWrap").is(":visible") ) {
								$(".fe_ddTriggerWrap").removeClass("activator");
								$(".fe_ddListWrap").hide();
							}
						}
					});
				});
				function selectHide() {
					toStatic();
					$(".fe_selectListWrap").each(function() {
						$(this).hide();
					});
				}
			});
			// end
		}
	};
	// fe_dropdown Plugin
	$.fn.fe_dropdown = function(method) {
		// Method calling logic
		if ( fe_dropdown_methods[method] ) {
		  return fe_dropdown_methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
		} else if ( typeof method === 'object' || !method ) {
		  return fe_dropdown_methods.init.apply( this, arguments );
		} else {
		  $.error( 'Method "' +  method + '" does not exist on this function' );
		}
	};
	// fe_dropdown Defaults
	$.fn.fe_dropdown.defaults = {
		animationSpeed : 100
	};
	/* ***************** // end of fe_dropdown ********************** */
	/* ***************** fe_gallery1 ********************** */
	// fe_gallery1 Plugin
	$.fe_gallery1 = function(options) {
		var options = $.extend({}, $.fe_gallery1.defaults, options);
		//alert("gallery1");
		// carousel
		var $wrap = $("#gallery1");
		var $contentArea = $wrap.find(".wrapZoom");
		var $curtain = $wrap.find(".thumbInfoArea");
		var $carousel = $wrap.find(".thumbArea");
		var $frame = $carousel.find(".thumbList");
		var $innerFrame = $frame.find("ul");
		var $item = $innerFrame.find("li");
		var moving = 69;
		var firstTop = 0;
		var limitTop = -(moving * ($item.length - 5));
		var currentTop = 0;
		var leftIdx = 0;
		var rightIdx = 4;
		var jsClass = options.jsClass;
		var prevBtnImage = options.prevBtnImage;
		var nextBtnImage = options.nextBtnImage;
		var moviePlayIconImage = options.moviePlayIconImage;
		$frame.show();
		$innerFrame.css('top', '0px');
		$wrap.addClass(jsClass);
		// Making play-icon
		$item.each(function() {
			if ( $(this).find(".dataBinding").find("._type").text() != "L" ) {
				$(this).find("a").css({
					"position" : "relative",
					"display" : "block"
				});
				$("<img />", { "src" : moviePlayIconImage, "alt" : "Play"})
					.prependTo($(this).find("a"))
					.css({
						"position" : "absolute",
						"right" : "3px",
						"top" : "3px",
						"width" : "15px",
						"height" : "10px",
						"z-index" : "10"
					});
			}
		});
		if ( $wrap.find("p.prev").length && $wrap.find("p.next").length ) {
			$wrap.find("p.prev").remove();
			$wrap.find("p.next").remove();
		}
		// button
		var $prevBtn = $("<p />", { "class" : "prev" }).prependTo($carousel);
		var $nextBtn = $("<p />", { "class" : "next" }).appendTo($carousel);
		$prevBtn.html('<a href=""><img src="' + prevBtnImage + '" alt="" /></a>');
		$nextBtn.html('<a href=""><img src="' + nextBtnImage + '" alt="" /></a>');
		var prevImageOn = $prevBtn.find("img").attr("src").replace("_datv.", "_atv.");
		var prevImageOff = $prevBtn.find("img").attr("src").replace("_atv.", "_datv.");
		var nextImageOn = $nextBtn.find("img").attr("src").replace("_datv.", "_atv.");
		var nextImageOff = $nextBtn.find("img").attr("src").replace("_atv.", "_datv.");
		if ( $item.length > 5 ) {
			$prevBtn.find("img").attr("src", prevImageOff);
			$nextBtn.find("img").attr("src", nextImageOn);
			$prevBtn.find("a").css("cursor", "default");
			$nextBtn.find("a").css("cursor", "pointer");
		} else {
			$prevBtn.find("img").attr("src", prevImageOff);
			$nextBtn.find("img").attr("src", nextImageOff);
			$prevBtn.find("a").css("cursor", "default");
			$nextBtn.find("a").css("cursor", "default");
		}
		if ( $item.length < 6 ) {
			$prevBtn.hide();
			$nextBtn.hide();
			$frame.css("margin-top",0);
		}
		hideItems();
		$nextBtn.click(function() {
			if ( currentTop == limitTop ) return false;
			else if ( currentTop > limitTop ) {
				leftIdx += 1;
				rightIdx += 1;
				showItems();
				currentTop -= moving;
				$innerFrame.stop(true, true).animate({
					"top" : currentTop + "px"
				}, 250, function() {
					hideItems();
				});
			}
			buttonCheck();
			return false;
		});
		$prevBtn.click(function() {
			if ( currentTop == firstTop ) return false;
			else if ( currentTop < firstTop ) {
				leftIdx -= 1;
				rightIdx -= 1;
				showItems();
				currentTop += moving;
				$innerFrame.stop(true, true).animate({
					"top" : currentTop + "px"
				}, 250, function() {
					hideItems();
				});
			}
			buttonCheck();
			return false;
		});
		// image Download
		$wrap.find("a.download").click(function() {
			var b_Width = (parseInt(screen.width, 10) / 2) - 500;
			var b_Height = (parseInt(screen.height, 10) / 2) - 500;
			window.open( this.href , "Image", "width=1000,height=800, left=" + b_Width + ",top =" + b_Height +",history=no,resizable=yes,status=no,scrollbars=yes,menubar=no");
			return false;
		});
		function buttonCheck() {
			if ( currentTop < firstTop && currentTop > limitTop ) {
				$prevBtn.find("img").attr("src", prevImageOn);
				$nextBtn.find("img").attr("src", nextImageOn);
				$prevBtn.find("a").css("cursor","pointer");
				$nextBtn.find("a").css("cursor","pointer");
			} else if ( currentTop == firstTop ) {
				$prevBtn.find("img").attr("src", prevImageOff);
				$nextBtn.find("img").attr("src", nextImageOn);
				$prevBtn.find("a").css("cursor", "default");
				$nextBtn.find("a").css("cursor", "pointer");
			} else if ( currentTop == limitTop ) {
				$prevBtn.find("img").attr("src", prevImageOn);
				$nextBtn.find("img").attr("src", nextImageOff);
				$prevBtn.find("a").css("cursor", "pointer");
				$nextBtn.find("a").css("cursor", "default");
			} else {
			}
		}
		function hideItems() {
			$item.each(function(i) {
				if ( i < leftIdx || i > rightIdx ) {
					$(this).css("visibility","hidden");
				} else {
					$(this).css("visibility","visible");
				}
			});
		}
		function showItems() {
			$item.each(function() {
				$(this).css("visibility","visible");
			});
		}
		$item.find("a").click(function() {
			galleryItem($(this));
		});
		//galleryItem($item.first().find("a"));
	};
	// fe_gallery1 Defaults
	$.fe_gallery1.defaults = {
		jsClass : "galleryType1",
		moviePlayIconImage : "/common/img/ico_play.png",
		prevBtnImage : "/common/img/btn_prev_gal_datv.png",
		nextBtnImage : "/common/img/btn_next_gal_datv.png"
	};
	/* ***************** // end of fe_gallery1 ********************** */
	/* ***************** fe_gallery2 ********************** */
	// fe_gallery2 Plugin
	$.fe_gallery2 = function(options) {
		var options = $.extend({}, $.fe_gallery2.defaults, options);
		var $wrap = $("#gallery2");
		var $contentArea = $wrap.find(".wrapZoom");
		var $viewArea = $contentArea.find(".viewArea");
		var $curtain = $wrap.find(".thumbInfoArea");
		var $carousel = $wrap.find(".thumbArea");
		var $frame = $carousel.find(".thumbList");
		var $innerFrame = $frame.find("ul");
		var $item = $innerFrame.find("li");
		var $table = $contentArea.find(".thumbInfoArea").find("table");
		var moving = $item.eq(0).outerHeight(true)+1;
		var firstTop = 0;
		var limitTop = -(moving * ($item.length - 5));
		var currentTop = 0;
		var leftIdx = 0;
		var rightIdx = 4;
		var largeSrc, largeAlt, sourceSrc;
		var gal2_cap_dispNm, gal2_cap_expoTime, gal2_cap_fnumVal, gal2_cap_iso, gal2_cap_wdthResol, gal2_cap_hghtResol, gal2_cap_expoPrg, gal2_cap_whb, gal2_cap_focusDstnc;
		var jsClass = options.jsClass;
		var prevBtnImage = options.prevBtnImage;
		var nextBtnImage = options.nextBtnImage;
		$contentArea.addClass("nowLoading");
		$wrap.addClass(jsClass);
		// button
		if ( $carousel.find(".prev").length ) $carousel.find(".prev").remove();
		if ( $carousel.find(".next").length ) $carousel.find(".next").remove();
		var $prevBtn = $("<p />", { "class" : "prev" }).prependTo($carousel);
		var $nextBtn = $("<p />", { "class" : "next" }).appendTo($carousel);
		$prevBtn.html('<a href=""><img src="' + prevBtnImage + '" alt="" /></a>');
		$nextBtn.html('<a href=""><img src="' + nextBtnImage + '" alt="" /></a>')
		var prevImageOn = $prevBtn.find("img").attr("src").replace("_datv.", "_atv.");
		var prevImageOff = $prevBtn.find("img").attr("src").replace("_atv.", "_datv.");
		var nextImageOn = $nextBtn.find("img").attr("src").replace("_datv.", "_atv.");
		var nextImageOff = $nextBtn.find("img").attr("src").replace("_atv.", "_datv.");
		if ( $item.length > 5 ) {
			$prevBtn.find("img").attr("src", prevImageOff);
			$nextBtn.find("img").attr("src", nextImageOn);
			$prevBtn.find("a").css("cursor", "default");
			$nextBtn.find("a").css("cursor", "pointer");
		} else {
			$prevBtn.find("img").attr("src", prevImageOff);
			$nextBtn.find("img").attr("src", nextImageOff);
			$prevBtn.find("a").css("cursor", "default");
			$nextBtn.find("a").css("cursor", "default");
		}
		if ( $item.length < 6 ) {
			$prevBtn.hide();
			$nextBtn.hide();
			$frame.css("margin-top",0);
			$item.first().css("padding-top",0);
		}
		hideItems();
		// event
		$nextBtn.click(function() {
			if ( currentTop == limitTop ) return false;
			else if ( currentTop > limitTop ) {
				leftIdx += 1;
				rightIdx += 1;
				showItems();
				currentTop -= moving;
				$innerFrame.stop(true, true).animate({
					"top" : currentTop + "px"
				}, 250, function() {
					hideItems();
				});
			}
			buttonCheck();
			return false;
		});
		$prevBtn.click(function() {
			if ( currentTop == firstTop ) return false;
			else if ( currentTop < firstTop ) {
				leftIdx -= 1;
				rightIdx -= 1;
				showItems();
				currentTop += moving;
				$innerFrame.stop(true, true).animate({
					"top" : currentTop + "px"
				}, 250, function() {
					hideItems();
				});
			}
			buttonCheck();
			return false;
		});
		function buttonCheck() {
			if ( currentTop < firstTop && currentTop > limitTop ) {
				$prevBtn.find("img").attr("src", prevImageOn);
				$nextBtn.find("img").attr("src", nextImageOn);
				$prevBtn.find("a").css("cursor","pointer");
				$nextBtn.find("a").css("cursor","pointer");
			} else if ( currentTop == firstTop ) {
				$prevBtn.find("img").attr("src", prevImageOff);
				$nextBtn.find("img").attr("src", nextImageOn);
				$prevBtn.find("a").css("cursor", "default");
				$nextBtn.find("a").css("cursor", "pointer");
			} else if ( currentTop == limitTop ) {
				$prevBtn.find("img").attr("src", prevImageOn);
				$nextBtn.find("img").attr("src", nextImageOff);
				$prevBtn.find("a").css("cursor", "pointer");
				$nextBtn.find("a").css("cursor", "default");
			}
		}
		function hideItems() {
			$item.each(function(i) {
				if ( i < leftIdx || i > rightIdx ) {
					$(this).css("visibility","hidden");
				} else {
					$(this).css("visibility","visible");
				}
			});
		}
		function showItems() {
			$item.each(function() {
				$(this).css("visibility","visible");
			});
		}
		var imgWidth;
		var imgHeight;
		// binding
		$item.find("a").click(function() {
			$item.find("a").removeClass("activator");
			$(this).addClass("activator");
			$contentArea.addClass("nowLoading");
			var $data = $(this).next(".dataBinding");
			largeSrc = $data.find(".largeSrc").text();
			largeAlt = $data.find(".largeAlt").text();
			sourceSrc = $data.find(".sourceSrc").text();
			gal2_cap_dispNm = $data.find(".gal2_cap_dispNm").text();
			gal2_cap_expoTime = $data.find(".gal2_cap_expoTime").text();
			gal2_cap_fnumVal = $data.find(".gal2_cap_fnumVal").text();
			gal2_cap_iso = $data.find(".gal2_cap_iso").text();
			gal2_cap_wdthResol = $data.find(".gal2_cap_wdthResol").text();
			gal2_cap_hghtResol = $data.find(".gal2_cap_hghtResol").text();
			gal2_cap_expoPrg = $data.find(".gal2_cap_expoPrg").text();
			gal2_cap_whb = $data.find(".gal2_cap_whb").text();
			gal2_cap_focusDstnc = $data.find(".gal2_cap_focusDstnc").text();
			if ( $viewArea.find("img").length ) $viewArea.find("img").remove();
			$("<img />", { "src" : largeSrc, "alt" : largeAlt }).prependTo($viewArea);
			var $img = $viewArea.find("img");
			var viewAreaHeight = $viewArea.height();
			$viewArea.css({
				"text-align" : "center"
			});
			$img.hide();
			if ( $img.height() > viewAreaHeight ) {
				$img.attr("height", viewAreaHeight  );
			}
			$img.css({
				"position" : "absolute",
				"left" : "50%",
				"top" : "50%",
				"margin-top" : "-" + ($img.height() / 2 ) + "px",
				"margin-left" : "-" + ($img.width() / 2 ) + "px"
			}).show();
			$contentArea.find(".download").attr("href", sourceSrc);
			$table.find("#gal2_cap_dispNm").text(gal2_cap_dispNm);
			$table.find("#gal2_cap_expoTime").text(gal2_cap_expoTime);
			$table.find("#gal2_cap_fnumVal").text(gal2_cap_fnumVal);
			$table.find("#gal2_cap_iso").text(gal2_cap_iso);
			$table.find("#gal2_cap_wdthResol").text(gal2_cap_wdthResol);
			$table.find("#gal2_cap_hghtResol").text(gal2_cap_hghtResol);
			$table.find("#gal2_cap_expoPrg").text(gal2_cap_expoPrg);
			$table.find("#gal2_cap_whb").text(gal2_cap_whb);
			$table.find("#gal2_cap_focusDstnc").text(gal2_cap_focusDstnc);
			$contentArea.removeClass("nowLoading");
			return false;
		});
		//$item.first().find("a").click();
		// curtain
		$curtain.each(function() {
			var $this = $(this);
			var $wrap = $(this).parent();
			var firstBottom = -($(this).height()) - 1;
			var thisHeight = $this.find("table").outerHeight();
			$contentArea.css("position","relative");
			if ( $.browser.msie ) {
				if ( $.browser.version > 7 || $.browser.version == 7 ) {
					overLayer();
				} else {
					overLayer2();
				}
			} else {
				overLayer();
			}
			function overLayer() {
				$this.css({
					"position" : "absolute",
					"left" : "1px",
					"bottom" : "42px",
					"display" : "none",
					"opacity" : 0.7
				});
				if ( $.browser.msie ) {
					if ( $.browser.version < 7 ) {
						$this.css({
							"bottom" : "32px"
						});
					}
				}
				var $overLayer = $("<div />", { "id" : "gallery2_Overlayer" });
				$("<img />", { "src" : "/common/img/bg_transparent.png" }).appendTo($overLayer);
				$overLayer
					.prependTo($wrap)
					.css({
						"position" : "absolute",
						"width" : "100%",
						"height" : "92%",
						"left" : 0,
						"top" : 0,
						"z-index" : 500
					});
				$overLayer.bind({
					mouseenter : function() {
						$this.fadeIn(300);
					},
					mouseleave : function() {
						$this.fadeOut(300);
					}
				});
			}
			function overLayer2() {
				$this.prev().css({
					"float" : "none"
				});
				$this.css({
					"display" : "block",
					"margin-top" : "-5px",
					"margin-left" : "1px",
					"opacity" : 1,
					"padding" : 0
				});
			}
		});
		// image Download
		$wrap.find(".imageDownload").click(function() {
			var b_Width = (parseInt(screen.width, 10) / 2) - 500;
			var b_Height = (parseInt(screen.height, 10) / 2) - 500;
			window.open( sourceSrc , "Image", "width=1000,height=800, left=" + b_Width + ",top =" + b_Height +",history=no,resizable=yes,status=no,scrollbars=yes,menubar=no");
			return false;
		});
	};
	// fe_gallery2 Defaults
	$.fe_gallery2.defaults = {
		jsClass : "galleryType2",
		prevBtnImage : "/common/img/btn_prev_gal_datv.png",
		nextBtnImage : "/common/img/btn_next_gal_datv.png"
	};
	/* ***************** // end of fe_gallery2 ********************** */
	/* ***************** fe_interactive ********************** */
	// fe_interactive Plugin
	$.fe_interactive = function(options) {
		if ( $(".keyLink").length ) {
			var $flag = $(".keyLink");
			$flag.each(function() {
				var $this = $(this);
				var $trigger = $(this).find("li").children("a");
				var imageCheck = $trigger.find("img").length ? true : false;
				var $content = $(this).find(".flagContent");
				var $triggerImage = $trigger.find("img");
				$content.hide();
				$content.eq(0).show();
				if ( imageCheck ) {
					$triggerImage.each(function() {
						var off = $(this).attr("src");
						var on = $(this).attr("selected-src");
						$(this).attr("off",off);
						$(this).attr("on",on);
					});
					var firstImgOn = $trigger.first().find("img").attr("on");
					$trigger.eq(0).find("img").addClass("activator").attr("src", firstImgOn);
				} else {
					$trigger.eq(0).addClass("activator");
				}
				$trigger.each(function(i) {
					$(this).bind({
						click : function() {
							if ( imageCheck ) {
								$trigger.each(function(j) {
									var imgOff = $(this).find("img").attr("off");
									$(this).find("img").attr("src", imgOff);
								});
								var imgOn = $(this).find("img").attr("on");
								$(this).find("img").attr("src", imgOn);
							} else {
								if ( $(this).next().is(":hidden") ) {
									$this.find("li").children("a").removeClass("activator");
									$(this).addClass("activator");
								} else {
									return false;
								}
							}
							$content.hide();
							$(this).next().fadeIn(600);
							return false;
						}
					});
				});
			});
		}
	};
	/* ***************** // end of fe_interactive ********************** */
	/* ***************** fe_searchNav ********************** */
	// fe_searchNav Plugin
	$.fe_searchNav = function(options) {
		var options = $.extend({}, $.fe_searchNav.defaults, options);
		var $wrap = $("#searchNav");
		var $li = $("#searchNav > ul > li > ul > li");
		var $ul = $("#searchNav > ul > li > ul");
		if($('#moreText').length) {
			var moreText = $('#moreText').attr('value');
		} else {
			var moreText = options.moreText;
		}
		if($('#top5Text').length) {
			var top5Text = $('#top5Text').attr('value');
		} else {
			var top5Text = options.top5Text;
		}
		$ul.each(function() {
			var $this = $(this);
			var clickable = false;
			var $more = $("<span />").html('<a href="">[ ' + moreText + ' ]</a>').insertAfter($(this)).hide();
			var $top5 = $("<span />").html('<a href="">[ ' + top5Text + ' ]</a>').insertAfter($(this)).hide();
			var height5 = 0;
			if ( $(this).find("li").length > 5 ) {
				clickable = true;
				$more.show();
				show5();
			}
			$more.find("a").click(function() {
				$this.find("li").show();
				$(this).parent().hide();
				$top5.show().find("a").focus();
				return false;
			});
			$top5.find("a").click(function() {
				$(this).parent().hide();
				$more.show().find("a").focus();
				show5();
				return false;
			});
			function show5() {
				$this.find("li").hide();
				$this.find("li").each(function(i) {
					if ( i < 5 ) {
						$(this).show();
					}
				});
			}
		});
	};
	// fe_searchNav Defaults
	$.fe_searchNav.defaults = {
		moreText : "More",
		top5Text : "Top 5"
	};
	/* ***************** // end of fe_searchNav ********************** */
	/* ***************** fe_award ********************** */
	// fe_award Plugin
	$.fe_award = function(options) {
		var options = $.extend({}, $.fe_award.defaults, options);
		var $award = $(".award");
		$award.each(function() {
			if ( $(this).find(".desc").find("li").length > 1 ) {
				var $item = $(this).find(".awardDefinition");
				var $trigger = $(this).find(".desc").find("li").find("a:first");
				var leftArray = new Array();
				var closeBtnImage = options.closeButtonImage;
				$item.addClass("fe_award");
				$item.each(function(i) {
					var $closeBtn = $("<p />", { "class" : "btnClose" });
					$(this).addClass("awardLayer"+i).prependTo($("body")).hide();
					$closeBtn.prependTo($(this)).html('<a href=""><img src="' + closeBtnImage + '" /></a>');
					if ( $.browser.msie ) {
						if ( $.browser.version < 7 ) {
							$closeBtn.css({
								"position" : "relative",
								"width" : "100%",
								"margin-top" : "-20px",
								"margin-right" : "-16px",
								"text-align" : "right"
							});
						}
					}
				});
				/*
				$trigger.each(function(i) {
					var pos = $(this).offset();
					if ( $(this).parent().css("visibility") == "visible" ) {
						leftArray[i] = pos.left;
					}
				});
				*/
				$trigger.each(function(i) {
					var pos = $(this).offset();
					var pos2 = $trigger.eq(0).offset();
					var posLeft, posLeft2, posTop;
					posTop = pos2.top;
					var newImage = $(this).find("img").attr("src");
					$(".awardLayer"+i).find(".image").find("img").attr("src", newImage);
					$(this).click(function() {
						var visibleItems = 0;
						var pos3 = $(this).offset();
						posLeft = pos3.left;
						/*
						$(this).parent().prevAll().each(function() {
							if ( $(this).css("visibility") == "visible" ) {
								visibleItems += 1;
							}
						});
						if ( visibleItems > 2 ) {
							posLeft = leftArray[visibleItems] -  $(".awardLayer"+i).width() + 70;
						} else {
							posLeft = leftArray[visibleItems] + 10;
						}
						*/
						$item.hide();
						$(".awardLayer"+i).css({
							"left" : posLeft,
							"top" : posTop
						}).fadeIn(200);
					});
				});
			}
			$(".fe_award").find(".btnClose").find("a").click(function() {
				$(this).parent().parent().fadeOut(200);
				return false;
			});
		});
	};
	// fe_award Defaults
	$.fe_award.defaults = {
		closeButtonImage : "/common/img/btn_layTip_close.png"
	};
	/* ***************** // end of fe_award ********************** */
	/* ***************** fe_print ********************** */
	// fe_print Plugin
	$.fe_print = function(options) {
		var options = $.extend({}, $.fe_print.defaults, options);
		var ratingText = options.ratingText;
		var footerHTML = options.footerHTML;
		var SITE_CODE = getCookie("dotcomSiteCode") ? getCookie("dotcomSiteCode") : "uk";
		if($('#print_this_page').length) {
			var langPrint = $('#print_this_page').attr('value');
		} else {
			var langPrint = "PRINT THIS PAGE";
		}
		if($('#printer_friendly').length)	{
			var langTitle = $('#printer_friendly').attr('value');
		} else {
			var langTitle = "Printer-friendly";
		}
		if($('#csslayout').length) {
			var lsStyle = '<link type="text/css" rel="stylesheet" href="' + $('#csslayout').attr('value') + '" />';
		} else {
			var lsStyle = "";
		}
		$(".utillinks .print").click(function() {
			var b_Width = (parseInt(screen.width, 10) / 2) - 500;
			var b_Height = (parseInt(screen.height, 10) / 2) - 400;
			var printPage = window.open('','printPop','left=' + b_Width +', top=' + b_Height +',width=1000, height=700, scrollbars=yes, toolbar=no, location=no, directories=no, status=no, menubar=no');
			var $pContent = $("<div />");
			$pContent.html($("#container").html());
			$pContent.find("#footer").remove();
			$pContent.find(".paging .fe_selectWrap").remove();
			$pContent.find(".paging input").remove();
			$pContent.find("#contentHead .optional").remove();
			var pContent = $pContent.html();
			// a href, removed
			pContent = pContent.replace(/<a\s[^>]*>/gi, "<a>");
			var rating = pContent.match(/[0-9].[0-9]<\/strong>/);
			pContent = pContent.replace(rating, rating + " " + ratingText);
			var pWinHead = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'
						//+ '<html xmlns="http://www.w3.org/1999/xhtml" lang="'+SITE_CODE+'"><head>'
						+ '<html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head>'
						+ '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'
						+ '<link type="text/css" rel="stylesheet" href="/'+SITE_CODE+'/common/css/samsung.css" />'
						+ '<!--[if gte IE 8]><link rel="stylesheet" type="text/css" href="/'+SITE_CODE+'/common/css/ie8gte.css" /><![endif]-->'
						+ '<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="/'+SITE_CODE+'/common/css/ie7lte.css" /><![endif]-->'
						+ '<!--[if IE 6]><link rel="stylesheet" type="text/css" href="/'+SITE_CODE+'/common/css/ie6.css" /><![endif]-->'
						+ lsStyle
						+ '<title>'+langTitle+'</title>'
						+ '</head><body id="printWrap">'
						+ '<div id="printHeader" class="btnArea">'
						+ '<h1>'+langTitle+'</h1>'
						+ '<a href="#none" class="btnStyle" id="print1" onclick="self.print();"><span>'+langPrint+'</span></a>'
						+ '</div><div id="container">';
			var pWinFoot = '<div class="btnArea reverse"><a href="#none" id="print2" class="btnStyle print" onclick="self.print();"><span>'+langPrint+'</span></a></div></div>';
			var pWinFoot2 = '</body>'
						+ '</html>';
			var pWin = pWinHead + pContent + pWinFoot + footerHTML + pWinFoot2;
			printPage.document.write(pWin);
			if ( $.browser.msie ) printPage.location.reload(true);
			printPage.print();
		});
	};
	// fe_print Defaults
	$.fe_print.defaults = {
		ratingText : "Rating",
		footerHTML : '<div id="printFooter">'
				+ '<p><img src="/common/img/printLogo.gif" alt="samsung" />Copyright &copy; 1995-2011 SAMSUNG All rights reserved</p>'
				+ '</div>'
	};
	/* ***************** // end of fe_print ********************** */
	/* ***************** fe_loading ********************** */
	// fe_loading Methods
	var fe_loading_methods = {
		start : function(options) {
			var options = $.extend({}, $.fe_loading.defaults, options);
			if ( $(".resultList").length || $(".loadable").length ) execution();
			function execution() {
				var $wrap = $("<div />", { "class" : "fe_loadingLayer" }).prependTo($("body"));
				var $area = $(".resultList").length ? $(".resultList") : $(".loadable");
				var areaHeight = $area.height();
				var areaWidth = $area.width();
				var pos = $area.offset();
				var posLeft = pos.left;
				var posTop = pos.top + 1;
				//alert( $(".summList").eq(0).length );
				$wrap.css({
					"position" : "absolute",
					"width" : areaWidth + "px",
					"height" : areaHeight + "px",
					"left" : posLeft + "px",
					"top" : posTop + "px",
					"z-index" : 600,
					"background" : "#fff url(" + options.loadingImage + ") no-repeat center 170px",
					"opacity" : 0.8
				});
			}
			return true;
		},
		stop : function() {
			if ( $("div.fe_loadingLayer").length ) $("div.fe_loadingLayer").remove();
			$.fe_ieFix();
			return true;
		}
	};
	// fe_loading Plugin
	$.fe_loading = function(method) {
		// Method calling logic
		if ( fe_loading_methods[method] ) {
		  return fe_loading_methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
		} else if ( typeof method === 'object' || !method ) {
		  return fe_loading_methods.init.apply( this, arguments );
		} else {
		  $.error( 'Method "' +  method + '" does not exist on this function' );
		}
	};
	// fe_loading Defaults
	$.fe_loading.defaults = {
		loadingImage : "/common/img/ico_productLoading.gif"
	};
	/* ***************** //fe_loading ********************** */
	/* ***************** fe_quickView ********************** */
	// fe_quickView Plugin
	$.fe_quickView = function(options) {
		var options =  $.extend({}, $.fe_quickView.defaults, options);
		if ( $(".quickView").length > 0 ) {
			execution();
		}
		function execution() {
			var reverse = options.reverse;
			var whereToBuyText = options.whereToBuyText;
			var closeBtnImage = options.closeBtnImage;
			var quickViewHTML = "";
			quickViewHTML = '<p class="btnClose"><a href="#none"><img src="' + closeBtnImage + '" alt="close" /></a></p>\n'
					+ '<div class="optional">\n'
					+ '</div>\n'
					+ '<div class="basicInfo">'
					+ '<h2><a href="#none" class="sControl"></a></h2>'
					+ '<p class="prdName"></p>'
					+ '<p class="rating"></p>\n'
					+ '</div>\n'
					+ '<p class="figure"><a href="#none" class="sControl"><img src="/uk/common/img/logo.gif" alt="" /></a></p>\n'
					+ '<div class="kvArea">\n'
					+ '<ul class="keyLink">\n'
					+ '</ul>\n'
					+ '<p class="keyText">\n'
					+ '</p>\n'
					+ '<div class="kvInfo">'
					+ '<p class="price"></p>\n'
					+ '<p class="priceDesc"></p>\n'
					+ '<div class="btnArea">\n'
					+ '</div>\n'
					+ '<p class="shopDesc"></p>\n'
					+ '</div>\n'
					+ '</div>\n';
			if ( $("#layQuick").length ) {
				var $quickView = $("#layQuick");
			} else {
				var $quickView = $("<div />", { "class" : "layPop","id":"layQuick"});
				$quickView.html(quickViewHTML);
			}
			$quickView.prependTo($("body"));
			var quickViewCloser;
			var $figureArea = $(".quickView").find(".summList").find(".summ").find(".figure");
			/*var leftArray = [ 0, 1, 4, 5, 8, 9, 12, 13, 16, 17, 20, 21, 24, 25, 28, 29, 32, 33, 36, 37, 40, 41, 44, 45, 48, 49, 52, 53, 56, 57, 60, 61, 64, 65, 68, 69, 72, 73];*/ //testÃ¬Â¤â€˜
			// quickView Constructing
			$figureArea.each(function() {
				if ( $(this).find(".btnQuick").length == 0 ) {
					$("<span />", { "class" : "btnQuick" }).appendTo($(this));
					$("<a />", { "href" : "", "class" : "btnStyle" }).prependTo($(this).find(".btnQuick"));
					$("<span />", { "class" : "quickText"}).prependTo($(this).find(".btnQuick").find("a"));
					$(".quickText").text(quickViewText);
				}
			});
			$quickViewCloser = $quickView.find(".btnClose").find("a");
			$quickView.css({
				"position" : "absolute",
				"left" : 0,
				"top" : 0,
				"z-index" : "500"
			}).hide();
			$figureArea.find(".btnQuick").hide();
			$quickView.hide();
			$quickViewCloser.click(function() {
				$quickView.fadeOut(200);
				return false;
			});
			var $quickBtnWrap = $figureArea.find(".btnQuick");
			$quickBtnWrap.each(function(i) {
				var $this = $(this).parents(".figure");
				var $quickButton = $(this).find("a");
				var $btnWrap = $(this);
				if ($.browser.msie ) {
					if ( $.browser.version < 9) {
						$this.bind({
							mouseover : function() {
								if ( $quickView.is(":hidden") ) {
									$btnWrap.show();
								}
							},
							mouseout : function() {
								$btnWrap.delay(50).hide();
							}
						});
					} else {
						$this.bind({
							mouseover : function() {
								if ( $quickView.is(":hidden") ) {
									$btnWrap.fadeIn(200);
								}
							},
							mouseenter : function() {
								if ( $quickView.is(":hidden") ) {
									$btnWrap.fadeIn(200);
								}
							},
							mouseleave : function() {
								$btnWrap.stop(true, true).fadeOut(200);
							}
						});
					}
				} else {
					$this.bind({
						mouseover : function() {
							if ( $quickView.is(":hidden") ) {
								$btnWrap.fadeIn(200);
							}
						},
						mouseenter : function() {
							if ( $quickView.is(":hidden") ) {
								$btnWrap.fadeIn(200);
							}
						},
						mouseleave : function() {
							$btnWrap.stop(true, true).fadeOut(200);
						}
					});
				}
				$quickButton.click(function() {
					var $this2 = $(this);
					var posCheck = "";
					var thisIndex = i;
					var $data = $(this).parents(".summ").find(".dataBinding");
					var $iframeOpener = $quickView.find(".layIframeOpener");
					var detailLinkTagging;
					// position Check
					var quickViewWidth = $quickView.width();
					var quickViewHeight = $quickView.height();
					s_control_click('events', 'event79', 'event79', 'o', 'quick view');
					var pos, objPosLeft, objPosTop;
					positioning();
					dataBinding();
					$quickView.fadeIn(300);
					$("#layQuick").find(".sControl").click(function() {
						s_control_click('events,eVar44','event46', 'event46,' + detailLinkTagging,'o', 'additional user interaction');
					});
					// quicView_iframe
					$iframeOpener.click(function() {
						$(this).fe_layIframe();
						return false;
					});
					window.onresize = positioning;
					// quick View
					function dataBinding() {
						// data Binding
						var modelCodeDisplayFlag = $data.find(".spanModelCodeDisplayFlag").text().toLowerCase();
						var modelCode = $data.find(".spanModelCode").text();
						var detailLinkUrl = $data.find(".spanDetailLinkUrl").text();
						var displayName = $data.find(".spanDisplayName").text();
						var imageSrc = $data.find(".spanImageSrc").text();
						var imageAlt = $data.find(".spanImageAlt").text();
						var starGrade = $data.find(".spanStarGrade").text();
						var reviewCount = $data.find(".spanReviewCount").text();
						var reviewLinkUrl = $data.find(".spanReviewLinkUrl").text();
						var priceInformation = $data.find(".spanPriceInformation").text();
						var reviewDisplay = $data.find(".spanReviewDisplayFlag").text();
						var priceDisclaimer = $data.find(".spanPriceDisclaimer").text();
						var featureType = $data.find(".spanFeatureDisplay").text();
						var featureHTML = "";
						var shopDisplay = $data.find(".spanShoppingDisplay").text();
						var shopEnabled = $data.find(".spanShoppingEnabled").text();
						var shoppingDropDown = $data.find(".spanShoppingDropDown").text();
						var shopDisclaimer = $data.find(".spanShoppingDisclaimer").text();
						var shopHTML = "";
						var shopping = $data.find(".spanShopping").children("span");
						detailLinkTagging = $data.find(".spanDetailLinkTagging").text();
						var spanUrl, spanTarget, spanFunction;
						var spanTaggingEventNum = new Array();
						var spanTaggingMdlNm = new Array();
						var spanTaggingEVar45 = new Array();
						var spanTaggingName = new Array();
						// tagMan
						var price = $data.find(".spanPrice").text();
						var conversionType = new Array();
						var tagManAccount = $data.find(".spanTagManAccount").text();
						var tagManCurrency = $data.find(".spanTagManCurrency").text();
						var tagManUseFlag = $data.find(".spanTagManUseFlag").text();
						// remanufacturing
						if ( reviewDisplay != "Y" ) $quickView.find(".rating").hide();
						if ( shopDisplay != "Y" ) {
							$quickView.find(".btnArea").hide();
							$quickView.find(".shopDesc").hide();
						}
						var rating = (starGrade > 0) ? (starGrade * 13) + Math.ceil(starGrade - 1) : 0;
						var ratingHTML = '<span class="small point"><strong style="width:' + rating + 'px;">3.0</strong></span><span class="review">(<a href="' + reviewLinkUrl +'">' + reviewCount +'</a>)</span>';
						if ( featureType == "bullet" ) {
							$data.find(".spanFeature").find("span").each(function(i) {
								thisText = $(this).html();
								featureHTML += '<li>' + thisText + '</li>';
							});
						} else if ( featureType == "sentence" ) {
							featureHTML = $data.find(".spanFeature").find("span").first().html();
						}
						if ( shopEnabled == "true" && shoppingDropDown == "Y" ) {
							shopHTML += '<ul class="dropDown" title="' + whereToBuyText + '">\n';
							shopping.each(function(i) {
								spanUrl = $(this).find(".spanUrl").text();
								spanLabel = $(this).find(".spanLabel").text();
								spanTarget = $(this).find(".spanTarget").text();
								spanFunction = $(this).find(".spanFunction").text();
								spanTaggingEventNum[i+1] = $(this).find(".spanTaggingEventNum").text();
								spanTaggingMdlNm[i+1] = $(this).find(".spanTaggingMdlNm").text();
								spanTaggingName[i+1] = $(this).find(".spanTaggingName").text();
								spanTaggingEVar45[i+1] = $(this).find(".spanTaggingEVar45").text();
								conversionType[i+1] = $(this).find(".spanConversionType").text();
								shopHTML += "<li><a href=\"javascript:" + spanFunction + "('" + spanTarget + "','" + spanUrl + "')\" rel=\"nofollow\">" + spanLabel + "</a></li>";
							});
							shopHTML += "</ul>\n";
						} else if( shoppingDropDown == "N" ) {
							shopping.each(function(i) {
								spanUrl = $(this).find(".spanUrl").text();
								spanLabel = $(this).find(".spanLabel").text();
								spanTarget = $(this).find(".spanTarget").text();
								spanFunction = $(this).find(".spanFunction").text();
								spanTaggingEventNum[i+1] = $(this).find(".spanTaggingEventNum").text();
								spanTaggingMdlNm[i+1] = $(this).find(".spanTaggingMdlNm").text();
								spanTaggingName[i+1] = $(this).find(".spanTaggingName").text();
								spanTaggingEVar45[i+1] = $(this).find(".spanTaggingEVar45").text();
								conversionType[i+1] = $(this).find(".spanConversionType").text();
								shopHTML += "<a class=\"btnStyle\" href=\"javascript:" + spanFunction + "('" + spanTarget + "','" + spanUrl + "')\" rel=\"nofollow\"><span>" + spanLabel + "</span></a>";
							});
						} else {
							shopHTML = '<a href="#" onclick="return false" class="btnStyle datv"><span>' + whereToBuyText + '</span></a>';
						}
						// inserting Data into QuickView Layer
						$quickView.find(".basicInfo").find("h2").find("a").text(displayName);
						$quickView.find(".basicInfo").find("h2").find("a").attr("href", detailLinkUrl);
						if ( modelCodeDisplayFlag == "y" ) $quickView.find(".basicInfo").find(".prdName").text(modelCode);
						$quickView.find(".basicInfo").find(".rating").html(ratingHTML);
						$quickView.find(".kvInfo").find(".price").text(priceInformation);
						$quickView.find(".btnArea").html(shopHTML);
						$quickView.find("ul.dropDown").fe_dropdown({
							designClass : "dropdown"
						});
						$quickView.find(".figure").find("a").find("img").attr("src", imageSrc);
						$quickView.find(".figure").find("a").find("img").attr("alt", imageAlt);
						$quickView.find(".figure").find("a").attr("href", detailLinkUrl);
						if ( featureType == "bullet" ) {
							$quickView.find(".kvArea").find(".keyLink").html(featureHTML).show();
							$quickView.find(".kvArea").find(".keyText").hide();
						} else if ( featureType == "sentence" ) {
							$quickView.find(".kvArea").find(".keyText").html(featureHTML).show();
							$quickView.find(".kvArea").find(".keyLink").hide();
						} else if ( featureType == "" ) {
							$quickView.find(".kvArea").find(".keyText").hide();
							$quickView.find(".kvArea").find(".keyLink").hide();
						}
						$quickView.find(".kvInfo").find(".priceDesc").text(priceDisclaimer);
						$quickView.find(".kvInfo").find(".shopDesc").text(shopDisclaimer);
						$quickView.find(".dropdown").find("a").each(function(i) {
							$(this).click(function() {
								s_control_click('products,events,eVar45',spanTaggingEventNum[i], spanTaggingMdlNm[i] + ',' + spanTaggingEventNum[i] + ',' + spanTaggingEVar45[i],'o',spanTaggingName[i]);
								if ( tagManUseFlag == "Y" ) {
									TMAN.addParams(
										tagManAccount,
										{	currency : tagManCurrency,
											conversion_type: conversionType[i],
											product_prices : price
										}
									);
									TMAN.doTags(TMAN.position.CUSTOM_1,true);
								}
							});
						});
						$quickView.find("a.btnStyle").each(function(i) {
							$(this).click(function() {
								s_control_click('products,events,eVar45',spanTaggingEventNum[i], spanTaggingMdlNm[i] + ',' + spanTaggingEventNum[i] + ',' + spanTaggingEVar45[i],'o',spanTaggingName[i]);
								if ( tagManUseFlag == "Y" ) {
									TMAN.addParams(
										tagManAccount,
										{ currency : tagManCurrency,
											conversion_type: conversionType[i],
											product_prices : price
										}
									);
									TMAN.doTags(TMAN.position.CUSTOM_1,true);
								}
							});
						});

					}
					function positioning() {
						pos = $btnWrap.parent().offset();
						objPosTop = pos.top + 8;
						if ( $("#filterTool").length ) {
							for ( k=0; k<100; k++ ) {
								if ( k == 0 ) {
									if ( thisIndex == k ) {
										direction = true;
									}
								} else {
									if ( thisIndex == k ) {
										if ( (k%3) == 0 ) {
											direction = true;
										} else {
											direction = false;
										}
									}
								}
							}
						} else {
							if( thisIndex % 4 < 2 ) direction = true;
							else direction = false;
							/*for ( k=0; k<leftArray.length; k++ ) {
								if ( thisIndex == leftArray[k] ) {
									direction = true;
									break;
								} else {
									direction = false;
								}
							}*/ //testÃ¬Â¤â€˜
						}
						if ( !reverse ) {
							if ( direction ) {
								objPosLeft = pos.left + 18;
							} else {
								objPosLeft = ( pos.left - $quickView.width() ) + $btnWrap.parent().width() - 66;
							}
						} else {
							if ( direction ) {
								objPosLeft = ( pos.left - $quickView.width() ) + $btnWrap.parent().width() - 66;
							} else {
								objPosLeft = pos.left + 18;
							}
						}
						$quickView.css({
							"left" : objPosLeft,
							"top" : objPosTop
						});
					}
					return false;
				});
			});
		}
	};
	// fe_quickView Defaults
	$.fe_quickView.defaults = {
		quickViewText : null,
		whereToBuyText : "WHERE TO BUY",
		closeBtnImage : "/common/img/btn_layTip_close.png",
		reverse : false
	};
	/* ***************** // end of fe_quickView ********************** */
	/* ***************** fe_layIframe ********************** */
	// fe_layIframe Methods
	var fe_layIframe_methods = {
		init : function(options) {
			var options = $.extend({}, $.fn.fe_layIframe.defaults, options);
			return this.each(function() {
				if ( $("#layIframe").length ) $("#layIframe").remove();
				var $layIframe = $("<div />", { "class" : "layPop", "id" : "layIframe" }).prependTo($("body"));
				var src = $(this).attr("href");
				$layIframe.html('<div>'
							+ '<iframe height="450" frameborder="0" width="824" scrolling="no" src="' + src + '" allowtransparency="True"></iframe>'
							+ '</div>'
							+ '<p class="btnClose"><a href=""><img src="' + options.closeBtnImage + '" alt="close" /></a></p>');
				var $closer = $layIframe.find(".btnClose").find("a");
				if ( $.browser.webkit ) {
					var scrollLeft = document.body.scrollLeft;
					var scrollTop = document.body.scrollTop;
				} else {
					var scrollLeft = document.documentElement.scrollLeft;
					var scrollTop = document.documentElement.scrollTop;
				}
				var left  = ((document.documentElement.clientWidth - $layIframe.width()) / 2)  + scrollLeft;
				var top = ((document.documentElement.clientHeight - $layIframe.height()) / 2)  + scrollTop;
				$layIframe.find("iframe").addClass("nowLoading");
				$layIframe.css({
					"left" : left,
					"top" : top,
					"z-index" : 990,
					"display" : "none"
				});
				$layIframe.fadeIn(150, function() {
					$(this).find("iframe").css("background-image","none");
				});
				$closer.click(function() {
					$layIframe.fadeOut(150);
					return false;
				});
				if ( $("#layQuick").length ) $("#layQuick").hide();
			});
		}
	}
	// fe_layIframe Plugin
	$.fn.fe_layIframe = function(method) {
		// Method calling logic
		if ( fe_layIframe_methods[method] ) {
		  return fe_layIframe_methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
		} else if ( typeof method === 'object' || !method ) {
		  return fe_layIframe_methods.init.apply( this, arguments );
		} else {
		  $.error( 'Method "' +  method + '" does not exist on this function' );
		}
	};
	// fe_layIframe Defaults
	$.fn.fe_layIframe.defaults = {
		closeBtnImage : "/common/img/btn_layTip_close.png"
	};
	/* ***************** // end of fe_layIframe ********************** */
	/* ***************** fe_carouselFix ********************** */
	// fe_carouselFix Methods
	var fe_carouselFix_methods = {
		init : function(options) {
			var options = $.extend({}, $.fn.fe_carouselFix.defaults, options);
			return this.each(function() {
				var $wrap = $(this).parents('.compWrap');
				var $outerFrame = $wrap.find(".summListWrap");
				$outerFrame.css({
					"padding-bottom" : "110px"
				});
				if ( $wrap.next().length ) {
					$wrap.next().css({
						"margin-top" : "-120px"
					});
				} else if ( $wrap.next().length == 0 ) {
					if ( $wrap.parents("#container").next("#footer").length ) {
						$("#content").css({
							"background" : "transparent",
							"padding-bottom" : 0
						});
						$("#footer").css({
							"margin-top" : "-53px"
						});
					}
				}
			});
		}
	}
	// fe_carouselFix Plugin
	$.fn.fe_carouselFix = function(method) {
		// Method calling logic
		if ( fe_carouselFix_methods[method] ) {
		  return fe_carouselFix_methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
		} else if ( typeof method === 'object' || !method ) {
		  return fe_carouselFix_methods.init.apply( this, arguments );
		} else {
		  $.error( 'Method "' +  method + '" does not exist on this function' );
		}
	};
	// fe_carouselFix Defaults
	$.fn.fe_carouselFix.defaults = {
	};
	/* ***************** // end of fe_carouselFix ********************** */
	/* ***************** fe_feedBack ********************** */
	// fe_feedBack Plugin
	$.fe_feedBack = function(options) {
		var $feedBack = $(".custom .feedback");
		var $data = $("#feedbackParam");
		var qst_area_cd = $data.find("#feedbk_qst_area_cd").text();
		var qst_lvl_cd = $data.find("#feedbk_qst_lvl_cd").text();
		var ia_cd = $data.find("#ia_cd").text();
		var model_cd = $data.find("#model_cd").text();
		var siteCd = $data.find("#siteCd").text();
		var url = "/" + siteCd + "/feedback.do?feedbk_qst_area_cd=" + qst_area_cd + "&feedbk_qst_lvl_cd=" + qst_lvl_cd + "&ia_cd=" + ia_cd + "&model_cd=" + model_cd;
		if ( qst_area_cd == "" && qst_lvl_cd == "" ) $feedBack.hide();
		if ( !$data.length ) $feedBack.hide();
		$feedBack.find("a").attr("href", url);
		$feedBack.find("a").click(function() {
			var THIS_HREF = $(this).attr("href");
			var b_Width = (parseInt(screen.width, 10) / 2) - 300;
			var b_Height = (parseInt(screen.height, 10) / 2) - 321;
			if( navigator.userAgent.toLowerCase().indexOf('chrome') > -1 ) {
				window.open( THIS_HREF , "FeedBack", "width=550,height=770, left=" + b_Width + ",top =" + b_Height +",history=no,resizable=no,status=no,scrollbars=yes,menubar=no");
			} else {
				window.open( THIS_HREF , "FeedBack", "width=550,height=770, left=" + b_Width + ",top =" + b_Height +",history=no,resizable=no,status=no,scrollbars=yes,menubar=no");
			}
			return false;
		});
	};
	/* ***************** fe_feedBack ********************** */
	/* ***************** fe_zoom ********************** */
	// fe_zoom Plugin
	$.fe_zoom = function(options) {
		var options = $.extend({}, $.fe_zoom.defaults, options);
		var $wrap = $("#gallery1");
		var imageSrc = options.itemSrcs.split(",");
		var imageWidth = options.itemWidths.split(",");
		var imageHeight = options.itemHeights.split(",");
		var itemColors = $wrap.find(".dataBinding").find("._colors").text();
		var itemSize = options.itemSize;
		var itemSourceSrc = options.itemSourceSrc;
		var $zoom = $wrap.find(".wrapZoom .viewArea");
		$zoom.html("");
		var $movableArea = $("<div />", { "class" : "zoom" }).prependTo($zoom);
		$zoom.addClass("nowLoading");
		for ( i=0; i<itemSize; i++) {
			$("<img />", { "src" : imageSrc[i], "alt" : "" }).appendTo($movableArea).hide();
		}
		var $levelImage = $movableArea.find("img");
		var viewWidth = $zoom.width();
		var viewHeight = $zoom.height();
		var areaWidth, areaHeight, areaTop, areaLeft;
		var clicking = false;
		var pastWidth = pastHeight = 0;
		var offset;
		var nowIdx = 0;
		var limitIdx = imageSrc.length - 1;
		var indicatorHTML = "";
		var largerOn = options.largerBtnImage.replace("_off","_on");
		var largerOff = options.largerBtnImage.replace("_on","_off");
		var smallerOn = options.smallerBtnImage.replace("_off","_on");
		var smallerOff = options.smallerBtnImage.replace("_on","_off");
		var zoomTriggerOff = options.zoomTriggerImage.replace("_on.","_off.");
		var zoomTriggerOn = options.zoomTriggerImage.replace("_off.","_on.");
		var $wrapMovable = $("<div />", {"class":"wrapMovable"});
		// width
		var zoomWidth =662;
		var zoomHeight = 372;
		var containerWidth, containerHeight;
		$wrapMovable.insertBefore($movableArea);
		$movableArea.appendTo($wrapMovable).hide();
		$wrapMovable.css({
			"position" : "absolute",
			"width" : zoomWidth,
			"height" : zoomHeight,
			"left" : 0,
			"top" : 0
		});
		$levelImage.eq(0).show();
		$movableArea.find("img").mousedown(function(event) {
			if (event.preventDefault) event.preventDefault();
		});
		if ( $.browser.msie ) {
			imageLoad();
		} else {
			$movableArea.css({'position' : 'absolute', 'left' : '-3000px', 'top' : '-3000px'}).show().find("img:eq(0)").load(function() {
				setTimeout(function(){
					$levelImage.eq(0).attr('width', $levelImage.eq(0).width());
					$levelImage.eq(0).attr('height', $levelImage.eq(0).height());
					$movableArea.hide();
					imageLoad();
				}, 0);
			});
		}
		if( itemSourceSrc && $wrap.find(".btnArea").length ) {
			$wrap.find(".download").attr("href", itemSourceSrc);
			$wrap.find(".btnArea").show();
		}
		// image Loading
		function imageLoad() {
			areaWidth = $levelImage.eq(0).width();
			areaHeight = $levelImage.eq(0).height();
			$movableArea.css({
				"position" : "absolute",
				"left" : ($zoom.width() / 2) - (areaWidth / 2) + "px",
				"top" : ($zoom.height() / 2) - (areaHeight / 2) + "px"
			});
			offset = $movableArea.offset();
			$movableArea.width(areaWidth).height(areaHeight);
			$movableArea.fadeIn(400);
			$zoom.removeClass("nowLoading");
		}
		if ( itemColors != null ) colorPicker(itemColors)
		if ( itemSize > 1 ) execution();
		// execution
		function execution() {
			var $indicator = $("<div />", { "class" : "zoomIndicator" }).prependTo($zoom);
			$movableArea.find("img").css({
				"position" : "absolute",
				"left" : 0,
				"top" : 0,
				"z-index" : 0
			});
			$indicator.html('<p class="scaleLarger"><a href=""><img src="' + largerOn + '" alt="Larger" /></a></p>'
						+ '<ul>'
						+ '</ul>'
						+ '<p class="scaleReduce"><a href=""><img src="' + smallerOff + '" alt="Smaller" /></a></p>');
			for ( i=imageSrc.length-1; i>-1; i-- ) {
				if ( i == 0 ) {
					indicatorHTML += '<li><a href="" idx="' + i + '"><img src="' + zoomTriggerOn + '" alt="" /></a></li>';
				} else {
					indicatorHTML += '<li><a href="" idx="' + i + '"><img src="' + zoomTriggerOff + '" alt="" /></a></li>';
				}
			}
			$indicator.find("ul").html(indicatorHTML);
			var $smaller = $indicator.find(".scaleReduce").find("a");
			var $larger = $indicator.find(".scaleLarger").find("a");
			var $levelIndicator = $indicator.find("ul");
			var $levelTrigger = $levelIndicator.find("li").find("a");
			$movableArea.mouseover(function() {
				$(this).css("cursor", "pointer");
			});
			$movableArea.draggable({
				start: function(event, ui) {
					if ( nowIdx == 0 ) return false;
				},
				containment : 'parent'
			});
			$larger.bind("click", function() {
				larger(nowIdx, nowIdx+1);
				return false;
			});
			$smaller.bind("click", function() {
				smaller(nowIdx, nowIdx-1);
				return false;
			});
			$levelTrigger.click(function() {
				var thisIdx = parseInt($(this).attr("idx"), 10);
				if ( thisIdx > nowIdx ) larger(nowIdx, thisIdx);
				else if ( thisIdx < nowIdx ) smaller(nowIdx, thisIdx);
				return false;
			});
			// larger Start
			function larger(nowNum, afterNum) {
				if ( nowNum < limitIdx ) {
					resignIdx(afterNum);
					var thisWidth = Math.abs(zoomWidth - $levelImage.eq(afterNum).width());
					var thisHeight = Math.abs(zoomHeight - $levelImage.eq(afterNum).height());
					var beforeWidth = $levelImage.eq(nowNum).width();
					var beforeHeight = $levelImage.eq(nowNum).height();
					var afterWidth = $levelImage.eq(afterNum).width();
					var afterHeight = $levelImage.eq(afterNum).height();
					if ( $levelImage.eq(afterNum).width() > zoomWidth ) {
						$wrapMovable
							.width($levelImage.eq(afterNum).width() + thisWidth)
							.css({
								"left" : -thisWidth
							});
					} else {
						$wrapMovable.width(zoomWidth);
					}
					if ( $levelImage.eq(afterNum).height() > zoomHeight ) {
						$wrapMovable
							.height($levelImage.eq(afterNum).height() + thisHeight)
							.css({
								"top" : -thisHeight
							});
					} else {
						$wrapMovable.height(zoomHeight);
					}
					var alignLeft = ($wrapMovable.width() / 2 ) - ( afterWidth / 2 );
					var alignTop = ($wrapMovable.height() / 2 ) - ( afterHeight / 2 );
					var imageFirstLeft = (afterWidth / 2) - ( beforeWidth / 2 );
					var imageFirstTop = (afterHeight / 2) - ( beforeHeight / 2 );
					$levelImage.eq(nowNum).css("z-index",0).hide();
					$movableArea.css({
						"width" : afterWidth,
						"height" : afterHeight,
						"left" : alignLeft,
						"top" : alignTop,
						"z-index" : 1
					});
					$levelImage.eq(afterNum).css({
						"width" : beforeWidth,
						"height" : beforeHeight,
						"left" : imageFirstLeft,
						"top" : imageFirstTop,
						"z-index" : 1
					}).show();
					$levelImage.eq(afterNum).animate({
						"width" : afterWidth,
						"height" : afterHeight,
						"left" : 0,
						"top" : 0
					}, 200);
					nowIdx = afterNum;
					s_control_click('products,eVar47,events', 'event47', model_name + ',gallery tab:gallery zoom,event47', 'o', 'gallery');
				}
			}// end of larger
			function smaller(nowNum, afterNum) {
				if ( nowNum > 0 ) {
					resignIdx(afterNum);
					var thisWidth = Math.abs(zoomWidth - $levelImage.eq(afterNum).width());
					var thisHeight = Math.abs(zoomHeight - $levelImage.eq(afterNum).height());
					var beforeWidth = $levelImage.eq(nowNum).width();
					var beforeHeight = $levelImage.eq(nowNum).height();
					var afterWidth = $levelImage.eq(afterNum).width();
					var afterHeight = $levelImage.eq(afterNum).height();
					if ( $levelImage.eq(afterNum).width() > zoomWidth ) {
						$wrapMovable
							.width($levelImage.eq(afterNum).width() + thisWidth)
							.css({
								"left" : -thisWidth
							});
					} else {
						$wrapMovable.width(zoomWidth).css("left",0);
						thisWidth = Math.abs( (zoomWidth - $levelImage.eq(afterNum).width() ) / 2);
					}
					if ( $levelImage.eq(afterNum).height() > zoomHeight ) {
						$wrapMovable
							.height($levelImage.eq(afterNum).height() + thisHeight)
							.css({
								"top" : -thisHeight
							});
					} else {
						$wrapMovable.height(zoomHeight).css("top",0);
						thisHeight = Math.abs( (zoomHeight - $levelImage.eq(afterNum).height() ) / 2);
					}
					var alignLeft = ($wrapMovable.width() / 2 ) - ( afterWidth / 2 );
					var alignTop = ($wrapMovable.height() / 2 ) - ( afterHeight / 2 );
					var imageFirstLeft = (afterWidth / 2) - ( beforeWidth / 2 );
					var imageFirstTop = (afterHeight / 2) - ( beforeHeight / 2 );
					$levelImage.eq(nowNum).css("z-index",0).hide();
					$movableArea.css({
						"width" : afterWidth,
						"height" : afterHeight,
						"left" : alignLeft,
						"top" : alignTop,
						"z-index" : 1
					});
					$levelImage.eq(afterNum).css({
						"width" : beforeWidth,
						"height" : beforeHeight,
						"left" : imageFirstLeft,
						"top" : imageFirstTop,
						"z-index" : 1
					}).show();
					$levelImage.eq(afterNum).animate({
						"width" : afterWidth,
						"height" : afterHeight,
						"left" : 0,
						"top" : 0
					}, 200);
					nowIdx = afterNum;
					s_control_click('products,eVar47,events', 'event47', model_name + ',gallery tab:gallery zoom,event47', 'o', 'gallery');
				}
			}
			function resignIdx(idx) {
				if ( idx == 0 ) {
					$smaller.css("cursor", "default")
						.find("img").attr("src", smallerOff);
					$larger.css("cursor", "pointer")
						.find("img").attr("src", largerOn);
				} else if ( idx == limitIdx ) {
					$smaller.css("cursor", "pointer")
						.find("img").attr("src", smallerOn);
					$larger.css("cursor", "default")
						.find("img").attr("src", largerOff);
				} else {
					$smaller.css("cursor", "pointer")
						.find("img").attr("src", smallerOn);
					$larger.css("cursor", "pointer")
						.find("img").attr("src", largerOn);
				}
				$levelTrigger.each(function() {
					$(this).find("img").attr("src", zoomTriggerOff);
				});
				$levelTrigger.each(function() {
					if ( $(this).attr("idx") == idx ) {
						$(this).find("img").attr("src", zoomTriggerOn);
					}
				});
			}
		} // end of execution
	};
	// fe_zoom Defaults
	$.fe_zoom.defaults = {
		itemType : null,
		itemSize : null,
		itemID : null,
		itemSrcs : null,
		itemWidths : null,
		itemHeights : null,
		itemSourceSrc : null,
		largerBtnImage : "/common/img/btn_viewlarger_off.png",
		smallerBtnImage : "/common/img/btn_viewsmaller_off.png",
		zoomTriggerImage : "/common/img/btn_nav_off.png"
	};
	/* ***************** fe_zoom ********************** */
	/* ***************** fe_sampleImageAlign ********************** */
	// fe_sampleImageAlign Plugin
	$.fe_sampleImageAlign = function(options) {
		var $frame = $("#sampleImages");
		var $item = $frame.find("li");
		var maxHeight = 0;
		$item.each(function(i) {
			if ( $(this).height() > maxHeight ) {
				maxHeight = $(this).height();
			}
		});
		$item.height(maxHeight);
		$item.find("img").each(function() {
			$(this).css({
				"margin-top" : (maxHeight - $(this).height())/2 + "px"
			});
		});
	};
	/* ***************** fe_sampleImageAlign ********************** */
	/* ***************** fe_webAcc ********************** */
	// fe_webAcc Plugin
	$.fe_webAcc = function(options) {
		// btn Hide
		if ( $(".accShow").length ) $(".accShow").hide();
		if ( $(".accHide").length ) {
			$(".accHide").show();
			if ( $(".resultpage").length ) {
				$(".resultpage select").fe_select();
				if($.browser.msie && $.browser.version < 8 && $('.paging:eq(0)').height() > 25) $('.paging').width(500).find('.accHide').css('float', 'right');
				// ?Ã‚â‚¬?Ã«ÂÂ²Ã«â€œÆ’ Ã¨Â«â€ºÃ«ÂºÂ¤Ã«â€™Âª??Ã¨Â«â€ºÃ‚â‚¬??paging ??Ã¤Â»Â¥?Ã¨Â«â€ºÃ«Â¶Â½Ã­â€œÅ¾?Ã¬â€žÂÃ«Â¿â‚¬??Ã¥Â¯Æ’Ã¬Å½Å’Ã¬Å Â¦ Ã¤Â»Â¥ÃªÂ¾Â§Ã¬Â»â„¢ 20px ?Ã‘â€°ÃªÂ°Å¡ ?Ã¬Å½Å’Ã¬â€”Â¯
				//if($('.paging:eq(0)').offset().top - $('.pageArray:eq(0)').offset().top > 5) $('.pageArray').css('margin-bottom', '20px')
				if( $('.pageArray:eq(0)') != null && $('.pageArray:eq(0)').length > 0
				 && $('.pageArray') != null && $('.pageArray').length > 0 ) // null Ã¯Â§Â£Ã«Å’â€žÃªÂ²â€¢
				{
				if($('.paging:eq(0)').offset().top - $('.pageArray:eq(0)').offset().top > 5) $('.pageArray').css('margin-bottom', '20px');
				}
			}
		}
		if ( $(".itemArea").length ) {
			$(".itemArea").each(function() {
				if ( $(".itemArea").has(".acc") ) {
					$(this).removeClass("acc");
				}
			});
		}
	};
	// fe_webAcc Defaults
	$.fe_webAcc.defaults = {
	};
	/* ***************** fe_webAcc ********************** */
	/* ***************** fe_aLink ********************** */
	// fe_aLink Plugin
	$.fe_aLink = function(options) {
		var $a = $("a.hasTarget");
		$a.each(function() {
			var $this = $(this);
			var target = $(this).attr("target");
			var url = $(this).attr("href");
			if ( target ) {
				target = target.split("_");
				if ( target.length > 2  ) {
					var title = target[0];
					var width = target[1];
					var height = target[2];
					if(target[3] == "Y" || target[3] == "long") {
						var scroll = 1;
					} else {
						var scroll = 0;
					}
					var left = (screen.width / 2) - ( width / 2);
					var top = (screen.height / 2) - ( height / 2);
					$this.click(function() {
						var openOption = "left=" + left + ", top =" + top + ",width=" + width + ", height =" + height + ",resizable = 0, status=0, scrollbars= " + scroll + ",menubar=0";
						window.open( url, title, openOption);
						return false;
					});
				}
			}
		});
	};
	// fe_aLink Defaults
	$.fe_aLink.defaults = {
	};
	/* ***************** fe_aLink ********************** */
	/* ***************** fe_p25Player ********************** */
	// fe_p25Player Plugin
	$.fe_p25Player = function(options) {
		if ( $("#player_embedlayer").length ) $("#player_embedlayer").remove();
		var $embedLayer = $("<div />", { "id" : "player_embedlayer" }).prependTo($("body"));
		$("<div />" , { "id" : "player_container"}).prependTo($embedLayer);
		$(".p25Player").click(function() {
			var xmlUrl = $(this).attr("rel");
			var chapter = $(this).attr("title");
			$("#player_embedlayer").show();
			embedPlayer(xmlUrl, chapter);
		});
	};
	// fe_p25Player Defaults
	$.fe_p25Player.defaults = {
	};
	/* ***************** fe_p25Player ********************** */
	/* ***************** fe_stringLength ********************** */
	// fe_stringLength Methods
	var fe_stringLength_methods = {
		init : function(options) {
			var options = $.extend({}, $.fn.fe_stringLength.defaults, options);
			return this.each(function() {
				//alert("a");
				var obj = $(this).text();
				var textLength = obj.length;
				var limit = options.limitSize;
				var changeClass = options.changeClass;
				var jsClass = options.jsClass;
				var shortText =  "";
				if ( textLength > limit ) {
					shortText = obj.substr(0, limit - 3) + "...";
					$(this).text(shortText);
				}
				if ( changeClass ) {
					if ( textLength > limit ) {
						var thisClass = $(this).attr("class");
						$(this).hover(
							function() {
								$(this).text(obj);
								$(this).removeClass(thisClass);
								$(this).addClass(changeClass);
							},
							function() {
								$(this).text(shortText);
								$(this).removeClass(changeClass);
								$(this).addClass(thisClass);
							}
						);
					}
				} else {
					if ( textLength > limit ) {
						$(this).hover(
							function() {
								$(this).text(obj);
								$(this).addClass(jsClass);
							},
							function() {
								$(this).text(shortText);
								$(this).removeClass();
							}
						);
					}
				}
			});
		}
	}
	// fe_stringLength Plugin
	$.fn.fe_stringLength = function(method) {
		// Method calling logic
		if ( fe_stringLength_methods[method] ) {
		  return fe_stringLength_methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
		} else if ( typeof method === 'object' || !method ) {
		  return fe_stringLength_methods.init.apply( this, arguments );
		} else {
		  $.error( 'Method "' +  method + '" does not exist on this function' );
		}
	};
	// fe_stringLength Defaults
	$.fn.fe_stringLength.defaults = {
		limitSize : null,
		jsClass : null
	};
	/* ***************** // end of fe_stringLength ********************** */
	/* ***************** fe_tabCarouselInit ********************** */
	// fe_tabCarouselInit Plugin
	$.fe_tabCarouselInit = function(options) {
		var $tabCarousel = $("#tabCarousel");
		var $cont = $tabCarousel.find(".cont");
		$cont.each(function() {
			if ( $(this).find("ul").find("li").length > 6 ) {
				var $frame = $("<div />", { "class" : "fe_frame"});
				$frame.prependTo($(this));
				$(this).find("ul").appendTo($frame);
				$(this).addClass("tabCarousel");
				$(this).find("ul").find("li").css({
					"margin" : 0,
					"padding" : 0,
					"width" : "166px"
				});
			} else {
				//$(this).find("ul").css("margin-right","-36px");
			}
		});
	};
	// fe_tabCarouselInit Defaults
	$.fe_tabCarouselInit.defaults = {
	};
	/* ***************** // end of fe_tabCarouselInit ********************** */
	/* ***************** fe_tabCarousel ********************** */
	// fe_tabCarousel Plugin
	$.fe_tabCarousel = function(options) {
		var $tabCarousel = $("#tabCarousel");
		var $frame = $tabCarousel.find(".fe_frame");
		var $h3 = $tabCarousel.find("h3");
		var $tabArea = $tabCarousel.find(".tabArea");
		var $tabCont = $tabArea.find(".cont");
		$frame.width(960);
		$h3.each(function() {
			var $cont = $($(this).find("a").attr("href"));
			var check;
			if ( $cont.hasClass("tabCarousel") ) {
				check = true;
			} else {
				check = false;
			}
			if ( $.browser.mozilla ) {
				if ( check ) {
					$cont.css("padding-top","1px");
				} else {
					$cont.css("padding-top","27px");
				}
				$(this).find("a").bind({
					click : function() {
						if ( check ) {
							$cont.css("padding-top","1px");
						} else {
							$cont.css("padding-top","27px");
						}
					}
				});
			}
		});
		$tabCont.each(function() {
			var $ul = $(this).find("ul");
			var $li = $(this).find("li");
			var liSize = $li.length;
			var liWidth = $li.eq(0).width() + parseInt($li.eq(0).css("padding-left"),10) + parseInt($li.eq(0).css("padding-right"),10);
			if ( liSize < 6 ) {
				$ul.width(liWidth * liSize).css({
					"position" : "relative",
					"margin" : "0 auto"
				});
				$li.css("padding" , "0px 13px");
			}
		});
	};
	// fe_tabCarousel Defaults
	$.fe_tabCarousel.defaults = {
	};
	/* ***************** // end of fe_tabCarousel ********************** */
	/* ***************** fe_ieDropdownFix ********************** */
	// fe_ieDropdownFix Plugin
	$.fe_ieDropdownFix = function(options) {
		var agentCheck;
		var summZindex = 400;
		var compZindex = 400;
		var ie6Check = false;
		if ( $.browser.msie ) {
			if ( $.browser.version < 8 ) {
				agentCheck = true;
				if ( $.browser.version < 7 ) {
					ie6Check = true;
				}
			} else {
				agentCheck = false;
			}
		} else {
			agentCheck = false;
		}
		if ( agentCheck ) execution();
		if ( ie6Check ) execution2();
		function execution() {
			$(".summList").each(function(i) {
				$(this).css({
					"position" : "relative",
					"z-index" : summZindex
				});
				summZindex -= 10;
			});
		}
		function execution2() {
			var $wrap = $(".flagship .summ").not(".popular").find(".fe_dropdown");
			var $wrap2 = $("#compare .summ .dropdown .fe_ddTriggerWrap");
			$wrap.css({
			});
		}
	};
	// fe_ieDropdownFix Defaults
	$.fe_ieDropdownFix.defaults = {
	};
	/* ***************** fe_ieDropdownFix ********************** */
	/* ***************** fe_ieFix ********************** */
	// fe_ieFix Plugin
	$.fe_ieFix = function(options) {
		if ( $.browser.msie ) {
			if ( $.browser.version > 8 || $.browser.version == 8 ) return false;
		} else {
			return false;
		}
		$(".summList").each(function() {
			if ( !$(this).parents("#compare").length ) {
				$(this).find(".summ").eq(0).addClass("summ_first");
			}
		});
		$(".tabType").each(function() {
			$(this).find(".cont").each(function() {
				$(this).find("li").eq(0).addClass("li_first");
			});
		});
		if ( $("#content").find("#finder").length ) {
			$("#kv").css({
				"z-index" : 1
			});
		}
		$(".compWrap").first().css({
			"border" : "0 none"
		});
		// empty Cell
		if ( $(".compareResults table").length ) 	$(".compareResults table").find("td:empty").html("&nbsp;");
	};
	/* ***************** fe_ieFix ********************** */
	/* ***************** fe_sortList ********************** */
	// fe_sortList Plugin
	$.fe_sortList = function(options) {
		var $this = $(".sortList");
		$this.each(function() {
			var $h3 = $(this).find("h3");
			var $viewBy = $(this).find("p.sortTab");
			var $wrap = $("<div />", { "class" : "tabTriggerWrap" });
			$wrap.prependTo($(this).find(".tabArea"));
			$viewBy.prependTo($wrap);
			$h3.first().prependTo($wrap);
			$h3.last().prependTo($wrap);
		});
	};
	/* ***************** fe_sortList ********************** */
	/* ***************** fe_sortListHeight ********************** */
	// fe_sortListHeight Plugin
	$.fe_sortListHeight = function(options) {
		var $this = $(".sortList");
		if ( $.browser.webkit ) {
			$this.find("img").load(function() {
				height();
			});
		} else {
			height();
		}
		$this.each(function() {
			var $wrap = $(this);
			$(this).find("h3").find("a").click(function() {
				var height = 0;
				$wrap.children().each(function() {
					height += $(this).outerHeight(true);
				});
				$wrap.height(height);
			});
		});
		function height() {
			$this.each(function() {
				var height = 0;
				$(this).children().each(function() {
					height += $(this).outerHeight(true);
				});
				$(this).height(height);
			});
		}
	};
	/* ***************** fe_sortListHeight ********************** */
	/* ***************** fe_logInOut ********************** */
	// fe_logInOut Plugin
	$.fe_logInOut = function(options) {
		//var logoutUrl = options.logoutUrl;
		var prof_id = getCookie("prof_id");
		var $login = $("#login");
		var $logout = $("#logout");
		if ( prof_id == null || prof_id == "" ) {
			$login.show();
			$logout.hide();
		} else {
			$login.hide();
			$logout.show();
		}
		$logout.find("a").click(logout);
		function logout() {
			deleteCookie("prof_country", "/", document.domain);
			deleteCookie("prof_id", "/", document.domain);
			deleteCookie("prof_prolist", "/", document.domain);
			deleteCookie("prof_bp_no", "/", document.domain);
			deleteCookie("prof_f_name", "/", document.domain);
			deleteCookie("prof_l_name", "/", document.domain);
			deleteCookie("prof_email", "/", document.domain);
			deleteCookie("prof_zipcode", "/", document.domain);
			deleteCookie("auth_flag", "/", "");
			//var logoutURL = "";
			//logoutURL = "http://support.eu.samsung.com/esamsung/mysamsung/account/logout_p.jsp"; //or
			//window.location.href =logoutURL;
		}
	};
	// fe_logInOut Defaults
	$.fe_logInOut.defaults = {
		logoutUrl : null
	};
	/* ***************** fe_logInOut ********************** */
	/* ***************** fe_siteMove ********************** */
	// fe_siteMove Plugin
	$.fe_siteMove = function(options) {
		var $site = $(".countrySite");
		var $country = $site.find(".siteList").find("li").not(".group");
		var $layer = $("#countryCode");
		$layer.prependTo($("body")).hide();
		$country.each(function() {
			var site_cd = $(this).attr("site_cd");
			var url = $(this).find("a").attr("href");
			$(this).find("a").click(function() {
				if ( $.browser.webkit ) {
					var scrollLeft = document.body.scrollLeft;
					var scrollTop = document.body.scrollTop;
				} else {
					var scrollLeft = document.documentElement.scrollLeft;
					var scrollTop = document.documentElement.scrollTop;
				}
				var objPosLeft = ((document.documentElement.clientWidth - $layer.width()) / 2)  + scrollLeft;
				var objPosTop = ((document.documentElement.clientHeight - $layer.height()) / 2)  + scrollTop;
				$layer.css({
					"position" : "absolute",
					"left" : objPosLeft + "px",
					"top" : objPosTop + "px",
					"z-index" : 600
				});
				$layer.find("a").not(":last").each(function() {
					$(this).attr("href", url);
				});
				$layer.fadeIn(150);
				$layer.find(".btnYes").click(function() {
					setCookieEx("site_cd", site_cd, 999);
				});
				return false;
			});
		});
		$layer.find(".btnClose").find("a").click(function() {
			$layer.fadeOut(150);
		});
	};
	// fe_siteMove Defaults
	$.fe_siteMove.defaults = {
	};
	/* ***************** fe_siteMove ********************** */
	/* ***************** fe_footContactUs3 ********************** */
	// fe_footContactUs3 Plugin
	$.fe_footContactUs3 = function(options) {
		var $layer= $("#footContactUs3");
		$layer.removeClass("footContactUs3").addClass("footContactUs3_graphic").css("height","438px");
		var $trigger = $layer.find(".flow").find("a");
		var $content = $layer.find(".reverse");
		$trigger.eq(0).addClass("activator");
		$content.hide();
		$content.eq(0).show();
		$trigger.each(function() {
			$(this).click(function() {
				var $thisContent = $($(this).attr("href"));
				$content.hide();
				$thisContent.show();
				$trigger.removeClass("activator");
				$(this).addClass("activator");
				return false;
			});
		});
	}
	/* ***************** //fe_footContactUs3 ********************** */
	/* ***************** fe_printSolution ********************** */
	// fe_printSolution Plugin
	$.fe_printSolution = function(options) {
		var $li = $(".printSolution .itemArea ul li");
		var maxHeight = 0;
		$(".printSolution .itemArea").css({
			"width" : "960px",
			"padding-top" : "5px"
		});
		$li.each(function() {
			if ( $(this).find("a").outerHeight(true) > maxHeight ) {
				maxHeight = $(this).find("a").outerHeight(true);
			}
		});
		$li.css({
			"height" : maxHeight + 15 + "px"
		});
	};
	// fe_printSolution Defaults
	$.fe_printSolution.defaults = {
	};
	/* ***************** // end of fe_printSolution ********************** */
	/* ***************** fe_ie6NotSupport ********************** */
	// fe_ie6NotSupport Plugin
	$.fe_ie6NotSupport = function(options) {
		if ( $.browser.msie ) {
			if ( $.browser.version < 7 ) {
				execution();
			}
		}
		function execution() {
			var $layer = $("#ie6NotSupport");
			var $dimmedLayer = $("<div />", { "id" : "ie6NotSupportDimmed" });
			var $closer = $layer.find(".btnClose").find("a");
			var $closer2 = $layer.find(".btnArea").find("a");
			$dimmedLayer
				.prependTo("body")
				.css({
					"position" : "absolute",
					"width" : "100%",
					"height" : $("#wrap").height(),
					"z-index" : 200,
					"background-color" : "#000",
					"opacity" : 0.4
				});
			$layer.insertAfter($dimmedLayer).css({
				"z-index" : 400
			});
			var scrollLeft = document.documentElement.scrollLeft;
			var scrollTop = document.documentElement.scrollTop;
			var objPosLeft = ((document.documentElement.clientWidth - $layer.width()) / 2)  + scrollLeft;
			var objPosTop = ((document.documentElement.clientHeight - $layer.height()) / 2)  + scrollTop;
			$layer.css({
				"left" : objPosLeft + "px"
			}).show();
			$closer.click(function() {
				$dimmedLayer.hide();
				$layer.hide();
				return false;
			});
			$closer2.click(function() {
				$dimmedLayer.hide();
				$layer.hide();
				return false;
			});
		}
	};
	// fe_ie6NotSupport Defaults
	$.fe_ie6NotSupport.defaults = {
	};
	/* ***************** // end of fe_ie6NotSupport ********************** */
	/* ***************** fe_printSolution ********************** */
	// fe_printSolution Plugin
	$.fe_printSolution = function(options) {
		var $li = $(".printSolution .itemArea ul li");
		var maxHeight = 0;
		$(".printSolution .itemArea").css({
			"width" : "960px",
			"padding-top" : "5px"
		});
		$li.each(function() {
			if ( $(this).find("a").outerHeight(true) > maxHeight ) {
				maxHeight = $(this).find("a").outerHeight(true);
			}
		});
		$li.css({
			"height" : maxHeight + 15 + "px"
		});
	};
	// fe_printSolution Defaults
	$.fe_printSolution.defaults = {
	};
	/* ***************** // end of fe_printSolution ********************** */
	/* ***************** fe_containerHeight ********************** */
	// fe_containerHeight Plugin
	$.fe_containerHeight = function(options) {
		if ( $.browser.msie ) {
			if ( $.browser.version < 8 ) {
				$("#container").css({
					"height" : "100%"
				});
			}
		}
	};
	/* ***************** fe_containerHeight ********************** */
	/* ***************** fe_byTypeAlign ********************** */
	// fe_byTypeAlign Plugin
	$.fe_byTypeAlign = function(options) {
		if ( $(".byType").length ) {
			execution();
		}
		function execution() {
			var $byType = $(".byType").filter(function() {
				if ( $(this).width() > 950 ) {
					return $(this);
				}
			});
			$byType.each(function() {
				var $ul = $(this).find("ul");
				var $li = $ul.find("li");
				var size = $li.length;
				var padding = 0;
				if ( size > 1 ) {
					var liWidth = parseInt($li.eq(1).css("width"), 10)
									+ parseInt($li.eq(1).css("padding-left"), 10)
									+ parseInt($li.eq(1).css("padding-right"), 10)
									+ parseInt($li.eq(1).css("margin-left"), 10)
									+ parseInt($li.eq(1).css("margin-right"), 10);
					padding = (parseInt($li.eq(1).css("padding-left"), 10) + parseInt($li.eq(1).css("padding-right"), 10) ) / 2
				} else {
					var liWidth = parseInt($li.eq(0).css("width"), 10)
									+ parseInt($li.eq(0).css("padding-left"), 10)
									+ parseInt($li.eq(0).css("padding-right"), 10)
									+ parseInt($li.eq(0).css("margin-left"), 10)
									+ parseInt($li.eq(0).css("margin-right"), 10);
					padding = (parseInt($li.eq(0).css("padding-left"), 10) + parseInt($li.eq(0).css("padding-right"), 10) ) / 2
				}
				var ulWidth = liWidth * size;
				if ( size < 6 ) {
					$ul.css({
						"position" : "relative",
						"margin" : "0px auto",
						"width" : ulWidth + "px"
					});
					$ul.find("il").css({
						"padding-left" : padding + "px",
						"padding-right" : padding + "px"
					});
				}
			});
		}
	};
	/* ***************** fe_byTypeAlign ********************** */
})(jQuery);
/* ***************** animate Easing ********************** */
$.easing['jswing'] = $.easing['swing'];
$.extend( $.easing,
{
	def: 'easeOutQuad',
	swing: function (x, t, b, c, d) {
		//alert($.easing.default);
		return $.easing[$.easing.def](x, t, b, c, d);
	},
	easeInQuad: function (x, t, b, c, d) {
		return c*(t/=d)*t + b;
	},
	easeOutQuad: function (x, t, b, c, d) {
		return -c *(t/=d)*(t-2) + b;
	},
	easeInOutQuad: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t + b;
		return -c/2 * ((--t)*(t-2) - 1) + b;
	},
	easeInCubic: function (x, t, b, c, d) {
		return c*(t/=d)*t*t + b;
	},
	easeOutCubic: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t + 1) + b;
	},
	easeInOutCubic: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t + b;
		return c/2*((t-=2)*t*t + 2) + b;
	},
	easeInQuart: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t + b;
	},
	easeOutQuart: function (x, t, b, c, d) {
		return -c * ((t=t/d-1)*t*t*t - 1) + b;
	},
	easeInOutQuart: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
		return -c/2 * ((t-=2)*t*t*t - 2) + b;
	},
	easeInQuint: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t*t + b;
	},
	easeOutQuint: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t*t*t + 1) + b;
	},
	easeInOutQuint: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
		return c/2*((t-=2)*t*t*t*t + 2) + b;
	},
	easeInSine: function (x, t, b, c, d) {
		return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
	},
	easeOutSine: function (x, t, b, c, d) {
		return c * Math.sin(t/d * (Math.PI/2)) + b;
	},
	easeInOutSine: function (x, t, b, c, d) {
		return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
	},
	easeInExpo: function (x, t, b, c, d) {
		return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
	},
	easeOutExpo: function (x, t, b, c, d) {
		return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
	},
	easeInOutExpo: function (x, t, b, c, d) {
		if (t==0) return b;
		if (t==d) return b+c;
		if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
		return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
	},
	easeInCirc: function (x, t, b, c, d) {
		return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
	},
	easeOutCirc: function (x, t, b, c, d) {
		return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
	},
	easeInOutCirc: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
		return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
	},
	easeInElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
	},
	easeOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
	},
	easeInOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d/2)==2) return b+c;  if (!p) p=d*(.3*1.5);
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
		return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
	},
	easeInBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*(t/=d)*t*((s+1)*t - s) + b;
	},
	easeOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
	},
	easeInOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
		return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
	},
	easeInBounce: function (x, t, b, c, d) {
		return c - $.easing.easeOutBounce (x, d-t, 0, c, d) + b;
	},
	easeOutBounce: function (x, t, b, c, d) {
		if ((t/=d) < (1/2.75)) {
			return c*(7.5625*t*t) + b;
		} else if (t < (2/2.75)) {
			return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
		} else if (t < (2.5/2.75)) {
			return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
		} else {
			return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
		}
	},
	easeInOutBounce: function (x, t, b, c, d) {
		if (t < d/2) return $.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
		return $.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
	}
});
/* ***************** //animate Easing ********************** */
function consumerCheck() {
	var pageLocation = window.location.href;
	//var exception = "samsung\.com\/[a-z]{2,}";
	//var exceptionArray = [ "aboutssamsung", "business", "news", "support" ];
	var returnValue;
	if ( pageLocation.match(/\/business\//) || pageLocation.match(/\/aboutsamsung\//)  || pageLocation.match(/\/news\//)  || pageLocation.match(/\/support\//) ) {
		returnValue = false;
	} else {
		returnValue = true;
	}
	return returnValue;
}
function galleryItem(obj) {
	var $item = obj;
	var $viewArea = $("#gallery1").find(".viewArea");
	var $galleryData = $viewArea.children(".dataBinding");
	var $itemData = $item.next(".dataBinding");
	var itemType = $itemData.find("._type").text();
	var itemSize = parseInt( $itemData.find("._size").text(), 10);
	var itemID = $itemData.find("._id").text();
	var itemSrcs = $itemData.find("._srcs").text();
	var itemWidths = $itemData.find("._widths").text();
	var itemHeights = $itemData.find("._heights").text();
	var itemSubstitute = $itemData.find("._substitute").text();
	var itemSourceSrc = $itemData.find("._sourceSrc").text();
	if ( $viewArea.attr("rel") != itemID || $item.is(":first") ) {
		$viewArea.attr("rel", itemID );
	} else if ( itemType != "F" ) {
		return false;
	}
	$("#gallery1").find(".nowLoading").removeClass("nowLoading");
	$("#gallery1").find(".btnArea").hide();
	switch (itemType) {
		case "F" :
			flashEmbed(itemType, itemSize, itemID, itemSrcs, itemWidths, itemHeights);
			break;
		case "M" :
			brightcovePlayer(itemSrcs, itemSubstitute);
			break;
		case "L" :
			$.fe_zoom({
				itemType : itemType,
				itemSize : itemSize,
				itemID : itemID,
				itemSrcs : itemSrcs,
				itemWidths : itemWidths,
				itemHeights : itemHeights, 
				itemSourceSrc : itemSourceSrc
			});
			break;
	}
	return false;
}
// flashEmbed
function flashEmbed(itemType, itemSize, itemID, itemSrcs, ItemWidths, itemHeights) {
	//$("#gallery1").find(".viewArea").addClass("nowLoading");
	if ( $("#flashLayer").length ) $("#flashLayer").remove();
	if ( $(".flash_DimmedLayer").length ) $(".flash_DimmedLayer").remove();
	var $flashLayer = $("<div />", { "id": "flashLayer", "class" : "layPop" });
	$flashLayer.prependTo($("body")).hide();
	var flashHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="100%" height="100%">'
		+ '<param name="movie" value="' + itemSrcs + '" />'
		+ '<param name="quality" value="high" />'
		+ '<param name="wmode" value="opaque" />'
		+ '<param name="bgcolor" value="#FFFFFF" />'
		+ '<!--[if !IE]> <-->'
		+ '<object data="' + itemSrcs + '" width="100%" height="100%" type="application/x-shockwave-flash">'
		+ '<param name="quality" value="high" />'
		+ '<param name="wmode" value="opaque" />'
		+ '<param name="bgcolor" value="#FFFFFF" />'
		+ '<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />'
		+ '</object>'
		+ '<!--> <![endif]-->'
		+ '</object>'
		+ '<p class="btnClose"><a href=""><img alt="close" src="/common/img/btn_layTip_close.png"></a></p>';
	$flashLayer.html(flashHTML);
	var $btnClose = $flashLayer.find(".btnClose").find("a");
	$flashLayer.css({
		"position" : "absolute",
		"left" : 0,
		"top" : 0,
		"width" : "790px",
		"height" : "375px",
		"z-index" : 500
	});
	var $flashDimmedLayer = $("<div />", { "class" : "flash_DimmedLayer" });
	$flashDimmedLayer
		.prependTo("body")
		.css({
			"position" : "absolute",
			"width" : "100%",
			"height" : $("#wrap").height(),
			"z-index" : 400,
			"background-color" : "#000",
			"opacity" : 0.4,
			"display" : "none"
		});
	if ( $.browser.webkit ) {
		var scrollLeft = document.body.scrollLeft;
		var scrollTop = document.body.scrollTop;
	} else {
		var scrollLeft = document.documentElement.scrollLeft;
		var scrollTop = document.documentElement.scrollTop;
	}
	var objPosLeft = ((document.documentElement.clientWidth - $flashLayer.width()) / 2)  + scrollLeft;
	var objPosTop = ((document.documentElement.clientHeight - $flashLayer.height()) / 2)  + scrollTop;
	$flashLayer.css({
		"left" : objPosLeft + "px",
		"top" : "248px"
	});
	$flashDimmedLayer.show();
	$flashLayer.fadeIn(250);
	$btnClose.click(function() {
		$flashLayer.fadeOut(50, function() {
			$flashDimmedLayer.hide();
		});
		return false;
	});
}
// brightcovePlayer
function brightcovePlayer(itemSrcs, itemSubstitute) {
	$("#gallery1").find(".viewArea").addClass("nowLoading");
	var $playingArea = $("#gallery1").find(".wrapZoom .viewArea");
	$playingArea.customPlayer( 'run', itemSrcs, 'galleryPlayer', itemSubstitute);
}
function colorPicker(itemColors) {
	if ( itemColors == "" ) return false;
	var $colorPicker = $("<div />", { "class" : "zoomColorPicker" }).prependTo($(".viewArea"));
	var colorValue = itemColors.split(",");
	var colorPickerHTML = "";
	for ( i in colorValue ) {
		colorPickerHTML += '<a href="" class="btnHover"><span style="border-style:solid; border-width:1px; border-color:#cccccc; background-color:' + colorValue[i] + '"></span></a>';
	}
	colorValue.push("default");
	colorPickerHTML += '<a href="" class="btnDefault"><span><img src="/common/img/ico_reset_datv.png" alt="Default Color" /></span></a>';
	$colorPicker.html(colorPickerHTML);
	var $btnDefault = $colorPicker.find("a.btnDefault");
	var defaultOn = $btnDefault.find("img").attr("src").replace("_datv", "_atv");
	var defaultOff = $btnDefault.find("img").attr("src").replace("_atv", "_datv");
	$btnDefault.hover(
		function() {
			$(this).find("img").attr("src", defaultOn);
		},
		function() {
			$(this).find("img").attr("src", defaultOff);
		}
	);
	$colorPicker.find("a").each(function(i) {
		$(this).click(function() {
			colorCallBack(colorValue[i]);
			$.fe_gallery1();
			s_control_click('products,eVar47,events', 'event47', model_name + ',gallery tab:gallery color,event47', 'o', 'gallery');
			return false;
		});
	});
}
function parameters() {
	var o = new Object();
	var param = location.href.split( '#' )[0].split( '?' ).slice( 1 ).join( '?' ).split( '&' );
	var len = param.length;
	var val;
	if ( param[0] != '' )
	{
		for ( var i = 0; i < len; i++ )
		{
			val = param[i].split( '=' );
			o[ val.shift() ] = decodeURIComponent( val.join( '=' ) );
		}
	}
	return o;
}
function focus2Brightcove() {
	var p = parameters();
	if(p.brightcove) {
		if($obj = $('#bc_' + p.brightcove)) {
			if($obj.hasClass('_scroll')) {
				if(offset = $obj.parents('.compWrap').offset()) {
					$(window).scrollTop(offset.top);
				}
			}
			else if($obj.hasClass('_viewdemo')) {
				$("a[href='#viewDemo" + p.brightcove + "']").click();
			}
			else if($obj.hasClass('_gallery')) {
				brightcovePlayer($obj.attr('_srcs'), $obj.attr('_substitute'));
			}
		}
	}
}
function preloadImg(obj) {
	var image = $("<img />", { "src" : obj });
	image.appendTo($("body")).hide();
}
// BandWidth
function checkBandWidth() {
	if ( isMobile ) $("body").attr("id", "mobileFix");
	var $bandType = $("#footer .bandType");
	var $lowBandWidth = $bandType.find(".lowBandWidth");
	var $highBandWidth = $bandType.find(".highBandWidth");
	//alert( getCookie("PreferBandwidth") );
	if ( getCookie("PreferBandwidth") == "Low" || isMobile ) {
		$lowBandWidth.hide();
		$highBandWidth.show();
		checkBandWidthVar = "Low";
	} else {
		$lowBandWidth.show();
		$highBandWidth.hide();
		checkBandWidthVar = "High";
	}
	$lowBandWidth.bind({
		click : function() {
			goLowBandwidth();
			return false;
		}
	});
	$highBandWidth.bind({
		click : function() {
			goHighBandwidth();
		}
	});
}
function setCookieEx(cookieName, cookieValue, expireDate) {
	var today = new Date();
	var exDate = 0;
	today.setDate(today.getDate() + parseInt(expireDate));
	document.cookie = cookieName + "=" + escape(cookieValue) + "; path=/; expires=" + today.toGMTString() + ";";
}
function setInstantCookie(cookieName, cookieValue) {
	document.cookie = cookieName + "=" + escape(cookieValue) + "; path=/;";
}
function goLowBandwidth() {
	var domain = "";
	setCookieEx("PreferBandwidth", "Low", 999);
	window.location.reload();
}
function goHighBandwidth() {
	setCookieEx("PreferBandwidth", "High", 999);
	window.location.reload();
}
function printFlash(fURL,fWidth,fHeight,fWindow,fAllow,flashDescTxt)	{
	if (getCookie("PreferBandwidth") == "Low") return;
	if (fURL) {
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + fWidth + '" height="' + fHeight + '">');
		document.write('<param name="movie" value="' + fURL + '">');
		if(fWindow)	document.write('<param name="wmode" value="' + fWindow + '">');
		if(fAllow)	document.write('<param name="allowScriptAccess" value="' + fAllow + '">');
		document.write('<!--[if !IE]><--><object type="application/x-shockwave-flash" data="' + fURL + '" width="' + fWidth + '" height="' + fHeight + '"');
		if(fWindow)	document.write(' wmode="' + fWindow + '"');
		if(fAllow)	document.write(' allowScriptAccess="' + fAllow + '"');
		document.write('><!--> <![endif]-->');
		if ( !isFlashAvailable ) document.write('<p><a href="http://www.adobe.com/go/getflashplayer" target="_blank"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>');
		document.write('<!--[if !IE]> <--></object><!--><![endif]-->');
		document.write('</object>');
		flashSkipArea(flashDescTxt); // 20120113 cidow acc ymr add (skipflash)
	}
}
function toStatic() {
	var ieCheck = function() {
		if ( $.browser.msie ) {
			if ( $browser.version < 8 ) {
				return true;
			} else {
				return false;
			}
		} else {
			return false;
		}
	}
	if ( ieCheck ) {
			// relative -> static
			$(".resultList").find(".resultPage:").not(":first").find(".fe_selectWrap").css("position","static");
			$(".resultList").find(".resultPage:").not(":first").find(".fe_selectWrap").find("p.fe_select_triggerWrap").css("position","static");
			$(".resultList").find(".resultPage:").not(":first").find(".pageArray").css("position", "static");
			$(".resultList").find(".resultpage").not(":first").css("position","static");
	}
}
function toRelative() {
	var ieCheck = function() {
		if ( $.browser.msie ) {
			if ( $browser.version < 8 ) {
				return true;
			} else {
				return false;
			}
		} else {
			return false;
		}
	}
	if ( ieCheck ) {
		// relative -> static
		$(".resultList").find(".resultPage:").not(":first").find(".fe_selectWrap").css("position","relative");
		$(".resultList").find(".resultPage:").not(":first").find(".fe_selectWrap").find("p.fe_select_triggerWrap").css("position","relative");
	}
}
function footerAlinkRemove() {
	if ( $("#footer .siteLink .productArea").length ) {
		var $alink = $("#footer .siteLink .productArea").find("a");
		$alink.each(function() {
			if ( $(this).attr("href") == "#none" ) {
				$(this).attr("href","");
				$(this).hover(	function() {
					$(this).css("cursor","default");
				});
				$(this).click(function() {
					return false;
				});
			}
		});
	}
}

//Text Cut
function fe_TextCut(tgObj, maxLength, alertText ){
      var thisVal = tgObj.val();
      if( thisVal.length > maxLength ){
                                if (alertText){
                                           alert(alertText);
                                }
                                tgObj.val(thisVal.substr(0,maxLength)); 
                                 tgObj.focus();
      }
      return false;
}

/* 20111226 cidow acc add (colorThemes) */
function colorThemes() {
	// check cookie
	if (getCookie("colorThemes") == "colorTheme1") {
		checkThemes(1); // blue color theme
	} else if (getCookie("colorThemes") == "colorTheme2") {
		checkThemes(2); // black color theme
	} else {
		checkThemes(0); // default color theme
	}
	// check click btn
	$("#colorThemes a").click(function(e) {
		e.preventDefault();
		if ($(this).parent().is(".theme1Btn")) {
			checkThemes(1);
		} else if ($(this).parent().is(".theme2Btn")) {
			checkThemes(2);
		} else {
			checkThemes(0);
		}
	});
	function checkThemes(themeNum) {
		$("#colorThemes a").attr("class","off");
		if (themeNum == 1 || themeNum == 2) {
			$("#contentHead").parents().find("#container").addClass("colorThemesCon");
			$("div[style*='bg_sum_small_rbox_top.gif'], div[style*='bg_sum_small_rbox_foot.gif']").addClass("clearBg"); // features rbox
			$(".clearBg").each(function() { // for clear css
				$(this).addClass("important");
			});
			if (themeNum == 1) {
				setCookieEx("colorThemes","colorTheme1",999);
				$("#colorThemes .theme1Btn a").attr("class","on");
				$("body").removeClass("colorTheme2").addClass("colorTheme colorTheme1");
			} else {
				setCookieEx("colorThemes","colorTheme2",999);
				$("#colorThemes .theme2Btn a").attr("class","on");
				$("body").removeClass("colorTheme1").addClass("colorTheme colorTheme2");
			}
		} else {
			setCookieEx("colorThemes","colorTheme0",999);
			$("#colorThemes .theme0Btn a").attr("class","on");
			$("body").removeClass("colorTheme colorTheme1 colorTheme2");
			$("#contentHead").parents().find("#container").removeClass("colorThemesCon");
			$(".clearBg.important").each(function() {
				$(this).removeClass("important");
			});
		}
	}
	if ($("#colorThemes").length) {
		$("#util").css("right","80px");
	}
}
/* //20111226 cidow acc add (colorThemes) */

/* 20120112 cidow acc ymr add (skipflash) */
function flashSkipArea(flashDescTxt) {
	$("object:not(object object, .flashDesc ~ object, #jumboWall object)").each(function() {
		//flashDescTxt = flashDescTxt.length ? flashDescTxt : "Default flashDescTxt";
		$('<div class="flashDesc">'
		+ '<p class="descView">'
		+   '<a href="/">'+flashDescTxt+'</a>'
		+ '</p>'
		+'</div>').insertBefore($(this));
	});
	$(".flashDesc a").click(function(e) {
		e.preventDefault();
		var focusablesEl = $(":focusable:not(embed, object, .flashDesc + object, .flashDesc + object :focusable)");
		var currentEl = focusablesEl.index(this);
		nextEl = focusablesEl.eq(currentEl+1).length ? focusablesEl.eq(currentEl+1) : focusablesEl.eq(0);
		nextEl.focus();
	});
	$(".flashDesc a").each(function() {
		$(this).css("width",$(this).parent().parent().next("object").width()+"px");
		$(this).focus(function() {
			var objPos = $(this).parent().parent().next("object").position();
			var fdescPos = $(this).parent().parent().position();
			if (objPos.left != fdescPos.left) {
				$(this).parent().parent().css("left",objPos.left - fdescPos.left);
			}
		});
	});
}
/* //20120112 cidow acc ymr add (skipflash) */
