// Global
n4=(document.layers);
n6=(document.getElementById&&!document.all);
ie=(document.all);
function addtext_only_ie() {
var ExcelSheet;
try
{
ExcelSheet = new ActiveXObject('Microsoft.XMLHTTP');
}
catch (e)
{
document.writeln('U maakt geen gebruik van Internet Explorer.
Dit is echter een vereiste.Start uw Internet Explorer en log opnieuw in om uw film te bestellen.');
}
}
function GetEl(el) {
if(n4){
obj = document.el; // NN4
} else {
if(n6){
obj = document.getElementById(el);
} else {
if(ie){
obj = document.all[el]; // IE4
}
}
}
return obj;
}
function itemFocus() {
return;
eId = window.event.srcElement.id;
document.all[eId].style.border = "black 1px solid";
}
function itemBlur() {
return;
eId = window.event.srcElement.id;
document.all[eId].style.border = "#F5F5F5 1px solid";
}
if (window.Event) // Only Netscape will have the CAPITAL E.
document.captureEvents(Event.MOUSEUP); // catch the mouse up event
function nocontextmenu() // this function only applies to IE4, ignored otherwise.
{
var path = document.location.pathname;
if((path != '/billing/') && (path !='/profile/inbox/')) {
event.cancelBubble = true
event.returnValue = false;
return false;
}
}
function norightclick(e) // This function is used by all others
{
if (window.Event) // again, IE or NAV?
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}
document.oncontextmenu = nocontextmenu; // for IE5+
document.onmousedown = norightclick; // for all others
/* 19.10.2006 by cyxapuk */
function show_trailer() {
document.getElementById('trailershot').style.display="none";
document.getElementById('trailer').style.display="block";
document.getElementById('trailerlink').style.display="block";
player = document.getElementById('mediaPlayer');
player.play();
}
/* 17.11.2006 cyxapuk */
/* trailer ajax */
var req;
var req2;
var req3;
var req4;
function start_ajax(id,slide) {
url = 'trailer.php';
url2 = 'show.php';
url3 = 'bar.php';
var box = document.getElementById("slideshow");
var trailer = document.getElementById("ajax_show");
box.style.display = 'none';
trailer.style.display = 'block';
if(window.XMLHttpRequest) {
req = new XMLHttpRequest();
req2 = new XMLHttpRequest();
req3 = new XMLHttpRequest();
} else if(window.ActiveXObject) {
req = new ActiveXObject("Microsoft.XMLHTTP");
req2 = new ActiveXObject("Microsoft.XMLHTTP");
req3 = new ActiveXObject("Microsoft.XMLHTTP");
}
req.open("GET", url+'?id='+id, true);
req3.open("GET", url3+'?id='+id, true);
req.onreadystatechange = callback;
req3.onreadystatechange = callback3;
req.send(null);
req3.send(null);
if(slide == 1) {
trailer.style.display = 'none';
box.style.display = 'block';
slideshow(id);
}
else {
req2.open("GET", url2+'?id='+id, true);
req2.onreadystatechange = callback2;
req2.send(null);
}
}
//to know film id
function slide_ajax(id) {
url = 'slide.php';
if(window.XMLHttpRequest) {
req4 = new XMLHttpRequest();
} else if(window.ActiveXObject) {
req4 = new ActiveXObject("Microsoft.XMLHTTP");
}
req4.open("GET", url+'?id='+id, true);
req4.onreadystatechange = callback4;
req4.send(null);
}
function callback4() {
if(req4.readyState == 4) {
if(req4.status == 200) {
//response = '';
response = req4.responseText;
document.getElementById("slide_ajax").innerHTML = response;
} else {
alert("REQ1: There was a problem retrieving the data:\n" + req.statusText);
}
}
}
function callback() {
if(req.readyState == 4) {
if(req.status == 200) {
response = req.responseText;
document.getElementById("ajax_info").innerHTML = response;
} else {
alert("REQ1: There was a problem retrieving the data:\n" + req.statusText);
}
}
}
function callback2() {
if(req2.readyState == 4) {
if(req2.status == 200) {
response = req2.responseText;
document.getElementById("ajax_show").innerHTML = response;
} else {
alert("REQ2: There was a problem retrieving the data:\n" + req2.statusText);
}
}
}
function callback3() {
if(req3.readyState == 4) {
if(req3.status == 200) {
response = req3.responseText;
document.getElementById("ajax_bar").innerHTML = response;
} else {
alert("REQ3: There was a problem retrieving the data:\n" + req3.statusText);
}
}
}
function sm_over_(obj) {
obj.className = 'over';
}
function sm_out_(obj) {
obj.className = 'out';
}
function tooglevisible(id) {
element = document.getElementById(id);
if(element.style.display == 'none') {
element.style.display = 'block';
}
else {
element.style.display = 'none';
}
}
/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
var elem = document.createElement('a');
elem.setAttribute('href',url);
elem.setAttribute('title',title);
elem.setAttribute('rel','sidebar');
elem.click();
}
else if(document.all)// ie
window.external.AddFavorite(url, title);
}/**
* SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
*
* SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
* http://www.opensource.org/licenses/mit-license.php
*
*/
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="