function insetFlashObject(obj,container){output=""paramoutput=""src=""ver=""for(cO in obj){output+=cO+"=\""+obj[cO]+"\" "paramoutput+="<param name="+cO+" value=\""+obj[cO]+"\">";if(cO=="movie")src="src=\""+obj[cO]+"\"";if(cO=="version")ver=obj[cO];}if(ver=="")ver="8,0,0,0"ihtm="<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+ver+" "+output+">\n"ihtm+=paramoutput+"\n"ihtm+="<embed "+src+" pluginspage=https://www.macromedia.com/shockwave/download/index.cgi?P1ProdVersion=ShockwaveFlash type=application/x-shockwave-flash "+output+">\n";ihtm+="</embed>\n";ihtm+="</object>\n";document.getElementById(container).innerHTML=ihtm}function MarkHTML(url){var url=document.location.pathname;var u=url.split('obj_');if(!u[1]){return;}var ur='/pages/admin/catalog_cd/obj_'+u[1]+'?lite=1';window.open().location=ur;}if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^\s+/g,'').replace(/\s+$/g,'');};}function CPoint(x,y){this.x=this.y=null;this.reshape(x,y);}CPoint.prototype.reshape=function(x,y){this.x=x;this.y=y;};CPoint.prototype.toString=function(){return"CPoint [x = "+this.x+", y = "+this.y+"]";};function CBox(left,top,width,height){this.left=this.top=this.width=this.height=0;this.reshape(left,top,width,height);}CBox.prototype.reshape=function(left,top,width,height){this.left=left;this.top=top;this.width=width;this.height=height;};CBox.prototype.toString=function(){return"CBox [left = "+this.left+", top = "+this.top+", width = "+this.width+", height = "+this.height+"]";};var CUtils=new function(){this.isIE=navigator.userAgent.indexOf("MSIE")!=-1;this.hideElement=function(element){element.style.visibility="hidden";};this.showElement=function(element){element.style.visibility="visible";};this.isVisible=function(element){return element.style.visibility=="visible";};this.isHidden=function(element){return!this.isVisible(element);};this.getMouseXY=function(e){if(!e)e=window.event;if(e.pageX==null&&e.clientX!=null){var doc=document.documentElement,body=document.body;e.pageX=e.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);e.pageY=e.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0);}return new CPoint(e.pageX,e.pageY);};this.getXYScroll=function(){var x=0,y=0;if(typeof(window.pageYOffset)=='number'){y=window.pageYOffset;x=window.pageXOffset;}else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){y=document.body.scrollTop;x=document.body.scrollLeft;}else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){y=document.documentElement.scrollTop;x=document.documentElement.scrollLeft;}return new CPoint(x,y);};this.moveElement=function(element,left,top){CUtils.setElementStyle(element,"left:"+left+"px; top:"+top+"px;");};this.getScreenBox=function(){if(window.innerHeight){return new CBox(0,0,window.innerWidth,window.innerHeight);}else if(document.documentElement&&document.documentElement.clientHeight){return new CBox(0,0,document.documentElement.clientWidth,document.documentElement.clientHeight);}else if(document.body&&document.body.clientHeight){return new CBox(0,0,document.body.clientWidth,document.body.clientHeight);}else{return new CBox(0,0,0,0);}};this.getElementBox=function(element){var left=0,top=0;var width=element.offsetWidth;var height=element.offsetHeight;while(element){left+=element.offsetLeft;top+=element.offsetTop;element=element.offsetParent;}return new CBox(left,top,width,height);};function camelize(name){var splittedName=name.split("-");var result=splittedName[0];for(var c=1;c<splittedName.length;c++)result+=splittedName[c].substring(0,1).toUpperCase()+splittedName[c].substring(1);return result;}this.setElementStyle=function(element,css){var el=element.style;var styles=css.split(";");for(var i=0;i<styles.length;i++){var currentStyle=styles[i].split(":");currentStyle[0]=currentStyle[0].trim();if(currentStyle[0]==""||!currentStyle[1])continue;eval("el."+camelize(currentStyle[0])+" = \""+currentStyle[1].trim()+"\"");}};};function PopupUtil(){}PopupUtil.fitToScreen=function(div,x,y){x=parseInt(x);y=parseInt(y);var dBoxHeight=CUtils.getElementBox(div).height;var elementFromPageTop=y-CUtils.getXYScroll().y;var screenBoxHeight=CUtils.getScreenBox().height;var freeSpaceY=screenBoxHeight-elementFromPageTop;var correctionY=0;if(freeSpaceY<dBoxHeight){if(dBoxHeight>screenBoxHeight){}}CUtils.moveElement(div,x+5,y+5-correctionY);};PopupUtil.setContainerCoordinates=function(div,newX,newY){if(is_nn4){div.left=newX;div.top=newY;}else if(is_ie){div.style.pixelLeft=newX;div.style.pixelTop=newY;}else{div.style.left=newX+"px";div.style.top=newY+"px";}};PopupUtil.setPopupPosition=function(div,x,y,minWidth,minHeight){var docElement=document.documentElement;var doesNotFitX=docElement.clientWidth&&docElement.clientWidth-x<minWidth;if(doesNotFitX){x-=minWidth;}else{x+=5;}var doesNotFitY=CUtils.getScreenBox().height-y<minHeight;if(doesNotFitY){y-=minHeight;}var xyScroll=CUtils.getXYScroll();x+=xyScroll.x;y+=xyScroll.y;PopupUtil.setContainerCoordinates(div,x,y);};PopupUtil.correctPopupWidth=function(div,width){if(CUtils.getElementBox(div).width>width){CUtils.setElementStyle(div,"width: "+width+"px");}};(function(){var UA=navigator.userAgent;is_gecko=/gecko/i.test(UA);is_opera=/opera/i.test(UA);is_mac=/mac_powerpc/i.test(UA);is_ie=/msie/i.test(UA)&&!is_opera&&!is_gecko&&!is_mac;is_ie5=is_ie&&/msie 5\.[^5]/i.test(UA);is_nn4=document.layers;})();function Community(){}Community.CE=function(type,parent,props,style){var el=null,i;if(document.createElementNS)el=document.createElementNS("http://www.w3.org/1999/xhtml",type);elseel=document.createElement(type);if(parent)parent.appendChild(el);if(props)for(i in props)el[i]=props[i];if(style)for(i in style)el.style[i]=style[i];return el;};function getHTTPObject(){var http=false;if(typeof ActiveXObject!='undefined'){try{http=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{http=new ActiveXObject("Microsoft.XMLHTTP");}catch(E){http=false;}}}else if(window.XMLHttpRequest){try{http=new XMLHttpRequest();}catch(e){http=false;}}return http;}var ajaxHTTPObject=getHTTPObject();function sendFeedAjaxRequest(src,photoDiv,doSmilize,x,y){var h=ajaxHTTPObject;if(h){h.open("GET",src,true);h.onreadystatechange=function(){if(h.readyState==4){if(h.status==200){var r=h.responseText;try{var div=Community.CE("div");div.innerHTML=r;var c=div.firstChild;if((c!=null&&c.tagName.toLowerCase()=="div"&&c.id=="feedResponse")){var cImgs=c.getElementsByTagName("img1");if(cImgs!=null&&cImgs.length>0){var imgSrc=cImgs[0].src;var tooltipImage=new Image();tooltipImage.src=imgSrc;tooltipImage.onLoad=redrawFeed(photoDiv,x,y,doSmilize,r,false);}else{redrawFeed(photoDiv,x,y,doSmilize,r,true);}}c=null;div=null;}catch(e){}}else{}}};h.send(null);}}function redrawFeed(photoDiv,x,y,doSmilize,res,isMsg){if(doSmilize){}photoDiv.innerHTML=res;if(isMsg&&doSmilize){CUtils.setElementStyle(photoDiv,"width: 410px");}else if(!isMsg){PopupUtil.correctPopupWidth(photoDiv,150);}else{PopupUtil.correctPopupWidth(photoDiv,410);}PopupUtil.fitToScreen(photoDiv,x,y);}var getFeed=function(sessionId,tooltipType,feedReferenceId,photoDivId,doSmilize,x,y){var src="/pages"+sessionId+"&"+tooltipType;var photoDiv=document.getElementById(photoDivId);CUtils.showElement(photoDiv);var loadingImage=Community.CE("img",photoDiv);loadingImage.src="http://images2.discsale.ru/index/images/loading1.gif";loadingImage.className="img";SFeed.showDiv="1";CUtils.moveElement(photoDiv,x,y);sendFeedAjaxRequest(src,photoDiv,false,x,y);};function getOffset(elem){if(elem.getBoundingClientRect){return getOffsetRect(elem)}else{return getOffsetSum(elem)}}function getOffsetRect(elem){var box=elem.getBoundingClientRect()var body=document.bodyvar docElem=document.documentElementvar scrollTop=window.pageYOffset||docElem.scrollTop||body.scrollTopvar scrollLeft=window.pageXOffset||docElem.scrollLeft||body.scrollLeftvar clientTop=docElem.clientTop||body.clientTop||0var clientLeft=docElem.clientLeft||body.clientLeft||0var top=box.top+scrollTop-clientTopvar left=box.left+scrollLeft-clientLeftreturn{top:Math.round(top),left:Math.round(left)}}function getOffsetSum(elem){var top=0,left=0while(elem){top=top+parseInt(elem.offsetTop)left=left+parseInt(elem.offsetLeft)elem=elem.offsetParent}return{top:top,left:left}}function SFeed(){}SFeed.div=null;SFeed.timer=null;SFeed.showDiv="0";SFeed.overDiv="0";SFeed.render=function(x,y){var div=SFeed.div;CUtils.showElement(div);PopupUtil.correctPopupWidth(div,410);PopupUtil.fitToScreen(div,x,y);SFeed.showDiv="1";};SFeed.popup=function(e,sessionId,tooltipType,feedReferenceId,doSmilize){if(typeof ajaxHTTPObject=="boolean"){return;}var elem=getOffset(e.target?e.target:e.srcElement);var x=elem.left-6;var y=elem.top+16;if(SFeed.timer){clearTimeout(SFeed.timer);SFeed.timer=null;}if(SFeed.div!=null){SFeed.overDiv="0";closeSFeed();}var popupId="feed."+feedReferenceId+".popup";SFeed.div=document.getElementById(popupId);if(SFeed.div==null){SFeed.div=Community.CE("div",document.body);SFeed.div.id=popupId;SFeed.div.className="shortcutFeed";}if(SFeed.div.innerHTML==""){SFeed.sessionId=sessionId;SFeed.div.onmouseover=function(){SFeed.overDiv="1";};SFeed.div.onmouseout=function(){SFeed.overDiv="0";setTimeout('closeSFeed()',500);};SFeed.timer=setTimeout("getFeed('"+sessionId+"','"+tooltipType+"','"+feedReferenceId+"', SFeed.div.id, "+doSmilize+",'"+x+"','"+y+"'); ",600);}else{SFeed.timer=setTimeout("SFeed.render("+x+","+y+")",600);}};SFeed.hide=function(){if(SFeed.timer){clearTimeout(SFeed.timer);SFeed.timer=null;}if(SFeed.showDiv=="1"){SFeed.overDiv="0";setTimeout('closeSFeed()',500);}};var closeSFeed=function(){if(SFeed.overDiv=="0"){CUtils.hideElement(SFeed.div);SFeed.timer=null;SFeed.showDiv="0";SFeed.overDiv="0";}};function Show_Voit(container){var ob=document.getElementById(container);if(ob.style.display==''){ob.style.display='none';}else{ob.style.display='';}}