var movName = '';
var adName = '';
var adHeight = '';
var adWidth = '';

function OpenSimpleModal(){
	//Display an external page using an iframe
	if(movName != ""){
		var src = "/FlashShell.html";		
		jQuery.modal('<iframe src="' + src + '" height="292" width="520" style="border:0" scrolling="no">', {			
			closeClass:"simplemodal-close",			
			containerCss:{			
				backgroundColor:"#fff",					
				height:292,			
				padding:0,			
				width:520		
			},
			isFlash:true		
		});
	}
}

function openAd(imagePath, imageWidth, imageHeight){
    if(imagePath != ""){
	
        var src = "/FlashShell.html?q=ad";  
		adName = imagePath;  
		adHeight = imageHeight;
		adWidth = imageWidth;
		
        jQuery.modal('<iframe src="' + src + '" height="'+ imageHeight +'" width="'+ imageWidth +'" style="border:0" scrolling="no">', {            
            closeClass:"simplemodal-close",            
            containerCss:{            
                backgroundColor:"#fff",                    
                height: imageHeight,          
                padding:0,            
                width: imageWidth        
            },
            isFlash:true        
        });
    }
}

function openVideo(vidName){
	movName = vidName;
	OpenSimpleModal();
}

function ReadMovName(){
	return movName;
}

function ReadAdName(){
	return adName;
}

function ReadAdWidth(){
	return adWidth;
}

function ReadAdHeight(){
	return adHeight;
}