var IdegaResourcesHandler = ['/idegaweb/bundles/com.idega.core.bundle/resources/iw_core.js','/content/files/cms/themes/seyDoggy_Tuo.rwtheme/seyDoggy_Tuo.rwtheme/contents/javascript.js','/content/files/cms/themes/seyDoggy_Tuo.rwtheme/seyDoggy_Tuo.rwtheme/contents/scripts/shadedborder.js'];

/***************** STARTS: /idegaweb/bundles/com.idega.core.bundle/resources/iw_core.js *****************/

if(IWCORE==null)var IWCORE={};if(IdegaResourcesHandler==null)var IdegaResourcesHandler=[];var IE=document.all?true:false;function iwOpenWindow(Address,Name,ToolBar,Location,Directories,Status,Menubar,Titlebar,Scrollbars,Resizable,Width,Height,Xcoord,Ycoord){var option='toolbar='+ToolBar
+',location='+Location
+',directories='+Directories
+',status='+Status
+',menubar='+Menubar
+',titlebar='+Titlebar
+',scrollbars='+Scrollbars
+',resizable='+Resizable
+',width='+Width
+',height='+Height;if(Xcoord)option+=',left='+Xcoord;if(Ycoord)option+=',top='+Ycoord;var new_win=window.open(Address,Name,option);new_win.focus();}
function openWindow(Address,Name,ToolBar,Location,Directories,Status,Menubar,Titlebar,Scrollbars,Resizable,Width,Height,Xcoord,Ycoord){iwOpenWindow(Address,Name,ToolBar,Location,Directories,Status,Menubar,Titlebar,Scrollbars,Resizable,Width,Height,Xcoord,Ycoord);}
function swapImage(){var i,j=0,x,a=swapImage.arguments;document.sr=new Array;for(i=0;i<(a.length-2);i+=3)if((x=findObj(a[i]))!=null){document.sr[j++]=x;if(!x.oSrc)x.oSrc=x.src;x.src=a[i+2];}}
function findObj(oName,oFrame,oDoc){if(!oDoc){if(oFrame){oDoc=oFrame.document;}else{oDoc=window.document;}}
if(oDoc[oName]){return oDoc[oName];}if(oDoc.all&&oDoc.all[oName]){return oDoc.all[oName];}
if(oDoc.getElementById&&oDoc.getElementById(oName)){return oDoc.getElementById(oName);}
for(var x=0;x<oDoc.forms.length;x++){if(oDoc.forms[x][oName]){return oDoc.forms[x][oName];}}
for(var x=0;x<oDoc.anchors.length;x++){if(oDoc.anchors[x].name==oName){return oDoc.anchors[x];}}
for(var x=0;document.layers&&x<oDoc.layers.length;x++){var theOb=findObj(oName,null,oDoc.layers[x].document);if(theOb){return theOb;}}
if(!oFrame&&window[oName]){return window[oName];}if(oFrame&&oFrame[oName]){return oFrame[oName];}
for(var x=0;oFrame&&oFrame.frames&&x<oFrame.frames.length;x++){var theOb=findObj(oName,oFrame.frames[x],oFrame.frames[x].document);if(theOb){return theOb;}}
return null;}
function preLoadImages(){var d=document;if(d.images){if(!d.p)d.p=new Array();var i,j=d.p.length,a=preLoadImages.arguments;for(i=0;i<a.length;i++)if(a[i].indexOf("#")!=0){d.p[j]=new Image;d.p[j++].src=a[i];}}}
function swapImgRestore(){var i,x,a=document.sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc;}
function changeInputValue(input,newValue){input.value=newValue;}
function iwPopulateDaysWithYear(yearInput,monthInput,dayInput,dayDisplayString){var yearSelected=yearInput.selectedIndex;var yearValue=0;if(yearSelected=='0'){}
else{yearValue=yearInput.options[yearSelected].value;}
iwPopulateDaysWithMonth(yearValue,monthInput,dayInput,dayDisplayString);}
function iwPopulateDaysWithMonth(yearValue,monthInput,dayInput,dayDisplayString){var monthSelected=monthInput.selectedIndex;var monthValue;if(monthSelected=='0'){monthValue=1;}
else{monthValue=monthInput.options[monthSelected].value;}
iwPopulateDays(yearValue,monthValue,dayInput,dayDisplayString);}
function iwPopulateDays(yearValue,monthValue,dayInput,dayDisplayString){if(yearValue==-1){var currentYear=new Date();yearValue=currentYear.getFullYear();}
var previousDayLength=dayInput.options.length;timeA=new Date(yearValue,monthValue,'01');timeDifference=timeA-86400000;timeB=new Date(timeDifference);var oldSelectedDay=dayInput.selectedIndex;var daysInMonth=timeB.getDate();if(previousDayLength>=2){for(var i=0;i<previousDayLength;i++){dayInput.options[i]=null;}}
dayInput.options[0]=new Option(dayDisplayString,dayDisplayString);for(var i=1;i<=daysInMonth;i++){if(i<10){dayInput.options[i]=new Option(i,'0'+i);}
else{dayInput.options[i]=new Option(i,i);}}
if(oldSelectedDay<daysInMonth){dayInput.options[oldSelectedDay].selected=true;}
else{dayInput.options[daysInMonth].selected=true;}}
function iwSetValueOfHiddenDateWithAllInputs(yearInput,monthInput,dayInput,hiddenInput){var yearValue=0;if(yearInput.selectedIndex!=0){yearValue=yearInput.options[yearInput.selectedIndex].value;}
iwSetValueOfHiddenDateWithDay(yearValue,monthInput,dayInput,hiddenInput);}
function iwSetValueOfHiddenDateWithDay(yearValue,monthInput,dayInput,hiddenInput){var dayValue=0;if(dayInput.selectedIndex!=0){dayValue=dayInput.options[dayInput.selectedIndex].value;}
iwSetValueOfHiddenDateWithMonth(yearValue,monthInput,dayValue,hiddenInput);}
function iwSetValueOfHiddenDateWithYear(yearInput,monthInput,hiddenInput){var yearValue=0;var dayValue='01';if(yearInput.selectedIndex!=0){yearValue=yearInput.options[yearInput.selectedIndex].value;}
iwSetValueOfHiddenDateWithMonth(yearValue,monthInput,dayValue,hiddenInput);}
function iwSetValueOfHiddenDateWithMonth(yearValue,monthInput,dayValue,hiddenInput){var monthValue=0;if(monthInput.selectedIndex!=0){monthValue=monthInput.options[monthInput.selectedIndex].value;}
iwSetValueOfHiddenInput(yearValue,monthValue,dayValue,hiddenInput);}
function iwSetValueOfHiddenInput(yearValue,monthValue,dayValue,hiddenInput){if((yearValue==0)||(monthValue==0)||(dayValue==0)){hiddenInput.value='';}
else{hiddenInput.value=yearValue+'-'+monthValue+'-'+dayValue+'';}}
var windowinfo={getWindowWidth:function(){this.width=0;if(window.innerWidth){this.width=window.innerWidth;}
else if(document.documentElement&&document.documentElement.clientWidth){this.width=document.documentElement.clientWidth;}
else if(document.body&&document.body.clientWidth){this.width=document.body.clientWidth;}
return this.width;},getWindowHeight:function(){this.height=0;if(window.innerHeight){this.height=window.innerHeight;}
else if(document.documentElement&&document.documentElement.clientHeight){this.height=document.documentElement.clientHeight;}
else if(document.body&&document.body.clientHeight){this.height=document.body.clientHeight;}
return this.height;},getScrollX:function(){this.scrollX=0;if(typeof window.pageXOffset=="number")this.scrollX=window.pageXOffset;else if(document.documentElement&&document.documentElement.scrollLeft)
this.scrollX=document.documentElement.scrollLeft;else if(document.body&&document.body.scrollLeft)
this.scrollX=document.body.scrollLeft;else if(window.scrollX)this.scrollX=window.scrollX;},getScrollY:function(){this.scrollY=0;if(typeof window.pageYOffset=="number")this.scrollY=window.pageYOffset;else if(document.documentElement&&document.documentElement.scrollTop)
this.scrollY=document.documentElement.scrollTop;else if(document.body&&document.body.scrollTop)
this.scrollY=document.body.scrollTop;else if(window.scrollY)this.scrollY=window.scrollY;},getAll:function(){this.getWindowWidth();this.getWindowHeight();this.getScrollX();this.getScrollY();}}
function setIframeHeight(iframeId,topmargin,bottommargin){var theIframe=document.getElementById?document.getElementById(iframeId):document.all?document.all[iframeId]:null;if(theIframe){windowinfo.getWindowHeight();var iframeHeight=windowinfo.height-topmargin-bottommargin;theIframe.style.height=iframeHeight+"px";theIframe.style.marginTop=topmargin+"px";}}
function setWindowSizeCentered(width,height){window.resizeTo(width,height);var body=document.body;var body_height=0;if(typeof bottom=="undefined"){var div=document.createElement("div");body.appendChild(div);var pos=getAbsolutePos(div);body_height=pos.y;}else{var pos=getAbsolutePos(bottom);body_height=pos.y+bottom.offsetHeight;}
var body_height=0;if(!document.all){window.innerWidth=body.offsetWidth+5;window.innerHeight=body_height+2;var x=opener.screenX+(opener.outerWidth-window.outerWidth)/2;var y=opener.screenY+(opener.outerHeight-window.outerHeight)/2;window.moveTo(x,y);}else{var ch=body.clientHeight;var cw=body.clientWidth;var W=body.offsetWidth;var H=2*body_height-ch;var x=(screen.availWidth-W)/2;var y=(screen.availHeight-H)/2;window.moveTo(x,y);}}
window.onload=function(){tableruler();}
function tableruler()
{if(document.getElementById&&document.createTextNode)
{var tables=document.getElementsByTagName('table');for(var i=0;i<tables.length;i++)
{if(tables[i].className.indexOf('ruler')!=-1)
{var trs=tables[i].getElementsByTagName('tr');for(var j=0;j<trs.length;j++)
{if(trs[j].parentNode.nodeName=='TBODY')
{var className=trs[j].className;trs[j].onmouseover=function(){this.className=this.className+' ruled';return false;}
trs[j].onmouseout=function(){this.className=this.className.substring(0,this.className.indexOf('ruled')-1);return false;}}}}}}}
IWCORE.canUsejQuery=function(){var canUserjQuery=false;try{if(jQuery){canUserjQuery=true;}}catch(e){}
return canUserjQuery;}
var loaded=false;var image1=new Image();image1.src='/idegaweb/bundles/com.idega.core.bundle/resources/loading_notext.gif';var image2=new Image();image2.src='/idegaweb/bundles/com.idega.core.bundle/resources/style/images/transparent.png';var image3=new Image();image3.src='/idegaweb/bundles/com.idega.core.bundle/resources/style/images/whitetransparent.png';var image4=new Image();image4.src='/idegaweb/bundles/com.idega.core.bundle/resources/style/images/ajax-loader.gif';function showLoadingMessage(sLoadingText){var outer=document.createElement('div');outer.setAttribute('id','busybuddy');outer.setAttribute('class','LoadLayer');outer.setAttribute('className','LoadLayer');var middle=document.createElement('div');middle.setAttribute('id','busybuddy-middle');middle.setAttribute('class','LoadLayerMiddle');middle.setAttribute('className','LoadLayerMiddle');outer.appendChild(middle);var inner=document.createElement('div');inner.setAttribute('id','busybuddy-contents');inner.setAttribute('class','LoadLayerContents');inner.setAttribute('className','LoadLayerContents');middle.appendChild(inner);var image=document.createElement('img');image.setAttribute('id','loadingimage');image.setAttribute('src',image1.src);image.src=image1.src;inner.appendChild(image);var span=document.createElement('span');span.setAttribute('id','loadingtext');inner.appendChild(span);var text=document.createTextNode(sLoadingText);span.appendChild(text);var bodyArray=document.getElementsByTagName('body');var bodyTag=bodyArray[0];bodyTag.appendChild(outer);if(outer.style){outer.style.visibility='visible';}
else{outer.visibility='show';}}
function showElementLoading(id){setLoadingLayerForElement(id,true,null,null);}
function setLoadingLayerForElement(id,removeContent,size,position){var component=document.getElementById(id);if(component==null){return false;}
var outer=document.createElement('div');outer.setAttribute('id','busybuddy');outer.setAttribute('class','LocalLoadLayer');outer.setAttribute('className','LocalLoadLayer');var middle=document.createElement('div');middle.setAttribute('id','busybuddy-middle');middle.setAttribute('class','LoadLayerMiddle');middle.setAttribute('className','LoadLayerMiddle');outer.appendChild(middle);var inner=document.createElement('div');inner.setAttribute('id','busybuddy-contents');inner.setAttribute('class','LoadLayerContents');inner.setAttribute('className','LoadLayerContents');middle.appendChild(inner);var image=document.createElement('img');image.setAttribute('id','loadingimage');image.setAttribute('src',image4.src);image.setAttribute('class','LoadingImage');image.setAttribute('className','LoadingImage');image.src=image4.src;inner.appendChild(image);if(removeContent){removeChildren(component);}
if(size==null){component.appendChild(outer);}
else{outer.style.position='absolute';outer.style.left=position.x+'px';outer.style.top=position.y+'px';outer.style.width=size.size.x+'px';outer.style.height=size.size.y+'px';document.body.appendChild(outer);}
if(outer.style){outer.style.visibility='visible';}
else{outer.visibility='show';}
return outer;}
function closeLoadingMessage(){var busyMessage=document.getElementById("busybuddy");if(busyMessage==null){return;}
else{var parentElement=busyMessage.parentNode;if(parentElement==null){if(busyMessage.style){busyMessage.style.display="none";busyMessage.style.visibility="hidden";}
else{busyMessage.display="none";busyMessage.visibility="hidden";}}
else{parentElement.removeChild(busyMessage);closeLoadingMessage();}}}
function closeAllLoadingLayers(className){var layers=getElementsByClassName(document.body,'*',className);if(layers==null){return;}
var parentNode=null;var layer=null;for(var i=0;i<layers.length;i++){layer=layers[i];parentNode=layer.parentNode;if(parentNode!=null){parentNode.removeChild(layer);}}}
function closeAllLoadingMessages(){closeAllLoadingLayers('LoadLayer');}
function closeAllLocalLoadingLayers(){closeAllLoadingLayers('LocalLoadLayer');}
function setLinkToBold(input){input.style.fontWeight='bold';}
function addIEonScroll(){var thisContainer=document.getElementById('scrollContainer');if(!thisContainer){return;}
var onClickAction='toggleSelectBoxes();';thisContainer.onscroll=new Function(onClickAction);}
function toggleSelectBoxes(){var thisContainer=document.getElementById('scrollContainer');var thisHeader=document.getElementById('fixedHeader');if(!thisContainer||!thisHeader){return;}
var selectBoxes=thisContainer.getElementsByTagName('select');if(!selectBoxes){return;}
for(var i=0;i<selectBoxes.length;i++){if(thisContainer.scrollTop>=eval(selectBoxes[i].parentNode.offsetTop-thisHeader.offsetHeight)){selectBoxes[i].style.visibility='hidden';}else{selectBoxes[i].style.visibility='visible';}}}
function openContentEditor(url){iwOpenWindow(url,'contentEditor','0','0','0','0','0','0','0','1','\'700\'','\'600\'');}
function expandMinimizeContents(container){var expander;var contents;var divs=container.getElementsByTagName('div');for(var i=0;i<divs.length;i++)
{if(divs[i].className.indexOf('contents')!=-1)
{contents=divs[i];}
else if(divs[i].className.indexOf('expander')!=-1)
{expander=divs[i];}}
var expanderClass=expander.getAttribute('class');var contentsClass=contents.getAttribute('class');if(contentsClass=='contents expanded'){expander.className='expander minimized';contents.className='contents minimized';}
else if(contentsClass=='contents minimized'){expander.className='expander expanded';contents.className='contents expanded';}}
function insertJavaScriptFileToHeader(src){if(src==null||src==''){return;}
var script=document.createElement("script");script.setAttribute("type","text/javascript");script.setAttribute("src",src);document.getElementsByTagName("head")[0].appendChild(script);}
function isEnterEvent(event){if(event==null){return false;}
var keyCode=event.keyCode?event.keyCode:event.which?event.which:event.charCode;if(keyCode==13){return true;}
return false;}
function isSafariBrowser(){if(navigator==null){return false;}
var browser=navigator.userAgent;if(browser==null){return false;}
browser=browser.toLowerCase();if(browser.indexOf("safari")==-1){return false;}
return true;}
function registerEvent(object,eventType,functionName){if(object.addEventListener){object.addEventListener(eventType,functionName,false);return true;}
else{if(object.attachEvent){var result=object.attachEvent("on"+eventType,functionName);return result;}
else{return false;}}}
function addFeedSymbolInHeader(linkToFeed,feedType,feedTitle){if(linkToFeed==null||feedType==null||feedTitle==null){return;}
var headElement=document.getElementsByTagName("head")[0];var alreadyAdded=false;for(var i=0;i<headElement.getElementsByTagName("link").length;i++){var linkElement=headElement.getElementsByTagName("link")[i];if(linkElement.getAttribute("href")==linkToFeed)
return;}
var linkToAtomInHeader=document.createElement("link");linkToAtomInHeader.setAttribute("href",linkToFeed);linkToAtomInHeader.setAttribute("title",feedTitle);linkToAtomInHeader.setAttribute("type","application/"+feedType+"+xml");linkToAtomInHeader.setAttribute("rel","alternate");document.getElementsByTagName("head")[0].appendChild(linkToAtomInHeader);}
function getAbsoluteLeft(objectId){o=document.getElementById(objectId);if(o==null){return 0;}
oLeft=o.offsetLeft;while(o.offsetParent!=null){oParent=o.offsetParent;oLeft+=oParent.offsetLeft;o=oParent;}
return oLeft;}
function getAbsoluteTop(objectId){o=document.getElementById(objectId);if(o==null){return 0;}
oTop=o.offsetTop;while(o.offsetParent!=null){oParent=o.offsetParent;oTop+=oParent.offsetTop;o=oParent;}
return oTop;}
function removeElementFromArray(array,elementToRemove){if(array==null||elementToRemove==null){return;}
var index=0;var found=false;for(var i=0;(i<array.length&&!found);i++){if(elementToRemove==array[i]){index=i;found=true;}}
if(found){array.splice(index,1);}}
function removeChildren(element){if(element==null){return;}
var children=element.childNodes;if(children==null){return;}
var size=children.length;var child=null;for(var i=0;i<size;i++){child=children[0];if(child!=null){element.removeChild(child);}}}
function replaceHtml(el,html){var oldEl=(typeof el==="string"?document.getElementById(el):el);var newEl=oldEl.cloneNode(false);newEl.innerHTML=html;oldEl.parentNode.replaceChild(newEl,oldEl);return newEl;};function getTransformedDocumentToDom(component){var nodes=new Array();if(component==null){return nodes;}
var children=component.childNodes;if(children==null){return nodes;}
if(children.length==0){return nodes;}
var size=children.length;var node=null;for(var i=0;i<size;i++){node=children.item(i);nodes.push(node);}
return nodes;}
function executeJavaScriptActionsCodedInStringInGlobalScope(code){if(code==null||code==''){return null;}
var dj_global=this;if(window.execScript){window.execScript(code);return null;}
return dj_global.eval?dj_global.eval(code):eval(code);}
IWCORE.getFixedHrefValue=function(hrefValue){if(hrefValue==null){return null;}
while(hrefValue.indexOf('&#38;')!=-1){hrefValue=hrefValue.replace('&#38;','&');}
return hrefValue;}
IWCORE.createRealNode=function(element,scriptsToEval,resourcesToAdd){var DYNAMIC_HTML_ELEMENT_FUNCTION_SEPARATOR='%idega_separator%';if(element.nodeName=='xml'){var fakeDiv=document.createElement('div');return fakeDiv;}
if(element.nodeName=='#text'){var textNode=document.createTextNode(element.nodeValue);return textNode;}
if(element.nodeName=='#comment'){var commentNode=document.createComment(element.nodeValue);return commentNode;}
if(element.nodeName=='#cdata-section'&&element.parentNode.nodeName=='script'){var value=element.nodeValue;if(value.indexOf('prototype')==-1&&value.indexOf('scriptac')==-1){if(scriptsToEval==null){scriptsToEval=new Array();}
scriptsToEval.push(element.nodeValue);}
return document.createElement('script');}
if(element.nodeName=='script'){if(element.nodeValue!=null&&element.nodeValue!=''){var action=''+element.nodeValue;if(action.indexOf('<!--')==-1&&action.indexOf('//-->')==-1){if(scriptsToEval==null){scriptsToEval=new Array();}
scriptsToEval.push(action);}}
if(element.attributes!=null){for(var i=0;i<element.attributes.length;i++){var attribute=element.attributes[i];if(attribute.nodeName=='src'){if(resourcesToAdd==null){resourcesToAdd=new Array();}
resourcesToAdd.push(attribute.nodeValue);}}}
if(element.childNodes!=null){var allActions='';for(var i=0;i<element.childNodes.length;i++){var scriptNodeValue=element.childNodes[i].nodeValue;if(scriptNodeValue.indexOf('<!--')!=-1){scriptNodeValue=scriptNodeValue.replace(/<!--/g,'');}
if(scriptNodeValue.indexOf('//-->')!=-1){scriptNodeValue=scriptNodeValue.replace(/\/\/-->/g,'');}
allActions+=scriptNodeValue;}
if(allActions!=null&&allActions!=''){allActions=allActions.replace('\n//','');if(scriptsToEval==null){scriptsToEval=new Array();}
scriptsToEval.push(allActions);}}
return document.createElement('script');}
if(element.nodeName=='link'){if(element.attributes!=null){var foundCSSForScreen=false;for(var i=0;(i<element.attributes.length&&!foundCSSForScreen);i++){var attribute=element.attributes[i];if(attribute.nodeName=='media'&&attribute.nodeValue=='screen'){foundCSSForScreen=true;}}
if(foundCSSForScreen){for(var i=0;i<element.attributes.length;i++){var attribute=element.attributes[i];if(attribute.nodeName=='href'){var hrefValue=IWCORE.getFixedHrefValue(attribute.nodeValue);if(hrefValue!=null){if(resourcesToAdd==null){resourcesToAdd=new Array();}
resourcesToAdd.push(hrefValue);}
return document.createElement('link');}}}}}
var result=document.createElement(element.nodeName);if(element.attributes!=null){var functionsToRegister=new Array();for(var i=0;i<element.attributes.length;i++){var attribute=element.attributes[i];if(attribute.nodeName.indexOf('on')==0&&IE){var event=attribute.nodeName.substring(attribute.nodeName.indexOf('on')+2);var functionCall=attribute.nodeValue;functionsToRegister.push(event+DYNAMIC_HTML_ELEMENT_FUNCTION_SEPARATOR+functionCall);}
else if(attribute.nodeName=='checked'&&IE){var isChecked=attribute.nodeValue=='true';if(isChecked){result.setAttribute('checked',true);result.setAttribute('defaultChecked',true);}}
else if(attribute.nodeName=='style'&&IE){var styleValue=attribute.nodeValue;result.setAttribute('style',styleValue);}
else if(attribute.nodeName=='href'){var hrefValue=IWCORE.getFixedHrefValue(attribute.nodeValue);if(hrefValue!=null){result.setAttribute(attribute.nodeName,hrefValue);}}
else if(attribute.nodeName=='src'&&element.nodeName=='script'){if(resourcesToAdd==null){resourcesToAdd=new Array();}
resourcesToAdd.push(attribute.nodeValue);}
else if(attribute.nodeName=='class'&&IE){result.className=attribute.nodeValue;}
else if(attribute.nodeName!=null&&attribute.nodeValue!=null){result.setAttribute(attribute.nodeName,attribute.nodeValue);}}
if(functionsToRegister.length>0){var expression=null;for(var f=0;f<functionsToRegister.length;f++){expression=functionsToRegister[f];var splittedExpression=expression.split(DYNAMIC_HTML_ELEMENT_FUNCTION_SEPARATOR);if(splittedExpression.length==2){var elementFunction=function(){try{window.eval(splittedExpression[1]);}catch(e){}};registerEvent(result,splittedExpression[0],elementFunction);}}}}
if(element.childNodes!=null){for(var j=0;j<element.childNodes.length;j++){result.appendChild(IWCORE.createRealNode(element.childNodes[j],scriptsToEval,resourcesToAdd));}}
return result;};IWCORE.includeResourcesAndExecuteActions=function(resourcesToAdd,scriptsToEval){var actionsToExecute=null;if(scriptsToEval!=null&&scriptsToEval.length>0){actionsToExecute='';for(var i=0;i<scriptsToEval.length;i++){actionsToExecute+=scriptsToEval[i];}}
if(resourcesToAdd==null||resourcesToAdd.length==0){executeJavaScriptActionsCodedInStringInGlobalScope(actionsToExecute);return false;}
var callback=function(){executeJavaScriptActionsCodedInStringInGlobalScope(actionsToExecute);}
LazyLoader.loadMultiple(resourcesToAdd,callback);}
function createRealNode(element,scriptsToEval,resourcesToAdd){var newElement=IWCORE.createRealNode(element,scriptsToEval,resourcesToAdd);return newElement;}
function replaceNode(component,nodeToReplace,container){if(component==null||nodeToReplace==null){return;}
var nodes=getTransformedDocumentToDom(component);var activeNode=null;var realNode=null;var scriptsToEval=new Array();var resourcesToAdd=new Array();for(var i=0;i<nodes.length;i++){activeNode=nodes[i];realNode=createRealNode(activeNode,scriptsToEval,resourcesToAdd);container.replaceChild(realNode,nodeToReplace);}
IWCORE.includeResourcesAndExecuteActions(resourcesToAdd,scriptsToEval);}
function insertNodesToContainerBefore(component,container,before){if(component==null||container==null||before==null){return;}
var nodes=getTransformedDocumentToDom(component);var activeNode=null;var realNode=null;var scriptsToEval=new Array();var resourcesToAdd=new Array();for(var i=0;i<nodes.length;i++){activeNode=nodes[i];realNode=createRealNode(activeNode,scriptsToEval,resourcesToAdd);container.insertBefore(realNode,before);}
IWCORE.includeResourcesAndExecuteActions(resourcesToAdd,scriptsToEval);}
function insertNodesToContainer(component,container){IWCORE.insertHtml(component,container);}
IWCORE.insertHtml=function(html,container){if(html==null||container==null){return;}
var nodes=getTransformedDocumentToDom(html);var activeNode=null;var realNode=null;var scriptsToEval=new Array();var resourcesToAdd=new Array();for(var i=0;i<nodes.length;i++){activeNode=nodes[i];realNode=IWCORE.createRealNode(activeNode,scriptsToEval,resourcesToAdd);container.appendChild(realNode);}
IWCORE.includeResourcesAndExecuteActions(resourcesToAdd,scriptsToEval);};IWCORE.stopEventBubbling=function(event){if(event){if(event.stopPropagation){event.stopPropagation();}
event.cancelBubble=true;}}
IWCORE.insertRenderedComponent=function(component,options){if(component==null){if(options.callback){options.callback();}
reloadPage();return false;}
LazyLoader.loadMultiple(component.resources,function(){if(component.errorMessage!=null){try{humanMsg.displayMsg(component.errorMessage);}catch(e){alert(component.errorMessage);}
if(options.callback){options.callback();}
return false;}
var parentContainer=null;if(typeof(options.container)=='string'){parentContainer=jQuery('#'+options.container)}
else{parentContainer=jQuery(options.container);}
if(parentContainer==null||parentContainer.length==0){if(options.callback){options.callback();}
return false;}
try{var xmlEncoding='<?xml version="1.0" encoding="UTF-8"?>';while(component.html.indexOf(xmlEncoding)!=-1){component.html=component.html.replace(xmlEncoding,'');}
var commentOpener='&lt;';while(component.html.indexOf(commentOpener)!=-1){component.html=component.html.replace(commentOpener,'<');}
var commentCloser='&gt;';while(component.html.indexOf(commentCloser)!=-1){component.html=component.html.replace(commentCloser,'>');}
if(options.append){parentContainer.append(jQuery(component.html));}
else if(options.rewrite){parentContainer.html(component.html);}
else{parentContainer.replaceWith(jQuery(component.html));}}catch(e){parentContainer.replaceWith(jQuery(component.html));}
if(options.callback){options.callback();}});}
IWCORE.renderComponent=function(uuid,container,callback,properties){LazyLoader.loadMultiple(['/dwr/engine.js','/dwr/interface/BuilderService.js'],function(){if(!properties){properties=null;}
BuilderService.getRenderedComponentById(uuid,window.location.pathname,properties,{callback:function(component){IWCORE.insertRenderedComponent(component,{container:container,callback:callback,replace:true});},errorHandler:function(){closeAllLoadingMessages();if(window.confirm('Ooops... Some error occurred rendering component... We recommend to reload page. Do you agree?')){reloadPage();}},timeout:30000});});}
IWCORE.getRenderedComponentByClassName=function(options){LazyLoader.loadMultiple(['/dwr/engine.js','/dwr/interface/BuilderService.js'],function(){BuilderService.getRenderedComponentByClassName(options.className,options.properties,{callback:function(component){IWCORE.insertRenderedComponent(component,options);},errorHandler:function(){closeAllLoadingMessages();if(window.confirm('Ooops... Some error occurred rendering component... We recommend to reload page. Do you agree?')){reloadPage();}},timeout:30000});});}
IWCORE.addLoadedResources=function(uris){if(uris==null){return;}
for(var i=0;i<uris.length;i++){if(!existsElementInArray(IdegaResourcesHandler,uris[i])){IdegaResourcesHandler.push(uris[i]);}}}
function getNeededElements(element,className){if(element==null){return null;}
return getNeededElementsFromList(element.childNodes,className);}
function getNeededElementsFromList(list,className){if(list==null||className==null){return new Array();}
var childElement=null;var elements=new Array();for(var i=0;i<list.length;i++){childElement=list[i];if(childElement!=null){if(childElement.className!=null){if(childElement.className==className){elements.push(childElement);}}}}
return elements;}
function getNeededElementsFromListById(list,id){if(list==null||id==null){return new Array();}
var childElement=null;var elements=new Array();for(var i=0;i<list.length;i++){childElement=list[i];if(childElement!=null){if(childElement.id!=null){if(childElement.id==id){elements.push(childElement);}}}}
return elements;}
function highlightElement(element,effectTime,endColor){if(element==null||effectTime==null||endColor==null){return;}
var fx=new Fx.Styles(element,{duration:effectTime,wait:false,transition:Fx.Transitions.Quad.easeOut});fx.start({'background-color':['#fff36f',endColor]});var setStyleBack=function(){element.removeAttribute('style');}
var id=window.setTimeout(setStyleBack,effectTime);}
function getElementsByClassName(oElm,strTagName,strClassName){var arrElements=(strTagName=="*"&&oElm.all)?oElm.all:oElm.getElementsByTagName(strTagName);var arrReturnElements=new Array();strClassName=strClassName.replace(/-/g,"\-");var oRegExp=new RegExp("(^|\s)"+strClassName+"(\s|$)");var oElement;for(var i=0;i<arrElements.length;i++){oElement=arrElements[i];if(oRegExp.test(oElement.className)){arrReturnElements.push(oElement);}}
return(arrReturnElements)}
function setActionsForRegion(){$$('div.regionLabel').each(function(element){var parentElement=element.parentNode;if(parentElement==null){return;}
var regionLabel="";var inputs=element.getElementsByTagName("input");if(inputs!=null){if(inputs.length>0){var input=inputs[0];if(input.type!=null){if(input.type=="hidden"){regionLabel=input.value;}}}}
parentElement.style.visibility="hidden";parentElement.onmouseover=function(){showAddComponentImage(parentElement,element,regionLabel);},parentElement.onmouseout=function(){closeAddComponentContainer(element.id);}});}
function changeWindowLocationHref(newHref){changeWindowLocationHrefAndCheckParameters(newHref,false);}
function changeWindowLocationHrefAndCheckParameters(newHref,keepOldParameters){var oldLocation=''+window.location.href;if(oldLocation.indexOf('#')!=-1){oldLocation=oldLocation.split('#')[0];}
var separator='?'
var reloadingParam='reloading';if(oldLocation.indexOf(separator+reloadingParam)!=-1){oldLocation=oldLocation.split(separator+reloadingParam)[0];}
else if(oldLocation.indexOf('&'+reloadingParam)!=-1){oldLocation=oldLocation.split('&'+reloadingParam)[0];}
var existsAnyParameter=oldLocation.indexOf('/?')!=-1;if(keepOldParameters){if(existsAnyParameter){separator='&';}}
else{if(existsAnyParameter){oldLocation=oldLocation.split('/?')[0];}}
if(oldLocation.lastIndexOf('/')==-1){oldLocation+='/';}
if(newHref.indexOf('#')==0){window.location.href=oldLocation+newHref;}else{window.location.href=oldLocation+separator+newHref;}}
function reloadPage(){window.location.reload();}
function addActionForMoodalBoxOnCloseEvent(actionOnClose){try{if(MOOdalBox){MOOdalBox.addEventToCloseAction(actionOnClose);}
else{reloadPage();}}catch(ex){reloadPage();}}
var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function encode64(input){var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;do{chr1=input.charCodeAt(i++);chr2=input.charCodeAt(i++);chr3=input.charCodeAt(i++);enc1=chr1>>2;enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64;}else if(isNaN(chr3)){enc4=64;}
output=output+keyStr.charAt(enc1)+keyStr.charAt(enc2)+
keyStr.charAt(enc3)+keyStr.charAt(enc4);}while(i<input.length);return output;}
function decode64(input){var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{enc1=keyStr.indexOf(input.charAt(i++));enc2=keyStr.indexOf(input.charAt(i++));enc3=keyStr.indexOf(input.charAt(i++));enc4=keyStr.indexOf(input.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;output=output+String.fromCharCode(chr1);if(enc3!=64){output=output+String.fromCharCode(chr2);}
if(enc4!=64){output=output+String.fromCharCode(chr3);}}while(i<input.length);return output;}
function existsElementInArray(array,element){if(array==null||element==null){return false;}
for(var i=0;i<array.length;i++){if(element==array[i]){return true;}}
return false;}
function initToolTipForElement(element){var tip=new Tips(element,{initialize:function(){this.fx=new Fx.Style(this.toolTip,'opacity',{duration:500,wait:false}).set(0);},onShow:function(toolTip){this.fx.start(0.75);},onHide:function(toolTip){this.fx.start(0);}});}
String.prototype.wordWrap=function(m,b,c){var i,j,s,r=this.split("\n");if(m>0)for(i in r){for(s=r[i],r[i]="";s.length>m;j=c?m:(j=s.substr(0,m).match(/\S*$/)).input.length-j[0].length||m,r[i]+=s.substr(0,j)+((s=s.substr(j)).length?b:""));r[i]+=s;}
return r.join("\n");};function showAllComponentsLabels(element){if(element==null){return;}
var children=getElementsByClassName(element,'div','moduleName');if(children==null){return;}
var child=null;var elementsToHighlight=null;for(var i=0;i<children.length;i++){child=children[i];child.style.visibility='visible';}}
function hideOldLabels(container){if(container==null){return;}
var children=getElementsByClassName(container,'div','moduleName');if(children==null){return;}
var element=null;for(var i=0;i<children.length;i++){element=children[i];element.style.visibility='hidden';}}
function hideModuleContainerTop(element){var list=getElementsByClassName(element,'*','moduleContainerTop');var container=getFirstElementFromList(list);if(container==null){return false;}
container.style.visibility='hidden';}
function showModuleContainerTop(element){var list=getElementsByClassName(element,'*','moduleContainerTop');var container=getFirstElementFromList(list);if(container==null){return false;}
container.style.visibility='visible';}
function getFirstElementFromList(elements){if(elements==null){return null;}
if(elements.length==0){return null;}
return $(elements[0]);}
function manageComponentInfoImageVisibility(element,styleProperty){if(element==null){return false;}
var list=getElementsByClassName(element,'*','regionInfoImageContainer');var container=getFirstElementFromList(list);if(container==null){return false;}
container.style.visibility=styleProperty;}
var DEFAULT_DWR_PATH='/dwr';function getDefaultDwrPath(){return DEFAULT_DWR_PATH;}
function prepareDwr(interfaceClass,path){if(interfaceClass==null||path==null){return false;}
interfaceClass._path=path;}
String.prototype.cropEnd=function(symbols_count,string_to_append){if(this.length<=symbols_count)
return this;return this.substr(0,symbols_count)+string_to_append;}
function isCorrectFileType(id,fileType,noFileMsg,invalidFileTypeMsg){var input=document.getElementById(id);if(input){if(input.value==''){if(noFileMsg!=null){alert(noFileMsg);}
return false;}
var nameParts=input.value.split('.');if(nameParts){var lastPart=nameParts[nameParts.length-1];if(lastPart.toLowerCase()!=fileType){if(invalidFileTypeMsg!=null){alert(invalidFileTypeMsg+': '+input.value);}
return false;}}}
return true;}
var LazyLoader={};LazyLoader.timer={};LazyLoader.resources=[];LazyLoader.loading=false;LazyLoader.loadMultiple=function(urls,callback,parameters){try{if(urls==null||urls.length==0){LazyLoader.executeCallback(callback);return false;}
if(typeof urls=='string'){LazyLoader.load(urls,callback,parameters);return false;}
var url=urls[0];if(url==null||url==''){LazyLoader.executeCallback(callback);return false;}
removeElementFromArray(urls,url);LazyLoader.load(url,urls.length==0?callback:function(){LazyLoader.loadMultiple(urls,callback);},parameters);}catch(e){LazyLoader.loading=false;}}
LazyLoader.load=function(url,callback,parameters){try{if(url==null||url==''){LazyLoader.executeCallback(callback);return false;}
if(LazyLoader.loading){var intervalId='loading_'+url+'_and_executing_'+callback;if(LazyLoader.timer[intervalId]!=null){window.clearInterval(LazyLoader.timer[intervalId]);}
LazyLoader.timer[intervalId]=window.setInterval(function(){if(!LazyLoader.loading){window.clearInterval(LazyLoader.timer[intervalId]);LazyLoader.doRealLoading(url,callback,parameters);}},100);}
else{LazyLoader.doRealLoading(url,callback,parameters);}}catch(e){LazyLoader.loading=false;}}
LazyLoader.doRealLoading=function(url,callback,parameters){if(LazyLoader.loading==true){LazyLoader.load(url,callback,parameters);return false;}
LazyLoader.loading=true;try{var foundRequiredResource=false;var loadedResources=LazyLoader.resources;if(loadedResources!=null&&loadedResources.length>0){for(var i=0;(i<loadedResources.length&&!foundRequiredResource);i++){if(url==loadedResources[i]||loadedResources[i].indexOf(url)==0){foundRequiredResource=true;}}}
var resourceEnd=url.substring(url.lastIndexOf('.')+1);var isCSS=resourceEnd.toLowerCase()=='css';if(!foundRequiredResource){foundRequiredResource=LazyLoader.existsResourceInDocument(url,isCSS);}
if(foundRequiredResource){LazyLoader.executeCallback(callback);}else{LazyLoader.resources.push(url);url+='?LazyLoaderFlag='+new Date().getTime();var resource=null;if(isCSS){resource=document.createElement('link');resource.href=url;resource.type='text/css';resource.rel='stylesheet';resource.media='all';}
else{resource=document.createElement('script');resource.src=url;if(parameters){if(parameters.classValue){resource.setAttribute('class',parameters.classValue);}}
else{resource.type='text/javascript';}}
document.getElementsByTagName('head')[0].appendChild(resource);if(callback){if(isCSS){LazyLoader.executeCallback(callback);}
else{resource.onreadystatechange=function(){if(resource.readyState=='loaded'||resource.readyState=='complete'){LazyLoader.executeCallback(callback);}}
resource.onload=function(){LazyLoader.executeCallback(callback);}}}
if(callback==null){LazyLoader.loading=false;}}}catch(e){LazyLoader.loading=false;}}
LazyLoader.existsResourceInDocument=function(url,isCSS){if(existsElementInArray(IdegaResourcesHandler,url)){return true;}
if(LazyLoader.existsResourceInElement('head',url,isCSS)){return true;}
return LazyLoader.existsResourceInElement('body',url,isCSS)}
LazyLoader.existsResourceInElement=function(elementTagName,url,isCSS){var element=document.getElementsByTagName(elementTagName)[0];if(element==null){return false;}
var currentResources=null;try{currentResources=element.getElementsByTagName(isCSS?'link':'script');}catch(e){return false;}
if(currentResources==null||currentResources.length==0){return false;}
var resourceUri=null;for(var i=0;i<currentResources.length;i++){var resourceElement=currentResources[i];resourceUri=resourceElement.getAttribute(isCSS?'href':'src');if(resourceUri!=null&&resourceUri!=''){if(url==resourceUri||resourceUri.indexOf(url)==0){return true;}}}
return false;}
LazyLoader.executeCallback=function(callback){try{LazyLoader.loading=false;if(!callback){return false;}
callback();}catch(e){LazyLoader.loading=false;}}
IWCORE.getSelectedFromAdvancedProperties=function(handlerUsers){if(handlerUsers!=null){for(var index=0;index<handlerUsers.length;index++){if(handlerUsers[index].selected)
return handlerUsers[index].id;}}
return null;}
IWCORE.isNumericValue=function(value){if(value==null||value.length==0){return false;}
var validChars='0123456789';var isNumber=true;var character=null;for(i=0;i<value.length&&isNumber;i++){character=value.charAt(i);if(validChars.indexOf(character)==-1){isNumber=false;}}
return isNumber;}
IWCORE.activeSessionPolling=function(sleepTime,checkSleepTime){if(checkSleepTime){if(!IWCORE.isNumericValue(sleepTime)){return;}}
var id=window.setTimeout(function(){IWCORE.pingServer(sleepTime,id);},sleepTime);}
IWCORE.pingServer=function(sleepTime,id){window.clearTimeout(id);LazyLoader.loadMultiple(['/dwr/engine.js','/dwr/interface/PageSessionPoller.js'],function(){PageSessionPoller.pollSession(window.location.pathname,{callback:function(result){if(result!=null){IWCORE.insertRenderedComponent(result,{container:document.body,append:true});}
IWCORE.activeSessionPolling(sleepTime,false);},errorHandler:function(){}});},null);}
String.prototype.trim=function(){return this.replace(/^\s*/,'').replace(/\s*$/,'');}
/***************** ENDS: /idegaweb/bundles/com.idega.core.bundle/resources/iw_core.js *****************/

/***************** STARTS: /content/files/cms/themes/seyDoggy_Tuo.rwtheme/seyDoggy_Tuo.rwtheme/contents/javascript.js *****************/

function externalLinks(){if(!document.getElementsByTagName)return;var anchors=document.getElementsByTagName("a");for(var i=0;i<anchors.length;i++){var anchor=anchors[i];if(anchor.getAttribute("href")&&anchor.getAttribute("rel")=="external")
anchor.target="_blank";}}
window.onload=externalLinks;if(typeof deconcept=="undefined")var deconcept=new Object();if(typeof deconcept.util=="undefined")deconcept.util=new Object();if(typeof deconcept.SWFObjectUtil=="undefined")deconcept.SWFObjectUtil=new Object();deconcept.SWFObject=function(swf,id,w,h,ver,c,useExpressInstall,quality,xiRedirectUrl,redirectUrl,detectKey){if(!document.createElement||!document.getElementById){return;}
this.DETECT_KEY=detectKey?detectKey:'detectflash';this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(swf){this.setAttribute('swf',swf);}
if(id){this.setAttribute('id',id);}
if(w){this.setAttribute('width',w);}
if(h){this.setAttribute('height',h);}
if(ver){this.setAttribute('version',new deconcept.PlayerVersion(ver.toString().split(".")));}
this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion(this.getAttribute('version'),useExpressInstall);if(c){this.addParam('bgcolor',c);}
var q=quality?quality:'high';this.addParam('quality',q);this.setAttribute('useExpressInstall',useExpressInstall);this.setAttribute('doExpressInstall',false);var xir=(xiRedirectUrl)?xiRedirectUrl:window.location;this.setAttribute('xiRedirectUrl',xir);this.setAttribute('redirectUrl','');if(redirectUrl){this.setAttribute('redirectUrl',redirectUrl);}}
deconcept.SWFObject.prototype={setAttribute:function(name,value){this.attributes[name]=value;},getAttribute:function(name){return this.attributes[name];},addParam:function(name,value){this.params[name]=value;},getParams:function(){return this.params;},addVariable:function(name,value){this.variables[name]=value;},getVariable:function(name){return this.variables[name];},getVariables:function(){return this.variables;},getVariablePairs:function(){var variablePairs=new Array();var key;var variables=this.getVariables();for(key in variables){variablePairs.push(key+"="+variables[key]);}
return variablePairs;},getSWFHTML:function(){var swfNode="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall"))this.addVariable("MMplayerType","PlugIn");swfNode='<embed type="application/x-shockwave-flash" src="'+this.getAttribute('swf')+'" width="'+this.getAttribute('width')+'" height="'+this.getAttribute('height')+'"';swfNode+=' id="'+this.getAttribute('id')+'" name="'+this.getAttribute('id')+'" ';var params=this.getParams();for(var key in params){swfNode+=[key]+'="'+params[key]+'" ';}
var pairs=this.getVariablePairs().join("&");if(pairs.length>0){swfNode+='flashvars="'+pairs+'"';}
swfNode+='/>';}else{if(this.getAttribute("doExpressInstall"))this.addVariable("MMplayerType","ActiveX");swfNode='<object id="'+this.getAttribute('id')+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute('width')+'" height="'+this.getAttribute('height')+'">';swfNode+='<param name="movie" value="'+this.getAttribute('swf')+'" />';var params=this.getParams();for(var key in params){swfNode+='<param name="'+key+'" value="'+params[key]+'" />';}
var pairs=this.getVariablePairs().join("&");if(pairs.length>0){swfNode+='<param name="flashvars" value="'+pairs+'" />';}
swfNode+="</object>";}
return swfNode;},write:function(elementId){if(this.getAttribute('useExpressInstall')){var expressInstallReqVer=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(expressInstallReqVer)&&!this.installedVer.versionIsValid(this.getAttribute('version'))){this.setAttribute('doExpressInstall',true);this.addVariable("MMredirectURL",escape(this.getAttribute('xiRedirectUrl')));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}
if(this.skipDetect||this.getAttribute('doExpressInstall')||this.installedVer.versionIsValid(this.getAttribute('version'))){var n=(typeof elementId=='string')?document.getElementById(elementId):elementId;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute('redirectUrl')!=""){document.location.replace(this.getAttribute('redirectUrl'));}}
return false;}}
deconcept.SWFObjectUtil.getPlayerVersion=function(reqVer,xiInstall){var PlayerVersion=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){PlayerVersion=new deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");for(var i=3;axo!=null;i++){axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);PlayerVersion=new deconcept.PlayerVersion([i,0,0]);}}catch(e){}
if(reqVer&&PlayerVersion.major>reqVer.major)return PlayerVersion;if(!reqVer||((reqVer.minor!=0||reqVer.rev!=0)&&PlayerVersion.major==reqVer.major)||PlayerVersion.major!=6||xiInstall){try{PlayerVersion=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}catch(e){}}}
return PlayerVersion;}
deconcept.PlayerVersion=function(arrVersion){this.major=parseInt(arrVersion[0])!=null?parseInt(arrVersion[0]):0;this.minor=parseInt(arrVersion[1])||0;this.rev=parseInt(arrVersion[2])||0;}
deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major)return false;if(this.major>fv.major)return true;if(this.minor<fv.minor)return false;if(this.minor>fv.minor)return true;if(this.rev<fv.rev)return false;return true;}
deconcept.util={getRequestParameter:function(param){var q=document.location.search||document.location.hash;if(q){var startIndex=q.indexOf(param+"=");var endIndex=(q.indexOf("&",startIndex)>-1)?q.indexOf("&",startIndex):q.length;if(q.length>1&&startIndex>-1){return q.substring(q.indexOf("=",startIndex)+1,endIndex);}}
return"";}}
deconcept.SWFObjectUtil.cleanupSWFs=function(){var objects=document.getElementsByTagName("OBJECT");for(var i=0;i<objects.length;i++){for(var x in objects[i]){if(typeof objects[i][x]=='function'){objects[i][x]=null;}}}}
if(typeof window.onunload=='function'){var oldunload=window.onunload;window.onunload=function(){deconcept.SWFObjectUtil.cleanupSWFs();oldunload();}}else{window.onunload=deconcept.SWFObjectUtil.cleanupSWFs;}
if(Array.prototype.push==null){Array.prototype.push=function(item){this[this.length]=item;return this.length;}}
var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;var gArgCountErr='The "%%" function requires an even number of arguments.'
+'\nArguments should be in the form "atttributeName", "attributeValue", ...';var gTagAttrs=null;var gQTGeneratorVersion=1.0;function AC_QuickTimeVersion(){return gQTGeneratorVersion;}
function _QTComplain(callingFcnName,errMsg)
{errMsg=errMsg.replace("%%",callingFcnName);alert(errMsg);}
function _QTAddAttribute(prefix,slotName,tagName)
{var value;value=gTagAttrs[prefix+slotName];if(null==value)
value=gTagAttrs[slotName];if(null!=value)
{if(0==slotName.indexOf(prefix)&&(null==tagName))
tagName=slotName.substring(prefix.length);if(null==tagName)
tagName=slotName;return tagName+'="'+value+'" ';}
else
return"";}
function _QTAddObjectAttr(slotName,tagName)
{if(0==slotName.indexOf("emb#"))
return"";if(0==slotName.indexOf("obj#")&&(null==tagName))
tagName=slotName.substring(4);return _QTAddAttribute("obj#",slotName,tagName);}
function _QTAddEmbedAttr(slotName,tagName)
{if(0==slotName.indexOf("obj#"))
return"";if(0==slotName.indexOf("emb#")&&(null==tagName))
tagName=slotName.substring(4);return _QTAddAttribute("emb#",slotName,tagName);}
function _QTAddObjectParam(slotName,generateXHTML)
{var paramValue;var paramStr="";var endTagChar=(generateXHTML)?' />':'>';if(-1==slotName.indexOf("emb#"))
{paramValue=gTagAttrs["obj#"+slotName];if(null==paramValue)
paramValue=gTagAttrs[slotName];if(0==slotName.indexOf("obj#"))
slotName=slotName.substring(4);if(null!=paramValue)
paramStr='  <param name="'+slotName+'" value="'+paramValue+'"'+endTagChar+'\n';}
return paramStr;}
function _QTDeleteTagAttrs()
{for(var ndx=0;ndx<arguments.length;ndx++)
{var attrName=arguments[ndx];delete gTagAttrs[attrName];delete gTagAttrs["emb#"+attrName];delete gTagAttrs["obj#"+attrName];}}
function _QTGenerate(callingFcnName,generateXHTML,args)
{if(args.length<4||(0!=(args.length%2)))
{_QTComplain(callingFcnName,gArgCountErr);return"";}
gTagAttrs=new Array();gTagAttrs["src"]=args[0];gTagAttrs["width"]=args[1];gTagAttrs["height"]=args[2];gTagAttrs["classid"]="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B";gTagAttrs["pluginspage"]="http://www.apple.com/quicktime/download/";var activexVers=args[3]
if((null==activexVers)||(""==activexVers))
activexVers="6,0,2,0";gTagAttrs["codebase"]="http://www.apple.com/qtactivex/qtplugin.cab#version="+activexVers;var attrName,attrValue;for(var ndx=4;ndx<args.length;ndx+=2)
{attrName=args[ndx].toLowerCase();attrValue=args[ndx+1];if("name"==attrName||"id"==attrName)
gTagAttrs["name"]=attrValue;else
gTagAttrs[attrName]=attrValue;}
var objTag='<object '
+_QTAddObjectAttr("classid")
+_QTAddObjectAttr("width")
+_QTAddObjectAttr("height")
+_QTAddObjectAttr("codebase")
+_QTAddObjectAttr("name","id")
+_QTAddObjectAttr("tabindex")
+_QTAddObjectAttr("hspace")
+_QTAddObjectAttr("vspace")
+_QTAddObjectAttr("border")
+_QTAddObjectAttr("align")
+_QTAddObjectAttr("class")
+_QTAddObjectAttr("title")
+_QTAddObjectAttr("accesskey")
+_QTAddObjectAttr("noexternaldata")
+'>\n'
+_QTAddObjectParam("src",generateXHTML);var embedTag='  <embed '
+_QTAddEmbedAttr("src")
+_QTAddEmbedAttr("width")
+_QTAddEmbedAttr("height")
+_QTAddEmbedAttr("pluginspage")
+_QTAddEmbedAttr("name")
+_QTAddEmbedAttr("align")
+_QTAddEmbedAttr("tabindex");_QTDeleteTagAttrs("src","width","height","pluginspage","classid","codebase","name","tabindex","hspace","vspace","border","align","noexternaldata","class","title","accesskey");for(var attrName in gTagAttrs)
{attrValue=gTagAttrs[attrName];if(null!=attrValue)
{embedTag+=_QTAddEmbedAttr(attrName);objTag+=_QTAddObjectParam(attrName,generateXHTML);}}
return objTag+embedTag+'> </em'+'bed>\n</ob'+'ject'+'>';}
function QT_GenerateOBJECTText()
{return _QTGenerate("QT_GenerateOBJECTText",false,arguments);}
function QT_GenerateOBJECTText_XHTML()
{return _QTGenerate("QT_GenerateOBJECTText_XHTML",true,arguments);}
function QT_WriteOBJECT()
{document.writeln(_QTGenerate("QT_WriteOBJECT",false,arguments));}
function QT_WriteOBJECT_XHTML()
{document.writeln(_QTGenerate("QT_WriteOBJECT_XHTML",true,arguments));}
function initTabs(){var tabs=document.getElementById('toolbar_horizontal').getElementsByTagName("ul");for(var i=0;i<tabs.length;++i){corners_blr.render(tabs[i]);}}
window.onload=initTabs;
/***************** ENDS: /content/files/cms/themes/seyDoggy_Tuo.rwtheme/seyDoggy_Tuo.rwtheme/contents/javascript.js *****************/

/***************** STARTS: /content/files/cms/themes/seyDoggy_Tuo.rwtheme/seyDoggy_Tuo.rwtheme/contents/scripts/shadedborder.js *****************/

var RUZEE=window.RUZEE||{};RUZEE.ShadedBorder={create:function(opts){var isie=/msie/i.test(navigator.userAgent)&&!window.opera;var isie6=isie&&!window.XMLHttpRequest;function sty(el,h){for(k in h){if(/ie_/.test(k)){if(isie)el.style[k.substr(3)]=h[k];}else el.style[k]=h[k];}}
function crdiv(h){var el=document.createElement("div");el.className="sb-gen";sty(el,h);return el;}
function op(v){v=v<0?0:v;if(v>0.99999)return"";return isie?" filter:alpha(opacity="+(v*100)+");":" opacity:"+v+';';}
var sr=opts.shadow||0;var r=opts.corner||0;var bor=0;var bow=opts.border||0;var boo=opts.borderOpacity||1;var shadow=sr!=0;var lw=r>sr?r:sr;var rw=lw;var th=lw;var bh=lw;if(bow>0){bor=r;r=r-bow;}
var cx=r!=0&&shadow?Math.round(lw/3):0;var cy=cx;var cs=Math.round(cx/2);var iclass=r>0?"sb-inner":"sb-shadow";var sclass="sb-shadow";var bclass="sb-border";var edges=opts.edges||"trlb";if(!/t/i.test(edges))th=0;if(!/b/i.test(edges))bh=0;if(!/l/i.test(edges))lw=0;if(!/r/i.test(edges))rw=0;var p={position:"absolute",left:"0",top:"0",width:lw+"px",height:th+"px",ie_fontSize:"1px",overflow:"hidden",margin:"0",padding:"0"};var tl=crdiv(p);delete p.left;p.right="0";p.width=rw+"px";var tr=crdiv(p);delete p.top;p.bottom="0";p.height=bh+"px";var br=crdiv(p);delete p.right;p.left="0";p.width=lw+"px";var bl=crdiv(p);var tw=crdiv({position:"absolute",width:"100%",height:th+"px",ie_fontSize:"1px",top:"0",left:"0",overflow:"hidden",margin:"0",padding:"0"});var t=crdiv({position:"relative",height:th+"px",ie_fontSize:"1px",margin:"0 "+rw+"px 0 "+lw+"px",overflow:"hidden",padding:"0"});tw.appendChild(t);var bw=crdiv({position:"absolute",left:"0",bottom:"0",width:"100%",height:bh+"px",ie_fontSize:"1px",overflow:"hidden",margin:"0",padding:"0"});var b=crdiv({position:"relative",height:bh+"px",ie_fontSize:"1px",margin:"0 "+rw+"px 0 "+lw+"px",overflow:"hidden",padding:"0"});bw.appendChild(b);var mw=crdiv({position:"absolute",top:(-bh)+"px",left:"0",width:"100%",height:"100%",overflow:"hidden",ie_fontSize:"1px",padding:"0",margin:"0"});function corner(el,t,l){var w=l?lw:rw;var h=t?th:bh;var s=t?cs:-cs;var dsb=[];var dsi=[];var dss=[];var xp=0;var xd=1;if(l){xp=w-1;xd=-1;}
for(var x=0;x<w;++x){var yp=h-1;var yd=-1;if(t){yp=0;yd=1;}
var finished=false;for(var y=h-1;y>=0&&!finished;--y){var div='<div style="position:absolute; top:'+yp+'px; left:'+xp+'px; '+'width:1px; height:1px; overflow:hidden; margin:0; padding:0;';var xc=x-cx;var yc=y-cy-s;var d=Math.sqrt(xc*xc+yc*yc);var doShadow=false;if(r>0){if(xc<0&&yc<bor&&yc>=r||yc<0&&xc<bor&&xc>=r){dsb.push(div+op(boo)+'" class="'+bclass+'"></div>');}else
if(d<bor&&d>=r-1&&xc>=0&&yc>=0){var dd=div;if(d>=bor-1){dd+=op((bor-d)*boo);doShadow=true;}else dd+=op(boo);dsb.push(dd+'" class="'+bclass+'"></div>');}
var dd=div+' z-index:2;'+(t?'background-position:0 -'+(r-yc-1)+'px;':'background-image:none;');var finish=function(){if(!t)dd=dd.replace(/top\:\d+px/,"top:0px");dd=dd.replace(/height\:1px/,"height:"+(y+1)+"px");dsi.push(dd+'" class="'+iclass+'"></div>');finished=true;};if(xc<0&&yc<r||yc<0&&xc<r){finish();}else
if(d<r&&xc>=0&&yc>=0){if(d>=r-1){dd+=op(r-d);doShadow=true;dsi.push(dd+'" class="'+iclass+'"></div>');}else{finish();}}else doShadow=true;}else doShadow=true;if(sr>0&&doShadow){d=Math.sqrt(x*x+y*y);if(d<sr){dss.push(div+' z-index:0; '+op(1-(d/sr))+'" class="'+sclass+'"></div>');}}
yp+=yd;}
xp+=xd;}
el.innerHTML=dss.concat(dsb.concat(dsi)).join('');}
function mid(mw){var ds=[];ds.push('<div style="position:relative; top:'+(th+bh)+'px; height:10000px; '+' margin:0 '+(rw-r-cx)+'px 0 '+(lw-r-cx)+'px; '+' padding:0; overflow:hidden;'+' background-position:0 '+(th>0?-(r+cy+cs):'0')+'px;"'+' class="'+iclass+'"></div>');var dd='<div style="position:absolute; width:1px;'+' top:'+(th+bh)+'px; height:10000px; padding:0; margin:0;';if(sr>0){for(var x=0;x<lw-r-cx;++x){ds.push(dd+' left:'+x+'px;'+op((x+1.0)/lw)+'" class="'+sclass+'"></div>');}
for(var x=0;x<rw-r-cx;++x){ds.push(dd+' right:'+x+'px;'+op((x+1.0)/rw)+'" class="'+sclass+'"></div>');}}
if(bow>0){var su=' width:'+bow+'px;'+op(boo)+'" class="'+bclass+'"></div>';ds.push(dd+' left:'+(lw-bor-cx)+'px;'+su);ds.push(dd+' right:'+(rw-bor-cx)+'px;'+su);}
mw.innerHTML=ds.join('');}
function tb(el,t){var ds=[];var h=t?th:bh;var dd='<div style="height:1px; overflow:hidden; position:absolute; margin:0; padding:0;'+' width:100%; left:0px; ';var s=t?cs:-cs;for(var y=0;y<h-s-cy-r;++y){if(sr>0)ds.push(dd+(t?'top:':'bottom:')+y+'px;'+op((y+1)*1.0/h)+'" class="'+sclass+'"></div>');}
if(y>=bow){ds.push(dd+(t?'top:':'bottom:')+(y-bow)+'px;'+op(boo)+' height:'+bow+'px;" class="'+bclass+'"></div>');}
ds.push(dd+(t?'background-position-y:0; top:':'background-image:none; bottom:')+y+'px;'+' height:'+(r+cy+s)+'px;" class="'+iclass+'"></div>');el.innerHTML=ds.join('');}
corner(tl,true,true);corner(tr,true,false);corner(bl,false,true);corner(br,false,false);mid(mw);tb(t,true);tb(b,false);return{render:function(el){if(typeof el=='string')el=document.getElementById(el);if(el.length!=undefined){for(var i=0;i<el.length;++i)this.render(el[i]);return;}
el.className+=" sb";sty(el,{position:"relative",background:"transparent"});var node=el.firstChild;while(node){var nextNode=node.nextSibling;if(node.nodeType==1&&node.className=='sb-gen')
el.removeChild(node);node=nextNode;}
var iel=el.firstChild;var twc=tw.cloneNode(true);var mwc=mw.cloneNode(true);var bwc=bw.cloneNode(true);el.insertBefore(tl.cloneNode(true),iel);el.insertBefore(tr.cloneNode(true),iel);el.insertBefore(bl.cloneNode(true),iel);el.insertBefore(br.cloneNode(true),iel);el.insertBefore(twc,iel);el.insertBefore(mwc,iel);el.insertBefore(bwc,iel);if(isie6){el.onmouseover=function(){this.className+=" hover";}
el.onmouseout=function(){this.className=this.className.replace(/ hover/,"");}}
if(isie){function resize(){twc.style.width=bwc.style.width=mwc.style.width=el.offsetWidth+"px";mwc.firstChild.style.height=el.offsetHeight+"px";}
el.onresize=resize;resize();}}};}}
/***************** ENDS: /content/files/cms/themes/seyDoggy_Tuo.rwtheme/seyDoggy_Tuo.rwtheme/contents/scripts/shadedborder.js *****************/
