(function(){var _w=this,_d=document,_n=navigator,_agent=_n.userAgent,_l=location,undefined,$=function(e){return _d.getElementById(e)},$$=function(e,p){return(p)?p.getElementsByTagName(e):_d.getElementsByTagName(e)};var module={};var self=_w.ISO={author:'copyright (c) c-grip.com http://www.c-grip.com',version:'0.6.1',$:$,$$:$$,$cache:function(e){return $cache[e]||($cache[e]=($(e)||e))},browser:{isIE:(_agent.indexOf('MSIE')!=-1)?true:false,isFirefox:(_agent.indexOf('Firefox')!=-1)?true:false,isOpera:(_agent.indexOf('Opera')!=-1)?true:false,isSafari:(_agent.indexOf('Safari')!=-1&&_agent.indexOf('Chrome')==-1)?true:false,isChrome:(_agent.indexOf('Safari')!=-1&&_agent.indexOf('Chrome')!=-1)?true:false,version:(function(){var str=_n.appVersion;var version=[];str=str.substring(0,str.indexOf(' '));version=str.split('.');return version})(),name:(function(){var name='';if(this.isIE)name='Internet Explorer';else if(this.isFirefox)name='Firefox';else if(this.isOpera)name='Opera';else if(this.isSafari)name='Safari';else if(this.isChrome)name='Chrome';else name=false;return name})(),charset:(function(){return(this.isIE)?_d.charset:_d.characterSet})()},window:{offset:function(){var w=_w.innerWidth||_d.documentElement.clientWidth;var h=_w.innerHeight||_d.documentElement.clientHeight;return[w,h]},position:function(){var x=_w.pageXOffset||_d.body.scrollLeft||_d.documentElement.scrollLeft;var y=_w.pageYOffset||_d.body.scrollTop||_d.documentElement.scrollTop;return[x,y]},scroll:function(x,y){if(x||y){if(_d.body.scrollLeft){if(typeof x=='number'){_d.body.scrollLeft=x}if(typeof y=='number'){_d.body.scrollTop=y}}else{if(typeof x=='number'){_d.documentElement.scrollLeft=x}if(typeof y=='number'){_d.documentElement.scrollTop=y}}}else{var x=_d.body.scrollLeft||_d.documentElement.scrollLeft;var y=_d.body.scrollTop||_d.documentElement.scrollTop;return[x,y]}}},addEvent:(function(){if(_w.addEventListener){return function(elm,type,func){elm.addEventListener(type,func,false);return self}}else if(_w.attachEvent){return function(elm,type,func){if(!func._bridge)func._bridge=new Array(0);var i=func._bridge.length;func._bridge[i]=new Array(3);func._bridge[i][0]=elm;func._bridge[i][1]=type;func._bridge[i][2]=function(){func.apply(elm,arguments)};elm.attachEvent("on"+type,func._bridge[i][2]);return self}}else{return function(elm,type,func){return false}}})(),removeEvent:(function(){if(_w.removeEventListener){return function(elm,type,func){elm.removeEventListener(type,func,false);return self}}else if(_w.detachEvent){return function(elm,type,func){var i=0,f=null;while(i<func._bridge.length){if(func._bridge[i][0]==elm&&func._bridge[i][1]==type){f=func._bridge[i][2];break}i++}elm.detachEvent("on"+type,f);func._bridge.splice(i,1);return self}}else{return function(elm,type,func){return false}}})(),getUrlQuery:function(){if(_l.search){var query={},array=_l.search.substring(1).split('&');for(var i=0,len=array.length;i<len;i++){query[array[i].substring(0,array[i].indexOf('='))]=array[i].substring(array[i].indexOf('=')+1)}return query}else{return false}},getJsQuery:function(file){var query={},array=[],src='';if(file.lastIndexOf('.js'))file+='.js';var elms=$$('script');for(var i=0,len=elms.length;i<len;i++){src=elms[i].src;if(src.indexOf(file)){array=src.substring(src.lastIndexOf('?')+1).split('&');break}}for(var i=0,len=array.length;i<len;i++){query[array[i].substring(0,array[i].indexOf('='))]=array[i].substring(array[i].indexOf('=')+1)}return query},includeJS:function(path){var elm=_d.createElement('script');elm.type="text/javascript";elm.src=path;_d.body.appendChild(elm);return elm},includeCSS:function(path){var elm=_d.createElement('link');elm.rel="stylesheet";elm.type="text/css";elm.href=path;$$('head',_d)[0].appendChild(elm);return elm},includeHTML:function(elm,url){(new self.Ajax(url)).get('text','',function(str){elm.innerHTML=str});return self},includeModule:function(name,url){(new self.Ajax(url)).get('text','',function(script){eval('script='+script);module[name]=new script()});return self},addModule:function(name,script){if(typeof script!='string')eval('script='+String(script));module[name]=new script();return self},getModule:function(name){return module[name]},DOM:function(elm){this.self=(typeof elm=='string')?$(elm):elm;this.$$=function(arg){return $$(arg,this.self)};this.parent=this.self.parentNode;this.childs=this.self.childNodes;this.before=this.self.previousSibling;this.after=this.self.nextSibling;this.clone=function(){return this.self.cloneNode(true)};this.remove=function(){this.parent.removeChild(this.self);this.childs=this.self.childNodes;return this};this.appendChild=function(child){this.self.appendChild(child);return this};this.insertBefore=function(node){this.parent.insertBefore(node,this.self);this.before=this.self.previousSibling;return this};this.insertAfter=function(node){this.parent.insertBefore(node,this.after);this.after=this.self.nextSibling;return this};this.getAttribute=function(attr){if(attri.toUpperCase()=='CLASS')return this.self.className;else return this.self.getAttribute(attr)};this.setAttribute=function(attr,value){if(attr.toUpperCase()=='CLASS'){this.self.className=value}else{if(self.browser.isIE)this.self.setAttribute(attr,value,0);else this.self.setAttribute(attr,value)}return this};this.getStyle=function(prop){return this.self.style[this.parseStyle(prop)]};this.setStyle=function(prop,value){prop=this.parseStyle(prop);this.self.style[prop]=value;return this};this.parseStyle=function(prop){var array=prop.split('-');for(var i=0,len=array.length;i<len;i++){if(i!=0)array[i]=array[i].replace(/^./,array[i].charAt(0).toUpperCase())}return array.join('')};this.addClass=function(cls){this.self.className+=' '+cls;return this};this.removeClass=function(cls){var str=this.self.className.replace(cls,'');this.self.className=str;return this};this.replaceClass=function(reg,cls){var classname=this.self.className;this.self.className=classname.replace(reg,cls);return this};this.getPosition=function(){var elm=this.self,style=elm.style,position=[];if(style.position=='absolute'||style.position=='relative'){position[0]=(style.left)?parseInt(style.left):0;position[1]=(style.top)?parseInt(style.top):0;return position}else{return[elm.offsetLeft,elm.offsetTop]}};this.setPosition=function(x,y){var style=this.self.style;if(x||x===0)style.left=x+'px';if(y||y===0)style.top=y+'px';return this};this.getAlpha=function(){var style=this.self.style;if(style.filter)return style.filter.slice(14,-1)-0;else if(style.opacity)return style.opacity*100-0;else if(style.MozOpacity)return style.MozOpacity*100-0;else return 100};this.setAlpha=function(alpha){var style=this.self.style;style.filter='alpha(opacity='+alpha+')';style.MozOpacity=alpha/100;style.opacity=alpha/100;return this};this.clearAlpha=function(){var elm=this.self;if(self.browser.isIE)elm.style.removeAttribute('filter');return this};this.getOffset=function(){var offset=[],elm=this.self,style=elm.style;if(style.width&&(style.width).indexOf('px')){offset[0]=parseInt(style.width)}else{offset[0]=elm.offsetWidth;if(style.borderWidth)offset[0]-=parseInt(style.borderLeftWidth)+parseInt(style.borderRightWidth);if(style.padding)offset[0]-=parseInt(style.paddingLeft)+parseInt(style.paddingRight)}if(style.height&&(style.height).indexOf('px')){offset[1]=parseInt(style.height)}else{offset[1]=elm.offsetHeight;if(style.borderWidth)offset[1]-=parseInt(style.borderTopWidth)+parseInt(style.borderBottomWidth);if(style.padding)offset[1]-=parseInt(style.paddingTop)+parseInt(style.paddingBottom)}return offset};this.setOffset=function(w,h){var style=this.self.style;if(w||w===0)style.width=w+'px';if(h||h===0)style.height=h+'px';return this};this.getBgcolor=function(){var color=this.self.style.backgroundColor;return this.parse(color)};this.setBgcolor=function(r,g,b){var elm=this.self;r=Math.round(r).toString(16);if(r.length==1)r=0+r;g=Math.round(g).toString(16);if(g.length==1)g=0+g;b=Math.round(b).toString(16);if(b.length==1)b=0+b;elm.style.backgroundColor='#'+r+g+b;return this};this.parseColor=function(color){if(color){if(color.charAt(0)=='#'){var colors=[color.substring(1,3),color.substring(3,5),color.substring(5,7)];for(var i=0;i<=2;i++)colors[i]=parseInt(colors[i].toLowerCase(),16)}else{color=color.slice(4,-1);var colors=color.split(',');for(var i=0;i<=2;i++)colors[i]=colors[i]-0}return colors}else{return[255,255,255]}};this.hide=function(){this.self.style.display='none';return this};this.show=function(){this.self.style.display='block';return this};this.addEvent=function(type,func){self.addEvent(this.self,type,func);return this};this.removeEvent=function(type,func){self.removeEvent(this.self,type,func);return this};this.includeHTML=function(url){self.includeHTML(this.self,url);return this};this.includeSWF=function(swf,param,id,query){new self.Flash(swf,param,id,query).includeSWF(this.self);return this};this.move=function(endX,endY,callback){(new self.Effect(this.self)).move(endX,endY,callback);return this};this.fade=function(end,callback){(new self.Effect(this.self)).fade(end,callback);return this};this.stretch=function(endW,endH,callback){(new self.Effect(this.self)).stretch(endW,endH,callback);return this};this.blend=function(end,callback){(new self.Effect(this.self)).blend(end,callback);return this}},EffectFactory:(function(){var obj=null;return function(elm,interval,speed){if(!obj)obj=new self.Effect(elm,interval,speed);else{obj.element=elm;obj.interval=interval;obj.speed=speed}return obj}})(),Effect:function(elm,interval,speed){this.element=(typeof elm=='string')?$(elm):elm;this.interval=interval||25;this.speed=speed||10;this.current=null;var scene=[];this.addScene=function(type,arg1,arg2,arg3){var next=scene.length+1;if(type=='move'){scene[scene.length]=new Move(arg1,arg2,function(){if(arg3)arg3();if(scene[next])scene[next].play()},this.element,this.speed,this.interval)}else if(type=='fade'){scene[scene.length]=new Fade(arg1,function(){if(arg2)arg2();if(scene[next])scene[next].play()},this.element,this.speed,this.interval)}else if(type=='stretch'){scene[scene.length]=new Stretch(arg1,arg2,function(){if(arg3)arg3();if(scene[next])scene[next].play()},this.element,this.speed,this.interval)}else if(type=='blend'){scene[scene.length]=new Blend(arg1,function(){if(arg2)arg2();if(scene[next])scene[next].play()},this.element,this.speed,this.interval)}return this};this.play=function(){if(scene.length>0)scene[0].play()};this.move=function(endX,endY,callback){this.current=new Move(endX,endY,callback,this.element,this.speed,this.interval);this.current.play();return this};function Move(endX,endY,callback,element,speed,interval){var handler,elm=new self.DOM(element);elm.setStyle('position','absolute');this.play=function(){var startX=elm.getPosition()[0],startY=elm.getPosition()[1];if(endX=='auto')endX=startX;if(endY=='auto')endY=startY;handler=setInterval(function(){startX+=(endX-startX)/speed;startY+=(endY-startY)/speed;if(Math.abs(endX-startX)<=0.5&&Math.abs(endY-startY)<=0.5){elm.setPosition(endX,endY);clearInterval(handler);handler=null;if(callback)callback()}else{elm.setPosition(startX,startY)}},interval)};this.stop=function(){clearInterval(handler)}}this.fade=function(end,callback){this.current=new Fade(end,callback,this.element,this.speed,this.interval);this.current.play();return this};function Fade(end,callback,element,speed,interval){var handler,elm=new self.DOM(element);this.play=function(){var start=elm.getAlpha();elm.setStyle('zoom','1');handler=setInterval(function(){start+=(end-start)/speed;if(Math.abs(end-start)<=0.5){elm.setAlpha(end);clearInterval(handler);handler=null;if(callback)callback()}else{elm.setAlpha(Math.round(start))}},interval)};this.stop=function(){clearInterval(handler)}}this.stretch=function(endW,endH,callback){this.current=new Stretch(endW,endH,callback,this.element,this.speed,this.interval);this.current.play();return this};function Stretch(endW,endH,callback,element,speed,interval){var handler,elm=new self.DOM(element);this.play=function(){var startW=elm.getOffset()[0],startH=elm.getOffset()[1];if(endW=='auto')endW=startW;if(endH=='auto')endH=startH;elm.setStyle('overflow','hidden');handler=setInterval(function(){startW+=(endW-startW)/speed;startH+=(endH-startH)/speed;if(Math.abs(endW-startW)<=0.5&&Math.abs(endH-startH)<=0.5){elm.setOffset(endW,endH);clearInterval(handler);handler=null;if(callback)callback()}else{elm.setOffset(startW,startH)}},interval)};this.stop=function(){clearInterval(handler)}}this.blend=function(endW,endH,callback){this.current=new Blend(endW,endH,callback,this.element,this.speed,this.interval);this.current.play();return this};function Blend(endW,endH,callback,element,speed,interval){var handler,elm=new self.DOM(element);this.play=function(){var _color=elm.parseColor(end),endR=_color[0],endG=_color[1],endB=_color[2];_color=elm.getBgcolor();var startR=_color[0],startG=_color[1],startB=_color[2];handler=setInterval(function(){startR+=(endR-startR)/speed;startG+=(endG-startG)/speed;startB+=(endB-startB)/speed;if(Math.abs(endR-startR)<=0.5&&Math.abs(endG-startG)<=0.5&&Math.abs(endB-startB)<=0.5){elm.setBgcolor(endR,endG,endB);clearInterval(handler);handler=null;if(callback)callback()}else{elm.setBgcolor(Math.round(startR),Math.round(startG),Math.round(startB))}},interval)};this.stop=function(){clearInterval(handler)}}},XML:function(documentElement){this['$'+documentElement.nodeName]=new Node(documentElement,null);this.path=function(){var nodes=[],element=this;for(var i=0,len=arguments.length,r=nodes.length-1;i<len;i++){nodes[++r]=arguments[i]+''}for(var i=0,len=nodes.length;i<len;i++){if(/[^0-9$]/.test(nodes[i]))element=element['$'+nodes[i]];else{if(element.length>1)element=element[nodes[i]]}if(!element)return null}return element};function Node(node,parent){this.parent=parent;this.attributes=node.attributes;this.name=node.nodeName;this.value='';this.NODE_TYPE={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12};for(var i=0,len=node.childNodes.length;i<len;i++){var n=node.childNodes[i],nodeType=this.NODE_TYPE;if(n.nodeType==nodeType.CDATA_SECTION_NODE||n.nodeType==nodeType.TEXT_NODE){var value=n.nodeValue;if(n.nodeType==nodeType.TEXT_NODE)value=value.replace(/[\r\n\t]/g,'');if(value)this.value=value}else{var name='$'+n.nodeName;if(this[name]){if(!(this[name]instanceof Array)){var b=this[name];this[name]=[];this[name][this[name].length]=b}this[name][this[name].length]=new arguments.callee(n,this)}else{this[name]=new arguments.callee(n,this);this[name].length=1}}}this.getParent=function(){return this.parent};this.getAttribute=function(name){return this.attributes.getNamedItem(name)};this.getAttributes=function(){return this.attributes}}},Flash:function(swf,param,id,query){this.swf=swf;this.id=id||'flash';this.param={width:640,height:480,play:true,loop:true,scale:'showall',menu:true,quality:'high',bgcolor:'#ffffff',wmode:'window',devicefont:false,allowScriptAccess:'sameDomain',allowFullScreen:true};this.query='';if(param){for(var i in param){this.param[i]=param[i]}}if(query){for(var j in query){this.query=j+'='+encodeURIComponent(query[j])}}this.includeSWF=function(elm){elm.innerHTML=this.getTags()};this.getTags=function(){var src=(this.query)?this.swf+'?'+this.query:this.swf;var object='';object+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="'+this.param.width+'" height="'+this.param.height+'"';if(this.id)object+=' id="'+this.id+'" name="'+this.id+'"';object+=' align="middle">';object+='<param name="movie" value="'+src+'" />';var embed='';embed+='<embed src="'+src+'"';embed+=' width="'+this.param.width+'" height="'+this.param.height+'"';if(this.id)embed+=' id="'+this.id+'" name="'+this.id+'"';for(var k in this.param){if(k!='width'&&k!='height'){object+='<param name="'+k+'" value="'+this.param[k]+'" />';embed+=' '+k+'="'+this.param[k]+'"'}}embed+=' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer_jp" />';object+=embed;object+='</object>';return object}},AjaxFactory:(function(){var obj=null;return function(connect){if(!obj)obj=new self.Ajax(connect);else obj.connect=connect;return obj}})(),Ajax:function(connect){this.connect=connect;var xmlhttp=(function(){if(typeof ActiveXObject!='undefined'){try{return new ActiveXObject('Microsoft.XMLHTTP')}catch(e){return false}}else if(typeof XMLHttpRequest!='undefined')return new XMLHttpRequest();else return false})();this.get=function(type,data,callback){data=(data)?this.connect+'?'+data:this.connect;if(type=='xml'&&xmlhttp.overrideMimeType)xmlhttp.overrideMimeType('text/xml');xmlhttp.open('GET',data);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4&&callback){if(type=='xml')callback(xmlhttp.responseXML);else if(type=='text')callback(xmlhttp.responseText)}};xmlhttp.send(null);return this};this.post=function(type,data,callback,enctype){if(type=='xml'&&xmlhttp.overrideMimeType)xmlhttp.overrideMimeType('text/xml');xmlhttp.open('POST',this.connect,true);if(enctype)xmlhttp.setRequestHeader('Content-Type',enctype);else xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=utf-8');xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4&&callback){if(type=='xml')callback(xmlhttp.responseXML);else if(type=='text')callback(xmlhttp.responseText)}};xmlhttp.send(data);return this}}};self.addEvent(_w,'unload',function(){ISO=null})})();