/*liblary*--------------------------------------------------------------------------------------------*/
/*** DD_belatedPNG: Adds IE6 support: PNG images for CSS background-image and HTML <IMG/>.* Author: Drew Diller* Email: drew.diller@gmail.com* URL: http://www.dillerdesign.com/experiment/DD_belatedPNG/* Version: 0.0.8a
* Licensed under the MIT License: http://dillerdesign.com/experiment/DD_belatedPNG/#license** Example usage:* DD_belatedPNG.fix('.png_bg'); // argument is a CSS selector* DD_belatedPNG.fixPng( someNode ); // argument is an HTMLDomElement**//*PLEASE READ:Absolutely everything in this script is SILLY.  I know this.  IE's rendering of certain pixels doesn't make sense, so neither does this code!
*/
(function($){var doc=document;var DD_belatedPNG={ns:'DD_belatedPNG',imgSize:{},delay:10,nodesFixed:0,createVmlNameSpace:function(){if(doc.namespaces&&!doc.namespaces[this.ns]){doc.namespaces.add(this.ns,'urn:schemas-microsoft-com:vml')}},createVmlStyleSheet:function(){var screenStyleSheet,printStyleSheet;screenStyleSheet=doc.createElement('style');screenStyleSheet.setAttribute('media','screen');doc.documentElement.firstChild.insertBefore(screenStyleSheet,doc.documentElement.firstChild.firstChild);if(screenStyleSheet.styleSheet){var selector=!doc.documentMode||doc.documentMode<8?this.ns+'\\:*':this.ns+'\\:shape, '+this.ns+'\\:fill';screenStyleSheet=screenStyleSheet.styleSheet;screenStyleSheet.addRule(selector,'behavior:url(#default#VML);');screenStyleSheet.addRule(this.ns+'\\:shape','position:absolute;');screenStyleSheet.addRule('img.'+this.ns+'_sizeFinder',['behavior:none','border:none','position:absolute','z-index:-1','top:-10000px','visibility:hidden'].join(';'));this.screenStyleSheet=screenStyleSheet;printStyleSheet=doc.createElement('style');printStyleSheet.setAttribute('media','print');doc.documentElement.firstChild.insertBefore(printStyleSheet,doc.documentElement.firstChild.firstChild);printStyleSheet=printStyleSheet.styleSheet;printStyleSheet.addRule(selector,'display: none !important;');printStyleSheet.addRule('img.'+this.ns+'_sizeFinder','display: none !important;')}},readPropertyChange:function(){var el,display,v;el=event.srcElement;if(!el.vmlInitiated){return}var propName=event.propertyName;if(propName.search('background')!=-1||propName.search('border')!=-1){DD_belatedPNG.applyVML(el)}if(propName=='style.display'){display=(el.currentStyle.display=='none')?'none':'block';for(v in el.vml){if(el.vml.hasOwnProperty(v)){el.vml[v].shape.style.display=display}}}if(propName.search('filter')!=-1){DD_belatedPNG.vmlOpacity(el)}},vmlOpacity:function(el){if(el.currentStyle.filter.search('lpha')!=-1){var trans=el.currentStyle.filter;trans=parseInt(trans.substring(trans.lastIndexOf('=')+1,trans.lastIndexOf(')')),10)/100;el.vml.color.shape.style.filter=el.currentStyle.filter;el.vml.image.fill.opacity=trans}},handlePseudoHover:function(el){setTimeout(function(){DD_belatedPNG.applyVML(el)},1)},applyVML:function(el){el.runtimeStyle.cssText='';this.vmlFill(el);this.vmlOffsets(el);this.vmlOpacity(el);if(el.isImg){this.copyImageBorders(el)}},attachHandlers:function(el){var self,handlers,handler,moreForAs,a,h;self=this;handlers={resize:'vmlOffsets',move:'vmlOffsets'};if(el.nodeName=='A'){moreForAs={mouseleave:'handlePseudoHover',mouseenter:'handlePseudoHover',focus:'handlePseudoHover',blur:'handlePseudoHover'};for(a in moreForAs){if(moreForAs.hasOwnProperty(a)){handlers[a]=moreForAs[a]}}}for(h in handlers){if(handlers.hasOwnProperty(h)){handler=function(){self[handlers[h]](el)};el.attachEvent('on'+h,handler)}}el.attachEvent('onpropertychange',this.readPropertyChange)},giveLayout:function(el){el.style.zoom=1;if(el.currentStyle.position=='static'){el.style.position='relative'}},copyImageBorders:function(el){var styles,s;styles={'borderStyle':true,'borderWidth':true,'borderColor':true};for(s in styles){if(styles.hasOwnProperty(s)){el.vml.color.shape.style[s]=el.currentStyle[s]}}},vmlFill:function(el){if(!el.currentStyle){return}else{var elStyle,noImg,lib,v,img,imgLoaded;elStyle=el.currentStyle}for(v in el.vml){if(el.vml.hasOwnProperty(v)){el.vml[v].shape.style.zIndex=elStyle.zIndex}}el.runtimeStyle.backgroundColor='';el.runtimeStyle.backgroundImage='';noImg=true;if(elStyle.backgroundImage!='none'||el.isImg){if(!el.isImg){el.vmlBg=elStyle.backgroundImage;el.vmlBg=el.vmlBg.substr(5,el.vmlBg.lastIndexOf('")')-5)}else{el.vmlBg=el.src}lib=this;if(!lib.imgSize[el.vmlBg]){img=doc.createElement('img');lib.imgSize[el.vmlBg]=img;img.className=lib.ns+'_sizeFinder';img.runtimeStyle.cssText=['behavior:none','position:absolute','left:-10000px','top:-10000px','border:none','margin:0','padding:0'].join(';');imgLoaded=function(){this.width=this.offsetWidth;this.height=this.offsetHeight;lib.vmlOffsets(el)};img.attachEvent('onload',imgLoaded);img.src=el.vmlBg;img.removeAttribute('width');img.removeAttribute('height');doc.body.insertBefore(img,doc.body.firstChild)}el.vml.image.fill.src=el.vmlBg;noImg=false}el.vml.image.fill.on=!noImg;el.vml.image.fill.color='none';el.vml.color.shape.style.backgroundColor=elStyle.backgroundColor;el.runtimeStyle.backgroundImage='none';el.runtimeStyle.backgroundColor='transparent'},vmlOffsets:function(el){var thisStyle,size,fudge,makeVisible,bg,bgR,dC,altC,b,c,v;thisStyle=el.currentStyle;size={'W':el.clientWidth+1,'H':el.clientHeight+1,'w':this.imgSize[el.vmlBg].width,'h':this.imgSize[el.vmlBg].height,'L':el.offsetLeft,'T':el.offsetTop,'bLW':el.clientLeft,'bTW':el.clientTop};fudge=(size.L+size.bLW==1)?1:0;makeVisible=function(vml,l,t,w,h,o){vml.coordsize=w+','+h;vml.coordorigin=o+','+o;vml.path='m0,0l'+w+',0l'+w+','+h+'l0,'+h+' xe';vml.style.width=w+'px';vml.style.height=h+'px';vml.style.left=l+'px';vml.style.top=t+'px'};makeVisible(el.vml.color.shape,(size.L+(el.isImg?0:size.bLW)),(size.T+(el.isImg?0:size.bTW)),(size.W-1),(size.H-1),0);makeVisible(el.vml.image.shape,(size.L+size.bLW),(size.T+size.bTW),(size.W),(size.H),1);bg={'X':0,'Y':0};if(el.isImg){bg.X=parseInt(thisStyle.paddingLeft,10)+1;bg.Y=parseInt(thisStyle.paddingTop,10)+1}else{for(b in bg){if(bg.hasOwnProperty(b)){this.figurePercentage(bg,size,b,thisStyle['backgroundPosition'+b])}}}el.vml.image.fill.position=(bg.X/size.W)+','+(bg.Y/size.H);bgR=thisStyle.backgroundRepeat;dC={'T':1,'R':size.W+fudge,'B':size.H,'L':1+fudge};altC={'X':{'b1':'L','b2':'R','d':'W'},'Y':{'b1':'T','b2':'B','d':'H'}};if(bgR!='repeat'){c={'T':(bg.Y),'R':(bg.X+size.w),'B':(bg.Y+size.h),'L':(bg.X)};if(bgR.search('repeat-')!=-1){v=bgR.split('repeat-')[1].toUpperCase();c[altC[v].b1]=1;c[altC[v].b2]=size[altC[v].d]}if(c.B>size.H){c.B=size.H}el.vml.image.shape.style.clip='rect('+c.T+'px '+(c.R+fudge)+'px '+c.B+'px '+(c.L+fudge)+'px)'}else{el.vml.image.shape.style.clip='rect('+dC.T+'px '+dC.R+'px '+dC.B+'px '+dC.L+'px)'}},figurePercentage:function(bg,size,axis,position){var horizontal,fraction;fraction=true;horizontal=(axis=='X');switch(position){case'left':case'top':bg[axis]=0;break;case'center':bg[axis]=0.5;break;case'right':case'bottom':bg[axis]=1;break;default:position.search('%')!=-1?bg[axis]=parseInt(position,10)/100:fraction=false}bg[axis]=Math.ceil(fraction?((size[horizontal?'W':'H']*bg[axis])-(size[horizontal?'w':'h']*bg[axis])):parseInt(position,10));if(bg[axis]%2===0){bg[axis]++}return bg[axis]},fixPng:function(el){var lib,els,nodeStr,v,e;if(el.nodeName=='BODY'||el.nodeName=='TD'||el.nodeName=='TR'){return}el.isImg=false;if(el.nodeName=='IMG'){if(el.src.toLowerCase().search(/\.png$/)!=-1){el.isImg=true;el.style.visibility='hidden'}else{return}}else if(el.currentStyle.backgroundImage.toLowerCase().search('.png')==-1){return}lib=DD_belatedPNG;el.vml={color:{},image:{}};els={shape:{},fill:{}};for(v in el.vml){if(el.vml.hasOwnProperty(v)){for(e in els){if(els.hasOwnProperty(e)){nodeStr=lib.ns+':'+e;el.vml[v][e]=doc.createElement(nodeStr)}}el.vml[v].shape.stroked=false;if(el.nodeName=='IMG'){var width=el.width/96*72;var height=el.height/96*72;el.vml[v].fill.type='tile';el.vml[v].fill.size=width+'pt,'+height+'pt'}else if(el.currentStyle){var elStyle=el.currentStyle;if(elStyle.backgroundImage!='none'){var vmlBg=elStyle.backgroundImage;var img=doc.createElement("img");img.src=vmlBg.substr(5,vmlBg.lastIndexOf('")')-5);var run=img.runtimeStyle;var mem={w:run.width,h:run.height};run.width='auto';run.height='auto';w=img.width;h=img.height;run.width=mem.w;run.height=mem.h;var width=w/96*72;var height=h/96*72;el.vml[v].fill.type='tile';el.vml[v].fill.aspect='atleast';el.vml[v].fill.size=width+'pt,'+height+'pt'}}el.vml[v].shape.appendChild(el.vml[v].fill);el.parentNode.insertBefore(el.vml[v].shape,el)}}el.vml.image.shape.fillcolor='none';el.vml.color.fill.on=false;lib.attachHandlers(el);lib.giveLayout(el);lib.giveLayout(el.offsetParent);el.vmlInitiated=true;lib.applyVML(el)}};try{doc.execCommand("BackgroundImageCache",false,true)}catch(r){}DD_belatedPNG.createVmlNameSpace();DD_belatedPNG.createVmlStyleSheet();$.extend($.fn,{fixPng:function(){if([,]!=0){$.each(this,function(){DD_belatedPNG.fixPng(this)})}return this}})})(jQuery);

//
(function($){$(function(){$.sameHeight();});$.sameHeight = function(settings){var c = $.extend({selector: '.sameHeight'}, settings);$(c.selector).each(function(){var eachHeight = 0;var eachPaddingTop = 0;var eachPaddingBottom = 0;$(this).children().each(function(){var heightValue = $(this).height();var topValue = $(this).css("padding-top");var bottomValue = $(this).css("padding-bottom");topValue = parseFloat(topValue);bottomValue = parseFloat(bottomValue);if (heightValue > eachHeight) { eachHeight = heightValue; };if (topValue > eachPaddingTop) { eachPaddingTop = topValue; };if (bottomValue > eachPaddingBottom) { eachPaddingBottom = bottomValue; };});var total =  eachHeight + eachPaddingTop + eachPaddingBottom;if ($.browser.msie && $.browser.version == 6.0) { $(this).children().css({'height': total}); };$(this).children().css({'min-height': eachHeight , 'padding-top':eachPaddingTop,'padding-bottom':eachPaddingBottom});});};})(jQuery);

/* * jquery-auto-height.js * * Copyright (c) 2010 Tomohiro Okuwaki (http://www.tinybeans.net/blog/) * Licensed under MIT Lisence: * ttp://www.opensource.org/licenses/mit-license.php * http://sourceforge.jp/projects/opensource/wiki/licenses%2FMIT_license * * Since: 2010-04-19 * Update:2010-07-02 * version: 0.03 * Comment:* * jQuery 1.2 later **/
(function($){$.fn.autoHeight = function(options){var op = $.extend({column: 0,clear : 0,height: 'minHeight',reset : '',descend : function descend (a,b){ return b-a; }},options || {});var self = $(this);var n = 0,hMax,hList = new Array(),hListLine = new Array();hListLine[n] = 0;self.each(function(i){if (op.reset == 'reset') {$(this).removeAttr('style');}var h = $(this).height();hList[i] = h;if (op.column > 1) {if (h > hListLine[n]) {hListLine[n] = h;}if ( (i > 0) && (((i+1) % op.column) == 0) ) {n++;hListLine[n] = 0;};}});hList = hList.sort(op.descend);hMax = hList[0];var browser = $.browser.version;if (op.column > 1) {for (var j=0; j<hListLine.length; j++) {for (var k=0; k<op.column; k++) {if (browser == '6.0') {self.eq(j*op.column+k).height(hListLine[j]);if (k == 0 && op.clear != 0) self.eq(j*op.column+k).css('clear','both');} else {self.eq(j*op.column+k).css(op.height,hListLine[j]);if (k == 0 && op.clear != 0) self.eq(j*op.column+k).css('clear','both');}}}} else {if (browser == '6.0') {self.height(hMax);} else {self.css(op.height,hMax);}}};})(jQuery);

/*END:liblary*--------------------------------------------------------------------------------------------*/
// 共通読み込み
var pathCode="http://www.revlon-japan.com/";
//var pathCode="http://test.taiyokikaku.com/~rjc11_ftp/html/";

/*jQuery.ajax({
	url:"../lib/path_code.ini",type:"get",success:function(data){
		pathCode=data;
	}
});
*/
var urls  =  window.location.href;
var rollInt="";

var cateKeyNow=new Array();
var cateKey = [
	['face','フェイス','メイクアップベース,ファンデーション,パウダー,コンシーラー,ブラッシュ,レブロン,revlon,化粧品','レブロンで販売しているフェイス関連商品をご紹介します。メイクアップベース、ファンデーション、パウダー、コンシーラー、ブラッシュの商品一覧をご覧いただけます。'],
	['eye','アイ','アイシャドウ,アイライナー,アイブロウ,マスカラ,レブロン,revlon,化粧品','レブロンで販売しているアイ関連商品をご紹介します。アイシャドウ、アイライナー、アイブロウ、マスカラの商品一覧をご覧いただけます。'],
	['lip','リップ','リップ,口紅,リップスティック,リップグロス,リップライナー,レブロン,revlon,化粧品','レブロンで販売しているリップ関連商品をご紹介します。リップスティック、リップグロス、リップライナーの商品一覧をご覧いただけます。'],
	['nail','ネイル','ネイル エナメル,ネイル ケア,レブロン,revlon,化粧品','レブロンで販売しているネイル関連商品をご紹介します。ネイル エナメル、ネイル ケアの商品一覧をご覧いただけます。'],
	['tool','ツール','シャープナー,ブラシ,つけまつ毛,レブロン,revlon,化粧品','レブロンで販売しているツール関連商品をご紹介します。シャープナー、ブラシ、つけまつ毛の商品一覧をご覧いただけます。']
];
var hash = getUrlVars();
var itemCode=hash["i_path"];
var nowSubCate=hash["c_path"];//分類小文字キー
	var fbTag='<iframe src="http://www.facebook.com/plugins/like.php?app_id=229860693731472&amp;href='+urls+'&amp;send=false&amp;layout=button_count&amp;width=76&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none;overflow:hidden;" allowTransparency="true"></iframe>';
//}
//header
$(document).ready(function(){
	var htmlTag  = "";
	if(pathCode==urls || pathCode + "index.html" ==urls){
		htmlTag +='<h1><img src="'+pathCode+'common/img/top_logo.gif" alt="REVLON&reg;" width="212" height="34" /></h1>\n<div id="menuBlock">\n<ul id="topmenu">\n';
	} else if($("body").is("[class*='noHeader']")){
		htmlTag +='<h1><img src="'+pathCode+'common/img/top_logo.gif" alt="REVLON&reg;" width="212" height="34" /></h1>\n';
	}else{
		htmlTag +='<h1><a href="'+pathCode+'index.html" class="imgroll"><img src="'+pathCode+'common/img/top_logo.gif" alt="REVLON&reg;" width="212" height="34" /></a></h1>\n<div id="menuBlock">\n<ul id="topmenu">\n';
	}
	if($("body").attr("class").indexOf("noHeader")==-1){
		//公式Facebook
		htmlTag +='<li id="formulaFacebook"><a title="公式Facebookページ" class="imgroll" href="https://www.facebook.com/RevlonJP" target="_blank"><img src="'+pathCode+'common/img/btn_topmenu_formulafacebook.gif" width="171" height="20" alt="公式Facebookページ" /></a></li>\n';
		//htmlTag +='<li id="formulaFacebook"><p><img src="'+pathCode+'common/img/btn_topmenu_formulafacebook.gif" width="171" height="20" alt="公式Facebookページ" /></p></li>\n';
		//ユーザーズボイス
		if($("body").is("[id='usersVoice']")){
			htmlTag +='<li id="userVoice"><p title="ユーザーズボイス" class="imgroll"><img src="'+pathCode+'common/img/btn_topmenu_uservoice.gif" width="113" height="20" alt="ユーザーズボイス" /></p></li>\n';
		}else if($("body").is("[id^='usersVoice']")){
			htmlTag +='<li id="userVoice"><a title="ユーザーズボイス" class="pointCls" href="'+pathCode+'users_voice/index.html"><img src="'+pathCode+'common/img/btn_topmenu_uservoice.gif" width="113" height="20" alt="ユーザーズボイス" /></a></li>\n';
		}else{
			htmlTag +='<li id="userVoice"><a title="ユーザーズボイス" class="imgroll" href="'+pathCode+'users_voice/index.html"><img src="'+pathCode+'common/img/btn_topmenu_uservoice.gif" width="113" height="20" alt="ユーザーズボイス" /></a></li>\n';
		}
		//オンラインストア
		htmlTag +='<li id="onStore"><a href="javascript:void(0);" class="imgroll" title="オンラインストア"><img class="trigger" src="'+pathCode+'common/img/btn_topmenu_onstore.gif" width="113" height="20" alt="オンラインストア" /></a>\n';
		htmlTag +='<div class="popup"><img src="'+pathCode+'common/img/bg_onstorepop.png" width="257" height="147" alt="" class="basePopup"/><ul><li class="aeon"><a href="http://www.aeonshop.com/tpshop-bin/tpshop_top.pl?page_id=7&plan_lid=9795" target="_blank" class="imgroll"><img src="'+pathCode+'common/img/btn_store_aeon.jpg" alt="イーオン" width="100" height="36" /></a></li>\n<li class="amazon"><a href="http://www.amazon.co.jp/gp/feature.html/ref=amb_link_84260016_1?ie=UTF8&docId=1000241656&pf_rd_m=AN1VRQENFRJN5&pf_rd_s=auto-sparkle&pf_rd_r=0EPXS2E7Z0NDF7X12W4W&pf_rd_t=301&pf_rd_p=466335896&pf_rd_i=%E3%83%AC%E3%83%96%E3%83%AD%E3%83%B3" target="_blank" class="imgroll"><img src="'+pathCode+'common/img/btn_store_amazon.jpg" alt="Amazon" width="100" height="36" /></a></li>\n<li class="konkocom"><a href="http://www.kenko.com/product/br/br_8210131.html" target="_blank" class="imgroll"><img src="'+pathCode+'common/img/bn_store_kenko.jpg" alt="ケンコーコム" width="100" height="36" /></a></li>\n<li class="soukai"><a href="http://www.soukai.com/B50930/li.html?fr=cate_ban" target="_blank" class="imgroll"><img src="'+pathCode+'common/img/bn_store_sokai.jpg" alt="爽快ドラッグ" width="100" height="36" /></a></li>\n</ul></div>';
		htmlTag +='</li>\n</ul>\n<ul id="headmenu">\n';
		//新着商品
		if($("body").is("[class='pickup']") && $("body").is("[id='pickupIndex']")){
			htmlTag +='<li class="rolled" id="newGoods"><p title="新着商品">新着商品</p></li>\n';
		}else if($("body").is("[class='pickup']")){
			htmlTag +='<li class="rolled" id="newGoods"><a title="新着商品" href="'+pathCode+'pickup/index.html" class="pointCls">新着商品</a></li>\n';
		}else{
			htmlTag +='<li class="rolled" id="newGoods"><a title="新着商品" href="'+pathCode+'pickup/index.html">新着商品</a></li>\n';
		}
		//キャンペーン
		if($("body").is("[class='campaign']")||$("body").is("[class='campaignIndex']")){
			htmlTag +='<li class="rolled" id="campaignCate"><a title="キャンペーン" href="'+pathCode+'campaign/" class="pointCls">キャンペーン</a></li>\n';
		}else{
			htmlTag +='<li class="rolled" id="campaignCate"><a title="キャンペーン" href="'+pathCode+'campaign/">キャンペーン</a></li>\n';
		}
		//商品カテゴリ
		for(var i=0;i<cateKey.length;i++){
			if($("body").is("[id='"+cateKey[i][0]+"Category"+"']")){
				htmlTag +='<li class="rolled" id="'+cateKey[i][0]+'Cate"><p title="'+cateKey[i][1]+'">'+cateKey[i][1]+'</p></li>\n';
			}else if($("body").is("[class='"+"categoryDetail "+cateKey[i][0]+"s"+"']")){
				htmlTag +='<li class="rolled" id="'+cateKey[i][0]+'Cate"><a href="'+pathCode+cateKey[i][0]+'/index.html" title="'+cateKey[i][1]+'" class="pointCls">'+cateKey[i][1]+'</a></li>\n';
			}else{
				htmlTag +='<li class="rolled" id="'+cateKey[i][0]+'Cate"><a href="'+pathCode+cateKey[i][0]+'/index.html" title="'+cateKey[i][1]+'">'+cateKey[i][1]+'</a></li>\n';
			}
		}
		//シリーズラインナップ
		if($("body").is("[class='series']") && $("body").is("[id='seriesLineUp']")){
			htmlTag +='<li class="rolled lasBl" id="seriesLineup"><p title="シリーズラインナップ">シリーズラインナップ</p></li>\n';
		}else if($("body").is("[class='series']")){
			htmlTag +='<li class="rolled lasBl" id="seriesLineup"><a href="'+pathCode+'series/index.html" class="pointCls">シリーズラインナップ</a></li>\n';
		}else{
			htmlTag +='<li class="rolled lasBl" id="seriesLineup"><a href="'+pathCode+'series/index.html">シリーズラインナップ</a></li>\n';
		}
		
		htmlTag +='</ul>\n</div>\n';
	}
	$("div#header").html(htmlTag);

	//footer
	htmlTag  = "";
	if($("body").is("[class*='noHeader']")){
		htmlTag +='<p class="campaignFoot">&copy; Revlon. All rights reserved.</p>';
	}else{
		htmlTag +='<div id="fsMenuout">\n<ul id="fsMenu">\n';
		htmlTag +='<li id="mixiLink"><a href="javascript:void(0);" onclick="window.open(\'http://mixi.jp/share.pl?u='+urls+'&k=e035a2c0755077d20db543bb77cd69cc19b2dce4\',\'share\', [\'width=632\',\'height=456\',\'location=yes\',\'resizable=yes\',\'toolbar=no\',\'menubar=no\',\'scrollbars=no\',\'status=no\'].join(\',\'));" class="imgroll"><img src="'+pathCode+'common/img/btn_fsmenu_mixi.gif" alt="mixi" width="58" height="20" /></a></li>\n';
		htmlTag +='<li id="twitterLink"><a href="http://twitter.com/share?count=horizontal&amp;original_referer='+urls+'&amp;url='+urls+'" onclick="window.open(this.href,\'tweetwindow\', \'width=550, height=450,personalbar=0,toolbar=0,scrollbars=1,resizable=1\'); return false;" class="imgroll"><img src="'+pathCode+'common/img/btn_fsmenu_twitter.gif" alt="twitter" width="80" height="20" /></a></li>\n';
		htmlTag +='<li id="facebookLink">'+fbTag+'</li>\n';
		htmlTag +='</ul>\n</div>\n';
		htmlTag +='<div id="coMenuout">\n';
		htmlTag +='<ul id="coMenu" class="rolled">\n';
		//会社概要
		if($("body").attr("id")=="company"){
			htmlTag +='<li id="companySummary"><p title="会社概要">会社概要</p></li>\n';
		}else{
			htmlTag +='<li id="companySummary"><a href="'+pathCode+'company/index.html" title="会社概要">会社概要</a></li>\n';
		}
		//レブロンについて
		if($("body").attr("id")=="aboutRevlon" && $("body").attr("class")=="aboutSite"){
			htmlTag +='<li id="aboutLevlon"><p title="レブロンについて">レブロンについて</p></li>\n';
		}else if($("body").attr("class")=="aboutSite"){
			htmlTag +='<li id="aboutLevlon"><a href="'+pathCode+'about_revlon/index.html" class="pointCls" title="レブロンについて">レブロンについて</a></li>\n';
		}else{
			htmlTag +='<li id="aboutLevlon"><a href="'+pathCode+'about_revlon/index.html" title="レブロンについて">レブロンについて</a></li>\n';
		}
		//店舗検索
		if($("body").attr("class")=="map"){
			htmlTag +='<li id="searchStore"><p title="店舗検索">店舗検索</p></li>\n';
		}else{
			htmlTag +='<li id="searchStore"><a title="店舗検索" href="'+pathCode+'store/">店舗検索</a></li>\n';
		}
		//お問い合わせ
		if($("body").attr("id")=="contact"){
			htmlTag +='<li id="mailLink"><p title="お問い合わせ">お問い合わせ</p></li>\n';
		}else{
			htmlTag +='<li id="mailLink"><a title="お問い合わせ" href="'+pathCode+'contact/">お問い合わせ</a></li>\n';
		}
		//サイトマップ
		if($("body").attr("id")=="siteMaps"){
			htmlTag +='<li id="siteMap"><p title="サイトマップ">サイトマップ</p></li>\n';
		}else{
			htmlTag +='<li id="siteMap"><a href="'+pathCode+'sitemap/index.html" title="サイトマップ">サイトマップ</a></li>\n';
		}
		//当サイトについて
		if($("body").attr("id")=="aboutThisSite"){
			htmlTag +='<li id="aboutThis"><p title="当サイトについて">当サイトについて</p></li>\n';
		}else{
			htmlTag +='<li id="aboutThis"><a href="'+pathCode+'about_site/index.html" title="当サイトについて">当サイトについて</a></li>\n';
		}
		//コピーライト
		htmlTag +='<li id="copyRight"><p>&copy; Revlon. All rights reserved.</p></li>\n';
		htmlTag +='</ul>\n</div>\n';
	}
	$("div#footer").html(htmlTag);
	
	$("link:last").after('<link rel="stylesheet" href="'+pathCode+'common/css/print.css" type="text/css" media="print" />');
	
	//ReturnTop
	jQuery.easing.quart=function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b;};
	$('.returnTop a').click(function(){
		$('html,body').animate({ scrollTop: 0 }, 1000, 'quart');
	});

	var postfix = '_on';
	$('.onRolled img').not('[src*="'+ postfix +'."]').each(function() {
		var img = $(this);
		var src = img.attr('src');
		var src_on = src.substr(0, src.lastIndexOf('.'))
			+ postfix+ src.substring(src.lastIndexOf('.'));
		$('<img>').attr('src', src_on);
		img.mouseover(function() {
			img.attr('src', src_on);
		}).mouseout(function(){
			img.attr('src', src);
		}).click(function(){
			setTimeout( function(){img.attr('src', src);},50);
		});
	});

});

//ロールオーバー
$("a.imgroll").live('hover', function(e){
	$(this).stop();
	if(e.type == 'mouseover'||e.type == 'mouseenter'){
		if(! $.support.opacity){
			$(this).css("background-image","none");
			$(this).children("img").fixPng().css("filter","alpha(opacity=70)");
			event.cancelBubble = true;
		}else{
			$(this).fadeTo(1,0.7);
		}
	}else{
		if(! $.support.opacity){
			$(this).css("background-image","none");
			$(this).children("img").fixPng().css("filter","alpha(opacity=100)");
			event.cancelBubble = true;
		}else{
			$(this).fadeTo(1,1.0);
		}
	}
});
$("a.imgroll").die('click');


//ツールチップ
$("#onStore").live("mouseover", function(){
	$("li#onStore .popup").css("display","block");
}).live("mouseout", function(){
	$("li#onStore .popup").css("display","none");
});

$("body.categoryDetail li[id^='onStorePop'],body.pickup [id^='onStorePop']").live("mouseover", function(){
	$("#"+$(this).attr("id")+" .popup").css("display","block");
}).live("mouseout", function(){
	$("#"+$(this).attr("id")+" .popup").css("display","none");
});

$("[id^='samColorPop']").live("mouseover", function(){
	var thisCss=$(this).attr("id");
	$("#"+thisCss+" .popup").css("display","block");
}).live("mouseout", function(){
	var thisCss=$(this).attr("id");
	$("#"+thisCss+" .popup").css("display","none");
});

$("[id^='seriesPop']").live("mouseover", function(){
	var thisCss=$(this).attr("id");
	$("#"+thisCss+" .popup").css("display","block");
}).live("mouseout", function(){
	var thisCss=$(this).attr("id");
	$("#"+thisCss+" .popup").css("display","none");
});


//****************************************************
//パラメータ取得
function getUrlVars(){
	var vars = [], hash;
	var hashes = urls.slice(urls.indexOf('?') + 1).split('&');
	for(var i = 0; i <hashes.length; i++){
		hash = hashes[i].split('=');
		vars.push(hash[0]);
		vars[hash[0]] = hash[1];
	}
	return vars;
}
