window.gscs_fe_gadget_maincontent_advnotab_Static=function(){
if(typeof setLink !='undefined')this.setLink=setLink;
if(typeof imgContent_Click !='undefined')this.imgContent_Click=imgContent_Click;
this.this_HideUnderCondition=function(){
ZtVWeb.HideCtrl(Eq(1,1),this.Box25);
ZtVWeb.HideCtrl(Eq(1,1),this.Box21);
}
_this=this;
window.addEvent("load",function(){
var lbltitle = $(_this.Ctrl.id+"_labelTitle");
var lblsubtitle = $(_this.Ctrl.id+"_labelSubTitle");
var lbltext = $(_this.Ctrl.id+"_labelText");
if(lbltitle==null){
if(lblsubtitle!=null){ lblsubtitle.setStyle("top",Val(lblsubtitle.style.top)-43+"px","important"); }
lbltext.setStyle("top",Val(lbltext.style.top)-34+"px","important");
}
if(lblsubtitle==null){ lbltext.style.setProperty("top",Val(lbltext.style.top)-34+"px","important"); }
if(Empty(_this.COSRC.Value())){
if(lbltitle!=null){ lbltitle.setStyle("left","15px","important"); }
if(lblsubtitle!=null){ lblsubtitle.setStyle("left","15px","important"); }
$(_this.Ctrl.id+"_labelText").setStyle("left","15px","important");
$(_this.Ctrl.id+"_PortletSlide").setStyle("left","15px","important");
}
$(_this.Ctrl.id+"_PortletSlide").className = $(_this.Ctrl.id+"_PortletSlide").className + " gallerySlide";
})
function setLink(){
this.imgContent.Value(this.link.Value())
}
function imgContent_Click(){
var parameters = "?cs_TEMPLATE="+this.cs_TEMPLATE.Value();
parameters += "&cs_ITEM="+this.cs_ITEM.Value();
parameters += "&cs_LANGUAGE="+this.cs_LANGUAGE.Value();
parameters += "&COID="+this.COID.Value();
parameters += "&SELECTED="+this.selectedThumb.Value();
parameters += "&guid=" + Date();
var mySrc = this.cs_WEBPATH.Value()+"../jsp/gscs_fe_item_image_gallery_portlet.jsp" + parameters;
SPOpenModalLayer({
url:mySrc,
in_iframe:false,
width:550,
height:530,
border_width:1,
border_color:'#CCCCCC',
bg_color:'#FFFFFF',
close_on_click_mask:true,
show_scrollbars:true
})
}
this.dispatchEvent('HideUnderCondition');
this.dispatchEvent('EditUnderCondition');
}