window.onerror = noError;
function noError()
{
return true;
}
var textd=null;
function loadinfotext() {
var textf=document.getElementsByTagName("div");
for(var i=0; i < textf.length; i++) {
if(textf[i].className=='infotext') {
textf[i].style.display='inline';
textd=textf[i];
}
}
}
function enableinfotext() {
if(textd!=null) {
ApplyFilters();
textd.style.visibility='visible';
PlayFilters();
}
}
function disableinfotext() {
if(textd!=null) {
ApplyFilters();
textd.style.visibility='hidden';
PlayFilters();
}
}
if((typeof window.captureEvents)=='function') {
if((typeof addEventListener)!='function') {
window.captureEvents(Event.LOAD | Event.RESIZE | Event.ERROR);
}
}
window.onresize = function() {
if(document.documentElement.body.offsetWidth<=750) {
disableinfotext();
document.documentElement.getElementsByTagName('table')[0].style.width='698px';
}
else {
enableinfotext();
document.documentElement.getElementsByTagName('table')[0].style.width='100%';
}
}
function findisstartpos() {
var ftable = document.getElementsByTagName('table');
for (var i=0; i<ftable.length; i++) {
if(ftable[i].className=='styletable') {
if(i==0) {
return true;
}
}
}
return false;
}
var oldwinonloadsp=window.onload;
window.onload = function() {
if(typeof(oldwinonloadsp)=='function') {
oldwinonloadsp();
}
if(!document.documentElement) {
document.documentElement=window.document;
}
if(!document.documentElement.body) {
document.documentElement.body=document.documentElement;
}
if(!document.body) {
document.body=document.documentElement.body;
}
if((!document.all) && ((document.layers) || (navigator.userAgent.indexOf('Netscape') != -1))) {
window.document.all=window.document;
}
if(!findisstartpos()) {
return;
}
loadinfotext();
if(document.documentElement.body.offsetWidth<=750) {
disableinfotext();
document.documentElement.getElementsByTagName('table')[0].style.width='698px';
}
else {
enableinfotext();
document.documentElement.getElementsByTagName('table')[0].style.width='100%';
}
loadEmbedded();
loadToolbarResizer();
loadDivOp();
}
function loadDivOp() {
var newDivOp=new Object();
if((typeof window.opera)=='object') {
if(((typeof document.images)=='object') && (window.opera.version()<9.5)) {
for(var imgid=0; imgid<document.images.length; imgid++) {
if(document.images[imgid].className=='picture') {
if(((typeof document.images[imgid].nextSibling)=='object') && (((document.images[imgid].nextSibling!=null) && (document.images[imgid].nextSibling.nodeName=='IMG')) || (((typeof document.images[imgid].parentNode.nextSibling)=='object') && (document.images[imgid].parentNode.nextSibling!=null) && (document.images[imgid].parentNode.nodeName=='A') && ((typeof document.images[imgid].parentNode.nextSibling.firstChild)=='object') && (document.images[imgid].parentNode.nextSibling.firstChild!=null) && (document.images[imgid].parentNode.nextSibling.firstChild.nodeName=='IMG')))) {
newDivOp[imgid]=document.createElement("div");
newDivOp[imgid].style.cssFloat='left';
newDivOp[imgid].style.styleFloat='left';
newDivOp[imgid].appendChild(document.images[imgid].cloneNode(true));
document.images[imgid].parentNode.replaceChild(newDivOp[imgid], document.images[imgid]);
}
}
}
}
}
}
function loadToolbar(url) {
document.write('<object type="application/x-shockwave-flash" data="'+url+'" width="100%" height="95">');
document.writeln('				<param name="movie" value="'+url+'">');
document.writeln('				<param name="quality" value="high">');
document.writeln('				<param name="menu" value="false">');
document.writeln('				<param name="scale" value="showall">');
document.writeln('				<param name="bgcolor" value="#C20602">');
document.writeln('				<param name="wmode" value="transparent">');
document.writeln('			</object>');
}
function isIE7() {
if((document.all) && (!window.opera) && (window.XMLHttpRequest) && (navigator.appName) && (navigator.appName=="Microsoft Internet Explorer")) {
return true;
}
else {
return false;
}
}
function loadEmbedded() {
if(isIE7()==false) {
var temp=document.createElement("script"); 
document.body.appendChild(temp);
temp.type='text/javascript';
temp.src='style/modern_yellow_orange_red/js/jsembeddedcontent.js';
temp.defer='defer';
}
loadEmbedded_IE7();
return (typeof jActivating!="undefined");
}
function loadEmbedded_IE7() {
if((document.all) && (!window.opera) && (window.XMLHttpRequest) && (navigator.appName) && (navigator.appName=="Microsoft Internet Explorer")) {
var temp=document.createElement("script"); 
document.body.appendChild(temp);
temp.type='text/javascript';
temp.src='style/modern_yellow_orange_red/js/swfobject.js';
var temp=document.createElement("script"); 
document.body.appendChild(temp);
temp.type='text/javascript';
temp.src='style/modern_yellow_orange_red/js/swfobject_2.js';
var temp=document.createElement("script"); 
document.body.appendChild(temp);
temp.type='text/javascript';
temp.src='style/modern_yellow_orange_red/js/jsembeddedcontent_IE7.js';
temp.defer='defer';
return true;
}
return false;
}
function loadToolbarResizer() {
var temp=document.createElement("script"); 
document.body.appendChild(temp);
temp.type='text/javascript';
temp.src='style/modern_yellow_orange_red/js/toolbarResizer.js';
document.body.appendChild(temp);
}
function ApplyFilters() {
if(textd!=null) { if(textd.filters) {
/*@cc_on @*/
/*@if(@_jscript_version>4) @*/
try { textd.filters.revealTrans.Apply(); }
catch(e) {} try { textd.filters.blendTrans.Apply(); }
catch(e) {}
/*@end @*/
/*@cc_off @*/
}
}
}
function PlayFilters() {
if(textd!=null) { if(textd.filters) {
/*@cc_on @*/
/*@if(@_jscript_version>4) @*/
try { textd.filters.revealTrans.Play(); }
catch(e) {} try { textd.filters.blendTrans.Play(); }
catch(e) {}
/*@end @*/
/*@cc_off @*/
}
}
}
