function createCookie(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString();}
else var expires="";document.cookie=name+"="+value+expires+"; path=/";}
function readCookie(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length);}
return null;}
function eraseCookie(name){createCookie(name,"",-1);}
function getUrlParameter(parameterName){var queryString=window.top.location.search.substring(1);var parameterName=parameterName+"=";if(queryString.length>0){begin=queryString.indexOf(parameterName);if(begin!=-1){begin+=parameterName.length;end=queryString.indexOf("&",begin);if(end==-1){end=queryString.length}
return unescape(queryString.substring(begin,end));}
return"null";}}
function SetUniqueRadioButton(nameregex,current)
{re=new RegExp(nameregex);for(i=0;i<document.forms[0].elements.length;i++)
{elm=document.forms[0].elements[i]
if(elm.type=='radio')
{if(re.test(elm.name))
{elm.checked=false;}}}
current.checked=true;}
function SetCheckBoxes(nameregex,checked)
{re=new RegExp(nameregex);for(i=0;i<document.forms[0].elements.length;i++)
{elm=document.forms[0].elements[i];if(elm.type=='checkbox')
{if(re.test(elm.id))
{elm.checked=checked;}}}}
function TabContainerTabChanged(sender,e)
{sender.get_clientStateField().value=sender.saveClientState();}
function FirefoxCaretFix(panel){if(YAHOO.env.ua.gecko){YAHOO.util.Dom.setStyle(panel.element,"display","none");panel.showEvent.subscribe(function(){YAHOO.util.Dom.setStyle(panel.element,"overflow","auto");var fixDisplay=function(){YAHOO.util.Dom.setStyle(panel.element,"display","block");}
setTimeout(fixDisplay,0);});panel.hideEvent.subscribe(function(){YAHOO.util.Dom.setStyle(panel.element,"display","none");});}}
var pingTimerId=-1;var pingTickCount=0;var pingTickMax=0;function pingTimerTick(){pingTickCount++;if(pingTickCount>pingTickMax)
stopPingTimer();else
pingTimerId=setTimeout("pingTimerTick()",1*60*1000);var request=YAHOO.util.Connect.asyncRequest('GET','/ping.aspx',null);}
function setupPingTimer(maxMinutes){stopPingTimer();pingTickCount=0;pingTickMax=maxMinutes;pingTimerId=setTimeout("pingTimerTick()",1*60*1000);}
function stopPingTimer(){if(pingTimerId>=0){clearTimeout(pingTimerId);pingTimerId=-1;pingTickCount=0;}}
function getSizeString(bytes){if(bytes<=1024)
return"0 GB";if(bytes<1048576)
return(bytes/1024).toFixed(2)+"KB";if(bytes<1073741824)
return(bytes/1048576).toFixed(2)+"MB";return(bytes/1073741824).toFixed(2)+"GB";}
String.prototype.trim=function(){return this.replace(/^\s*|\s*$/g,'');}
String.prototype.ltrim=function(){return this.replace(/^\s*/g,'');}
String.prototype.rtrim=function(){return this.replace(/\s*$/g,'');}
function appendBr(element){var br=document.createElement("br");element.appendChild(br);return br;}
function nop(){}
function appendSpaces(element,count){var span=document.createElement("span");var html="";for(var n=0;n<count;n++){html+="&nbsp;";}
span.innerHTML=html;element.appendChild(span);}
function appendClean(element){var clean=document.createElement("div");clean.className="clean";element.appendChild(clean);return clean;}
function arrayCompare(a1,a2){if(a1.length!=a2.length){return false;}
var same=0;for(var n=0;n<a1.length;n++){for(var m=0;m<a2.length;m++){if(a1[n]==a2[m]){same++;}}}
return(same==a1.length);}
function getTarget(ev){var target;if(!ev)
ev=window.event;if(ev){if(ev.target){target=ev.target;}else{target=ev.srcElement;}}
return target;}
function convertDate(stringDate){if(stringDate==null){return null;}else{stringDate=stringDate.substring(6,stringDate.length-2);var ms=Number(stringDate);var dt=new Date();dt.setTime(ms);return dt;}}
var DateUtil={format:function(date){var month=date.getUTCMonth()+1;var day=date.getUTCDate();var year=date.getUTCFullYear();return month+"/"+day+"/"+year;},formatDateTime:function(date){var hours=date.getUTCHours();hours=hours<10?"0"+hours:hours;var minutes=date.getUTCMinutes();minutes=minutes<10?"0"+minutes:minutes;var seconds=date.getUTCSeconds();seconds=seconds<10?"0"+seconds:seconds;return this.format(date)+" "+hours+":"+minutes+":"+seconds;},parse:function(dateString){var d=new Date();d.setTime(Date.parse(dateString));d.setHours(0,0,0,0);return d;}};function trunc(value,maxChars){if((value==null)||(value.length==0)){return value;}
if(value.length>maxChars){return value.substring(0,maxChars)+"...";}else{return value;}}
function limitTextArea(textArea,maxLength){textArea.onchange=function(){if(textArea.value.length>maxLength){textArea.value=textArea.value.substr(0,maxLength);alert("This text field has a maximum limit of "+maxLength+" characters.");}};textArea.onkeypress=function(){var keyCode;if(typeof(textArea.onkeypress.arguments[0])!='undefined'){keyCode=textArea.onkeypress.arguments[0].keyCode;}else{if(document.selection.createRange().text.length!=0){return true;}
keyCode=event.keyCode;}
var allowedChars=new Array(8,37,38,39,40,46);for(var x=0;x<allowedChars.length;x++){if(allowedChars[x]==keyCode){return true;}}
if(textArea.value.length<maxLength){return true;}else{return false;}};}
function batchOps(fn,objects,batchSize){var state={index:0};state.batchFn=function(){var index=state.index;var isDone=false;var chunk=new Array();for(var n=0;n<batchSize;n++){if((index+n)>=objects.length){isDone=true;break;}
fn(objects[index+n]);}
if(isDone==false){state.index+=batchSize;window.setTimeout(state.batchFn,0);}};window.setTimeout(state.batchFn,0);}
function batchOpsChunk(fn,objects,batchSize){var state={index:0};state.batchFn=function(){var index=state.index;var isDone=false;var chunk=new Array();for(var n=0;n<batchSize;n++){if((index+n)>=objects.length){isDone=true;break;}
chunk.push(objects[index+n]);}
fn(objects,isDone);if(isDone==false){state.index+=batchSize;window.setTimeout(state.batchFn,0);}};window.setTimeout(state.batchFn,0);}
function sizeImageForDiv(img_width,img_height,img_element,div_element,div_inner_element)
{var orig_height=img_height;var orig_width=img_width;var adjusted_height=orig_height;var adjusted_width=orig_width;adjusted_width=parseInt(Math.min(orig_width,div_element.DivWidth));adjusted_height=parseInt((orig_height/orig_width)*adjusted_width);if(adjusted_height<div_element.DivHeight)
{adjusted_height=div_element.DivHeight;adjusted_width=parseInt((orig_width/orig_height)*adjusted_height);}
if(adjusted_width>div_element.DivWidth)
{div_inner_element.style.marginLeft=parseInt((adjusted_width-div_element.DivWidth)/-2)+"px";div_inner_element.style.marginRight=div_inner_element.style.marginLeft;}
else
{div_inner_element.style.paddingLeft=parseInt((adjusted_width-div_element.DivWidth)/-2)+"px";div_inner_element.style.paddingRight=div_inner_element.style.marginLeft;div_inner_element.style.width=adjusted_width+"px";}
if(adjusted_height>div_element.DivHeight)
{div_inner_element.style.marginTop=parseInt((adjusted_height-div_element.DivHeight)*-0.20)+"px";div_inner_element.style.marginBottom=parseInt((adjusted_height-div_element.DivHeight)*-0.80)+"px";}
else
{div_inner_element.style.paddingTop=parseInt((adjusted_height-div_element.DivHeight)/-2)+"px";div_inner_element.style.paddingBottom=div_inner_element.style.paddingTop;div_inner_element.style.height=adjusted_height+"px";}
img_element.ImgHeight=adjusted_height;img_element.ImgWidth=adjusted_width;img_element.height=adjusted_height;img_element.width=adjusted_width;}
function escapeHTML(str)
{var div=document.createElement('div');var text=document.createTextNode(str);div.appendChild(text);return div.innerHTML;};var dateFormat=function(){var	token=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloZ]|"[^"]*"|'[^']*'/g,timezone=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,timezoneClip=/[^-+\dA-Z]/g,pad=function(value,length){value=String(value);length=parseInt(length)||2;while(value.length<length)
value="0"+value;return value;};return function(date,mask){if(arguments.length==1&&(typeof date=="string"||date instanceof String)&&!/\d/.test(date)){mask=date;date=undefined;}
date=date?new Date(date):new Date();if(isNaN(date))
throw"invalid date";var dF=dateFormat;mask=String(dF.masks[mask]||mask||dF.masks["default"]);var	d=date.getDate(),D=date.getDay(),m=date.getMonth(),y=date.getFullYear(),H=date.getHours(),M=date.getMinutes(),s=date.getSeconds(),L=date.getMilliseconds(),o=date.getTimezoneOffset(),flags={d:d,dd:pad(d),ddd:dF.i18n.dayNames[D],dddd:dF.i18n.dayNames[D+7],m:m+1,mm:pad(m+1),mmm:dF.i18n.monthNames[m],mmmm:dF.i18n.monthNames[m+12],yy:String(y).slice(2),yyyy:y,h:H%12||12,hh:pad(H%12||12),H:H,HH:pad(H),M:M,MM:pad(M),s:s,ss:pad(s),l:pad(L,3),L:pad(L>99?Math.round(L/10):L),t:H<12?"a":"p",tt:H<12?"am":"pm",T:H<12?"A":"P",TT:H<12?"AM":"PM",Z:(String(date).match(timezone)||[""]).pop().replace(timezoneClip,""),o:(o>0?"-":"+")+pad(Math.floor(Math.abs(o)/60)*100+Math.abs(o)%60,4)};return mask.replace(token,function($0){return($0 in flags)?flags[$0]:$0.slice(1,$0.length-1);});};}();dateFormat.masks={"default":"ddd mmm d yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoFullDateTime:"yyyy-mm-dd'T'HH:MM:ss.lo"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thr","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(mask){return dateFormat(this,mask);}
function moveNod(oldElement,newElement,newAsClone,optionalWhere){if(typeof oldElement=="string"){oldElement=document.getElementById(oldElement);};if(typeof newElement=="string"){newElement=document.getElementById(newElement);};if(!oldElement||!newElement){return null;};var optionalWhereWasPassedAsNode=(typeof optionalWhere=="object"&&optionalWhere)?true:false;var removed=(!newAsClone)?newElement.parentNode.removeChild(newElement):newElement.cloneNode(true);optionalWhere=(optionalWhere==="")?null:optionalWhere;if(!isNaN(parseFloat(optionalWhere))){optionalWhere=parseFloat(optionalWhere);if(optionalWhere<0||optionalWhere>=oldElement.childNodes.length){optionalWhere=null;}
else{optionalWhere=oldElement.childNodes[optionalWhere];};};if(typeof optionalWhere!="undefined"&&typeof optionalWhere!="object"){optionalWhere=null;};if(optionalWhereWasPassedAsNode){var optionalWhereBelongsTo_oldElement=false;var optionalWhere2=optionalWhere;while(optionalWhere2.parentNode){optionalWhere2=optionalWhere2.parentNode;if(optionalWhere2==oldElement){optionalWhereBelongsTo_oldElement=true;break;};}
if(!optionalWhereBelongsTo_oldElement){optionalWhere=null;};};return(typeof optionalWhere=="undefined")?oldElement.parentNode.replaceChild(removed,oldElement):(optionalWhere===null)?oldElement.appendChild(removed):oldElement.insertBefore(removed,optionalWhere);}
function StringBuilder(value,withSpaces)
{this.strings=[];if(value){this.append(value);}
if(withSpaces){this.withSpaces=withSpaces;}else{this.withSpaces=false;}}
StringBuilder.prototype.append=function(value)
{this.strings.push(value);}
StringBuilder.prototype.clear=function()
{this.strings.length=1;}
StringBuilder.prototype.toString=function()
{return this.strings.join(this.withSpaces==true?", ":",");}
var InlineImage_Present=false;var ThumbGrid_Present=false;var TOC_Present=false;var StandardAlbum_Present=false;var HybridAlbum_Present=false;var Album_Present=false;var Common_DEBUG=true;var Common_isIE=false;var Common_isIE6=false;var Common_isNetscape=false;var Common_isFirefox=false;var Common_isOpera=false;var Common_isSafari=false;var Common_isIEMac=false;var Common_isIEWin=false;var Common_UseJS=true;var Common_isWin32=false;var Common_isMac=false;var Common_PollBackoff=1.1;var Common_MaxDelay=5000;var Common_VideoIconURL="/psimages/ThumbnailVideo.png";var Common_VideoIconIEURL="/psimages/ThumbnailVideo_GreyMatte.png";var Common_ImageErrorFlags_DURATION_TOO_LONG=1;var Common_ImageErrorFlags_TOO_LARGE=2;var Common_ImageErrorFlags_FLV_CONVERSION_FAILED=4;var Common_ImageErrorFlags_FLV_CONVERSION_NOT_APPROPRIATE=8;var Common_ImageErrorFlags_UNREADABLE=16;function Common_Setup()
{if(navigator.userAgent.indexOf('Mac')>=0)
Common_isMac=true;if(navigator.userAgent.indexOf('Win32')>=0||navigator.userAgent.indexOf('Windows')>=0)
Common_isWin32=true;if(navigator.userAgent.indexOf('Firefox')>=0)
{Common_isFirefox=true;}
if(navigator.userAgent.indexOf('Safari')>=0)
{Common_isSafari=true;}
else if(navigator.userAgent.indexOf('Opera')>=0)
{Common_isOpera=true;}
else
{if(navigator.appName=="Netscape")
{Common_isNetscape=true;}
else if(navigator.appName=="Microsoft Internet Explorer")
{Common_isIE=true;if(navigator.userAgent.indexOf('Mac')>=0)
{Common_isIEMac=true;}
else
{Common_isIEWin=true;if(navigator.userAgent.indexOf("MSIE 6")>=0)
{Common_isIE6=true;}}}
else
{Common_isIE=true;}}
if(Common_isIEMac||Common_isOpera)
{Common_UseJS=false;}
var phanfare_suppressjs_cookie=Common_GetCookie("phanfare_suppressjs");if(phanfare_suppressjs_cookie!=null&&parseInt(phanfare_suppressjs_cookie)>0)
{Common_UseJS=false;}}
function Common_SetupDownloadFlashNode(namePrefix)
{var name=Common_String_Format("{0}DownloadFlashMessageContainer",namePrefix);var node=document.getElementById(name);node.preserveChildren=true;Common_ClearIds(node);Common_DetachNode(node);Common_SetVisibility(node,true);return node;}
function Common_Setup2(arrayOfItemsToMakeVisible)
{if(Common_UseJS&&arrayOfItemsToMakeVisible!=null)
{for(var i=0;i<arrayOfItemsToMakeVisible.length;i++)
{var item=arrayOfItemsToMakeVisible[i];Common_SetVisibility(item,true);}}}
function Common_HtmlEncode(s){var str=new String(s);str=str.replace(/&/g,"&amp;");str=str.replace(/</g,"&lt;");str=str.replace(/>/g,"&gt;");str=str.replace(/"/g,"&quot;");return str;}
function Common_HtmlDecode(s)
{var str=new String(s);str=str.replace(/&amp;/g,"&");str=str.replace(/&lt;/g,"<");str=str.replace(/&gt;/g,">");str=str.replace(/&quot;/g,"\"");return str;}
function Common_NoContext(e)
{if(Common_isIE&&event.button==2)
{alert("This function is disabled.");return false;}
if(Common_isNetscape&&e.which==3)
{alert("This function is disabled.");return false;}
return true;}
function Common_DetachNode(node)
{if(node.parentNode!=null)
{node.parentNode.removeChild(node);return node;}
return null;}
function Common_RemoveNode(node)
{Common_RemoveChildren(node);Common_DetachNode(node);}
function Common_SetHilightedStatusN(name,hilight,recurse)
{var node=document.getElementById(name);if(node!=null)
Common_SetHilightedStatus(node,hilight,recurse);}
function Common_SetHilightedStatus(node,hilight,recurse,targetClassNames)
{if(node==null)
return;if(recurse)
{for(var i=0;i<node.childNodes.length;i++)
Common_SetHilightedStatus(node.childNodes[i],hilight,true,targetClassNames);}
if(node.className!=null&&node.className.length>0)
{if(hilight)
{if(!Common_IsHilighted(node))
{var isInTargetList=false;if(targetClassNames==null)
{isInTargetList=true;}
else
{for(var i=0;i<targetClassNames.length;i++)
{if(targetClassNames[i]==node.className)
{isInTargetList=true;break;}}}
if(isInTargetList)
{node.className=node.className+"_HILIGHTED";}}}
else
{var cn=node.className;if(Common_IsHilighted(node))
{cn=cn.substring(0,cn.length-"_HILIGHTED".length);var isInTargetList=false;if(targetClassNames==null)
{isInTargetList=true;}
else
{for(var i=0;i<targetClassNames.length;i++)
{if(targetClassNames[i]==cn)
{isInTargetList=true;break;}}}
if(isInTargetList)
{node.className=cn;}}}}}
function Common_IsHilighted(node)
{var cn=node.className;return cn.lastIndexOf("_HILIGHTED")==cn.length-"_HILIGHTED".length;}
function Common_RecursiveSetStyleAttribute(node,attribute,value)
{for(var i=0;i<node.childNodes.length;i++)
{var child=node.childNodes[i];if(child.nodeType==1)
Common_RecursiveSetStyleAttribute(child,attribute,value);}
Common_SetStyleAttribute(node,attribute,value);}
function Common_ClearIds(node)
{for(var i=0;i<node.childNodes.length;i++)
{Common_ClearIds(node.childNodes[i]);}
if(node.id!=null)
node.id=null;}
function Common_RemoveChildrenN(id)
{var node=document.getElementById(id);Common_RemoveChildren(node);}
function Common_RemoveChildren(node,afterNode)
{if(node==null)
return;if(node.firstChild==null)
return;if(node.preserveChildren!=null&&node.preserveChildren==true)
return;var child=node.firstChild;var doRemove=true;if(afterNode!=null)
{doRemove=false;}
while(child!=null)
{var nextChild=child.nextSibling;if(!doRemove)
{if(child==afterNode)
{doRemove=true;child=nextChild;continue;}
else
{child=nextChild;continue;}}
Common_RemoveChildren(child);node.removeChild(child);child=nextChild;}}
function Common_GetCookie(name)
{var dc=document.cookie;var prefix=name+"=";var begin=dc.indexOf("; "+prefix);if(begin==-1)
{begin=dc.indexOf(prefix);if(begin!=0)return null;}
else
{begin+=2;}
var end=document.cookie.indexOf(";",begin);if(end==-1)
{end=dc.length;}
return unescape(dc.substring(begin+prefix.length,end));}
function Common_SetCookie(name,value,expires,path,domain,secure)
{document.cookie=name+"="+escape(value)+
((expires)?"; expires="+expires.toGMTString():"")+
((path)?"; path="+path:"")+
((domain)?"; domain="+domain:"")+
((secure)?"; secure":"");}
function Common_DeleteCookie(name,path,domain,secure)
{var date=new Date();date.setTime(date.getTime()-(24*60*60*1000));Common_SetCookie(name,"",date,path,domain,secure);}
function Common_OpenOrderPrintsWindow(url)
{window.open(url,'ordprnts','width=910,height=600,left=0,top=0,menubar=yes,status=yes,location=yes,toolbar=yes,scrollbars=yes,resizable=yes');return false;}
function Common_Mod(a,b)
{return a-Math.floor(a/b)*b;}
function Common_String_Format()
{var count=arguments.length-1;if(count<0)
{return"";}
var inputString=arguments[0];for(var i=0;i<count;i++)
{var pattern="\\{"+(i)+"\\}";var regex=new RegExp(pattern,"g");inputString=inputString.replace(regex,arguments[(i+1)]);}
return inputString;}
var Common_NonThumbRenditionTypes=new Array({name:'WebLarge',maxHeight:1000,maxWidth:1400},{name:'Web',maxHeight:700,maxWidth:700},{name:'WebSmall',maxHeight:575,maxWidth:575});function Common_GetAnticipatedDimensions(imageAspectRatio,maxWidth,maxHeight)
{var anticipatedHeight;var anticiaptedWidth;if(imageAspectRatio<1)
{anticipatedHeight=maxHeight;anticipatedWidth=imageAspectRatio*anticipatedHeight;}
else
{anticipatedWidth=maxWidth;anticipatedHeight=anticipatedWidth/imageAspectRatio;}
var rv={width:anticipatedWidth,height:anticipatedHeight};return rv;}
function Common_GetRenditionInfo(renditionName)
{for(var i=0;i<Common_NonThumbRenditionTypes.length;i++)
{if(Common_NonThumbRenditionTypes[i].name==renditionName)
return Common_NonThumbRenditionTypes[i];}
return null;}
function Common_BestImageRendition(imageAspectRatio,availableWidth,availableHeight,allowedScaleDown,allowedScaleUp)
{var maxDimension;if(allowedScaleDown==null)
allowedScaleDown=0;if(allowedScaleUp==null)
allowedScaleUp=0;for(var i=0;i<Common_NonThumbRenditionTypes.length;i++)
{var r=Common_NonThumbRenditionTypes[i];var anticipatedDimensions=Common_GetAnticipatedDimensions(imageAspectRatio,r.maxWidth,r.maxHeight);if((anticipatedDimensions.height*(1.0-allowedScaleDown))<=availableHeight&&(anticipatedDimensions.width*(1.0-allowedScaleDown))<=availableWidth)
{return r.name;}}
return Common_NonThumbRenditionTypes[Common_NonThumbRenditionTypes.length-1].name;}
function Common_GetRenditionURL(image,renditionType)
{for(var i=0;i<image.image_renditions.length;i++)
{if(image.image_renditions[i].rendition_type==renditionType)
{return image.image_renditions[i].priv_url;}}
return null;}
function Common_GetRenditionURLWithDisposition(image,renditionType)
{var privUrl=Common_GetRenditionURL(image,renditionType);if(privUrl!=null){var indexOfLastSlash=privUrl.lastIndexOf('/');if(indexOfLastSlash==-1)return privUrl;var finalUrl;if(!image.isVideo){finalUrl=privUrl.substring(0,indexOfLastSlash);finalUrl+="_0_1"+privUrl.substring(indexOfLastSlash,privUrl.length);}
else{finalUrl=privUrl.substring(0,indexOfLastSlash-1);finalUrl+="1"+privUrl.substring(indexOfLastSlash,privUrl.length);}
return finalUrl;}
else return null;}
function Common_MakeCroppableIMG(imgNode,imgSrc,styleClassPrefix,useTableForBackground,disableContext,insertLitsCk,imageLink,onClickParameters,displayHeight,displayWidth,imageHeight,imageWidth,showBar,barIconURL,barIconURLIE,barText,barLink,altText,includeEdges,target,id,header,footer,outterDivExtraChildren,fixPaddingOnLoad)
{var specifyImageDimensions=false;if(imageHeight>0&&imageWidth>0)
specifyImageDimensions=true;var specifyDisplayDimensions=false;if(displayHeight>0&&displayWidth>0)
{specifyDisplayDimensions=true;}
var wrapperDiv=document.createElement("div");wrapperDiv.className=Common_String_Format("{0}DisplayImage",styleClassPrefix);if(id!=null)
wrapperDiv.id=id;if(specifyDisplayDimensions)
{wrapperDiv.width=displayWidth;}
var parent;if(includeEdges||header!=null||footer!=null)
{var borderTable=Common_MakeEmptyBorderTable(styleClassPrefix,id!=null?Common_String_Format("{0}BorderTable",id):null,header,footer,!includeEdges)
wrapperDiv.appendChild(borderTable.root);parent=borderTable.center;}
else
{parent=wrapperDiv;}
var outterDiv=document.createElement("div");outterDiv.className=Common_String_Format("{0}OutterDiv",styleClassPrefix);if(specifyDisplayDimensions)
{outterDiv.height=imageHeight;outterDiv.width=imageWidth;}
parent.appendChild(outterDiv);var innerDiv=document.createElement("div");outterDiv.appendChild(innerDiv);innerDiv.className=Common_String_Format("{0}InnerDiv",styleClassPrefix);if(id!=null){innerDiv.id=Common_String_Format("{0}InnerDiv",id);}
var topPadding=0;if(displayHeight>0&&imageHeight>0&&(displayHeight-imageHeight>0))
{topPadding=parseInt(Math.floor((displayHeight-imageHeight)/2));innerDiv.style.paddingTop=topPadding;}
var container=innerDiv;if(useTableForBackground)
{var table=document.createElement("table");table.cellPadding=0;table.cellSpacing=0;table.border=0;table.className=Common_String_Format("{0}InnerTable",styleClassPrefix);var tbody=document.createElement("tbody");table.appendChild(tbody);var tr=document.createElement("tr");tbody.appendChild(tr);var td=container=document.createElement("td");tr.appendChild(td);innerDiv.appendChild(container);}
var link=container;if(imageLink!=null||onClickParameters!=null)
{link=document.createElement("a");link.className=Common_String_Format("{0}Link",styleClassPrefix);if(imageLink!=null)
link.href=imageLink;if(onClickParameters!=null)
{link.onclick=onClickParameters.onClickHandler;link.onClickParameters=onClickParameters;}
if(target!=null)
link.target=target;container.appendChild(link);}
if(imgSrc!=null)
{imgNode=document.createElement("img");imgNode.paddingDiv=innerDiv;imgNode.displayHeight=displayHeight;if(fixPaddingOnLoad!=null&&fixPaddingOnLoad==true){imgNode.onload=function(){var diff=this.displayHeight-this.height;if(diff>0)
this.paddingDiv.style.paddingTop=parseInt(diff/2)+"px";}}
imgNode.src=imgSrc;}
imgNode.className=Common_String_Format("{0}ImageIMG",styleClassPrefix);if(disableContext==true)
{imgNode.onmousedown=Common_NoContext;}
if(altText!=null)
{imgNode.alt=altText;imgNode.title=altText;}
if(specifyImageDimensions)
{imgNode.height=imageHeight;imgNode.width=imageWidth;}
link.appendChild(imgNode);if(showBar)
{var barContentDiv=document.createElement("div");barContentDiv.className=Common_String_Format("{0}ImageBarContentDiv",styleClassPrefix);var content="";if(barIconURL!=null)
{barContentDiv.innerHTML=Common_String_Format("<div class=\"{0}ImageBarContentsIconDiv\"><!--[if gte IE 5.5000]><![if lt IE 7.0000]><img class=\"{0}ImageBarContentsIconIMG\" src=\"{2}\" alt=\"\"/><![endif]><![if gte IE 7.0000]><img class=\"{0}ImageBarContentsIconIMG\" src=\"{1}\" alt=\"\"/><![endif]><![endif]--><![if lt IE 5.5000]><img class=\"{0}ImageBarContentsIconIMG\" src=\"{1}\" alt=\"\"/><![endif]></div>",styleClassPrefix,barIconURL,barIconURLIE);}
if(barText!=null)
{var barTextDiv=document.createElement("div");barTextDiv.className=Common_String_Format("{0}ImageBarTextDiv",styleClassPrefix);var elementType=barLink!=null?"a":"span";var barTextElement=document.createElement(elementType);if(barLink!=null)
barTextElement.href=barLink;barTextElement.className=Common_String_Format("{0}ImageBarText",styleClassPrefix);barTextElement.innerHTML=barText;barTextDiv.appendChild(barTextElement);barContentDiv.appendChild(barTextDiv);}
outterDiv.appendChild(barContentDiv);}
if(outterDivExtraChildren!=null)
{for(var i=0;i<outterDivExtraChildren.length;i++)
{outterDiv.appendChild(outterDivExtraChildren[i]);}}
return wrapperDiv;}
function Common_MakeCroppableIMG2(imgNode,imgSrc,styleClassPrefix,useTableForBackground,disableContext,insertLitsCk,imageLink,onClickParameters,displayHeight,displayWidth,imageHeight,imageWidth,showBar,barIconURL,barIconURLIE,barIconLinkURL,barText,barLink,altText,includeEdges,target,id,header,footer,outterDivExtraChildrenTop,outterDivExtraChildrenBottom)
{var specifyImageDimensions=false;if(imageHeight>0&&imageWidth>0)
specifyImageDimensions=true;var specifyDisplayDimensions=false;if(displayHeight>0&&displayWidth>0)
{specifyDisplayDimensions=true;}
var wrapperDiv=document.createElement("div");wrapperDiv.className=Common_String_Format("{0}DisplayImage",styleClassPrefix);if(id!=null)
wrapperDiv.id=id;if(specifyDisplayDimensions)
{wrapperDiv.width=displayWidth;}
var parent;if(includeEdges||header!=null||footer!=null)
{var borderTable=Common_MakeEmptyBorderTable(styleClassPrefix,id!=null?Common_String_Format("{0}BorderTable",id):null,header,footer,!includeEdges)
wrapperDiv.appendChild(borderTable.root);parent=borderTable.center;}
else
{parent=wrapperDiv;}
var outterDiv=document.createElement("div");outterDiv.className=Common_String_Format("{0}OutterDiv",styleClassPrefix);if(specifyDisplayDimensions)
{outterDiv.height=imageHeight;outterDiv.imageWidth=imageWidth;}
parent.appendChild(outterDiv);if(outterDivExtraChildrenTop!=null)
{for(var i=0;i<outterDivExtraChildrenTop.length;i++)
{if(outterDivExtraChildrenTop[i]!=null)
outterDiv.appendChild(outterDivExtraChildrenTop[i]);}}
var innerDiv=document.createElement("div");outterDiv.appendChild(innerDiv);innerDiv.className=Common_String_Format("{0}InnerDiv",styleClassPrefix);if(id!=null)
innerDiv.id=Common_String_Format("{0}InnerDiv",id);var topPadding=0;if(displayHeight>0&&imageHeight>0&&(displayHeight-imageHeight>0))
{topPadding=parseInt(Math.floor((displayHeight-imageHeight)/2));if(Common_isIE){innerDiv.style.paddingTop=topPadding;}
else{var topPct=parseInt(Math.floor(topPadding*100/displayHeight));innerDiv.style.top=topPct+"%";}}
var container=innerDiv;if(useTableForBackground)
{var table=document.createElement("table");table.cellPadding=0;table.cellSpacing=0;table.border=0;table.className=Common_String_Format("{0}InnerTable",styleClassPrefix);var tbody=document.createElement("tbody");table.appendChild(tbody);var tr=document.createElement("tr");tbody.appendChild(tr);var td=container=document.createElement("td");tr.appendChild(td);innerDiv.appendChild(container);}
var link=container;if(imageLink!=null||onClickParameters!=null)
{link=document.createElement("a");link.className=Common_String_Format("{0}Link",styleClassPrefix);if(imageLink!=null)
link.href=imageLink;if(onClickParameters!=null)
{link.onclick=onClickParameters.onClickHandler;link.onClickParameters=onClickParameters;}
if(target!=null)
link.target=target;container.appendChild(link);}
if(imgSrc!=null)
{imgNode=document.createElement("img");imgNode.src=imgSrc;}
imgNode.className=Common_String_Format("{0}ImageIMG",styleClassPrefix);if(disableContext==true)
{imgNode.onmousedown=Common_NoContext;}
if(altText!=null)
{imgNode.alt=altText;imgNode.title=altText;}
if(specifyImageDimensions)
{imgNode.height=imageHeight;imgNode.width=imageWidth;}
link.appendChild(imgNode);if(showBar)
{var barContentDiv=document.createElement("div");barContentDiv.className=Common_String_Format("{0}ImageBarContentDiv",styleClassPrefix);var content="";if(barIconURL!=null)
{if(barIconLinkURL==null)
{barContentDiv.innerHTML=Common_String_Format("<div class=\"{0}ImageBarContentsIconDiv\"><!--[if gte IE 5.5000]><![if lt IE 7.0000]><img class=\"{0}ImageBarContentsIconIMG\" src=\"{2}\"><![endif]><![if gte IE 7.0000]><img class=\"{0}ImageBarContentsIconIMG\" src=\"{1}\"><![endif]><![endif]--><![if lt IE 5.5000]><img class=\"{0}ImageBarContentsIconIMG\" src=\"{1}\"><![endif]></div>",styleClassPrefix,barIconURL,barIconURLIE);}
else
{barContentDiv.innerHTML=Common_String_Format("<div class=\"{0}ImageBarContentsIconDiv\"><a href=\"{3}\"><!--[if gte IE 5.5000]><![if lt IE 7.0000]><img class=\"{0}ImageBarContentsIconIMG\" src=\"{2}\"><![endif]><![if gte IE 7.0000]><img class=\"{0}ImageBarContentsIconIMG\" src=\"{1}\"><![endif]><![endif]--><![if lt IE 5.5000]><img class=\"{0}ImageBarContentsIconIMG\" src=\"{1}\"><![endif]></a></div>",styleClassPrefix,barIconURL,barIconURLIE,barIconLinkURL);}}
if(barText!=null)
{var barTextDiv=document.createElement("div");barTextDiv.className=Common_String_Format("{0}ImageBarTextDiv",styleClassPrefix);var elementType=barLink!=null?"a":"span";var barTextElement=document.createElement(elementType);if(barLink!=null)
barTextElement.href=barLink;barTextElement.className=Common_String_Format("{0}ImageBarText",styleClassPrefix);barTextElement.innerHTML=barText;barTextDiv.appendChild(barTextElement);barContentDiv.appendChild(barTextDiv);}
outterDiv.appendChild(barContentDiv);}
if(outterDivExtraChildrenBottom!=null)
{for(var i=0;i<outterDivExtraChildrenBottom.length;i++)
{if(outterDivExtraChildrenBottom[i]!=null)
outterDiv.appendChild(outterDivExtraChildrenBottom[i]);}}
return wrapperDiv;}
function Common_MakeBorderTable(inputNode,styleClassPrefix,id,headerHtml,footerHtml,headerAndFooterOnly)
{var borderTable=Common_MakeEmptyBorderTable(styleClassPrefix,id,headerHtml,footerHtml,headerAndFooterOnly);borderTable.center.appendChild(inputNode);return borderTable.root;}
var Common_BorderTableCounter=0;function Common_MakeEmptyBorderTable(styleClassPrefix,id,headerHtml,footerHtml,headerAndFooterOnly)
{var table=document.createElement("table");table.cellSpacing=0;table.cellPadding=0;table.border=0;if(id==null)
id="BT"+Common_BorderTableCounter;table.id=id;if(styleClassPrefix==null)
styleClassPrefix=id;table.className=Common_String_Format("{0}T",styleClassPrefix);var tbody=document.createElement("tbody");table.appendChild(tbody);if(headerHtml!=null)
{var headerRow=document.createElement("tr");var headerCell=document.createElement("td");headerRow.appendChild(headerCell);if(!headerAndFooterOnly)
headerCell.colSpan=3;headerCell.innerHTML=headerHtml;tbody.appendChild(headerRow);}
var row;var cell;if(!headerAndFooterOnly)
{row=document.createElement("tr");cell=document.createElement("td");cell.className=Common_String_Format("{0}UL",styleClassPrefix);cell.id=Common_String_Format("{0}UL",id);row.appendChild(cell);cell=document.createElement("td");cell.className=Common_String_Format("{0}UC",styleClassPrefix);cell.id=Common_String_Format("{0}UC",id);row.appendChild(cell);cell=document.createElement("td");cell.className=Common_String_Format("{0}UR",styleClassPrefix);cell.id=Common_String_Format("{0}UR",id);row.appendChild(cell);tbody.appendChild(row);}
row=document.createElement("tr");if(!headerAndFooterOnly)
{cell=document.createElement("td");cell.className=Common_String_Format("{0}ML",styleClassPrefix);cell.id=Common_String_Format("{0}ML",id);row.appendChild(cell);}
cell=document.createElement("td");cell.className=Common_String_Format("{0}C",styleClassPrefix);cell.id=Common_String_Format("{0}C",id);row.appendChild(cell);var center=cell;if(!headerAndFooterOnly)
{cell=document.createElement("td");cell.className=Common_String_Format("{0}MR",styleClassPrefix);cell.id=Common_String_Format("{0}MR",id);row.appendChild(cell);}
tbody.appendChild(row);if(!headerAndFooterOnly)
{row=document.createElement("tr");cell=document.createElement("td");cell.className=Common_String_Format("{0}LL",styleClassPrefix);cell.id=Common_String_Format("{0}LL",id);row.appendChild(cell);cell=document.createElement("td");cell.className=Common_String_Format("{0}LC",styleClassPrefix);cell.id=Common_String_Format("{0}LC",id);row.appendChild(cell);cell=document.createElement("td");cell.className=Common_String_Format("{0}LR",styleClassPrefix);cell.id=Common_String_Format("{0}LR",id);row.appendChild(cell);tbody.appendChild(row);}
if(footerHtml!=null)
{var footerRow=document.createElement("tr");var footerCell=document.createElement("td");if(!headerAndFooterOnly)
footerCell.colSpan=3;footerCell.innerHTML=footerHtml;footerRow.appendChild(footerCell);tbody.appendChild(footerRow);}
var rv={root:table,center:center};return rv;}
function Common_SetDisplayN(id,show)
{var element=document.getElementById(id);Common_SetDisplay(element,show);}
function Common_SetDisplayNV(name,value)
{var element=document.getElementById(name);Common_SetDisplayV(element,value);}
function Common_SetDisplayV(element,value)
{Common_SetStyleAttribute(element,"display",value);}
function Common_SetDisplay(element,show)
{var trueValue="block";if(!Common_isIE)
{switch(element.nodeName)
{case"TD":trueValue="table-cell";break;case"TABLE":trueValue="table";break;}}
Common_SetStyleAttribute(element,"display",show?trueValue:"none");}
function Common_SetVisibility2(element,show)
{Common_SetStyleAttribute(element,'visibility',show?'visible':'hidden');}
function Common_SetVisibility(element,show)
{if($(element)==null)
return;if(show)
{Element.show(element);}
else
{Element.hide(element);}}
function Common_SetStyleAttribute(element,attribute,value)
{element.style[attribute.camelize()]=value;}
function Common_SetStyleAttributeX(element,attribute,value)
{if(element==null)
return;if(Common_isIE)
{if(element.style!=null)
element.style.setAttribute(attribute,value);}
else
{element.setAttribute("style",Common_String_Format("{0}:{1}",attribute,value));}}
function Common_MakeImage(src,id)
{var img=document.createElement("img");img.id=id;if(Common_isIE&&(src.indexOf(".png")==src.length-4))
{Common_SetStyleAttribute(img,"visibility","hidden");}
img.src=src;return img;}
function Common_FixIEPNG(id,skipCheck)
{if(!skipCheck&&!Common_isIE)
return;var img=document.getElementById(id);if(img==null||!img.complete)
{setTimeout("Common_FixIEPNG('"+id+"', "+skipCheck+")",750);return;}
var src=img.src;var height=img.height;var width=img.width;img.src="/psimages/clearpixel.gif";img.height=height;img.width=width;Common_SetStyleAttribute(img,"filter",Common_String_Format("progid:DXImageTransform.Microsoft.AlphaImageLoader(src='{0}')",src));Common_SetStyleAttribute(img,"visibility","visible");}
function Common_DimensionsFromAspectRatio(ratio,maxDimension)
{var rv;if(ratio>1.0)
{var height=Math.floor(maxDimension/ratio);rv={width:maxDimension,height:height};}
else
{var width=Math.floor(maxDimension*ratio)
rv={width:width,height:maxDimension};}
return rv;}
function Common_GetPrefsArray()
{var prefs=new Array();var prefCookie=Common_GetCookie("phanfare_prefs");var keysArray=Array();if(prefCookie!=null)
{var prefPairs=prefCookie.split("&");for(var i=0;i<prefPairs.length;i++)
{var pairString=prefPairs[i];var pairKeyValue=pairString.split("=");if(pairKeyValue.length>0)
{var key=unescape(pairKeyValue[0]);var value=unescape(pairKeyValue[1]);prefs[key]=value;keysArray[keysArray.length]=key;}}}
prefs["_keys"]=keysArray;return prefs;}
function Common_IsLoggedIn()
{var li=Common_GetCookie("phanfare_li");return(i!=null&&li=="1");}
function Common_CommitPrefs(prefs)
{var prefsString='';var keys=prefs["_keys"];var first=true;for(var i=0;i<keys.length;i++)
{var key=keys[i];var value=prefs[key];var kvString=Common_String_Format("{0}={1}",escape(key),escape(value));if(!first)
prefsString+="&";prefsString+=kvString;first=false;}
var expires=new Date();expires.setFullYear(expires.getFullYear()+1)
Common_SetCookie("phanfare_prefs",prefsString,expires,"/",null,false);}
function Common_GetPref(key)
{var prefs=Common_GetPrefsArray();return prefs[key];}
function Common_SetPref(key,value)
{if(key==null)
return;if(value==null)
value='';var prefs=Common_GetPrefsArray();prefs[key]=value;var found=false;var keys=prefs["_keys"];for(i=0;i<keys.length;i++)
{if(keys[i]==key)
{found=true;break;}}
if(!found)
keys[keys.length]=key;Common_CommitPrefs(prefs);}
function Common_MakeImgTagAndPlaceholder(url,imgId,doReplacement,copyClassName)
{var img=document.createElement("img");img.id=imgId;img.src=url;var placeholder=null;var rv={img:img,placeholder:placeholder};return rv;}
function Common_JSGetSwfVer(i){if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var swVer2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var flashDescription=navigator.plugins["Shockwave Flash"+swVer2].description;descArray=flashDescription.split(" ");tempArrayMajor=descArray[2].split(".");versionMajor=tempArrayMajor[0];versionMinor=tempArrayMajor[1];if(descArray[3]!=""){tempArrayMinor=descArray[3].split("r");}else{tempArrayMinor=descArray[4].split("r");}
versionRevision=tempArrayMinor[1]>0?tempArrayMinor[1]:0;flashVer=versionMajor+"."+versionMinor+"."+versionRevision;}else{flashVer=-1;}}
else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1)flashVer=4;else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1)flashVer=3;else if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1)flashVer=2;else{flashVer=-1;}
return flashVer;}
function Common_DetectFlashVer(reqMajorVer,reqMinorVer,reqRevision)
{var reqVer=parseFloat(reqMajorVer+"."+reqRevision);var versionStr;for(i=25;i>0;i--){if(Common_isIE&&Common_isWin32&&!Common_isOpera){versionStr=VBGetSwfVer(i);}else{versionStr=Common_JSGetSwfVer(i);}
if(versionStr==-1){return false;}else if(versionStr!=0){if(Common_isIE&&Common_isWin32&&!Common_isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString .split(",");}else{versionArray=versionStr.split(".");}
versionMajor=versionArray[0];versionMinor=versionArray[1];versionRevision=versionArray[2];versionString=versionMajor+"."+versionRevision;versionNum=parseFloat(versionString);if((versionMajor>reqMajorVer)&&(versionNum>=reqVer)){return true;}else{return((versionNum>=reqVer&&versionMinor>=reqMinorVer)?true:false);}}}}
function Common_SetInnerHTML(nodeId,innerHTML)
{var node=document.getElementById(nodeId);node.innerHTML=innerHTML;}
String.Empty="";Common_Contains=function(container,containee){if(container.contains!=null&&!Common_isSafari)
{return container.contains(containee);}
var matchFound=false;do{if(matchFound=container==containee)
break;containee=containee.parentNode;}
while(containee!=null);return matchFound;}
function Common_CheckMouseEnter(element,evt){if(element.contains&&evt.fromElement){return!element.contains(evt.fromElement);}
else if(evt.target){var contains=Common_Contains(element,evt.target);return!contains;}}
function Common_isArray(){if(typeof arguments[0]=='object')
{var criterion=arguments[0].constructor!=null&&arguments[0].constructor.toString().match(/array/i);return(criterion!=null);}
return false;}
function Common_TargetNotIn(evt,disallowableElements)
{var toElement=evt.toElement!=null?evt.toElement:evt.relatedTarget;var i=0;while(i<disallowableElements.length)
{doesContain=Common_Contains(disallowableElements[i],toElement);if(doesContain)
return false;i++;}
return true;}
function Common_CheckMouseLeave(element,evt,otherAllowableElements)
{var fromElement=evt.fromElement!=null?evt.fromElement:evt.target;var toElement=evt.toElement!=null?evt.toElement:evt.relatedTarget;if(toElement==null)
{return true;}
var doesContain=Common_Contains(element,toElement)||element==toElement;if(!doesContain&&otherAllowableElements!=null)
{var i=0;while(doesContain==false&&i<otherAllowableElements.length)
{doesContain=Common_Contains(otherAllowableElements[i],toElement);i++;}}
if(!doesContain)
{var n=null;}
return!doesContain;}
var Common_Constants={PHANFARE_FLV_MIN_WIDTH:250,PHANFARE_FLV_CONTROLLER_HEIGHT:70,QT_CONTROLLER_HEIGHT:16,WMP_CONTROLLER_HEIGHT:45,UNKNOWN_CONTROLLER_HEIGHT:32,WMP_CLSID:"22D6F312-B0F6-11D0-94AB-0080C74C7E95",QT_CLSID:"02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",FLASH_CLSID:"d27cdb6e-ae6d-11cf-96b8-444553540000"};function Common_CreateDelegate(o,f)
{var delegate=function()
{return f.apply(o,arguments);}
return delegate;}
function Common_GetChildById(root,id)
{var children=root.all?root.all:root.getElementsByTagName('*');for(var i=0;i<children.length;i++)
{if(children[i].id==id)
return children[i];}}
function Common_Alert(s)
{if(Common_DEBUG)
alert(s);}
function Common_HilightMe()
{Common_SetHilightedStatus(this,true,true);}
function Common_HilightMeNoRecurse()
{Common_SetHilightedStatus(this,true,false);}
function Common_UnHilightMe()
{Common_SetHilightedStatus(this,false,true);}
function Common_FindPosition(obj){var curleft=curtop=0;if(obj.offsetParent){curleft=obj.offsetLeft
curtop=obj.offsetTop
while(obj=obj.offsetParent){curleft+=obj.offsetLeft
curtop+=obj.offsetTop}}
return[curleft,curtop];}
function Common_GetWindowWidth(includeScrollbars)
{var windowWidth;if(Common_isIE)
{if(!includeScrollbars)
windowWidth=document.documentElement.clientWidth;else
windowWidth=document.documentElement.offsetWidth;}
else
{windowWidth=window.innerWidth;}
return windowWidth;}
function Common_GetWindowHeight(includeScrollbars)
{var windowHeight;if(Common_isIE)
{if(!includeScrollbars)
windowHeight=document.documentElement.clientHeight
else
windowHeight=document.documentElement.offsetHeight;}
else
{windowHeight=window.innerHeight;}
return windowHeight;}
function printfire(){if(document.createEvent)
{printfire.args=arguments;var ev=document.createEvent("Events");ev.initEvent("printfire",false,true);dispatchEvent(ev);}}
function Common_SetScrollTop(position)
{if(Common_isIE)
document.documentElement.scrollTop=position;else
document.body.scrollTop=position;}
function Common_BuildTable(rows,columns,id,className)
{var table=document.createElement("table");table.id=id;table.className=className;table.cellPadding=0;table.cellSpacing=0;table.border=0;var tbody=document.createElement("tbody");tbody.id=Common_String_Format("{0}_TBODY",id);table.appendChild(tbody);for(var i=0;i<rows;i++)
{var tr=document.createElement("tr");tr.id=Common_String_Format("{0}_TR_{1}",id,i);tbody.appendChild(tr);for(var j=0;j<columns;j++)
{var td=document.createElement("td");td.id=Common_String_Format("{0}_TD_{1}_{2}",id,i,j);tr.appendChild(td);}}
return table;}
function Common_GetTableCell(table,atRow,atColumn)
{var tbody=table.firstChild;var row=tbody.firstChild;var i=0;while(row!=null&&i<atRow)
{row=row.nextSibling;i++;}
if(row==null)
return null;var cell=row.firstChild;var j=0;while(cell!=null&&j<atColumn)
{cell=cell.nextSibling;j++;}
return cell;}
function Common_NoEnter()
{return!(window.event&&window.event.keyCode==13);}
Common_ieTitleHack_Stop_Condition=null;Common_ieTitleHack_Page_Title=null;function Common_ieTitleHack()
{if(Common_isIE&&!Common_ieTitleHack_Stop_Condition&&Common_ieTitleHack_Page_Title!=null)
{if(document.title!=Common_ieTitleHack_Page_Title)
{document.title=Common_ieTitleHack_Page_Title;}
window.setTimeout("Common_ieTitleHack();",50);}}
function Common_rot(text)
{var rstr="";for(i=1;i<(text.length+1);i++){k=text.charCodeAt(i-1);if(k>=97&&k<=109){k=k+13;}
else if(k>=110&&k<=122){k=k-13;}
else if(k>=65&&k<=77){k=k+13;}
else if(k>=78&&k<=90){k=k-13;}
rstr+=String.fromCharCode(k);}
return rstr;}
function Common_SelectAlbumInMiniTOC(originalStr)
{var searchRE='_Unselected" href="/'+Common_TargetUid+'/'+Common_AlbumID+'"';searchRE+=' onclick="mtec.call(this,event||window.event)" onmouseover="mtemi.call(this,event||window.event)" onmouseout="mtemo.call(this,event||window.event)"';var replaceRE='_Selected" href="/'+Common_TargetUid+'/'+Common_AlbumID+'"';return originalStr.replace(searchRE,replaceRE);}
function Common_GetSelectedYearIndex(originalStr,numYears)
{if(Common_AlbumYear==9999){if(Common_TimelessFirst)return 0;return(numYears-1);}
var searchRE='alt=""';var currentPosition=0;var foundIndex;var yearIndex=0;while((foundIndex=originalStr.indexOf(searchRE,currentPosition))!=-1){foundIndex+=searchRE.length;currentPosition=foundIndex;foundIndex=originalStr.indexOf('>',currentPosition);if(foundIndex==-1)return 0;foundIndex++;if(originalStr.charAt(foundIndex)=='<'){foundIndex+=4;}
if(originalStr.charAt(foundIndex)=='<'){currentPosition=foundIndex;continue;}
if(originalStr.indexOf(Common_AlbumYear,foundIndex)==foundIndex){return yearIndex;}
currentPosition=foundIndex;yearIndex++;}
return 0;}
Common_Setup();
/* SWFObject v2.1 <http://code.google.com/p/swfobject/>
	Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
	This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return }if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return }var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return }var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return }AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();