/*This function will assign the corresponding style sheet to our document*/ if ((navigator.appName.indexOf("Microsoft") != -1) || ((navigator.appName.indexOf("Netscape") != -1) && (parseInt(navigator.appVersion.substring(navigator.appVersion.indexOf(".")-1)) > 4)) || ((navigator.appName.indexOf("Netscape") != -1) && (navigator.appVersion.indexOf("Mac") != -1) && (parseInt(navigator.appVersion.substring(navigator.appVersion.indexOf(".")-1)) > 3) )) { document.write(''); } else { document.write(''); } intRandomValue = Math.floor(Math.random() * 3); switch(intRandomValue) { case 0: strFlashFile = "/eng/flash/tcg-home1.swf"; break; case 1: strFlashFile = "/eng/flash/tcg-home2.swf"; break; case 2: strFlashFile = "/eng/flash/tcg-home3.swf"; break; } /* This function should be used for all image rollover effects */ function changeImage(imageName,newImageSource) { if (document.images) { document.images[imageName].src = newImageSource; } } /* This function is used when you want to have browsers that do not have flash player installed write an image file instead */ function writeFlashOrImage(FlashName,ImageName,Width,Height,Alt,FlashVersion) { // first, write the opening object tag strObjectTag = ''; strMovieParam = ''; document.write(strObjectTag); document.write(strMovieParam); document.write(''); document.write(''); document.write(''); document.write(''); // if the Flash Plug-in is installed and a browser than user plug-ins is the browser, write an embed tag plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0; strImageTag = '' + Alt + ''; if ( plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 4 ) { strEmbedTag = ''; document.write(strEmbedTag); document.write(''); } else { document.write(strImageTag); } //finally, write the closing object tag document.write(''); } /* Use this function to open new windows in a browser */ function openNewWindow(URL,windowName,optionList) { /* Opens a new window based on following parameters URL: A full URL to the site or file you wish to open windowName: The name of the Window that JS assigns when creating optionList: (Optional)--list of options for the pop-up window */ optionListValue = optionList; // Assign a Default Set of Parameters if the optionList does not exist if ((optionListValue == '') || (optionList == null)) { optionListValue = 'scrollbars,location,menubar,toolbar,resizable,status,locationbar'; } winOpener = window.open(URL,windowName,optionListValue); winOpener.focus(); } function loadTopFrame(URL) { top.document.location = URL } function popupWindow(URL,windowName,optionList) { /* Opens a new window based on following parameters URL: A full URL to the site or file you wish to open windowName: The name of the Window that JS assigns when creating optionList: (Optional)--list of options for the pop-up window */ optionListValue = optionList; // Assign a Default Set of Parameters if the optionList does not exist if ((optionListValue == '') || (optionList == null)) { optionListValue = 'height=300,width=270,scrollbars,location=no,menubar,toolbar=no,resizable=no,status=no,locationbar=no'; } winOpener = window.open(URL,windowName,optionListValue); winOpener.focus(); } function loadTopFrame(URL) { top.document.location = URL }