/*';
popup.appendChild(flash);
//Buttons
var b1 = document.createElement('a');
b1.href = 'index.php?module=register&type=free';
b1.style.position = 'absolute';
b1.style.top = '462px';
b1.style.left = '351px';
var b1img = document.createElement('img');
b1img.style.border = 'none';
b1img.style.width = '142px';
b1img.src = 'themes//images//orange_join_for_free.gif';
b1.appendChild(b1img);
popup.appendChild(b1);
var b2 = document.createElement('img');
b2.onclick = function (e) {hideDemoLayer();viewDemo(); return false;};
b2.style.cursor = 'pointer';
b2.style.position = 'absolute';
b2.style.top = '462px';
b2.style.left = '12px';
b2.style.width = '142px';
b2.src = 'themes//images//orange_try_out_demo.gif';
popup.appendChild(b2);
popup.style.background = 'url(themes//images/demo_layer/bg_default.jpg) no-repeat';
/*if (getBrowser() == 'msie' == getBrowserVersion() < 7) {
popup.style.background = 'url(themes//images/demo_layer/bg_ie6.gif) no-repeat';
}
else {
popup.style.background = 'url(themes//images/demo_layer/bg_default.jpg) no-repeat';
}*/
return popup;
}
function popup_show()
{
popup_container = document.createElement('div');
popup_container.id = 'popup';
popup_container.style.position = 'absolute';
popup_container.style.width = popup_width;
popup_container.style.height = popup_height;
popup_container.style.position = 'absolute';
popup_container.style.top = '0px';
popup_container.style.left = '0px';
popup_container.style.visibility = 'hidden';
popup_container.appendChild(popup_getPopupWrapper(popup_content));
popup_container.style.zIndex = 99;
var pos = '';
if (popup_centered) {
pos = 'popup_setCenteredPosition()';
window.onscroll = window.onresize = popup_setCenteredPosition;
}
else
pos = 'popup_setPosition()';
popup_timeoutId = setTimeout('document.body.appendChild(popup_container);' + pos + ';popup_container.style.visibility = \'visible\';', popup_delay);
}
/**
* info layer content
* @version marco.rossdeutscher@magix.net 10.06.2008
*/
function popup_getInfoWrapper(info)
{
var popup = document.createElement('div');
popup.className = 'popupLayer';
popup.style.width = '550px';
popup.style.height = '250px';
//Link zum Ausblenden des Layers
var closeLink = document.createElement('div');
closeLink.style.width = '34px';
closeLink.style.height = '34px';
closeLink.style.position = 'absolute';
closeLink.style.top = '0px';
closeLink.style.right = '-20px';
closeLink.style.cursor = 'pointer';
closeLink.onclick = function(e) {hideDemoLayer();};
popup.appendChild(closeLink);
var orangeBox = document.createElement('div');
orangeBox.className = "mgx_OrangeBox";
orangeBox.style.width = '500px';
orangeBox.style.position = 'absolute';
orangeBox.style.top = '50px';
orangeBox.style.left = '25px';
orangeBox.style.display = 'block';
var caption = document.createElement('div');
caption.className = "Caption";
var captionText = document.createElement('div');
captionText.className = "CaptionText";
var clear = document.createElement('div');
clear.className = "clear"
var be_er = document.createElement('br');
var bodyPart = document.createElement('div');
bodyPart.className = "BodyPart";
var captionTextNode;
var bodyPartTextNode;
switch(info) {
case '1':
default: captionTextNode = document.createTextNode("Unfortunaly, you still have not activated your login!");
bodyPartTextNode = document.createTextNode("Your access details for the service where sent to your email address again! To activate your Website Maker account and thereby confirm your registration, please click the activation link inside this email.");
}
captionText.appendChild(captionTextNode);
caption.appendChild(captionText);
caption.appendChild(clear);
bodyPart.appendChild(bodyPartTextNode);
orangeBox.appendChild(caption);
orangeBox.appendChild(bodyPart);
popup.appendChild(orangeBox);
popup.style.background = 'url(themes//images/demo_layer/bg_infobox.jpg) no-repeat';
//popup.style.background = '#ffffff';
return popup;
}
/**
* show info layer instead of video content
* @version marco.rossdeutscher@magix.net 10.06.2008
*/
function popup_show_info()
{
popup_container = document.createElement('div');
popup_container.id = 'popup';
popup_container.style.position = 'absolute';
popup_container.style.width = popup_width;
popup_container.style.height = popup_height;
popup_container.style.position = 'absolute';
popup_container.style.top = '0px';
popup_container.style.left = '0px';
popup_container.style.visibility = 'hidden';
popup_container.appendChild(popup_getInfoWrapper(popup_content));
popup_container.style.zIndex = 99;
var pos = '';
if (popup_centered) {
pos = 'popup_setCenteredPosition()';
window.onscroll = window.onresize = popup_setCenteredPosition;
}
else
pos = 'popup_setPosition()';
popup_timeoutId = setTimeout('document.body.appendChild(popup_container);' + pos + ';popup_container.style.visibility = \'visible\';', popup_delay);
}
function popup_exists()
{
return document.getElementById('popup') != null;
}
function popup_getContainer()
{
return document.getElementById('popup');
}
function popup_hide()
{
if (popup_exists())
{
var pc = popup_getContainer();
pc.parentNode.removeChild(pc);
}
window.clearTimeout(popup_timeoutId);
}
function popup_hidePage(status)
{
if (status == 0)
{
popup_hideLayer.style.display = 'none';
window.onresize = '';
document.body.style.overflow = 'visible';
return false;
}
popup_hideLayer.id = 'popupHideLayer';
//popup_hideLayer.style.width = '100%';
popup_hideLayer.style.position = 'absolute';
popup_hideLayer.style.top = '0px';
popup_hideLayer.style.right = '0px';
popup_hideLayer.style.bottom = '0px';
popup_hideLayer.style.left = '0px';
popup_hideLayer.style.filter = 'Alpha(opacity=80)';
popup_hideLayer.style.opacity = '0.8';
popup_hideLayer.style.zIndex = '3';
popup_hideLayer.style.display = 'none';
popup_hideLayer.style.cursor = 'pointer';
popup_hideLayer.style.background = '#000000';
popup_hideLayer.onclick = function(e){hideDemoLayer();};
document.body.style.overflow = 'hidden';
popup_hideLayer.style.display = 'block';
popup_hideLayer.style.cursour = 'wait';
popup_hideLayer.style.width = '100%';
popup_hideLayer.style.top = '0px';
popup_hideLayer.style.right = '0px';
popup_hideLayer.style.bottom = '0px';
popup_hideLayer.style.left = '0px';
document.body.appendChild(popup_hideLayer);
window.onresize = function(e){popup_hidePage(1);}
return true;
}
function getBrowser()
{
/*alert(navigator.userAgent);*/
if (navigator.userAgent.indexOf('Opera') != -1)
{
return 'opera'
}
if (navigator.userAgent.indexOf('MSIE') != -1)
{
return 'msie';
}
if (navigator.userAgent.indexOf('Firefox') != -1)
{
return 'firefox';
}
}
function getBrowserVersion()
{
switch (getBrowser())
{
case 'msie':
{
if (navigator.userAgent.indexOf('MSIE 7') != -1)
{
return '7';
}
else if (navigator.userAgent.indexOf('MSIE 6') != -1)
{
return '6';
}
else
{
return false;
}
break;
}
case 'firefox':
{
return false;
break;
}
case 'opera':
{
return false;
break;
}
default:
{
break;
}
}
}
function trim(str)
{
str = str.replace(/\n|\r|\s|\r\n|\n\r/g, '');
return str;
}
function getElementPosition(element)
{
var left = 0;
var top = 0;
while (element.tagName != 'BODY' && element.tagName != 'HTML')
{
top = top + element.offsetTop;
left = left + element.offsetLeft;
element = element.offsetParent;
}
return new Array(left, top);
}
function showDemoLayer(e)
{
initPopup(e, '528px', '534px', 'Hallo', 0, false, getBrowser());
popup_setCenteredStatus(true);
popup_hidePage(1);
popup_show();
}
function showInfoLayer(e, type)
{
initPopup(e, '528px', '534px', type, 0, false, getBrowser());
popup_setCenteredStatus(true);
popup_hidePage(1);
popup_show_info();
}
function hideDemoLayer()
{
popup_hide();
popup_hidePage(0);
}
function viewDemo()
{
F1 = window.open("http://website.orange.co.uk/website/demo?mandant=&language=&country=&variant=&wm_version=2", "mwDemoWindow", "width=1024,height=768,left=10,top=10,resizable=yes");
F1.focus();
}
function viewTutorial()
{
F1 = window.open("TUTORIAL_FLASH_MOVIE_URL", "mwTutorialWindow", "width=1004,height=700,left=10,top=10,resizable=no");
F1.focus();
}
/*]]>*/