var eventModalShown = false;
// Display API login modal
function displayAuthModal(skipVeilCheck, commentLogin){
// force iPhone/Ipod non-framed load
if (os == 'ipod') {
// replace auth content with load link
if (parent.location != document.location) {
window.open('http://www.coveritlive.com/index2.php?option=com_altcaster&task=viewaltcast&altcast_code=b6d02bccbf&ipod=y');
return true;
}
}
// check if auth required
if (skipVeilCheck == 'undefined') {
}
// check if modal needed
// check if login to comment
if (commentLogin !== true) {
// continue to event
cil_openveil();
return true;
}
// check if user is already logged in
// check if modal already visible
if ($chk('modalitem4') && ($('modalitem4').getStyle('display') == 'inline')){
return false;
}
// Set modal dimensions
modalHeight = 400;
modalWidth = 390;
if (os == 'ipod') {
modalHeight = maxheight;
modalWidth = maxwidth;
} else {
modalWidth = 400;
}
$('modalitem4').setStyle('width', '400px');
var EventAuthModalContent = eventAuthModal;
if (os == 'ipod') {
// need to use the old method of opening, since the new gaming pop manager isn't available for ipod
launchLayer(4, EventAuthModalContent, modalHeight, modalWidth);
$('modalitem4').setStyle('width', '400px');
modalleft = Math.round((maxwidth - modalWidth) / 2);
$('modalitem4').setStyle('left', modalleft + 'px');
$('modalitem4').setStyle('opacity', '1');
$('divsrc4').setStyle('background', '#FFF');
} else {
var myConfig = { popupType: 4,
popupHTML: EventAuthModalContent,
popupHeight: modalHeight,
popupWidth: modalWidth,
popupPriority: 11,
popupCloseButton: true,
popupCloseButtonText: TXTVW_CLOSE,
popupDisplayNow: true,
popupUseQueue: false,
popupCloseAfterSeconds: 0,
popupModal: false,
popupBorderColor: '#000',
popupBorderWidth: '5',
popupAllowAutoClose: true,
popupAllowAdditionalPopups: false};
var myPopupLayer = new popupLayer(myConfig);
ViewerWindowPopup.addnew(myPopupLayer);
var loginServicesConfigured = unserialize(event_reader_api_list);
var loginServicesAvailable = ["facebook","twitter","myspace","openid","custom","pluck"];
for (var i=0;i
grizzlies april 30 wwe extreme rules 2012 vontaze burfict jimmy kimmel amzn white house correspondents dinner
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.