/*
 * Ext JS Library 2.3.0
 * Copyright(c) 2006-2009, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://extjs.com/license
 */

if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){
Ext.useShims = true;
}else{
Ext.useShims = false;
}

Ext.onReady(function(){



var mapwin2;
var button = Ext.get('show-btn1');
button.on('click', function(){
if(!mapwin2){
mapwin2 = new Ext.Window({
layout: 'fit',
title: 'Become a Fan!',
closeAction: 'hide',
width:584,
height:550,
html : '<iframe id=contentFRM src="http://www.arabchat.com/fb/fanbox25.php" frameBorder=0 scrolling=no  width=100% height=100%  style="visibility:hidden;" onload="this.style.visibility = \'visible\';"  allowtransparency="true" name="testiframe2" id="testiframe2"></iframe>'
});
}
mapwin2.show();
});



var mapwin;
var button = Ext.get('show-btn');
button.on('click', function(){
if(!mapwin){
mapwin = new Ext.Window({
layout: 'fit',
title: 'Stay up to date - ArabChat.com',
closeAction: 'hide',
width:865,
height:550,
html : '<iframe id=contentFRM  src="http://www.arabchat.com/tab/index-jq-ac.php" frameBorder=0 scrolling=no  width=100% height=100%  style="visibility:hidden;" onload="this.style.visibility = \'visible\';"  allowtransparency="true" name="testiframe2" id="testiframe2"></iframe>'
});
}

mapwin.show();

});


var mapwin13;
var button = Ext.get('show-btn13');
button.on('click', function(){
if(!mapwin13){
mapwin13 = new Ext.Window({
layout: 'fit',
title: 'Media Player',
closeAction: 'hide',
width:562,
height:360,
html : '<iframe id=contentFRM src="http://www.arabchat.com/tab/aj5-ac.php" frameBorder=0 scrolling=no  width=100% height=100%  style="visibility:hidden;" onload="this.style.visibility = \'visible\';"   allowtransparency="true" name="testiframe2" id="testiframe2"></iframe>'
});
}
mapwin13.show();
});


var mapwin20;
var button = Ext.get('show-btn20');
button.on('click', function(){
if(!mapwin20){
mapwin20 = new Ext.Window({
layout: 'fit',
title: 'Translation Tools',
closeAction: 'hide',
width:556,
height:383,
html : '<iframe id=contentFRM src="http://www.arabchat.com/im/tools/arabic-english.php" frameBorder=0 scrolling=no  width=100% height=100%  style="visibility:hidden;" onload="this.style.visibility = \'visible\';"  allowtransparency="true" name="testiframe2" id="testiframe2"></iframe>'
});
}
mapwin20.show();
});



var mapwin9;
var button = Ext.get('show-btn9');
button.on('click', function(){
if(!mapwin9){
mapwin9 = new Ext.Window({
layout: 'fit',
title: 'Control Panel',
closeAction: 'hide',
width:599,
height:498,
html : '<iframe id=contentFRM src="http://www.arabchat.com/reg/bin/cp2.php" frameBorder=0 scrolling=no  width=100% height=100%  style="visibility:hidden;" onload="this.style.visibility = \'visible\';"  allowtransparency="true" name="testiframe2" id="testiframe2"></iframe>'
});
}
mapwin9.show();
});



var mapwin24;
var button = Ext.get('show-btn24');
button.on('click', function(){
if(!mapwin24){
mapwin24 = new Ext.Window({
layout: 'fit',
title: 'Stay up to date',
closeAction: 'hide',
width:865,
height:550,
html : '<iframe id=contentFRM  src="http://www.arabchat.com/tab/index-jq-ac.php" frameBorder=0 scrolling=no  width=100% height=100%  style="visibility:hidden;" onload="this.style.visibility = \'visible\';"  allowtransparency="true" name="testiframe2" id="testiframe2"></iframe>'
});
}

mapwin24.show();

});

var mapwin22;
var button = Ext.get('show-btn22');
button.on('click', function(){
if(!mapwin22){
mapwin22 = new Ext.Window({
layout: 'fit',
title: 'Mailbox',
closeAction: 'hide',
width:702,
height:481,
html : '<iframe id=contentFRM src="http://www.arabchat.com/tab/index-po-ac.php" frameBorder=0 scrolling=no  width=100% height=100%  style="visibility:hidden;" onload="this.style.visibility = \'visible\';"  allowtransparency="true" name="testiframe2" id="testiframe2"></iframe>'
});
}
mapwin22.show();
});

var mapwin2;
var button = Ext.get('show-btn2');
button.on('click', function(){
if(!mapwin2){
mapwin2 = new Ext.Window({
layout: 'fit',
title: 'Become a Fan!',
closeAction: 'hide',
width:584,
height:550,
html : '<iframe id=contentFRM src="http://www.arabchat.com/fb/fanbox25.php" frameBorder=0 scrolling=no  width=100% height=100%  style="visibility:hidden;" onload="this.style.visibility = \'visible\';"  allowtransparency="true" name="testiframe2" id="testiframe2"></iframe>'
});
}
mapwin2.show();
});


var mapwin4;
var button = Ext.get('show-btn4');
button.on('click', function(){
if(!mapwin4){
mapwin4 = new Ext.Window({
layout: 'fit',
title: 'Share ArabChat',
closeAction: 'hide',
width:410,
height:255,
html : '<iframe id=contentFRM src="http://www.arabchat.com/im/share.php" frameBorder=0 scrolling=no  width=100% height=100%  style="visibility:hidden;" onload="this.style.visibility = \'visible\';"  allowtransparency="true" name="testiframe2" id="testiframe2"></iframe>'
});
}
mapwin4.show();
});





});
