(function() { try { var shouldTakeJSFromShell = function() { try{ var s = window.external; if ((""+window.location).indexOf("8888") != -1) return true; return s &&(s.gwtOnLoad&&window.location.search.indexOf('gwt.hybrid')== -1); }catch(a){ return false; } } var current = ""+document.location; var modName = 'com.panraven.doityourself.gwtbits.embeddedsv.EmbeddedStoryViewer'; var hostname = shouldTakeJSFromShell() ? current.substring(0, current.indexOf(":8"))+":8888/"+modName : 'http://www.panraven.com/embedded'; //alert("VSST: hostname="+hostname); var newElement; var width = '800'; var height = '441'; if (width == "full") { if (!document.body.clientWidth) { width = ""+(window.innerWidth - 20); height = ""+(window.innerHeight - 20); } else { width = ""+(document.body.clientWidth - 20); height = ""+(document.body.clientHeight - 20); } } if (!document.launchComponentVars) { //alert("js: created vars!"); document.launchComponentVars = { sequence: 0, targetDivs: [], launchParams: [], journalData: {} }; newElement = "
" document.write(newElement); var str = ''; document.write(str); } else { newElement = "
" document.write(newElement); } document.launchComponentVars.journalData["launch_"+document.launchComponentVars.sequence] = ' <param name=\'movie\' value=\'http://www.panraven.com/flash/storyViewer.swf\'/> <param name=\'quality\' value=\'high\'/> <param name=\'allowFullScreen\' value=\'true\'/> <param name=\'bgcolor\' value=\'#869ca7\'/> <param name=\'allowScriptAccess\' value=\'always\'/> <param name=\'flashVars\' value=\'journalId=102774&embededKey=MTAyNzc0XzExODk0MTYyNTMwOTRfMTU0NjgyMjUw\'/> <embed src=\'http://www.panraven.com/flash/storyViewer.swf\' quality=\'high\' bgcolor=\'#869ca7\' width=\'{width}\' height=\'{height}\' name=\'storyViewer\' align=\'middle\' play=\'true\' loop=\'false\' allowScriptAccess=\'always\' allowFullScreen=\'true\' flashVars=\'journalId=102774&embededKey=MTAyNzc0XzExODk0MTYyNTMwOTRfMTU0NjgyMjUw\' type=\'application/x-shockwave-flash\' pluginspage=\'http://www.adobe.com/go/getflashplayer\'> </embed></object>\" linkToJavaPage=\"create_me_here\" linkToViewerPage=\"http://www.panraven.com/newstoryviewer/NewStoryViewer.html?storyId=102774\" moviePlayerURL=\"http://www.panraven.com/flash/player.swf\" serviceURL=\"http://www.panraven.com/viewStory?journalId=102774&key2=MTAyNzc0XzExODk0MTYyNTMwOTRfMTU0NjgyMjUw\" swfjsFileName=\"/gwtresources/script/swfobject_source_rev_16837.js\" title=\"FeverFest 07\" viewerKey=\"\">'; document.launchComponentVars.targetDivs.push("launch_"+document.launchComponentVars.sequence); document.launchComponentVars.launchParams.push("${featuresPieces}"); document.launchComponentVars.sequence++; //alert("js: added vars! document.launchComponentVars.targetDivs.length="+document.launchComponentVars.targetDivs.length); } catch (ex) { alert("ex="+ex+" msg="+ex.message); } })();