var nextVideo = ""; // Video 2 function changeAwardNormalStop(url_normal,w_normal,h_normal,url_double,w_double,h_double) { document.getElementById("work_right").style.left = "624px"; document.getElementById("work_link_normal").href = "javascript:changeAwardNormalStop('"+url_normal+"',"+w_normal+","+h_normal+",'"+url_double+"',"+w_double+","+h_double+");"; document.getElementById("work_link_double").href = "javascript:changeAwardDoubleStop('"+url_double+"',"+w_double+","+h_double+");"; document.getElementById("work_bottom").style.display = "block"; document.getElementById("work_bottom_link").style.display = "block"; document.getElementById("work_bottom_double").style.display = "none"; loadVideo(url_normal,w_normal,h_normal, 'false'); } function changeAwardDoubleStop(url_double,w_double,h_double) { document.getElementById("work_right").style.left = "814px"; document.getElementById("work_bottom").style.display = "none"; document.getElementById("work_bottom_link").style.display = "none"; document.getElementById("work_bottom_double").style.display = "block"; loadVideo(url_double,w_double,h_double, 'false'); } // Video function changeAwardNormal(url_normal,w_normal,h_normal,url_double,w_double,h_double) { document.getElementById("work_right").style.left = "624px"; document.getElementById("work_link_normal").href = "javascript:changeAwardNormal('"+url_normal+"',"+w_normal+","+h_normal+",'"+url_double+"',"+w_double+","+h_double+");"; document.getElementById("work_link_double").href = "javascript:changeAwardDouble('"+url_double+"',"+w_double+","+h_double+");"; document.getElementById("work_bottom").style.display = "block"; document.getElementById("work_bottom_link").style.display = "block"; document.getElementById("work_bottom_double").style.display = "none"; loadVideo(url_normal,w_normal,h_normal, 'true'); } function changeAwardDouble(url_double,w_double,h_double) { document.getElementById("work_right").style.left = "814px"; document.getElementById("work_bottom").style.display = "none"; document.getElementById("work_bottom_link").style.display = "none"; document.getElementById("work_bottom_double").style.display = "block"; loadVideo(url_double,w_double,h_double, 'true'); } // Image function changeImageNormal(url_normal,w_normal,h_normal,url_double,w_double,h_double) { document.getElementById("work_right").style.left = "624px"; document.getElementById("work_link_normal").href = "javascript:changeImageNormal('"+url_normal+"',"+w_normal+","+h_normal+",'"+url_double+"',"+w_double+","+h_double+");"; document.getElementById("work_link_double").href = "javascript:changeImageDouble('"+url_double+"',"+w_double+","+h_double+");"; document.getElementById("work_bottom").style.display = "block"; document.getElementById("work_bottom_link").style.display = "block"; document.getElementById("work_bottom_double").style.display = "none"; loadImage(url_normal,w_normal,h_normal); } function changeImageDouble(url_double,w_double,h_double) { document.getElementById("work_right").style.left = "814px"; document.getElementById("work_bottom").style.display = "none"; document.getElementById("work_bottom_link").style.display = "none"; document.getElementById("work_bottom_double").style.display = "block"; loadImage(url_double,w_double,h_double); } // Mouseover function overAward(id) { document.getElementById("over_"+id).style.display = "block"; document.getElementById("out_"+id).style.display = "none"; } function outAward(id) { document.getElementById("over_"+id).style.display = "none"; document.getElementById("out_"+id).style.display = "block"; } /*function outAward(id) { var divs = document.getElementsByName("out_aw"); for(i = 0; i < divs.length; i++){ divs[i].style.display = "block"; } divs = document.getElementsByName("over_aw"); for(i = 0; i < divs.length; i++){ divs[i].style.display = "none"; } }*/ function setVideoPath(videoPath) { document.getElementById('videoContainerSWF').SetVariable('video', videoPath); } function loadVideo(videoPath, width, height, autoplay) { var version = deconcept.SWFObjectUtil.getPlayerVersion(); if ( version["major"] >= 8 && version["minor"] >= 0 ) { var so = new SWFObject("/public/docroot/ddbSite/flash/video_container.swf", "videoContainerSWF", width.toString(), (height + 38).toString(), "8", "#000000"); so.addVariable('controlSkin','/public/docroot/ddbSite/flash/SteelExternalAll.swf?t='+Math.random()); so.addVariable('autoplay',autoplay); so.write( $("flashcontent") ); } else { $("flashcontent").update('
'); } $("flashcontent").style.width = width.toString() + 'px'; $("flashcontent").style.height = (height + 38).toString() + 'px'; nextVideo = videoPath; window.setTimeout("WaitForNext()", 10); } function WaitForNext () { setVideoPath(nextVideo); } function loadImage(imagePath, width, height) { var version = deconcept.SWFObjectUtil.getPlayerVersion(); if ( version["major"] >= 8 && version["minor"] >= 0 ) { var so = new SWFObject("/public/docroot/ddbSite/flash/video_container.swf", "videoContainerSWF", width.toString(), (height).toString(), "8", "#000000"); //so.addVariable('controlSkin','/public/docroot/ddbSite/flash/SteelExternalAll.swf?t='+Math.random()); //so.addVariable('autoplay',true); so.write( $("flashcontent") ); } else { $("flashcontent").update('
'); } $("flashcontent").style.width = width.toString() + 'px'; $("flashcontent").style.height = height.toString() + 'px'; //setVideoPath(imagePath); nextVideo = imagePath; window.setTimeout("WaitForNext()", 5); } function loadAudio(audioPath) { var version = deconcept.SWFObjectUtil.getPlayerVersion(); if ( version["major"] >= 8 && version["minor"] >= 0 ) { var so = new SWFObject("/public/docroot/ddbSite/flash/video_container.swf", "videoContainerSWF", 306, 64, "8", "#FFFFFF"); so.addVariable('controlSkin','/public/docroot/ddbSite/flash/SteelExternalAll.swf?t='+Math.random()); //so.addVariable('autoplay',true); so.write( $("flashcontent") ); } else { $("flashcontent").update('
'); } // setVideoPath(audioPath); nextVideo = audioPath; window.setTimeout("WaitForNext()", 5); $("flashcontent").style.width = '306px'; $("flashcontent").style.height = '64px'; document.getElementById("work_bottom_double").style.display = "none"; document.getElementById("work_bottom").style.display = "block"; document.getElementById("work_bottom_link").style.display = "none"; } function setVideoStartLink(url_small, url_big, width_small, height_small, width_big, height_big){ $('work_start_link').update("Click here to view"); } function setImageStartLink(url_small, url_big, width_small, height_small, width_big, height_big){ $('work_start_link').update("Click here to view"); }